qcacmn: rename dp_is_hw_dbs_enable function
dp_is_hw_dbs_enable() is checking DBS and update number of MAC rings value, current function name makes confusion. rename it to dp_update_num_mac_rings_for_dbs(). Change-Id: I82540a943445560a99e27067e58d59035147208b CRs-Fixed: 3131546
这个提交包含在:
@@ -2958,15 +2958,17 @@ QDF_STATUS dp_rx_tid_update_wifi3(struct dp_peer *peer, int tid, uint32_t
|
||||
uint16_t dp_get_peer_mac_list(ol_txrx_soc_handle soc, uint8_t vdev_id,
|
||||
u_int8_t newmac[][QDF_MAC_ADDR_SIZE],
|
||||
u_int16_t mac_cnt, bool limit);
|
||||
|
||||
/*
|
||||
* dp_is_hw_dbs_enable() - Procedure to check if DBS is supported
|
||||
* @soc: DP SoC context
|
||||
* @max_mac_rings: No of MAC rings
|
||||
* dp_update_num_mac_rings_for_dbs() - Update No of MAC rings based on
|
||||
* DBS check
|
||||
* @soc: DP SoC context
|
||||
* @max_mac_rings: Pointer to variable for No of MAC rings
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void dp_is_hw_dbs_enable(struct dp_soc *soc,
|
||||
int *max_mac_rings);
|
||||
void dp_update_num_mac_rings_for_dbs(struct dp_soc *soc,
|
||||
int *max_mac_rings);
|
||||
|
||||
|
||||
#if defined(WLAN_SUPPORT_RX_FISA)
|
||||
|
@@ -2743,7 +2743,7 @@ static void dp_interrupt_timer(void *arg)
|
||||
}
|
||||
|
||||
start_time = qdf_get_log_timestamp();
|
||||
dp_is_hw_dbs_enable(soc, &max_mac_rings);
|
||||
dp_update_num_mac_rings_for_dbs(soc, &max_mac_rings);
|
||||
|
||||
while (yield == DP_TIMER_NO_YIELD) {
|
||||
for (lmac_iter = 0; lmac_iter < max_mac_rings; lmac_iter++) {
|
||||
@@ -5842,8 +5842,7 @@ static QDF_STATUS dp_rxdma_ring_config(struct dp_soc *soc)
|
||||
.hal_srng,
|
||||
RXDMA_BUF);
|
||||
|
||||
/* get max_mac_rings based on DBS */
|
||||
dp_is_hw_dbs_enable(soc, &max_mac_rings);
|
||||
dp_update_num_mac_rings_for_dbs(soc, &max_mac_rings);
|
||||
dp_err("pdev_id %d max_mac_rings %d",
|
||||
pdev->pdev_id, max_mac_rings);
|
||||
|
||||
@@ -13669,15 +13668,8 @@ void *dp_get_pdev_for_mac_id(struct dp_soc *soc, uint32_t mac_id)
|
||||
return soc->pdev_list[0];
|
||||
}
|
||||
|
||||
/*
|
||||
* dp_is_hw_dbs_enable() - Procedure to check if DBS is supported
|
||||
* @soc: DP SoC context
|
||||
* @max_mac_rings: No of MAC rings
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void dp_is_hw_dbs_enable(struct dp_soc *soc,
|
||||
int *max_mac_rings)
|
||||
void dp_update_num_mac_rings_for_dbs(struct dp_soc *soc,
|
||||
int *max_mac_rings)
|
||||
{
|
||||
bool dbs_enable = false;
|
||||
|
||||
@@ -13685,12 +13677,12 @@ void dp_is_hw_dbs_enable(struct dp_soc *soc,
|
||||
dbs_enable = soc->cdp_soc.ol_ops->
|
||||
is_hw_dbs_capable((void *)soc->ctrl_psoc);
|
||||
|
||||
*max_mac_rings = (dbs_enable)?(*max_mac_rings):1;
|
||||
*max_mac_rings = dbs_enable ? (*max_mac_rings) : 1;
|
||||
dp_info("dbs_enable %d, max_mac_rings %d",
|
||||
dbs_enable, *max_mac_rings);
|
||||
}
|
||||
|
||||
qdf_export_symbol(dp_is_hw_dbs_enable);
|
||||
qdf_export_symbol(dp_update_num_mac_rings_for_dbs);
|
||||
|
||||
#if defined(WLAN_CFR_ENABLE) && defined(WLAN_ENH_CFR_ENABLE)
|
||||
/**
|
||||
|
@@ -440,7 +440,7 @@ static void dp_mon_vdev_timer(void *arg)
|
||||
lmac_id = pdev->ch_band_lmac_id_mapping[mon_pdev->mon_chan_band];
|
||||
|
||||
start_time = qdf_get_log_timestamp();
|
||||
dp_is_hw_dbs_enable(soc, &max_mac_rings);
|
||||
dp_update_num_mac_rings_for_dbs(soc, &max_mac_rings);
|
||||
|
||||
while (yield == DP_TIMER_NO_YIELD) {
|
||||
for (lmac_iter = 0; lmac_iter < max_mac_rings; lmac_iter++) {
|
||||
|
@@ -939,7 +939,7 @@ int dp_set_pktlog_wifi3(struct dp_pdev *pdev, uint32_t event,
|
||||
if (!mon_ops)
|
||||
return 0;
|
||||
|
||||
dp_is_hw_dbs_enable(soc, &max_mac_rings);
|
||||
dp_update_num_mac_rings_for_dbs(soc, &max_mac_rings);
|
||||
|
||||
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG,
|
||||
FL("Max_mac_rings %d "),
|
||||
@@ -1526,7 +1526,7 @@ static void dp_cfr_filter(struct cdp_soc_t *soc_hdl,
|
||||
soc = pdev->soc;
|
||||
pdev->cfr_rcc_mode = false;
|
||||
max_mac_rings = wlan_cfg_get_num_mac_rings(pdev->wlan_cfg_ctx);
|
||||
dp_is_hw_dbs_enable(soc, &max_mac_rings);
|
||||
dp_update_num_mac_rings_for_dbs(soc, &max_mac_rings);
|
||||
|
||||
dp_mon_debug("Max_mac_rings %d", max_mac_rings);
|
||||
dp_mon_info("enable : %d, mode: 0x%x", enable, filter_val->mode);
|
||||
|
@@ -280,7 +280,7 @@ dp_mon_ht2_rx_ring_cfg(struct dp_soc *soc,
|
||||
* Overwrite the max_mac_rings for the status rings.
|
||||
*/
|
||||
if (srng_type == DP_MON_FILTER_SRNG_TYPE_RXDMA_MONITOR_STATUS)
|
||||
dp_is_hw_dbs_enable(soc, &max_mac_rings);
|
||||
dp_update_num_mac_rings_for_dbs(soc, &max_mac_rings);
|
||||
|
||||
dp_mon_filter_info("%pK: srng type %d Max_mac_rings %d ",
|
||||
soc, srng_type, max_mac_rings);
|
||||
|
在新工单中引用
屏蔽一个用户