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
This commit is contained in:
hqu
2020-02-24 20:23:40 +08:00
committed by nshrivas
parent d188789876
commit e6d0730c6b
10 changed files with 24 additions and 24 deletions

View File

@@ -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 * target_if_dcs_cmd_send() - Send WMI command for dcs requests
* @psoc: psoc pointer * @psoc: psoc pointer
* @pdev_id: pdev_id * @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 * @dcs_enable: dcs enable or not
* *
* Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error
*/ */
static QDF_STATUS static QDF_STATUS
target_if_dcs_cmd_send(struct wlan_objmgr_psoc *psoc, uint32_t pdev_id, 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; QDF_STATUS ret;
struct wmi_unified *wmi_handle; 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, 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)) if (QDF_IS_STATUS_ERROR(ret))
target_if_err("wmi dcs cmd send failed, ret: %d", ret); target_if_err("wmi dcs cmd send failed, ret: %d", ret);

View File

@@ -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, QDF_STATUS wlan_dcs_cmd_send(struct wlan_objmgr_psoc *psoc,
uint32_t pdev_id, 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 wlan_target_if_dcs_tx_ops *dcs_tx_ops;
struct dcs_pdev_priv_obj *dcs_pdev_priv; 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); dcs_info("dcs_enable: %u, pdev_id: %u", dcs_enable, pdev_id);
return dcs_tx_ops->dcs_cmd_send(psoc, return dcs_tx_ops->dcs_cmd_send(psoc,
pdev_id, pdev_id,
is_target_pdev_id, is_host_pdev_id,
dcs_enable); 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 * wlan_dcs_disable_cmd_send() - send dcs disable command to target_if layer
* @psoc: psoc pointer * @psoc: psoc pointer
* @pdev_id: pdev_id * @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 * 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, static QDF_STATUS wlan_dcs_disable_cmd_send(struct wlan_objmgr_psoc *psoc,
uint32_t pdev_id, 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 wlan_target_if_dcs_tx_ops *dcs_tx_ops;
struct dcs_pdev_priv_obj *dcs_pdev_priv; 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); dcs_info("dcs_enable: %u, pdev_id: %u", 0, pdev_id);
return dcs_tx_ops->dcs_cmd_send(psoc, return dcs_tx_ops->dcs_cmd_send(psoc,
pdev_id, pdev_id,
is_target_pdev_id, is_host_pdev_id,
0); 0);
} }

View File

@@ -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 * wlan_dcs_cmd_send() - Send dcs command to target_if layer
* @psoc: psoc pointer * @psoc: psoc pointer
* @pdev_id: pdev_id * @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 * 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, QDF_STATUS wlan_dcs_cmd_send(struct wlan_objmgr_psoc *psoc,
uint32_t pdev_id, uint32_t pdev_id,
bool is_target_pdev_id); bool is_host_pdev_id);
/** /**
* wlan_dcs_process() - dcs process main entry * wlan_dcs_process() - dcs process main entry

View File

@@ -66,7 +66,7 @@ void ucfg_dcs_register_cb(
* ucfg_wlan_dcs_cmd(): API to send dcs command * ucfg_wlan_dcs_cmd(): API to send dcs command
* @psoc: pointer to psoc object * @psoc: pointer to psoc object
* @pdev_id: pdev_id * @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 * This function gets called to send dcs command
* *
@@ -75,7 +75,7 @@ void ucfg_dcs_register_cb(
QDF_STATUS QDF_STATUS
ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc, ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc,
uint32_t pdev_id, uint32_t pdev_id,
bool is_target_pdev_id); bool is_host_pdev_id);
/** /**
* ucfg_config_dcs_enable() - API to config dcs enable * ucfg_config_dcs_enable() - API to config dcs enable

View File

@@ -44,9 +44,9 @@ void ucfg_dcs_register_cb(
QDF_STATUS QDF_STATUS
ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc, ucfg_wlan_dcs_cmd(struct wlan_objmgr_psoc *psoc,
uint32_t pdev_id, 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, void ucfg_config_dcs_enable(struct wlan_objmgr_psoc *psoc,

View File

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

View File

@@ -61,7 +61,7 @@ QDF_STATUS wmi_extract_dcs_im_tgt_stats(
* wmi_send_dcs_pdev_param() - send dcs pdev param * wmi_send_dcs_pdev_param() - send dcs pdev param
* @wmi_handle: wmi handle * @wmi_handle: wmi handle
* @pdev_idx: pdev id * @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 * @dcs_enable: value of dcs enable
* *
* This functions gets called to send dcs pdev param * 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, QDF_STATUS wmi_send_dcs_pdev_param(wmi_unified_t wmi_handle,
uint32_t pdev_idx, uint32_t pdev_idx,
bool is_target_pdev_id, bool is_host_pdev_id,
uint32_t dcs_enable); uint32_t dcs_enable);
#endif /* _WMI_UNIFIED_DCS_API_H_ */ #endif /* _WMI_UNIFIED_DCS_API_H_ */

View File

@@ -878,12 +878,12 @@ struct suspend_params {
* struct pdev_params - pdev set cmd parameter * struct pdev_params - pdev set cmd parameter
* @param_id: parameter id * @param_id: parameter id
* @param_value: parameter value * @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 { struct pdev_params {
uint32_t param_id; uint32_t param_id;
uint32_t param_value; uint32_t param_value;
bool is_target_pdev_id; bool is_host_pdev_id;
}; };
/** /**

View File

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

View File

@@ -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_TAG_STRUC_wmi_pdev_set_param_cmd_fixed_param,
WMITLV_GET_STRUCT_TLVLEN WMITLV_GET_STRUCT_TLVLEN
(wmi_pdev_set_param_cmd_fixed_param)); (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( cmd->pdev_id = wmi_handle->ops->convert_host_pdev_id_to_target(
wmi_handle, wmi_handle,
mac_id); mac_id);