Ver Fonte

qcacmn: Rename is_target_pdev_id to is_host_pdev_id

It's more suitable that rename is_target_pdev_id to is_host_pdev_id.

Change-Id: I5ec8971ac564e1a26f1b544f9bc2cc08e29f949d
CRs-Fixed: 2627802
hqu há 5 anos atrás
pai
commit
e6d0730c6b

+ 3 - 3
target_if/dcs/src/target_if_dcs.c

@@ -139,14 +139,14 @@ target_if_dcs_unregister_event_handler(struct wlan_objmgr_psoc *psoc)
  * target_if_dcs_cmd_send() - Send WMI command for dcs requests
  * @psoc: psoc pointer
  * @pdev_id: pdev_id
- * @is_target_pdev_id: pdev_id is target pdev_id or not
+ * @is_host_pdev_id: pdev_id is host pdev_id or not
  * @dcs_enable: dcs enable or not
  *
  * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
  */
 static QDF_STATUS
 target_if_dcs_cmd_send(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id,
-		       bool is_target_pdev_id, uint32_t dcs_enable)
+		       bool is_host_pdev_id, uint32_t dcs_enable)
 {
 	QDF_STATUS ret;
 	struct wmi_unified *wmi_handle;
@@ -163,7 +163,7 @@ target_if_dcs_cmd_send(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id,
 	}
 
 	ret = wmi_send_dcs_pdev_param(wmi_handle, pdev_id,
-				      is_target_pdev_id, dcs_enable);
+				      is_host_pdev_id, dcs_enable);
 	if (QDF_IS_STATUS_ERROR(ret))
 		target_if_err("wmi dcs cmd send failed, ret: %d", ret);
 

+ 5 - 5
umac/dcs/core/src/wlan_dcs.c

@@ -104,7 +104,7 @@ QDF_STATUS wlan_dcs_detach(struct wlan_objmgr_psoc *psoc)
 
 QDF_STATUS wlan_dcs_cmd_send(struct wlan_objmgr_psoc *psoc,
 			     uint32_t pdev_id,
-			     bool is_target_pdev_id)
+			     bool is_host_pdev_id)
 {
 	struct wlan_target_if_dcs_tx_ops *dcs_tx_ops;
 	struct dcs_pdev_priv_obj *dcs_pdev_priv;
@@ -129,7 +129,7 @@ QDF_STATUS wlan_dcs_cmd_send(struct wlan_objmgr_psoc *psoc,
 		dcs_info("dcs_enable: %u, pdev_id: %u", dcs_enable, pdev_id);
 		return dcs_tx_ops->dcs_cmd_send(psoc,
 						pdev_id,
-						is_target_pdev_id,
+						is_host_pdev_id,
 						dcs_enable);
 	}
 
@@ -140,7 +140,7 @@ QDF_STATUS wlan_dcs_cmd_send(struct wlan_objmgr_psoc *psoc,
  * wlan_dcs_disable_cmd_send() - send dcs disable command to target_if layer
  * @psoc: psoc pointer
  * @pdev_id: pdev_id
- * @is_target_pdev_id: pdev_id is target id or not
+ * @is_host_pdev_id: pdev_id is host id or not
  *
  * The function gets called to send dcs disable command to FW
  *
@@ -148,7 +148,7 @@ QDF_STATUS wlan_dcs_cmd_send(struct wlan_objmgr_psoc *psoc,
  */
 static QDF_STATUS wlan_dcs_disable_cmd_send(struct wlan_objmgr_psoc *psoc,
 					    uint32_t pdev_id,
-					    bool is_target_pdev_id)
+					    bool is_host_pdev_id)
 {
 	struct wlan_target_if_dcs_tx_ops *dcs_tx_ops;
 	struct dcs_pdev_priv_obj *dcs_pdev_priv;
@@ -169,7 +169,7 @@ static QDF_STATUS wlan_dcs_disable_cmd_send(struct wlan_objmgr_psoc *psoc,
 		dcs_info("dcs_enable: %u, pdev_id: %u", 0, pdev_id);
 		return dcs_tx_ops->dcs_cmd_send(psoc,
 						pdev_id,
-						is_target_pdev_id,
+						is_host_pdev_id,
 						0);
 	}
 

+ 2 - 2
umac/dcs/core/src/wlan_dcs.h

@@ -191,7 +191,7 @@ QDF_STATUS wlan_dcs_detach(struct wlan_objmgr_psoc *psoc);
  * wlan_dcs_cmd_send() - Send dcs command to target_if layer
  * @psoc: psoc pointer
  * @pdev_id: pdev_id
- * @is_target_pdev_id: pdev_id is target id or not
+ * @is_host_pdev_id: pdev_id is host id or not
  *
  * The function gets called to send dcs command to FW
  *
@@ -199,7 +199,7 @@ QDF_STATUS wlan_dcs_detach(struct wlan_objmgr_psoc *psoc);
  */
 QDF_STATUS wlan_dcs_cmd_send(struct wlan_objmgr_psoc *psoc,
 			     uint32_t pdev_id,
-			     bool is_target_pdev_id);
+			     bool is_host_pdev_id);
 
 /**
  * wlan_dcs_process() - dcs process main entry

+ 2 - 2
umac/dcs/dispatcher/inc/wlan_dcs_ucfg_api.h

@@ -66,7 +66,7 @@ void ucfg_dcs_register_cb(
  * ucfg_wlan_dcs_cmd(): API to send dcs command
  * @psoc: pointer to psoc object
  * @pdev_id: pdev_id
- * @is_target_pdev_id: pdev_id is target id or not
+ * @is_host_pdev_id: pdev_id is host id or not
  *
  * This function gets called to send dcs command
  *
@@ -75,7 +75,7 @@ void ucfg_dcs_register_cb(
 QDF_STATUS
 ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc,
 		  uint32_t pdev_id,
-		  bool is_target_pdev_id);
+		  bool is_host_pdev_id);
 
 /**
  * ucfg_config_dcs_enable() - API to config dcs enable

+ 2 - 2
umac/dcs/dispatcher/src/wlan_dcs_ucfg_api.c

@@ -44,9 +44,9 @@ void ucfg_dcs_register_cb(
 QDF_STATUS
 ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc,
 		  uint32_t pdev_id,
-		  bool is_target_pdev_id)
+		  bool is_host_pdev_id)
 {
-	return wlan_dcs_cmd_send(psoc, pdev_id, is_target_pdev_id);
+	return wlan_dcs_cmd_send(psoc, pdev_id, is_host_pdev_id);
 }
 
 void ucfg_config_dcs_enable(struct wlan_objmgr_psoc *psoc,

+ 1 - 1
umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h

@@ -132,7 +132,7 @@ struct wlan_target_if_dcs_tx_ops {
 	QDF_STATUS (*dcs_detach)(struct wlan_objmgr_psoc *psoc);
 	QDF_STATUS (*dcs_cmd_send)(struct wlan_objmgr_psoc *psoc,
 				   uint32_t pdev_id,
-				   bool is_target_pdev_id,
+				   bool is_host_pdev_id,
 				   uint32_t dcs_enable);
 };
 

+ 2 - 2
wmi/inc/wmi_unified_dcs_api.h

@@ -61,7 +61,7 @@ QDF_STATUS wmi_extract_dcs_im_tgt_stats(
  * wmi_send_dcs_pdev_param() - send dcs pdev param
  * @wmi_handle: wmi handle
  * @pdev_idx: pdev id
- * @is_target_pdev_id: target pdev_id or not
+ * @is_host_pdev_id: host pdev_id or not
  * @dcs_enable: value of dcs enable
  *
  * This functions gets called to send dcs pdev param
@@ -70,6 +70,6 @@ QDF_STATUS wmi_extract_dcs_im_tgt_stats(
  */
 QDF_STATUS wmi_send_dcs_pdev_param(wmi_unified_t wmi_handle,
 				   uint32_t pdev_idx,
-				   bool is_target_pdev_id,
+				   bool is_host_pdev_id,
 				   uint32_t dcs_enable);
 #endif /* _WMI_UNIFIED_DCS_API_H_ */

+ 2 - 2
wmi/inc/wmi_unified_param.h

@@ -878,12 +878,12 @@ struct suspend_params {
  * struct pdev_params - pdev set cmd parameter
  * @param_id: parameter id
  * @param_value: parameter value
- * @is_target_pdev_id: indicate whether pdev_id is target pdev_id or not
+ * @is_host_pdev_id: indicate whether pdev_id is host pdev_id or not
  */
 struct pdev_params {
 	uint32_t param_id;
 	uint32_t param_value;
-	bool is_target_pdev_id;
+	bool is_host_pdev_id;
 };
 
 /**

+ 4 - 4
wmi/src/wmi_unified_dcs_api.c

@@ -52,13 +52,13 @@ QDF_STATUS wmi_extract_dcs_im_tgt_stats(
 #ifdef ENABLE_HOST_TO_TARGET_CONVERSION
 QDF_STATUS wmi_send_dcs_pdev_param(wmi_unified_t wmi_handle,
 				   uint32_t pdev_idx,
-				   bool is_target_pdev_id,
+				   bool is_host_pdev_id,
 				   uint32_t dcs_enable)
 {
 	struct pdev_params pparam;
 
 	qdf_mem_zero(&pparam, sizeof(pparam));
-	pparam.is_target_pdev_id = is_target_pdev_id;
+	pparam.is_host_pdev_id = is_host_pdev_id;
 	pparam.param_id = wmi_pdev_param_dcs;
 	pparam.param_value = dcs_enable;
 
@@ -67,13 +67,13 @@ QDF_STATUS wmi_send_dcs_pdev_param(wmi_unified_t wmi_handle,
 #else
 QDF_STATUS wmi_send_dcs_pdev_param(wmi_unified_t wmi_handle,
 				   uint32_t pdev_idx,
-				   bool is_target_pdev_id,
+				   bool is_host_pdev_id,
 				   uint32_t dcs_enable)
 {
 	struct pdev_params pparam;
 
 	qdf_mem_zero(&pparam, sizeof(pparam));
-	pparam.is_target_pdev_id = is_target_pdev_id;
+	pparam.is_host_pdev_id = is_host_pdev_id;
 	pparam.param_id = WMI_PDEV_PARAM_DCS;
 	pparam.param_value = dcs_enable;
 

+ 1 - 1
wmi/src/wmi_unified_tlv.c

@@ -1628,7 +1628,7 @@ send_pdev_param_cmd_tlv(wmi_unified_t wmi_handle,
 		       WMITLV_TAG_STRUC_wmi_pdev_set_param_cmd_fixed_param,
 		       WMITLV_GET_STRUCT_TLVLEN
 			       (wmi_pdev_set_param_cmd_fixed_param));
-	if (param->is_target_pdev_id)
+	if (param->is_host_pdev_id)
 		cmd->pdev_id = wmi_handle->ops->convert_host_pdev_id_to_target(
 								wmi_handle,
 								mac_id);