qcacmn: dp: Fix misspellings
Fix misspellings in dp/... Change-Id: I6ef7a19ee03104ae38a8a77e229b90aa80329592 CRs-Fixed: 3304682
This commit is contained in:

committed by
Madan Koyyalamudi

parent
c359185095
commit
ebfbc0d927
@@ -258,7 +258,7 @@ const struct DP_CMN_RATE_TABLE {
|
|||||||
|
|
||||||
static const struct DP_CMN_RATE_TABLE dp_11abgnratetable = {
|
static const struct DP_CMN_RATE_TABLE dp_11abgnratetable = {
|
||||||
{
|
{
|
||||||
/* When number of spatial strams > 4 or 11AX support is enabled */
|
/* When number of spatial streams > 4 or 11AX support is enabled */
|
||||||
|
|
||||||
/* 0 11 Mb */ { CCK_MODE_VALID_MASK, DP_CMN_MOD_IEEE80211_T_CCK,
|
/* 0 11 Mb */ { CCK_MODE_VALID_MASK, DP_CMN_MOD_IEEE80211_T_CCK,
|
||||||
11000, 11000, 0, 0, 0, 11000,
|
11000, 11000, 0, 0, 0, 11000,
|
||||||
@@ -531,7 +531,7 @@ static const struct DP_CMN_RATE_TABLE dp_11abgnratetable = {
|
|||||||
/* 85 MCS-09 */ { VHT20_LDPC_ONLY_MASKS,
|
/* 85 MCS-09 */ { VHT20_LDPC_ONLY_MASKS,
|
||||||
DP_CMN_MOD_IEEE80211_T_VHT_20, 86500,
|
DP_CMN_MOD_IEEE80211_T_VHT_20, 86500,
|
||||||
96000, 0, 0, 0, 86500, 0x309 },
|
96000, 0, 0, 0, 86500, 0x309 },
|
||||||
/* When we support very hight throughput MCS */
|
/* When we support very high throughput MCS */
|
||||||
/* 86 MCS-10 */ { VHT20_LDPC_ONLY_MASKS,
|
/* 86 MCS-10 */ { VHT20_LDPC_ONLY_MASKS,
|
||||||
DP_CMN_MOD_IEEE80211_T_VHT_20,
|
DP_CMN_MOD_IEEE80211_T_VHT_20,
|
||||||
97500, 108300, 0, 0, 0,
|
97500, 108300, 0, 0, 0,
|
||||||
@@ -6534,7 +6534,7 @@ dp_getrateindex(uint32_t gi, uint16_t mcs, uint8_t nss, uint8_t preamble,
|
|||||||
uint16_t rc;
|
uint16_t rc;
|
||||||
enum DP_CMN_MODULATION_TYPE mod;
|
enum DP_CMN_MODULATION_TYPE mod;
|
||||||
|
|
||||||
/* For error case, where idx exceeds bountry limit */
|
/* For error case, where idx exceeds boundary limit */
|
||||||
*ratecode = 0;
|
*ratecode = 0;
|
||||||
mod = dp_getmodulation(preamble, bw, punc_bw);
|
mod = dp_getmodulation(preamble, bw, punc_bw);
|
||||||
rc = mcs;
|
rc = mcs;
|
||||||
@@ -6604,7 +6604,7 @@ dp_getrateindex(uint32_t gi, uint16_t mcs, uint8_t nss, uint8_t preamble,
|
|||||||
uint16_t rc;
|
uint16_t rc;
|
||||||
enum DP_CMN_MODULATION_TYPE mod;
|
enum DP_CMN_MODULATION_TYPE mod;
|
||||||
|
|
||||||
/* For error case, where idx exceeds bountry limit */
|
/* For error case, where idx exceeds boundary limit */
|
||||||
*ratecode = 0;
|
*ratecode = 0;
|
||||||
mod = dp_getmodulation(preamble, bw, punc_bw);
|
mod = dp_getmodulation(preamble, bw, punc_bw);
|
||||||
rc = mcs;
|
rc = mcs;
|
||||||
|
@@ -110,7 +110,7 @@ void *dp_soc_init_wifi3(struct cdp_soc_t *soc,
|
|||||||
static inline int cdp_get_arch_type_from_devid(uint16_t devid)
|
static inline int cdp_get_arch_type_from_devid(uint16_t devid)
|
||||||
{
|
{
|
||||||
switch (devid) {
|
switch (devid) {
|
||||||
case LITHIUM_DP: /*FIXME Add lithium devide IDs */
|
case LITHIUM_DP: /*FIXME Add lithium device IDs */
|
||||||
case QCA8074_DEVICE_ID: /* Hawekeye */
|
case QCA8074_DEVICE_ID: /* Hawekeye */
|
||||||
case QCA8074V2_DEVICE_ID: /* Hawekeye V2*/
|
case QCA8074V2_DEVICE_ID: /* Hawekeye V2*/
|
||||||
case QCA9574_DEVICE_ID:
|
case QCA9574_DEVICE_ID:
|
||||||
@@ -157,7 +157,7 @@ ol_txrx_soc_handle cdp_soc_attach(u_int16_t devid,
|
|||||||
params.ol_ops = dp_ol_if_ops;
|
params.ol_ops = dp_ol_if_ops;
|
||||||
|
|
||||||
switch (devid) {
|
switch (devid) {
|
||||||
case LITHIUM_DP: /*FIXME Add lithium devide IDs */
|
case LITHIUM_DP: /*FIXME Add lithium device IDs */
|
||||||
case BERYLLIUM_DP:
|
case BERYLLIUM_DP:
|
||||||
case QCA8074_DEVICE_ID: /* Hawekeye */
|
case QCA8074_DEVICE_ID: /* Hawekeye */
|
||||||
case QCA8074V2_DEVICE_ID: /* Hawekeye V2*/
|
case QCA8074V2_DEVICE_ID: /* Hawekeye V2*/
|
||||||
|
@@ -372,7 +372,7 @@ enum cdp_host_reo_dest_ring {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum htt_cmn_t2h_en_stats_type {
|
enum htt_cmn_t2h_en_stats_type {
|
||||||
/* keep this alwyas first */
|
/* keep this always first */
|
||||||
HTT_CMN_T2H_EN_STATS_TYPE_START = 0,
|
HTT_CMN_T2H_EN_STATS_TYPE_START = 0,
|
||||||
|
|
||||||
/** ppdu_common_stats is the payload */
|
/** ppdu_common_stats is the payload */
|
||||||
@@ -920,8 +920,8 @@ typedef QDF_STATUS(*ol_txrx_get_key_fp)(void *osif_dev, uint8_t *key_buf, uint8_
|
|||||||
* ol_txrx_rsim_rx_decap_fp - raw mode simulation function to decap the
|
* ol_txrx_rsim_rx_decap_fp - raw mode simulation function to decap the
|
||||||
* packets in receive path.
|
* packets in receive path.
|
||||||
* @osif_dev - the virtual device's OS shim object
|
* @osif_dev - the virtual device's OS shim object
|
||||||
* @list_head - poniter to head of receive packet queue to decap
|
* @list_head - pointer to head of receive packet queue to decap
|
||||||
* @list_tail - poniter to tail of receive packet queue to decap
|
* @list_tail - pointer to tail of receive packet queue to decap
|
||||||
* @peer_mac - mac address of peer handler
|
* @peer_mac - mac address of peer handler
|
||||||
*/
|
*/
|
||||||
typedef QDF_STATUS(*ol_txrx_rsim_rx_decap_fp)(void *osif_dev,
|
typedef QDF_STATUS(*ol_txrx_rsim_rx_decap_fp)(void *osif_dev,
|
||||||
@@ -2188,7 +2188,7 @@ struct cdp_tx_completion_ppdu {
|
|||||||
* @tx_errors : Tx error due to FW tx failure, Ring failure DMA etc
|
* @tx_errors : Tx error due to FW tx failure, Ring failure DMA etc
|
||||||
* @tx_dropped: Tx dropped is same as tx errors as above
|
* @tx_dropped: Tx dropped is same as tx errors as above
|
||||||
* @rx_packets: Rx total packets transmitted
|
* @rx_packets: Rx total packets transmitted
|
||||||
* @rx_errors : Rx erros
|
* @rx_errors : Rx errors
|
||||||
* @rx_dropped: Rx dropped stats
|
* @rx_dropped: Rx dropped stats
|
||||||
* @tx_bytes : Tx total bytes transmitted
|
* @tx_bytes : Tx total bytes transmitted
|
||||||
* @rx_bytes : Rx total bytes transmitted
|
* @rx_bytes : Rx total bytes transmitted
|
||||||
@@ -2812,7 +2812,7 @@ struct cdp_scan_spcl_vap_stats {
|
|||||||
* @qdf_osdev: QDF device
|
* @qdf_osdev: QDF device
|
||||||
* @ol_ops: Offload Operations
|
* @ol_ops: Offload Operations
|
||||||
* @device_id: Device ID
|
* @device_id: Device ID
|
||||||
* @ml_context: DP ML object conext
|
* @ml_context: DP ML object context
|
||||||
* @mlo_chip_id: MLO chip id, for legacy SOCs chip_id need to 0
|
* @mlo_chip_id: MLO chip id, for legacy SOCs chip_id need to 0
|
||||||
* @mlo_enabled: MLO enable bit
|
* @mlo_enabled: MLO enable bit
|
||||||
*/
|
*/
|
||||||
|
@@ -1109,7 +1109,7 @@ cdp_dump_pdev_rx_protocol_tag_stats(ol_txrx_soc_handle soc,
|
|||||||
* cdp_vdev_config_for_nac_rssi(): To invoke dp callback for nac rssi config
|
* cdp_vdev_config_for_nac_rssi(): To invoke dp callback for nac rssi config
|
||||||
* @soc: soc pointer
|
* @soc: soc pointer
|
||||||
* @vdev_id: id of vdev
|
* @vdev_id: id of vdev
|
||||||
* @nac_cmd: specfies nac_rss config action add, del, list
|
* @nac_cmd: specifies nac_rss config action add, del, list
|
||||||
* @bssid: Neighbour bssid
|
* @bssid: Neighbour bssid
|
||||||
* @client_macaddr: Non-Associated client MAC
|
* @client_macaddr: Non-Associated client MAC
|
||||||
* @chan_num: channel number to scan
|
* @chan_num: channel number to scan
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2019,2021 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2019,2021 The Linux Foundation. All rights reserved.
|
||||||
|
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -178,7 +179,7 @@ cdp_fc_deregister(ol_txrx_soc_handle soc, uint8_t vdev_id)
|
|||||||
* get data path resource count
|
* get data path resource count
|
||||||
*
|
*
|
||||||
* return true enough data path resource available
|
* return true enough data path resource available
|
||||||
* false resource is not avaialbe
|
* false resource is not available
|
||||||
*/
|
*/
|
||||||
static inline bool
|
static inline bool
|
||||||
cdp_fc_get_tx_resource(ol_txrx_soc_handle soc, uint8_t pdev_id,
|
cdp_fc_get_tx_resource(ol_txrx_soc_handle soc, uint8_t pdev_id,
|
||||||
|
@@ -58,7 +58,7 @@ static inline int cdp_host_stats_get(ol_txrx_soc_handle soc,
|
|||||||
* @preamb: Preamble
|
* @preamb: Preamble
|
||||||
* @mcs: Modulation and Coding scheme index
|
* @mcs: Modulation and Coding scheme index
|
||||||
* @htflag: Flag to identify HT or VHT
|
* @htflag: Flag to identify HT or VHT
|
||||||
* @gintval: Gaurd Interval value
|
* @gintval: Guard Interval value
|
||||||
*
|
*
|
||||||
* return: 0 for Failure, Returns rate on Success
|
* return: 0 for Failure, Returns rate on Success
|
||||||
*/
|
*/
|
||||||
|
@@ -441,7 +441,7 @@ struct ol_txrx_ocb_set_chan {
|
|||||||
/**
|
/**
|
||||||
* @brief Parameter type to pass WMM setting to ol_txrx_set_wmm_param
|
* @brief Parameter type to pass WMM setting to ol_txrx_set_wmm_param
|
||||||
* @details
|
* @details
|
||||||
* The struct is used to specify informaiton to update TX WMM scheduler.
|
* The struct is used to specify information to update TX WMM scheduler.
|
||||||
*/
|
*/
|
||||||
struct ol_tx_ac_param_t {
|
struct ol_tx_ac_param_t {
|
||||||
uint32_t aifs;
|
uint32_t aifs;
|
||||||
|
@@ -184,7 +184,7 @@ struct cdp_mon_status {
|
|||||||
/* holes in flags here between, ATH_RX_XXXX to IEEE80211_RX_XXX */
|
/* holes in flags here between, ATH_RX_XXXX to IEEE80211_RX_XXX */
|
||||||
#define IEEE80211_RX_KEYMISS 0x200
|
#define IEEE80211_RX_KEYMISS 0x200
|
||||||
#define IEEE80211_RX_PN_ERROR 0x400
|
#define IEEE80211_RX_PN_ERROR 0x400
|
||||||
int rs_rssi; /* RSSI (noise floor ajusted) */
|
int rs_rssi; /* RSSI (noise floor adjusted) */
|
||||||
int rs_abs_rssi; /* absolute RSSI */
|
int rs_abs_rssi; /* absolute RSSI */
|
||||||
int rs_datarate; /* data rate received */
|
int rs_datarate; /* data rate received */
|
||||||
int rs_rateieee;
|
int rs_rateieee;
|
||||||
@@ -194,9 +194,9 @@ struct cdp_mon_status {
|
|||||||
|
|
||||||
/* Keep the same as ATH_MAX_ANTENNA */
|
/* Keep the same as ATH_MAX_ANTENNA */
|
||||||
#define IEEE80211_MAX_ANTENNA 3
|
#define IEEE80211_MAX_ANTENNA 3
|
||||||
/* RSSI (noise floor ajusted) */
|
/* RSSI (noise floor adjusted) */
|
||||||
u_int8_t rs_rssictl[IEEE80211_MAX_ANTENNA];
|
u_int8_t rs_rssictl[IEEE80211_MAX_ANTENNA];
|
||||||
/* RSSI (noise floor ajusted) */
|
/* RSSI (noise floor adjusted) */
|
||||||
u_int8_t rs_rssiextn[IEEE80211_MAX_ANTENNA];
|
u_int8_t rs_rssiextn[IEEE80211_MAX_ANTENNA];
|
||||||
/* rs_rssi is valid or not */
|
/* rs_rssi is valid or not */
|
||||||
u_int8_t rs_isvalidrssi;
|
u_int8_t rs_isvalidrssi;
|
||||||
@@ -393,7 +393,7 @@ enum cdp_mon_phyrx_abort_reason_code {
|
|||||||
* @total_ppdu_info_enq: Number of PPDUs enqueued to wq
|
* @total_ppdu_info_enq: Number of PPDUs enqueued to wq
|
||||||
* @total_ppdu_info_drop: Number of PPDUs dropped
|
* @total_ppdu_info_drop: Number of PPDUs dropped
|
||||||
* @total_ppdu_info_alloc: Number of PPDU info allocated
|
* @total_ppdu_info_alloc: Number of PPDU info allocated
|
||||||
* @total_ppdu_info_free: Number of PPDU info freeed
|
* @total_ppdu_info_free: Number of PPDU info freed
|
||||||
*/
|
*/
|
||||||
struct cdp_pdev_mon_stats {
|
struct cdp_pdev_mon_stats {
|
||||||
#ifndef REMOVE_MON_DBG_STATS
|
#ifndef REMOVE_MON_DBG_STATS
|
||||||
@@ -543,7 +543,7 @@ struct cdp_rssi_dbm_conv_param_dp {
|
|||||||
* struct cdp_rssi_db2dbm_param_dp
|
* struct cdp_rssi_db2dbm_param_dp
|
||||||
* @pdev_id: pdev_id
|
* @pdev_id: pdev_id
|
||||||
* @rssi_temp_off_present: to check temp offset values present or not
|
* @rssi_temp_off_present: to check temp offset values present or not
|
||||||
* @rssi_dbm_info_present: to check rssi dbm converstion parameters
|
* @rssi_dbm_info_present: to check rssi dbm conversion parameters
|
||||||
* present or not
|
* present or not
|
||||||
* @temp_off_param: cdp_rssi_temp_off_param_dp structure value
|
* @temp_off_param: cdp_rssi_temp_off_param_dp structure value
|
||||||
* @rssi_dbm_param: cdp_rssi_dbm_conv_param_dp staructure value
|
* @rssi_dbm_param: cdp_rssi_dbm_conv_param_dp staructure value
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
||||||
|
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -28,7 +29,7 @@
|
|||||||
/**
|
/**
|
||||||
* @brief find MSCS enabled peer for this mac address and validate priority
|
* @brief find MSCS enabled peer for this mac address and validate priority
|
||||||
* @details
|
* @details
|
||||||
* This function checks if there is a peer for this mac adress with MSCS
|
* This function checks if there is a peer for this mac address with MSCS
|
||||||
* enabled flag set and nbuf priority is valid from user priority bitmap.
|
* enabled flag set and nbuf priority is valid from user priority bitmap.
|
||||||
*
|
*
|
||||||
* @param src_mac - source mac address of peer
|
* @param src_mac - source mac address of peer
|
||||||
|
@@ -1019,7 +1019,7 @@ struct cdp_mon_ops {
|
|||||||
uint8_t pdev_id,
|
uint8_t pdev_id,
|
||||||
uint8_t direction);
|
uint8_t direction);
|
||||||
#endif
|
#endif
|
||||||
/*To set RSSI dbm converstion params in monitor pdev */
|
/*To set RSSI dbm conversion params in monitor pdev */
|
||||||
QDF_STATUS (*txrx_set_mon_pdev_params_rssi_dbm_conv)
|
QDF_STATUS (*txrx_set_mon_pdev_params_rssi_dbm_conv)
|
||||||
(struct cdp_soc_t *soc,
|
(struct cdp_soc_t *soc,
|
||||||
struct cdp_rssi_db2dbm_param_dp *params);
|
struct cdp_rssi_db2dbm_param_dp *params);
|
||||||
@@ -1828,7 +1828,7 @@ struct cdp_flowctl_ops {
|
|||||||
* @set_vdev_os_queue_status: Set vdev queue status
|
* @set_vdev_os_queue_status: Set vdev queue status
|
||||||
* @deregister_tx_flow_control_cb: Deregister tx flow control callback
|
* @deregister_tx_flow_control_cb: Deregister tx flow control callback
|
||||||
* @flow_control_cb: Call osif flow control callback
|
* @flow_control_cb: Call osif flow control callback
|
||||||
* @get_tx_resource: Get tx resources and comapre with watermark
|
* @get_tx_resource: Get tx resources and compare with watermark
|
||||||
* @ll_set_tx_pause_q_depth: set pause queue depth
|
* @ll_set_tx_pause_q_depth: set pause queue depth
|
||||||
* @vdev_flush: Flush all packets on a particular vdev
|
* @vdev_flush: Flush all packets on a particular vdev
|
||||||
* @vdev_pause: Pause a particular vdev
|
* @vdev_pause: Pause a particular vdev
|
||||||
|
@@ -81,7 +81,7 @@ cdp_sawf_peer_get_map_conf(ol_txrx_soc_handle soc,
|
|||||||
* cdp_get_peer_sawf_delay_stats() - Call to get SAWF delay stats
|
* cdp_get_peer_sawf_delay_stats() - Call to get SAWF delay stats
|
||||||
* @soc: soc handle
|
* @soc: soc handle
|
||||||
* @svc_class_id: service class ID
|
* @svc_class_id: service class ID
|
||||||
* @mac: peer mac addrees
|
* @mac: peer mac address
|
||||||
* @data: opaque pointer
|
* @data: opaque pointer
|
||||||
*
|
*
|
||||||
* return: status Success/Failure
|
* return: status Success/Failure
|
||||||
@@ -108,7 +108,7 @@ cdp_get_peer_sawf_delay_stats(ol_txrx_soc_handle soc, uint32_t svc_id,
|
|||||||
* cdp_get_peer_sawf_tx_stats() - Call to get SAWF Tx stats
|
* cdp_get_peer_sawf_tx_stats() - Call to get SAWF Tx stats
|
||||||
* @soc: soc handle
|
* @soc: soc handle
|
||||||
* @svc_class_id: service class ID
|
* @svc_class_id: service class ID
|
||||||
* @mac: peer mac addrees
|
* @mac: peer mac address
|
||||||
* @data: opaque pointer
|
* @data: opaque pointer
|
||||||
*
|
*
|
||||||
* return: status Success/Failure
|
* return: status Success/Failure
|
||||||
|
@@ -859,7 +859,7 @@ struct cdp_tidq_stats {
|
|||||||
* 6: 18 Mbps
|
* 6: 18 Mbps
|
||||||
* 7: 9 Mbps
|
* 7: 9 Mbps
|
||||||
*
|
*
|
||||||
* @gi_type: Indicates the gaurd interval.
|
* @gi_type: Indicates the guard interval.
|
||||||
* 0: 0.8 us
|
* 0: 0.8 us
|
||||||
* 1: 0.4 us
|
* 1: 0.4 us
|
||||||
* 2: 1.6 us
|
* 2: 1.6 us
|
||||||
@@ -1002,7 +1002,7 @@ struct cdp_tid_tx_stats {
|
|||||||
/*
|
/*
|
||||||
* cdp_reo_error_stats
|
* cdp_reo_error_stats
|
||||||
* @err_src_reo_code_inv: Wireless Buffer Manager source receive reorder ring reason unknown
|
* @err_src_reo_code_inv: Wireless Buffer Manager source receive reorder ring reason unknown
|
||||||
* @err_reo_codes: Receive reoder error codes
|
* @err_reo_codes: Receive reorder error codes
|
||||||
*/
|
*/
|
||||||
struct cdp_reo_error_stats {
|
struct cdp_reo_error_stats {
|
||||||
uint64_t err_src_reo_code_inv;
|
uint64_t err_src_reo_code_inv;
|
||||||
@@ -1012,7 +1012,7 @@ struct cdp_reo_error_stats {
|
|||||||
/*
|
/*
|
||||||
* cdp_rxdma_error_stats
|
* cdp_rxdma_error_stats
|
||||||
* @err_src_rxdma_code_inv: DMA reason unknown count
|
* @err_src_rxdma_code_inv: DMA reason unknown count
|
||||||
* @err_reo_codes: Receive reoder error codes count
|
* @err_reo_codes: Receive reorder error codes count
|
||||||
*/
|
*/
|
||||||
struct cdp_rxdma_error_stats {
|
struct cdp_rxdma_error_stats {
|
||||||
uint64_t err_src_rxdma_code_inv;
|
uint64_t err_src_rxdma_code_inv;
|
||||||
@@ -1080,7 +1080,7 @@ struct cdp_tid_stats_intf {
|
|||||||
/*
|
/*
|
||||||
* struct cdp_delay_tx_stats: Tx delay stats
|
* struct cdp_delay_tx_stats: Tx delay stats
|
||||||
* @tx_swq_delay: software enqueue delay
|
* @tx_swq_delay: software enqueue delay
|
||||||
* @hwtx_delay: HW enque to completion delay
|
* @hwtx_delay: HW enqueue to completion delay
|
||||||
* @nwdelay_avg: Network delay average
|
* @nwdelay_avg: Network delay average
|
||||||
* @swdelay_avg: Wifi SW Delay Average
|
* @swdelay_avg: Wifi SW Delay Average
|
||||||
* @hwdelay_avg: Wifi HW delay Average
|
* @hwdelay_avg: Wifi HW delay Average
|
||||||
@@ -1509,7 +1509,7 @@ struct cdp_tx_stats {
|
|||||||
struct cdp_pkt_info is_tx_no_ack;
|
struct cdp_pkt_info is_tx_no_ack;
|
||||||
uint16_t tx_ratecode;
|
uint16_t tx_ratecode;
|
||||||
|
|
||||||
/*add for peer and upadted from ppdu*/
|
/*add for peer and updated from ppdu*/
|
||||||
uint32_t ampdu_cnt;
|
uint32_t ampdu_cnt;
|
||||||
uint32_t non_ampdu_cnt;
|
uint32_t non_ampdu_cnt;
|
||||||
uint32_t failed_retry_count;
|
uint32_t failed_retry_count;
|
||||||
@@ -1733,7 +1733,7 @@ struct cdp_rx_stats {
|
|||||||
* @bcast: Number of broadcast packets
|
* @bcast: Number of broadcast packets
|
||||||
* @raw_pkt: Total Raw packets
|
* @raw_pkt: Total Raw packets
|
||||||
* @dma_map_error: DMA map error
|
* @dma_map_error: DMA map error
|
||||||
* @num_frags_overflow_err: msdu's nbuf count exceeds num of segemnts
|
* @num_frags_overflow_err: msdu's nbuf count exceeds num of segments
|
||||||
* @num_seg: No of segments in TSO packets
|
* @num_seg: No of segments in TSO packets
|
||||||
* @tso_pkt:total no of TSO packets
|
* @tso_pkt:total no of TSO packets
|
||||||
* @non_tso_pkts: non - TSO packets
|
* @non_tso_pkts: non - TSO packets
|
||||||
@@ -3052,7 +3052,7 @@ enum CDP_PEER_MPDU_DESC {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* struct cdp_tid_q_len - Structure to hold consolidated queue length
|
* struct cdp_tid_q_len - Structure to hold consolidated queue length
|
||||||
* @defer_msdu_len: Defered MSDU queue length
|
* @defer_msdu_len: Deferred MSDU queue length
|
||||||
* @tasklet_msdu_len: MSDU complete queue length
|
* @tasklet_msdu_len: MSDU complete queue length
|
||||||
* @pending_q_len: MSDU pending queue length
|
* @pending_q_len: MSDU pending queue length
|
||||||
*/
|
*/
|
||||||
@@ -3064,7 +3064,7 @@ struct cdp_tid_q_len {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* struct cdp_peer_tx_capture_stats - Structure to hold peer tx capture stats
|
* struct cdp_peer_tx_capture_stats - Structure to hold peer tx capture stats
|
||||||
* @len_stats: Per TID defered, pending and completed msdu queue length
|
* @len_stats: Per TID deferred, pending and completed msdu queue length
|
||||||
* @mpdu: Mpdu success and restich count
|
* @mpdu: Mpdu success and restich count
|
||||||
* @msdu: Msdu success and restich count
|
* @msdu: Msdu success and restich count
|
||||||
*/
|
*/
|
||||||
@@ -3081,7 +3081,7 @@ struct cdp_peer_tx_capture_stats {
|
|||||||
* @peer_mismatch: Peer mismatched
|
* @peer_mismatch: Peer mismatched
|
||||||
* @last_rcv_ppdu: Last received PPDU stats in ms
|
* @last_rcv_ppdu: Last received PPDU stats in ms
|
||||||
* @ppdu_stats_queue_depth: PPDU stats queue depth
|
* @ppdu_stats_queue_depth: PPDU stats queue depth
|
||||||
* @ppdu_stats_defer_queue_depth: PPDU stats defered queue depth
|
* @ppdu_stats_defer_queue_depth: PPDU stats deferred queue depth
|
||||||
* @ppdu_dropped: PPDU dropped count
|
* @ppdu_dropped: PPDU dropped count
|
||||||
* @pend_ppdu_dropped: Pending PPDU dropped count
|
* @pend_ppdu_dropped: Pending PPDU dropped count
|
||||||
* @ppdu_flush_count: PPDU flush count
|
* @ppdu_flush_count: PPDU flush count
|
||||||
|
@@ -172,7 +172,7 @@ static QDF_STATUS dp_fisa_fst_cmem_addr_init(struct dp_soc *soc)
|
|||||||
* dp_cc_reg_cfg_init() - initialize and configure HW cookie
|
* dp_cc_reg_cfg_init() - initialize and configure HW cookie
|
||||||
conversion register
|
conversion register
|
||||||
* @soc: SOC handle
|
* @soc: SOC handle
|
||||||
* @is_4k_align: page address 4k alignd
|
* @is_4k_align: page address 4k aligned
|
||||||
*
|
*
|
||||||
* Return: None
|
* Return: None
|
||||||
*/
|
*/
|
||||||
|
@@ -1345,7 +1345,7 @@ dp_rx_intrabss_fwd_mlo_allow(struct dp_txrx_peer *ta_peer,
|
|||||||
/**
|
/**
|
||||||
* dp_rx_intrabss_ucast_check_be() - Check if intrabss is allowed
|
* dp_rx_intrabss_ucast_check_be() - Check if intrabss is allowed
|
||||||
for unicast frame
|
for unicast frame
|
||||||
* @soc: SOC hanlde
|
* @soc: SOC handle
|
||||||
* @nbuf: RX packet buffer
|
* @nbuf: RX packet buffer
|
||||||
* @ta_peer: transmitter DP peer handle
|
* @ta_peer: transmitter DP peer handle
|
||||||
* @msdu_metadata: MSDU meta data info
|
* @msdu_metadata: MSDU meta data info
|
||||||
|
@@ -1068,7 +1068,7 @@ int dp_tx_get_bank_profile(struct dp_soc_be *be_soc,
|
|||||||
dp_tx_get_vdev_bank_config(be_vdev, &vdev_config);
|
dp_tx_get_vdev_bank_config(be_vdev, &vdev_config);
|
||||||
|
|
||||||
DP_TX_BANK_LOCK_ACQUIRE(&be_soc->tx_bank_lock);
|
DP_TX_BANK_LOCK_ACQUIRE(&be_soc->tx_bank_lock);
|
||||||
/* go over all banks and find a matching/unconfigured/unsed bank */
|
/* go over all banks and find a matching/unconfigured/unused bank */
|
||||||
for (i = 0; i < be_soc->num_bank_profiles; i++) {
|
for (i = 0; i < be_soc->num_bank_profiles; i++) {
|
||||||
if (be_soc->bank_profiles[i].is_configured &&
|
if (be_soc->bank_profiles[i].is_configured &&
|
||||||
(be_soc->bank_profiles[i].bank_config.val ^
|
(be_soc->bank_profiles[i].bank_config.val ^
|
||||||
|
@@ -286,7 +286,7 @@ QDF_STATUS dp_update_mlo_ptnr_list(struct cdp_soc_t *soc_hdl,
|
|||||||
dp_err("Unable to add vdev to self vdev's list");
|
dp_err("Unable to add vdev to self vdev's list");
|
||||||
dp_vdev_unref_delete(self_soc,
|
dp_vdev_unref_delete(self_soc,
|
||||||
vdev, DP_MOD_ID_RX);
|
vdev, DP_MOD_ID_RX);
|
||||||
/* TODO - relase soc ref here */
|
/* TODO - release soc ref here */
|
||||||
/* dp_soc_unref_delete(soc);*/
|
/* dp_soc_unref_delete(soc);*/
|
||||||
ret = QDF_STATUS_E_FAILURE;
|
ret = QDF_STATUS_E_FAILURE;
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#ifndef WLAN_CONFIG_TX_DELAY
|
#ifndef WLAN_CONFIG_TX_DELAY
|
||||||
/*
|
/*
|
||||||
* dp_hist_sw_enq_dbucket: Sofware enqueue delay bucket in ms
|
* dp_hist_sw_enq_dbucket: Software enqueue delay bucket in ms
|
||||||
* @index_0 = 0_1 ms
|
* @index_0 = 0_1 ms
|
||||||
* @index_1 = 1_2 ms
|
* @index_1 = 1_2 ms
|
||||||
* @index_2 = 2_3 ms
|
* @index_2 = 2_3 ms
|
||||||
@@ -62,7 +62,7 @@ static uint16_t dp_hist_fw2hw_dbucket[CDP_HIST_BUCKET_MAX] = {
|
|||||||
0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 250, 500};
|
0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 250, 500};
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
* dp_hist_sw_enq_dbucket: Sofware enqueue delay bucket in us
|
* dp_hist_sw_enq_dbucket: Software enqueue delay bucket in us
|
||||||
* @index_0 = 0_250 us
|
* @index_0 = 0_250 us
|
||||||
* @index_1 = 250_500 us
|
* @index_1 = 250_500 us
|
||||||
* @index_2 = 500_750 us
|
* @index_2 = 500_750 us
|
||||||
|
@@ -331,7 +331,7 @@ dp_htt_h2t_send_complete(void *context, HTC_PACKET *htc_pkt)
|
|||||||
#endif /* ENABLE_CE4_COMP_DISABLE_HTT_HTC_MISC_LIST */
|
#endif /* ENABLE_CE4_COMP_DISABLE_HTT_HTC_MISC_LIST */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* dp_htt_h2t_add_tcl_metadata_ver_v1() - Add tcl_metadata verion V1
|
* dp_htt_h2t_add_tcl_metadata_ver_v1() - Add tcl_metadata version V1
|
||||||
* @htt_soc: HTT SOC handle
|
* @htt_soc: HTT SOC handle
|
||||||
* @msg: Pointer to nbuf
|
* @msg: Pointer to nbuf
|
||||||
*
|
*
|
||||||
@@ -377,7 +377,7 @@ static int dp_htt_h2t_add_tcl_metadata_ver_v1(struct htt_soc *soc,
|
|||||||
|
|
||||||
#ifdef QCA_DP_TX_FW_METADATA_V2
|
#ifdef QCA_DP_TX_FW_METADATA_V2
|
||||||
/*
|
/*
|
||||||
* dp_htt_h2t_add_tcl_metadata_ver_v2() - Add tcl_metadata verion V2
|
* dp_htt_h2t_add_tcl_metadata_ver_v2() - Add tcl_metadata version V2
|
||||||
* @htt_soc: HTT SOC handle
|
* @htt_soc: HTT SOC handle
|
||||||
* @msg: Pointer to nbuf
|
* @msg: Pointer to nbuf
|
||||||
*
|
*
|
||||||
@@ -431,7 +431,7 @@ static int dp_htt_h2t_add_tcl_metadata_ver_v2(struct htt_soc *soc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* dp_htt_h2t_add_tcl_metadata_ver() - Add tcl_metadata verion
|
* dp_htt_h2t_add_tcl_metadata_ver() - Add tcl_metadata version
|
||||||
* @htt_soc: HTT SOC handle
|
* @htt_soc: HTT SOC handle
|
||||||
* @msg: Pointer to nbuf
|
* @msg: Pointer to nbuf
|
||||||
*
|
*
|
||||||
@@ -793,7 +793,7 @@ qdf_export_symbol(htt_srng_setup);
|
|||||||
|
|
||||||
#ifdef QCA_SUPPORT_FULL_MON
|
#ifdef QCA_SUPPORT_FULL_MON
|
||||||
/**
|
/**
|
||||||
* htt_h2t_full_mon_cfg() - Send full monitor configuarion msg to FW
|
* htt_h2t_full_mon_cfg() - Send full monitor configuration msg to FW
|
||||||
*
|
*
|
||||||
* @htt_soc: HTT Soc handle
|
* @htt_soc: HTT Soc handle
|
||||||
* @pdev_id: Radio id
|
* @pdev_id: Radio id
|
||||||
@@ -855,7 +855,7 @@ int htt_h2t_full_mon_cfg(struct htt_soc *htt_soc,
|
|||||||
HTT_RX_FULL_MONITOR_MODE_NON_ZERO_MPDU_SET(*msg_word, true);
|
HTT_RX_FULL_MONITOR_MODE_NON_ZERO_MPDU_SET(*msg_word, true);
|
||||||
HTT_RX_FULL_MONITOR_MODE_RELEASE_RINGS_SET(*msg_word, 0x2);
|
HTT_RX_FULL_MONITOR_MODE_RELEASE_RINGS_SET(*msg_word, 0x2);
|
||||||
} else if (config == DP_FULL_MON_DISABLE) {
|
} else if (config == DP_FULL_MON_DISABLE) {
|
||||||
/* As per MAC team's suggestion, While disbaling full monitor
|
/* As per MAC team's suggestion, While disabling full monitor
|
||||||
* mode, Set 'en' bit to true in full monitor mode register.
|
* mode, Set 'en' bit to true in full monitor mode register.
|
||||||
*/
|
*/
|
||||||
HTT_RX_FULL_MONITOR_MODE_ENABLE_SET(*msg_word, true);
|
HTT_RX_FULL_MONITOR_MODE_ENABLE_SET(*msg_word, true);
|
||||||
@@ -2163,7 +2163,7 @@ static inline void dp_txrx_fw_stats_handler(struct dp_soc *soc,
|
|||||||
|
|
||||||
if (!msg_copy) {
|
if (!msg_copy) {
|
||||||
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_INFO,
|
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_INFO,
|
||||||
"T2H messge clone failed for HTT EXT STATS");
|
"T2H message clone failed for HTT EXT STATS");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3912,7 +3912,7 @@ void htt_soc_detach(struct htt_soc *htt_hdl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_h2t_ext_stats_msg_send(): function to contruct HTT message to pass to FW
|
* dp_h2t_ext_stats_msg_send(): function to construct HTT message to pass to FW
|
||||||
* @pdev: DP PDEV handle
|
* @pdev: DP PDEV handle
|
||||||
* @stats_type_upload_mask: stats type requested by user
|
* @stats_type_upload_mask: stats type requested by user
|
||||||
* @config_param_0: extra configuration parameters
|
* @config_param_0: extra configuration parameters
|
||||||
@@ -4167,7 +4167,7 @@ QDF_STATUS dp_h2t_hw_vdev_stats_config_send(struct dp_soc *dpsoc,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_h2t_3tuple_config_send(): function to contruct 3 tuple configuration
|
* dp_h2t_3tuple_config_send(): function to construct 3 tuple configuration
|
||||||
* HTT message to pass to FW
|
* HTT message to pass to FW
|
||||||
* @pdev: DP PDEV handle
|
* @pdev: DP PDEV handle
|
||||||
* @tuple_mask: tuple configuration to report 3 tuple hash value in either
|
* @tuple_mask: tuple configuration to report 3 tuple hash value in either
|
||||||
|
@@ -112,7 +112,7 @@ void htt_htc_pkt_pool_free(struct htt_soc *soc);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Set the base misclist size to HTT copy engine source ring size
|
* Set the base misclist size to HTT copy engine source ring size
|
||||||
* to guarantee that a packet on the misclist wont be freed while it
|
* to guarantee that a packet on the misclist won't be freed while it
|
||||||
* is sitting in the copy engine.
|
* is sitting in the copy engine.
|
||||||
*/
|
*/
|
||||||
#define DP_HTT_HTC_PKT_MISCLIST_SIZE 2048
|
#define DP_HTT_HTC_PKT_MISCLIST_SIZE 2048
|
||||||
@@ -522,7 +522,7 @@ struct dp_tx_mon_wordmask_config {
|
|||||||
* enable/disable.
|
* enable/disable.
|
||||||
* @dtlvs: enable/disable downstream TLVs
|
* @dtlvs: enable/disable downstream TLVs
|
||||||
* @utlvs: enable/disable upstream TLVs
|
* @utlvs: enable/disable upstream TLVs
|
||||||
* @wmask: enable/disbale word mask subscription
|
* @wmask: enable/disable word mask subscription
|
||||||
* @mgmt_filter: enable/disable mgmt packets
|
* @mgmt_filter: enable/disable mgmt packets
|
||||||
* @data_filter: enable/disable data packets
|
* @data_filter: enable/disable data packets
|
||||||
* @ctrl_filter: enable/disable ctrl packets
|
* @ctrl_filter: enable/disable ctrl packets
|
||||||
@@ -798,7 +798,7 @@ htt_htc_misc_pkt_list_add(struct htt_soc *soc, struct dp_htt_htc_pkt *pkt);
|
|||||||
* @soc : HTT SOC handle
|
* @soc : HTT SOC handle
|
||||||
* @pkt: pkt to be send
|
* @pkt: pkt to be send
|
||||||
* @cmd : command to be recorded in dp htt logger
|
* @cmd : command to be recorded in dp htt logger
|
||||||
* @buf : Pointer to buffer needs to be recored for above cmd
|
* @buf : Pointer to buffer needs to be recorded for above cmd
|
||||||
*
|
*
|
||||||
* Return: None
|
* Return: None
|
||||||
*/
|
*/
|
||||||
@@ -1003,7 +1003,7 @@ dp_htt_rx_flow_fse_operation(struct dp_pdev *pdev,
|
|||||||
struct dp_htt_rx_flow_fst_operation *op_info);
|
struct dp_htt_rx_flow_fst_operation *op_info);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* htt_h2t_full_mon_cfg() - Send full monitor configuarion msg to FW
|
* htt_h2t_full_mon_cfg() - Send full monitor configuration msg to FW
|
||||||
*
|
*
|
||||||
* @htt_soc: HTT Soc handle
|
* @htt_soc: HTT Soc handle
|
||||||
* @pdev_id: Radio id
|
* @pdev_id: Radio id
|
||||||
|
@@ -3177,7 +3177,7 @@ QDF_STATUS dp_rx_flow_delete_entry(struct dp_pdev *pdev,
|
|||||||
/**
|
/**
|
||||||
* dp_rx_flow_add_entry() - Add a flow entry to flow search table
|
* dp_rx_flow_add_entry() - Add a flow entry to flow search table
|
||||||
* @pdev: DP pdev instance
|
* @pdev: DP pdev instance
|
||||||
* @rx_flow_info: DP flow paramaters
|
* @rx_flow_info: DP flow parameters
|
||||||
*
|
*
|
||||||
* Return: Success when flow is added, no-memory or already exists on error
|
* Return: Success when flow is added, no-memory or already exists on error
|
||||||
*/
|
*/
|
||||||
@@ -4140,7 +4140,7 @@ void dp_rx_send_pktlog(struct dp_soc *soc, struct dp_pdev *pdev,
|
|||||||
* This API should only be called when we have not removed
|
* This API should only be called when we have not removed
|
||||||
* Rx TLV from head, and head is pointing to rx_tlv
|
* Rx TLV from head, and head is pointing to rx_tlv
|
||||||
*
|
*
|
||||||
* This function is used to send rx packet from erro path
|
* This function is used to send rx packet from error path
|
||||||
* for logging for which rx packet tlv is not removed.
|
* for logging for which rx packet tlv is not removed.
|
||||||
*
|
*
|
||||||
* Return: None
|
* Return: None
|
||||||
|
@@ -1291,7 +1291,7 @@ int dp_ipa_uc_detach(struct dp_soc *soc, struct dp_pdev *pdev)
|
|||||||
* @pdev: Physical device handle
|
* @pdev: Physical device handle
|
||||||
*
|
*
|
||||||
* Allocate TX buffer from non-cacheable memory
|
* Allocate TX buffer from non-cacheable memory
|
||||||
* Attache allocated TX buffers with WBM SRNG
|
* Attach allocated TX buffers with WBM SRNG
|
||||||
*
|
*
|
||||||
* Return: int
|
* Return: int
|
||||||
*/
|
*/
|
||||||
@@ -2919,7 +2919,7 @@ QDF_STATUS dp_ipa_setup_iface(char *ifname, uint8_t *mac_addr,
|
|||||||
ret = qdf_ipa_wdi_reg_intf(&in);
|
ret = qdf_ipa_wdi_reg_intf(&in);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
|
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
|
||||||
"%s: ipa_wdi_reg_intf: register IPA interface falied: ret=%d",
|
"%s: ipa_wdi_reg_intf: register IPA interface failed: ret=%d",
|
||||||
__func__, ret);
|
__func__, ret);
|
||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
@@ -3176,7 +3176,7 @@ QDF_STATUS dp_ipa_setup_iface(char *ifname, uint8_t *mac_addr,
|
|||||||
|
|
||||||
ret = qdf_ipa_wdi_reg_intf(&in);
|
ret = qdf_ipa_wdi_reg_intf(&in);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dp_err("ipa_wdi_reg_intf: register IPA interface falied: ret=%d",
|
dp_err("ipa_wdi_reg_intf: register IPA interface failed: ret=%d",
|
||||||
ret);
|
ret);
|
||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
@@ -118,7 +118,7 @@ cdp_dump_flow_pool_info(struct cdp_soc_t *soc)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WLAN_SYSFS_DP_STATS
|
#ifdef WLAN_SYSFS_DP_STATS
|
||||||
/* sysfs event wait time for firmware stat request unit millseconds */
|
/* sysfs event wait time for firmware stat request unit milliseconds */
|
||||||
#define WLAN_SYSFS_STAT_REQ_WAIT_MS 3000
|
#define WLAN_SYSFS_STAT_REQ_WAIT_MS 3000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -503,7 +503,7 @@ static int dp_get_num_rx_contexts(struct cdp_soc_t *soc_hdl)
|
|||||||
reo_ring_map &= ~BIT(3);
|
reo_ring_map &= ~BIT(3);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dp_err("unkonwn arch_id 0x%x", soc->arch_id);
|
dp_err("unknown arch_id 0x%x", soc->arch_id);
|
||||||
QDF_BUG(0);
|
QDF_BUG(0);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
@@ -4493,7 +4493,7 @@ bool dp_reo_remap_config(struct dp_soc *soc, uint32_t *remap0,
|
|||||||
hal_compute_reo_remap_ix0(soc->hal_soc, remap0);
|
hal_compute_reo_remap_ix0(soc->hal_soc, remap0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dp_err("unkonwn arch_id 0x%x", soc->arch_id);
|
dp_err("unknown arch_id 0x%x", soc->arch_id);
|
||||||
QDF_BUG(0);
|
QDF_BUG(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4676,7 +4676,7 @@ static uint8_t dp_reo_ring_selection(uint32_t value, uint32_t *ring)
|
|||||||
ring[0] = REO_REMAP_SW1;
|
ring[0] = REO_REMAP_SW1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dp_err("unkonwn reo ring map 0x%x", value);
|
dp_err("unknown reo ring map 0x%x", value);
|
||||||
QDF_BUG(0);
|
QDF_BUG(0);
|
||||||
}
|
}
|
||||||
return num;
|
return num;
|
||||||
@@ -5851,7 +5851,7 @@ static void dp_pdev_flush_pending_vdevs(struct dp_pdev *pdev)
|
|||||||
* for enable/disable of HW vdev stats
|
* for enable/disable of HW vdev stats
|
||||||
* @soc: Datapath soc handle
|
* @soc: Datapath soc handle
|
||||||
* @pdev_id: INVALID_PDEV_ID for all pdevs or 0,1,2 for individual pdev
|
* @pdev_id: INVALID_PDEV_ID for all pdevs or 0,1,2 for individual pdev
|
||||||
* @enable: flag to reprsent enable/disable of hw vdev stats
|
* @enable: flag to represent enable/disable of hw vdev stats
|
||||||
*
|
*
|
||||||
* Return: none
|
* Return: none
|
||||||
*/
|
*/
|
||||||
@@ -8035,7 +8035,7 @@ QDF_STATUS dp_peer_mlo_setup(
|
|||||||
*/
|
*/
|
||||||
qdf_atomic_set(&mld_peer->is_default_route_set, 1);
|
qdf_atomic_set(&mld_peer->is_default_route_set, 1);
|
||||||
} else {
|
} else {
|
||||||
/* free link peer origial rx_tids mem */
|
/* free link peer original rx_tids mem */
|
||||||
dp_peer_rx_tids_destroy(peer);
|
dp_peer_rx_tids_destroy(peer);
|
||||||
/* assign mld peer rx_tid to link peer */
|
/* assign mld peer rx_tid to link peer */
|
||||||
peer->rx_tid = mld_peer->rx_tid;
|
peer->rx_tid = mld_peer->rx_tid;
|
||||||
@@ -8050,7 +8050,7 @@ QDF_STATUS dp_peer_mlo_setup(
|
|||||||
* during mld peer creation.
|
* during mld peer creation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* relase the ref to original dp_vdev */
|
/* release the ref to original dp_vdev */
|
||||||
dp_vdev_unref_delete(soc, mld_peer->vdev,
|
dp_vdev_unref_delete(soc, mld_peer->vdev,
|
||||||
DP_MOD_ID_CHILD);
|
DP_MOD_ID_CHILD);
|
||||||
/*
|
/*
|
||||||
@@ -10075,7 +10075,7 @@ static void dp_txrx_stats_help(void)
|
|||||||
static void dp_umac_rst_skel_enable_update(struct dp_soc *soc, bool en)
|
static void dp_umac_rst_skel_enable_update(struct dp_soc *soc, bool en)
|
||||||
{
|
{
|
||||||
soc->umac_reset_ctx.skel_enable = en;
|
soc->umac_reset_ctx.skel_enable = en;
|
||||||
dp_cdp_debug("UMAC HW reset debug skelton code enabled :%u",
|
dp_cdp_debug("UMAC HW reset debug skeleton code enabled :%u",
|
||||||
soc->umac_reset_ctx.skel_enable);
|
soc->umac_reset_ctx.skel_enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -11612,7 +11612,7 @@ dp_sysfs_event_trigger(struct dp_soc *soc, uint32_t cookie_val)
|
|||||||
else if (status == QDF_STATUS_E_TIMEOUT)
|
else if (status == QDF_STATUS_E_TIMEOUT)
|
||||||
dp_cdp_warn("sysfs_txrx_fw_request_done event expired");
|
dp_cdp_warn("sysfs_txrx_fw_request_done event expired");
|
||||||
else
|
else
|
||||||
dp_cdp_warn("sysfs_txrx_fw_request_done event erro code %d", status);
|
dp_cdp_warn("sysfs_txrx_fw_request_done event error code %d", status);
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
@@ -12034,7 +12034,7 @@ QDF_STATUS dp_sysfs_deinitialize_stats(struct dp_soc *soc_hdl)
|
|||||||
|
|
||||||
status = qdf_event_destroy(&soc->sysfs_config->sysfs_txrx_fw_request_done);
|
status = qdf_event_destroy(&soc->sysfs_config->sysfs_txrx_fw_request_done);
|
||||||
if (status != QDF_STATUS_SUCCESS)
|
if (status != QDF_STATUS_SUCCESS)
|
||||||
dp_cdp_err("Failed to detroy event sysfs_txrx_fw_request_done ");
|
dp_cdp_err("Failed to destroy event sysfs_txrx_fw_request_done ");
|
||||||
|
|
||||||
qdf_mutex_destroy(&soc->sysfs_config->sysfs_read_lock);
|
qdf_mutex_destroy(&soc->sysfs_config->sysfs_read_lock);
|
||||||
qdf_spinlock_destroy(&soc->sysfs_config->rw_stats_lock);
|
qdf_spinlock_destroy(&soc->sysfs_config->rw_stats_lock);
|
||||||
@@ -12801,7 +12801,7 @@ static QDF_STATUS dp_soc_set_param(struct cdp_soc_t *soc_hdl,
|
|||||||
break;
|
break;
|
||||||
case DP_SOC_PARAM_RSSI_DBM_CONV_SUPPORT:
|
case DP_SOC_PARAM_RSSI_DBM_CONV_SUPPORT:
|
||||||
soc->features.rssi_dbm_conv_support = value;
|
soc->features.rssi_dbm_conv_support = value;
|
||||||
dp_info("Rssi dbm converstion support:%u",
|
dp_info("Rssi dbm conversion support:%u",
|
||||||
soc->features.rssi_dbm_conv_support);
|
soc->features.rssi_dbm_conv_support);
|
||||||
break;
|
break;
|
||||||
case DP_SOC_PARAM_UMAC_HW_RESET_SUPPORT:
|
case DP_SOC_PARAM_UMAC_HW_RESET_SUPPORT:
|
||||||
@@ -15176,7 +15176,7 @@ dp_get_link_desc_id_start(uint16_t arch_id)
|
|||||||
case CDP_ARCH_TYPE_BE:
|
case CDP_ARCH_TYPE_BE:
|
||||||
return LINK_DESC_ID_START_20_BITS_COOKIE;
|
return LINK_DESC_ID_START_20_BITS_COOKIE;
|
||||||
default:
|
default:
|
||||||
dp_err("unkonwn arch_id 0x%x", arch_id);
|
dp_err("unknown arch_id 0x%x", arch_id);
|
||||||
QDF_BUG(0);
|
QDF_BUG(0);
|
||||||
return LINK_DESC_ID_START_21_BITS_COOKIE;
|
return LINK_DESC_ID_START_21_BITS_COOKIE;
|
||||||
}
|
}
|
||||||
|
@@ -372,7 +372,7 @@ dp_peer_find_hash_index(struct dp_soc *soc,
|
|||||||
* peer_hash_table matching vdev_id and mac_address
|
* peer_hash_table matching vdev_id and mac_address
|
||||||
* @soc: soc handle
|
* @soc: soc handle
|
||||||
* @peer_mac_addr: peer mac address
|
* @peer_mac_addr: peer mac address
|
||||||
* @mac_addr_is_aligned: is mac addr alligned
|
* @mac_addr_is_aligned: is mac addr aligned
|
||||||
* @vdev_id: vdev_id
|
* @vdev_id: vdev_id
|
||||||
* @mod_id: id of module requesting reference
|
* @mod_id: id of module requesting reference
|
||||||
*
|
*
|
||||||
@@ -1799,7 +1799,7 @@ QDF_STATUS dp_peer_add_ast(struct dp_soc *soc,
|
|||||||
*
|
*
|
||||||
* if ast entry exists with the requested mac address
|
* if ast entry exists with the requested mac address
|
||||||
* send a delete command and register callback which
|
* send a delete command and register callback which
|
||||||
* can take care of adding HMWDS ast enty on delete
|
* can take care of adding HMWDS ast entry on delete
|
||||||
* confirmation from target
|
* confirmation from target
|
||||||
*/
|
*/
|
||||||
if (type == CDP_TXRX_AST_TYPE_WDS_HM) {
|
if (type == CDP_TXRX_AST_TYPE_WDS_HM) {
|
||||||
@@ -2084,7 +2084,7 @@ void dp_peer_del_ast(struct dp_soc *soc, struct dp_ast_entry *ast_entry)
|
|||||||
/* for WDS secondary entry ast_entry->next_hop would be set so
|
/* for WDS secondary entry ast_entry->next_hop would be set so
|
||||||
* unlinking has to be done explicitly here.
|
* unlinking has to be done explicitly here.
|
||||||
* As this entry is not a mapped entry unmap notification from
|
* As this entry is not a mapped entry unmap notification from
|
||||||
* FW wil not come. Hence unlinkling is done right here.
|
* FW will not come. Hence unlinkling is done right here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (ast_entry->type == CDP_TXRX_AST_TYPE_WDS_HM_SEC)
|
if (ast_entry->type == CDP_TXRX_AST_TYPE_WDS_HM_SEC)
|
||||||
@@ -3027,7 +3027,7 @@ void dp_rx_reset_roaming_peer(struct dp_soc *soc, uint8_t vdev_id,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_rx_peer_map_handler() - handle peer map event from firmware
|
* dp_rx_peer_map_handler() - handle peer map event from firmware
|
||||||
* @soc_handle - genereic soc handle
|
* @soc_handle - generic soc handle
|
||||||
* @peeri_id - peer_id from firmware
|
* @peeri_id - peer_id from firmware
|
||||||
* @hw_peer_id - ast index for this peer
|
* @hw_peer_id - ast index for this peer
|
||||||
* @vdev_id - vdev ID
|
* @vdev_id - vdev ID
|
||||||
@@ -3074,7 +3074,7 @@ dp_rx_peer_map_handler(struct dp_soc *soc, uint16_t peer_id,
|
|||||||
/*
|
/*
|
||||||
* It's the responsibility of the CP and FW to ensure
|
* It's the responsibility of the CP and FW to ensure
|
||||||
* that peer is created successfully. Ideally DP should
|
* that peer is created successfully. Ideally DP should
|
||||||
* not hit the below condition for directly assocaited
|
* not hit the below condition for directly associated
|
||||||
* peers.
|
* peers.
|
||||||
*/
|
*/
|
||||||
if ((!soc->ast_offload_support) && ((hw_peer_id < 0) ||
|
if ((!soc->ast_offload_support) && ((hw_peer_id < 0) ||
|
||||||
@@ -3167,7 +3167,7 @@ dp_rx_peer_map_handler(struct dp_soc *soc, uint16_t peer_id,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_rx_peer_unmap_handler() - handle peer unmap event from firmware
|
* dp_rx_peer_unmap_handler() - handle peer unmap event from firmware
|
||||||
* @soc_handle - genereic soc handle
|
* @soc_handle - generic soc handle
|
||||||
* @peeri_id - peer_id from firmware
|
* @peeri_id - peer_id from firmware
|
||||||
* @vdev_id - vdev ID
|
* @vdev_id - vdev ID
|
||||||
* @mac_addr - mac address of the peer or wds entry
|
* @mac_addr - mac address of the peer or wds entry
|
||||||
@@ -3669,7 +3669,7 @@ try_desc_alloc:
|
|||||||
|
|
||||||
if ((unsigned long)(rx_tid->hw_qdesc_vaddr_unaligned) %
|
if ((unsigned long)(rx_tid->hw_qdesc_vaddr_unaligned) %
|
||||||
hw_qdesc_align) {
|
hw_qdesc_align) {
|
||||||
/* Address allocated above is not alinged. Allocate extra
|
/* Address allocated above is not aligned. Allocate extra
|
||||||
* memory for alignment
|
* memory for alignment
|
||||||
*/
|
*/
|
||||||
qdf_mem_free(rx_tid->hw_qdesc_vaddr_unaligned);
|
qdf_mem_free(rx_tid->hw_qdesc_vaddr_unaligned);
|
||||||
@@ -3812,7 +3812,7 @@ static void dp_reo_desc_clean_up(struct dp_soc *soc,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* dp_reo_limit_clean_batch_sz() - Limit number REO CMD queued to cmd
|
* dp_reo_limit_clean_batch_sz() - Limit number REO CMD queued to cmd
|
||||||
* ring in aviod of REO hang
|
* ring in avoid of REO hang
|
||||||
*
|
*
|
||||||
* @list_size: REO desc list size to be cleaned
|
* @list_size: REO desc list size to be cleaned
|
||||||
*/
|
*/
|
||||||
@@ -3849,7 +3849,7 @@ static void dp_reo_desc_clean_up(struct dp_soc *soc,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* dp_reo_limit_clean_batch_sz() - Limit number REO CMD queued to cmd
|
* dp_reo_limit_clean_batch_sz() - Limit number REO CMD queued to cmd
|
||||||
* ring in aviod of REO hang
|
* ring in avoid of REO hang
|
||||||
*
|
*
|
||||||
* @list_size: REO desc list size to be cleaned
|
* @list_size: REO desc list size to be cleaned
|
||||||
*/
|
*/
|
||||||
@@ -4787,7 +4787,7 @@ int dp_delba_process_wifi3(struct cdp_soc_t *cdp_soc, uint8_t *peer_mac,
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
/* TODO: See if we can delete the existing REO queue descriptor and
|
/* TODO: See if we can delete the existing REO queue descriptor and
|
||||||
* replace with a new one without queue extenstion descript to save
|
* replace with a new one without queue extension descript to save
|
||||||
* memory
|
* memory
|
||||||
*/
|
*/
|
||||||
rx_tid->delba_rcode = reasoncode;
|
rx_tid->delba_rcode = reasoncode;
|
||||||
|
@@ -140,7 +140,7 @@ __dp_peer_get_ref_by_id(struct dp_soc *soc,
|
|||||||
*
|
*
|
||||||
* @soc : core DP soc context
|
* @soc : core DP soc context
|
||||||
* @peer_id : peer id from peer object can be retrieved
|
* @peer_id : peer id from peer object can be retrieved
|
||||||
* @mod_id : ID ot module requesting reference
|
* @mod_id : ID of module requesting reference
|
||||||
*
|
*
|
||||||
* Return: struct dp_peer*: Pointer to DP peer object
|
* Return: struct dp_peer*: Pointer to DP peer object
|
||||||
*/
|
*/
|
||||||
@@ -172,7 +172,7 @@ struct dp_peer *dp_peer_get_ref_by_id(struct dp_soc *soc,
|
|||||||
* @soc : core DP soc context
|
* @soc : core DP soc context
|
||||||
* @peer_id : peer id from peer object can be retrieved
|
* @peer_id : peer id from peer object can be retrieved
|
||||||
* @handle : reference handle
|
* @handle : reference handle
|
||||||
* @mod_id : ID ot module requesting reference
|
* @mod_id : ID of module requesting reference
|
||||||
*
|
*
|
||||||
* Return: struct dp_txrx_peer*: Pointer to txrx DP peer object
|
* Return: struct dp_txrx_peer*: Pointer to txrx DP peer object
|
||||||
*/
|
*/
|
||||||
@@ -571,7 +571,7 @@ static inline void dp_rx_reset_roaming_peer(struct dp_soc *soc, uint8_t vdev_id,
|
|||||||
#ifdef WLAN_FEATURE_11BE_MLO
|
#ifdef WLAN_FEATURE_11BE_MLO
|
||||||
/**
|
/**
|
||||||
* dp_rx_mlo_peer_map_handler() - handle MLO peer map event from firmware
|
* dp_rx_mlo_peer_map_handler() - handle MLO peer map event from firmware
|
||||||
* @soc_handle - genereic soc handle
|
* @soc_handle - generic soc handle
|
||||||
* @peer_id - ML peer_id from firmware
|
* @peer_id - ML peer_id from firmware
|
||||||
* @peer_mac_addr - mac address of the peer
|
* @peer_mac_addr - mac address of the peer
|
||||||
* @mlo_ast_flow_info: MLO AST flow info
|
* @mlo_ast_flow_info: MLO AST flow info
|
||||||
@@ -590,7 +590,7 @@ dp_rx_mlo_peer_map_handler(struct dp_soc *soc, uint16_t peer_id,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_rx_mlo_peer_unmap_handler() - handle MLO peer unmap event from firmware
|
* dp_rx_mlo_peer_unmap_handler() - handle MLO peer unmap event from firmware
|
||||||
* @soc_handle - genereic soc handle
|
* @soc_handle - generic soc handle
|
||||||
* @peeri_id - peer_id from firmware
|
* @peeri_id - peer_id from firmware
|
||||||
*
|
*
|
||||||
* Return: none
|
* Return: none
|
||||||
@@ -817,7 +817,7 @@ void dp_peer_reset_flowq_map(struct dp_peer *peer)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_peer_ast_index_flow_queue_map_create() - create ast index flow queue map
|
* dp_peer_ast_index_flow_queue_map_create() - create ast index flow queue map
|
||||||
* @soc - genereic soc handle
|
* @soc - generic soc handle
|
||||||
* @is_wds - flag to indicate if peer is wds
|
* @is_wds - flag to indicate if peer is wds
|
||||||
* @peer_id - peer_id from htt peer map message
|
* @peer_id - peer_id from htt peer map message
|
||||||
* @peer_mac_addr - mac address of the peer
|
* @peer_mac_addr - mac address of the peer
|
||||||
@@ -1181,7 +1181,7 @@ dp_link_peer_hash_find_by_chip_id(struct dp_soc *soc,
|
|||||||
* matching mac_address
|
* matching mac_address
|
||||||
* @soc: soc handle
|
* @soc: soc handle
|
||||||
* @peer_mac_addr: mld peer mac address
|
* @peer_mac_addr: mld peer mac address
|
||||||
* @mac_addr_is_aligned: is mac addr alligned
|
* @mac_addr_is_aligned: is mac addr aligned
|
||||||
* @vdev_id: vdev_id
|
* @vdev_id: vdev_id
|
||||||
* @mod_id: id of module requesting reference
|
* @mod_id: id of module requesting reference
|
||||||
*
|
*
|
||||||
@@ -1210,7 +1210,7 @@ struct dp_peer *dp_mld_peer_find_hash_find(struct dp_soc *soc,
|
|||||||
* @peer_info: peer information for hash find
|
* @peer_info: peer information for hash find
|
||||||
* @mod_id: ID of module requesting reference
|
* @mod_id: ID of module requesting reference
|
||||||
*
|
*
|
||||||
* Return: peer hanlde
|
* Return: peer handle
|
||||||
*/
|
*/
|
||||||
static inline
|
static inline
|
||||||
struct dp_peer *dp_peer_hash_find_wrapper(struct dp_soc *soc,
|
struct dp_peer *dp_peer_hash_find_wrapper(struct dp_soc *soc,
|
||||||
@@ -1375,7 +1375,7 @@ uint8_t dp_mld_peer_del_link_peer(struct dp_peer *mld_peer,
|
|||||||
increase link peers ref_cnt
|
increase link peers ref_cnt
|
||||||
* @soc: dp_soc handle
|
* @soc: dp_soc handle
|
||||||
* @mld_peer: dp mld peer pointer
|
* @mld_peer: dp mld peer pointer
|
||||||
* @mld_link_peers: structure that hold links peers ponter array and number
|
* @mld_link_peers: structure that hold links peers pointer array and number
|
||||||
* @mod_id: id of module requesting reference
|
* @mod_id: id of module requesting reference
|
||||||
*
|
*
|
||||||
* Return: None
|
* Return: None
|
||||||
@@ -1414,7 +1414,7 @@ void dp_get_link_peers_ref_from_mld_peer(
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_release_link_peers_ref() - release all link peers reference
|
* dp_release_link_peers_ref() - release all link peers reference
|
||||||
* @mld_link_peers: structure that hold links peers ponter array and number
|
* @mld_link_peers: structure that hold links peers pointer array and number
|
||||||
* @mod_id: id of module requesting reference
|
* @mod_id: id of module requesting reference
|
||||||
*
|
*
|
||||||
* Return: None.
|
* Return: None.
|
||||||
@@ -1491,7 +1491,7 @@ uint16_t dp_get_link_peer_id_by_lmac_id(struct dp_soc *soc, uint16_t peer_id,
|
|||||||
* dp_peer_get_tgt_peer_hash_find() - get dp_peer handle
|
* dp_peer_get_tgt_peer_hash_find() - get dp_peer handle
|
||||||
* @soc: soc handle
|
* @soc: soc handle
|
||||||
* @peer_mac_addr: peer mac address
|
* @peer_mac_addr: peer mac address
|
||||||
* @mac_addr_is_aligned: is mac addr alligned
|
* @mac_addr_is_aligned: is mac addr aligned
|
||||||
* @vdev_id: vdev_id
|
* @vdev_id: vdev_id
|
||||||
* @mod_id: id of module requesting reference
|
* @mod_id: id of module requesting reference
|
||||||
*
|
*
|
||||||
@@ -1523,7 +1523,7 @@ struct dp_peer *dp_peer_get_tgt_peer_hash_find(struct dp_soc *soc,
|
|||||||
else
|
else
|
||||||
ta_peer = NULL;
|
ta_peer = NULL;
|
||||||
|
|
||||||
/* relese peer reference that added by hash find */
|
/* release peer reference that added by hash find */
|
||||||
dp_peer_unref_delete(peer, mod_id);
|
dp_peer_unref_delete(peer, mod_id);
|
||||||
} else {
|
} else {
|
||||||
/* mlo MLD peer or non-mlo link peer */
|
/* mlo MLD peer or non-mlo link peer */
|
||||||
@@ -1541,7 +1541,7 @@ struct dp_peer *dp_peer_get_tgt_peer_hash_find(struct dp_soc *soc,
|
|||||||
* dp_peer_get_tgt_peer_by_id() - Returns target peer object given the peer id
|
* dp_peer_get_tgt_peer_by_id() - Returns target peer object given the peer id
|
||||||
* @soc : core DP soc context
|
* @soc : core DP soc context
|
||||||
* @peer_id : peer id from peer object can be retrieved
|
* @peer_id : peer id from peer object can be retrieved
|
||||||
* @mod_id : ID ot module requesting reference
|
* @mod_id : ID of module requesting reference
|
||||||
*
|
*
|
||||||
* for MLO connection, get corresponding MLD peer,
|
* for MLO connection, get corresponding MLD peer,
|
||||||
* otherwise get link peer for non-MLO case.
|
* otherwise get link peer for non-MLO case.
|
||||||
@@ -1567,7 +1567,7 @@ struct dp_peer *dp_peer_get_tgt_peer_by_id(struct dp_soc *soc,
|
|||||||
else
|
else
|
||||||
ta_peer = NULL;
|
ta_peer = NULL;
|
||||||
|
|
||||||
/* relese peer reference that added by hash find */
|
/* release peer reference that added by hash find */
|
||||||
dp_peer_unref_delete(peer, mod_id);
|
dp_peer_unref_delete(peer, mod_id);
|
||||||
} else {
|
} else {
|
||||||
/* mlo MLD peer or non-mlo link peer */
|
/* mlo MLD peer or non-mlo link peer */
|
||||||
@@ -1716,7 +1716,7 @@ bool dp_peer_is_primary_link_peer(struct dp_peer *peer)
|
|||||||
* @soc : core DP soc context
|
* @soc : core DP soc context
|
||||||
* @peer_id : peer id from peer object can be retrieved
|
* @peer_id : peer id from peer object can be retrieved
|
||||||
* @handle : reference handle
|
* @handle : reference handle
|
||||||
* @mod_id : ID ot module requesting reference
|
* @mod_id : ID of module requesting reference
|
||||||
*
|
*
|
||||||
* Return: struct dp_txrx_peer*: Pointer to txrx DP peer object
|
* Return: struct dp_txrx_peer*: Pointer to txrx DP peer object
|
||||||
*/
|
*/
|
||||||
@@ -1881,7 +1881,7 @@ bool dp_peer_is_primary_link_peer(struct dp_peer *peer)
|
|||||||
* @soc : core DP soc context
|
* @soc : core DP soc context
|
||||||
* @peer_id : peer id from peer object can be retrieved
|
* @peer_id : peer id from peer object can be retrieved
|
||||||
* @handle : reference handle
|
* @handle : reference handle
|
||||||
* @mod_id : ID ot module requesting reference
|
* @mod_id : ID of module requesting reference
|
||||||
*
|
*
|
||||||
* Return: struct dp_txrx_peer*: Pointer to txrx DP peer object
|
* Return: struct dp_txrx_peer*: Pointer to txrx DP peer object
|
||||||
*/
|
*/
|
||||||
|
@@ -197,7 +197,7 @@ next:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_reo_cmdlist_destroy - Free REO commands in the queue
|
* dp_reo_cmdlist_destroy - Free REO commands in the queue
|
||||||
* @soc: DP SoC hanle
|
* @soc: DP SoC handle
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void dp_reo_cmdlist_destroy(struct dp_soc *soc)
|
void dp_reo_cmdlist_destroy(struct dp_soc *soc)
|
||||||
@@ -223,7 +223,7 @@ void dp_reo_cmdlist_destroy(struct dp_soc *soc)
|
|||||||
#ifdef DP_UMAC_HW_RESET_SUPPORT
|
#ifdef DP_UMAC_HW_RESET_SUPPORT
|
||||||
/**
|
/**
|
||||||
* dp_cleanup_reo_cmd_module - Clean up the reo cmd module
|
* dp_cleanup_reo_cmd_module - Clean up the reo cmd module
|
||||||
* @soc: DP SoC hanle
|
* @soc: DP SoC handle
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void dp_cleanup_reo_cmd_module(struct dp_soc *soc)
|
void dp_cleanup_reo_cmd_module(struct dp_soc *soc)
|
||||||
|
@@ -1157,7 +1157,7 @@ void dp_rx_fill_mesh_stats(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
|
|||||||
/* fill recv mesh stats */
|
/* fill recv mesh stats */
|
||||||
rx_info = qdf_mem_malloc(sizeof(struct mesh_recv_hdr_s));
|
rx_info = qdf_mem_malloc(sizeof(struct mesh_recv_hdr_s));
|
||||||
|
|
||||||
/* upper layers are resposible to free this memory */
|
/* upper layers are responsible to free this memory */
|
||||||
|
|
||||||
if (!rx_info) {
|
if (!rx_info) {
|
||||||
dp_rx_err("%pK: Memory allocation failed for mesh rx stats",
|
dp_rx_err("%pK: Memory allocation failed for mesh rx stats",
|
||||||
@@ -1607,7 +1607,7 @@ void dp_rx_fill_gro_info(struct dp_soc *soc, uint8_t *rx_tlv,
|
|||||||
* @mpdu_len: mpdu length
|
* @mpdu_len: mpdu length
|
||||||
* @l3_pad_len: L3 padding length by HW
|
* @l3_pad_len: L3 padding length by HW
|
||||||
*
|
*
|
||||||
* Return: returns true if nbuf is last msdu of mpdu else retuns false.
|
* Return: returns true if nbuf is last msdu of mpdu else returns false.
|
||||||
*/
|
*/
|
||||||
static inline bool dp_rx_adjust_nbuf_len(struct dp_soc *soc,
|
static inline bool dp_rx_adjust_nbuf_len(struct dp_soc *soc,
|
||||||
qdf_nbuf_t nbuf,
|
qdf_nbuf_t nbuf,
|
||||||
|
@@ -224,7 +224,7 @@ void dp_rx_set_hdr_pad(qdf_nbuf_t nbuf, uint32_t l3_padding)
|
|||||||
* dp_rx_is_special_frame() - check is RX frame special needed
|
* dp_rx_is_special_frame() - check is RX frame special needed
|
||||||
*
|
*
|
||||||
* @nbuf: RX skb pointer
|
* @nbuf: RX skb pointer
|
||||||
* @frame_mask: the mask for speical frame needed
|
* @frame_mask: the mask for special frame needed
|
||||||
*
|
*
|
||||||
* Check is RX frame wanted matched with mask
|
* Check is RX frame wanted matched with mask
|
||||||
*
|
*
|
||||||
@@ -253,7 +253,7 @@ bool dp_rx_is_special_frame(qdf_nbuf_t nbuf, uint32_t frame_mask)
|
|||||||
* @soc: Datapath soc handler
|
* @soc: Datapath soc handler
|
||||||
* @peer: pointer to DP peer
|
* @peer: pointer to DP peer
|
||||||
* @nbuf: pointer to the skb of RX frame
|
* @nbuf: pointer to the skb of RX frame
|
||||||
* @frame_mask: the mask for speical frame needed
|
* @frame_mask: the mask for special frame needed
|
||||||
* @rx_tlv_hdr: start of rx tlv header
|
* @rx_tlv_hdr: start of rx tlv header
|
||||||
*
|
*
|
||||||
* note: Msdu_len must have been stored in QDF_NBUF_CB_RX_PKT_LEN(nbuf) and
|
* note: Msdu_len must have been stored in QDF_NBUF_CB_RX_PKT_LEN(nbuf) and
|
||||||
@@ -1647,7 +1647,7 @@ dp_rx_link_desc_return_by_addr(struct dp_soc *soc,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_rxdma_err_process() - RxDMA error processing functionality
|
* dp_rxdma_err_process() - RxDMA error processing functionality
|
||||||
* @soc: core txrx main contex
|
* @soc: core txrx main context
|
||||||
* @mac_id: mac id which is one of 3 mac_ids
|
* @mac_id: mac id which is one of 3 mac_ids
|
||||||
* @hal_ring: opaque pointer to the HAL Rx Ring, which will be serviced
|
* @hal_ring: opaque pointer to the HAL Rx Ring, which will be serviced
|
||||||
* @quota: No. of units (packets) that can be serviced in one shot.
|
* @quota: No. of units (packets) that can be serviced in one shot.
|
||||||
|
@@ -1344,7 +1344,7 @@ static QDF_STATUS dp_rx_defrag_reo_reinject(struct dp_txrx_peer *txrx_peer,
|
|||||||
true, __func__, __LINE__);
|
true, __func__, __LINE__);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* As part of rx frag handler bufffer was unmapped and rx desc
|
* As part of rx frag handler buffer was unmapped and rx desc
|
||||||
* unmapped is set to 1. So again for defrag reinject frame reset
|
* unmapped is set to 1. So again for defrag reinject frame reset
|
||||||
* it back to 0.
|
* it back to 0.
|
||||||
*/
|
*/
|
||||||
|
@@ -483,7 +483,7 @@ dp_rx_pn_error_handle(struct dp_soc *soc, hal_ring_desc_t ring_desc,
|
|||||||
* @soc: Datapath soc handler
|
* @soc: Datapath soc handler
|
||||||
* @peer: pointer to DP peer
|
* @peer: pointer to DP peer
|
||||||
* @nbuf: pointer to the skb of RX frame
|
* @nbuf: pointer to the skb of RX frame
|
||||||
* @frame_mask: the mask for speical frame needed
|
* @frame_mask: the mask for special frame needed
|
||||||
* @rx_tlv_hdr: start of rx tlv header
|
* @rx_tlv_hdr: start of rx tlv header
|
||||||
*
|
*
|
||||||
* note: Msdu_len must have been stored in QDF_NBUF_CB_RX_PKT_LEN(nbuf) and
|
* note: Msdu_len must have been stored in QDF_NBUF_CB_RX_PKT_LEN(nbuf) and
|
||||||
@@ -1451,7 +1451,7 @@ drop_nbuf:
|
|||||||
* @ring_desc: opaque pointer to the REO error ring descriptor
|
* @ring_desc: opaque pointer to the REO error ring descriptor
|
||||||
* @mpdu_desc_info: pointer to mpdu level description info
|
* @mpdu_desc_info: pointer to mpdu level description info
|
||||||
* @link_desc_va: pointer to msdu_link_desc virtual address
|
* @link_desc_va: pointer to msdu_link_desc virtual address
|
||||||
* @err_code: reo erro code fetched from ring entry
|
* @err_code: reo error code fetched from ring entry
|
||||||
*
|
*
|
||||||
* Function to handle msdus fetched from msdu link desc, currently
|
* Function to handle msdus fetched from msdu link desc, currently
|
||||||
* support REO error NULL queue, 2K jump, OOR.
|
* support REO error NULL queue, 2K jump, OOR.
|
||||||
@@ -2606,7 +2606,7 @@ done:
|
|||||||
/**
|
/**
|
||||||
* dp_handle_rxdma_decrypt_err() - Check if decrypt err frames can be handled
|
* dp_handle_rxdma_decrypt_err() - Check if decrypt err frames can be handled
|
||||||
*
|
*
|
||||||
* Return: true if rxdma decrypt err frames are handled and false otheriwse
|
* Return: true if rxdma decrypt err frames are handled and false otherwise
|
||||||
*/
|
*/
|
||||||
static inline bool dp_handle_rxdma_decrypt_err(void)
|
static inline bool dp_handle_rxdma_decrypt_err(void)
|
||||||
{
|
{
|
||||||
|
@@ -8319,7 +8319,7 @@ bool dp_peer_get_hw_txrx_stats_en(struct dp_txrx_peer *txrx_peer)
|
|||||||
#ifdef WLAN_FEATURE_11BE_MLO
|
#ifdef WLAN_FEATURE_11BE_MLO
|
||||||
static inline struct dp_peer *dp_get_stats_peer(struct dp_peer *peer)
|
static inline struct dp_peer *dp_get_stats_peer(struct dp_peer *peer)
|
||||||
{
|
{
|
||||||
/* ML primay link peer return mld_peer */
|
/* ML primary link peer return mld_peer */
|
||||||
if (IS_MLO_DP_LINK_PEER(peer) && peer->primary_link)
|
if (IS_MLO_DP_LINK_PEER(peer) && peer->primary_link)
|
||||||
return peer->mld_peer;
|
return peer->mld_peer;
|
||||||
|
|
||||||
|
@@ -986,7 +986,7 @@ dp_tx_send_traffic_end_indication_pkt(struct dp_vdev *vdev,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_tx_traffic_end_indication_set_desc_flag() - Set tx descriptor flag to
|
* dp_tx_traffic_end_indication_set_desc_flag() - Set tx descriptor flag to
|
||||||
* mark it trafic end indication
|
* mark it traffic end indication
|
||||||
* packet.
|
* packet.
|
||||||
* @tx_desc: Tx descriptor pointer
|
* @tx_desc: Tx descriptor pointer
|
||||||
* @msdu_info: msdu_info structure pointer
|
* @msdu_info: msdu_info structure pointer
|
||||||
@@ -1254,7 +1254,7 @@ failure:
|
|||||||
* @desc_pool_id : Descriptor Pool ID
|
* @desc_pool_id : Descriptor Pool ID
|
||||||
*
|
*
|
||||||
* Allocate and prepare Tx descriptor with msdu and fragment descritor
|
* Allocate and prepare Tx descriptor with msdu and fragment descritor
|
||||||
* information. For frames wth fragments, allocate and prepare
|
* information. For frames with fragments, allocate and prepare
|
||||||
* an MSDU extension descriptor
|
* an MSDU extension descriptor
|
||||||
*
|
*
|
||||||
* Return: Pointer to Tx Descriptor on success,
|
* Return: Pointer to Tx Descriptor on success,
|
||||||
@@ -3290,7 +3290,7 @@ dp_tx_send_exception_vdev_id_check(struct cdp_soc_t *soc_hdl,
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Unref count as it will agin be taken inside dp_tx_exception */
|
/* Unref count as it will again be taken inside dp_tx_exception */
|
||||||
dp_vdev_unref_delete(soc, vdev, DP_MOD_ID_TX_EXCEPTION);
|
dp_vdev_unref_delete(soc, vdev, DP_MOD_ID_TX_EXCEPTION);
|
||||||
|
|
||||||
return dp_tx_send_exception(soc_hdl, vdev_id, nbuf, tx_exc_metadata);
|
return dp_tx_send_exception(soc_hdl, vdev_id, nbuf, tx_exc_metadata);
|
||||||
@@ -4875,7 +4875,7 @@ static void dp_tx_update_uplink_delay(struct dp_soc *soc, struct dp_vdev *vdev,
|
|||||||
uint32_t ul_delay;
|
uint32_t ul_delay;
|
||||||
|
|
||||||
if (qdf_unlikely(!vdev)) {
|
if (qdf_unlikely(!vdev)) {
|
||||||
dp_info_rl("vdev is null or delete in progrss");
|
dp_info_rl("vdev is null or delete in progress");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5213,7 +5213,7 @@ dp_tx_comp_process_desc_list(struct dp_soc *soc,
|
|||||||
dp_tx_outstanding_dec(pdev);
|
dp_tx_outstanding_dec(pdev);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calling a QDF WRAPPER here is creating signifcant
|
* Calling a QDF WRAPPER here is creating significant
|
||||||
* performance impact so avoided the wrapper call here
|
* performance impact so avoided the wrapper call here
|
||||||
*/
|
*/
|
||||||
dp_tx_desc_history_add(soc, desc->dma_addr, desc->nbuf,
|
dp_tx_desc_history_add(soc, desc->dma_addr, desc->nbuf,
|
||||||
@@ -5533,7 +5533,7 @@ next_desc:
|
|||||||
* 2) Ring entries are still near high threshold
|
* 2) Ring entries are still near high threshold
|
||||||
* 3) Ring entries are below the safe level
|
* 3) Ring entries are below the safe level
|
||||||
*
|
*
|
||||||
* One more loop will move te state to normal processing and yield
|
* One more loop will move the state to normal processing and yield
|
||||||
*/
|
*/
|
||||||
if (ring_near_full)
|
if (ring_near_full)
|
||||||
goto more_data;
|
goto more_data;
|
||||||
|
@@ -112,7 +112,7 @@ do { \
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* struct dp_tx_frag_info_s
|
* struct dp_tx_frag_info_s
|
||||||
* @vaddr: hlos vritual address for buffer
|
* @vaddr: hlos virtual address for buffer
|
||||||
* @paddr_lo: physical address lower 32bits
|
* @paddr_lo: physical address lower 32bits
|
||||||
* @paddr_hi: physical address higher bits
|
* @paddr_hi: physical address higher bits
|
||||||
* @len: length of the buffer
|
* @len: length of the buffer
|
||||||
|
@@ -246,7 +246,7 @@ void dp_tx_desc_pool_deinit(struct dp_soc *soc, uint8_t pool_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_tx_ext_desc_pool_alloc() - allocate Tx extenstion Descriptor pool(s)
|
* dp_tx_ext_desc_pool_alloc() - allocate Tx extension Descriptor pool(s)
|
||||||
* @soc: Handle to DP SoC structure
|
* @soc: Handle to DP SoC structure
|
||||||
* @num_pool: Number of pools to allocate
|
* @num_pool: Number of pools to allocate
|
||||||
* @num_elem: Number of descriptor elements per pool
|
* @num_elem: Number of descriptor elements per pool
|
||||||
@@ -335,7 +335,7 @@ fail_exit:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_tx_ext_desc_pool_init() - initialize Tx extenstion Descriptor pool(s)
|
* dp_tx_ext_desc_pool_init() - initialize Tx extension Descriptor pool(s)
|
||||||
* @soc: Handle to DP SoC structure
|
* @soc: Handle to DP SoC structure
|
||||||
* @num_pool: Number of pools to initialize
|
* @num_pool: Number of pools to initialize
|
||||||
* @num_elem: Number of descriptor elements per pool
|
* @num_elem: Number of descriptor elements per pool
|
||||||
@@ -422,7 +422,7 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_tx_ext_desc_pool_free() - free Tx extenstion Descriptor pool(s)
|
* dp_tx_ext_desc_pool_free() - free Tx extension Descriptor pool(s)
|
||||||
* @soc: Handle to DP SoC structure
|
* @soc: Handle to DP SoC structure
|
||||||
* @num_pool: Number of pools to free
|
* @num_pool: Number of pools to free
|
||||||
*
|
*
|
||||||
@@ -450,7 +450,7 @@ void dp_tx_ext_desc_pool_free(struct dp_soc *soc, uint8_t num_pool)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_tx_ext_desc_pool_deinit() - deinit Tx extenstion Descriptor pool(s)
|
* dp_tx_ext_desc_pool_deinit() - deinit Tx extension Descriptor pool(s)
|
||||||
* @soc: Handle to DP SoC structure
|
* @soc: Handle to DP SoC structure
|
||||||
* @num_pool: Number of pools to de-initialize
|
* @num_pool: Number of pools to de-initialize
|
||||||
*
|
*
|
||||||
|
@@ -289,7 +289,7 @@ dp_tx_adjust_flow_pool_state(struct dp_soc *soc,
|
|||||||
WLAN_DATA_FLOW_CTRL_BE_BK);
|
WLAN_DATA_FLOW_CTRL_BE_BK);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dp_err("Invalid pool staus:%u to adjust", pool->status);
|
dp_err("Invalid pool status:%u to adjust", pool->status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -420,7 +420,7 @@ dp_tx_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc,
|
|||||||
reason = WLAN_DATA_FLOW_CTRL_PRI;
|
reason = WLAN_DATA_FLOW_CTRL_PRI;
|
||||||
pool->status = FLOW_POOL_VO_PAUSED;
|
pool->status = FLOW_POOL_VO_PAUSED;
|
||||||
|
|
||||||
/* Update maxinum pause duration for HI queue */
|
/* Update maximum pause duration for HI queue */
|
||||||
pause_dur = unpause_time -
|
pause_dur = unpause_time -
|
||||||
pool->latest_pause_time[DP_TH_HI];
|
pool->latest_pause_time[DP_TH_HI];
|
||||||
if (pool->max_pause_time[DP_TH_HI] < pause_dur)
|
if (pool->max_pause_time[DP_TH_HI] < pause_dur)
|
||||||
@@ -433,7 +433,7 @@ dp_tx_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc,
|
|||||||
reason = WLAN_DATA_FLOW_CTRL_VO;
|
reason = WLAN_DATA_FLOW_CTRL_VO;
|
||||||
pool->status = FLOW_POOL_VI_PAUSED;
|
pool->status = FLOW_POOL_VI_PAUSED;
|
||||||
|
|
||||||
/* Update maxinum pause duration for VO queue */
|
/* Update maximum pause duration for VO queue */
|
||||||
pause_dur = unpause_time -
|
pause_dur = unpause_time -
|
||||||
pool->latest_pause_time[DP_TH_VO];
|
pool->latest_pause_time[DP_TH_VO];
|
||||||
if (pool->max_pause_time[DP_TH_VO] < pause_dur)
|
if (pool->max_pause_time[DP_TH_VO] < pause_dur)
|
||||||
@@ -446,7 +446,7 @@ dp_tx_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc,
|
|||||||
reason = WLAN_DATA_FLOW_CTRL_VI;
|
reason = WLAN_DATA_FLOW_CTRL_VI;
|
||||||
pool->status = FLOW_POOL_BE_BK_PAUSED;
|
pool->status = FLOW_POOL_BE_BK_PAUSED;
|
||||||
|
|
||||||
/* Update maxinum pause duration for VI queue */
|
/* Update maximum pause duration for VI queue */
|
||||||
pause_dur = unpause_time -
|
pause_dur = unpause_time -
|
||||||
pool->latest_pause_time[DP_TH_VI];
|
pool->latest_pause_time[DP_TH_VI];
|
||||||
if (pool->max_pause_time[DP_TH_VI] < pause_dur)
|
if (pool->max_pause_time[DP_TH_VI] < pause_dur)
|
||||||
@@ -459,7 +459,7 @@ dp_tx_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc,
|
|||||||
reason = WLAN_DATA_FLOW_CTRL_BE_BK;
|
reason = WLAN_DATA_FLOW_CTRL_BE_BK;
|
||||||
pool->status = FLOW_POOL_ACTIVE_UNPAUSED;
|
pool->status = FLOW_POOL_ACTIVE_UNPAUSED;
|
||||||
|
|
||||||
/* Update maxinum pause duration for BE_BK queue */
|
/* Update maximum pause duration for BE_BK queue */
|
||||||
pause_dur = unpause_time -
|
pause_dur = unpause_time -
|
||||||
pool->latest_pause_time[DP_TH_BE_BK];
|
pool->latest_pause_time[DP_TH_BE_BK];
|
||||||
if (pool->max_pause_time[DP_TH_BE_BK] < pause_dur)
|
if (pool->max_pause_time[DP_TH_BE_BK] < pause_dur)
|
||||||
|
@@ -37,8 +37,8 @@
|
|||||||
/**
|
/**
|
||||||
* dp_tx_initialize_threshold() - Threshold of flow Pool initialization
|
* dp_tx_initialize_threshold() - Threshold of flow Pool initialization
|
||||||
* @pool: flow_pool
|
* @pool: flow_pool
|
||||||
* @stop_threshold: stop threshold of certian AC
|
* @stop_threshold: stop threshold of certain AC
|
||||||
* @start_threshold: start threshold of certian AC
|
* @start_threshold: start threshold of certain AC
|
||||||
* @flow_pool_size: flow pool size
|
* @flow_pool_size: flow pool size
|
||||||
*
|
*
|
||||||
* Return: none
|
* Return: none
|
||||||
@@ -55,19 +55,19 @@ dp_tx_initialize_threshold(struct dp_tx_desc_pool_s *pool,
|
|||||||
pool->stop_th[DP_TH_BE_BK] = (stop_threshold
|
pool->stop_th[DP_TH_BE_BK] = (stop_threshold
|
||||||
* flow_pool_size) / 100;
|
* flow_pool_size) / 100;
|
||||||
|
|
||||||
/* Update VI threshold based on BE_BK threashold */
|
/* Update VI threshold based on BE_BK threshold */
|
||||||
pool->start_th[DP_TH_VI] = (pool->start_th[DP_TH_BE_BK]
|
pool->start_th[DP_TH_VI] = (pool->start_th[DP_TH_BE_BK]
|
||||||
* FL_TH_VI_PERCENTAGE) / 100;
|
* FL_TH_VI_PERCENTAGE) / 100;
|
||||||
pool->stop_th[DP_TH_VI] = (pool->stop_th[DP_TH_BE_BK]
|
pool->stop_th[DP_TH_VI] = (pool->stop_th[DP_TH_BE_BK]
|
||||||
* FL_TH_VI_PERCENTAGE) / 100;
|
* FL_TH_VI_PERCENTAGE) / 100;
|
||||||
|
|
||||||
/* Update VO threshold based on BE_BK threashold */
|
/* Update VO threshold based on BE_BK threshold */
|
||||||
pool->start_th[DP_TH_VO] = (pool->start_th[DP_TH_BE_BK]
|
pool->start_th[DP_TH_VO] = (pool->start_th[DP_TH_BE_BK]
|
||||||
* FL_TH_VO_PERCENTAGE) / 100;
|
* FL_TH_VO_PERCENTAGE) / 100;
|
||||||
pool->stop_th[DP_TH_VO] = (pool->stop_th[DP_TH_BE_BK]
|
pool->stop_th[DP_TH_VO] = (pool->stop_th[DP_TH_BE_BK]
|
||||||
* FL_TH_VO_PERCENTAGE) / 100;
|
* FL_TH_VO_PERCENTAGE) / 100;
|
||||||
|
|
||||||
/* Update High Priority threshold based on BE_BK threashold */
|
/* Update High Priority threshold based on BE_BK threshold */
|
||||||
pool->start_th[DP_TH_HI] = (pool->start_th[DP_TH_BE_BK]
|
pool->start_th[DP_TH_HI] = (pool->start_th[DP_TH_BE_BK]
|
||||||
* FL_TH_HI_PERCENTAGE) / 100;
|
* FL_TH_HI_PERCENTAGE) / 100;
|
||||||
pool->stop_th[DP_TH_HI] = (pool->stop_th[DP_TH_BE_BK]
|
pool->stop_th[DP_TH_HI] = (pool->stop_th[DP_TH_BE_BK]
|
||||||
@@ -110,7 +110,7 @@ dp_tx_flow_pool_dump_threshold(struct dp_tx_desc_pool_s *pool)
|
|||||||
"Level %d :: Start threshold %d :: Stop threshold %d",
|
"Level %d :: Start threshold %d :: Stop threshold %d",
|
||||||
i, pool->start_th[i], pool->stop_th[i]);
|
i, pool->start_th[i], pool->stop_th[i]);
|
||||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
|
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
|
||||||
"Level %d :: Maximun pause time %lu ms",
|
"Level %d :: Maximum pause time %lu ms",
|
||||||
i, pool->max_pause_time[i]);
|
i, pool->max_pause_time[i]);
|
||||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
|
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
|
||||||
"Level %d :: Latest pause timestamp %lu",
|
"Level %d :: Latest pause timestamp %lu",
|
||||||
@@ -119,7 +119,7 @@ dp_tx_flow_pool_dump_threshold(struct dp_tx_desc_pool_s *pool)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_tx_flow_ctrl_reset_subqueues() - Reset subqueues to orginal state
|
* dp_tx_flow_ctrl_reset_subqueues() - Reset subqueues to original state
|
||||||
* @soc: dp soc
|
* @soc: dp soc
|
||||||
* @pool: flow pool
|
* @pool: flow pool
|
||||||
* @pool_status: flow pool status
|
* @pool_status: flow pool status
|
||||||
@@ -450,7 +450,7 @@ int dp_tx_delete_flow_pool(struct dp_soc *soc, struct dp_tx_desc_pool_s *pool,
|
|||||||
qdf_spin_lock_bh(&pool->flow_pool_lock);
|
qdf_spin_lock_bh(&pool->flow_pool_lock);
|
||||||
if (!pool->pool_create_cnt) {
|
if (!pool->pool_create_cnt) {
|
||||||
qdf_spin_unlock_bh(&pool->flow_pool_lock);
|
qdf_spin_unlock_bh(&pool->flow_pool_lock);
|
||||||
dp_err("flow pool either not created or alread deleted");
|
dp_err("flow pool either not created or already deleted");
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
pool->pool_create_cnt--;
|
pool->pool_create_cnt--;
|
||||||
|
@@ -1127,7 +1127,7 @@ static inline bool dp_peer_get_ast_valid(uint8_t mask, uint16_t index)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_peer_ast_index_flow_queue_map_create() - create ast index flow queue map
|
* dp_peer_ast_index_flow_queue_map_create() - create ast index flow queue map
|
||||||
* @soc - genereic soc handle
|
* @soc - generic soc handle
|
||||||
* @is_wds - flag to indicate if peer is wds
|
* @is_wds - flag to indicate if peer is wds
|
||||||
* @peer_id - peer_id from htt peer map message
|
* @peer_id - peer_id from htt peer map message
|
||||||
* @peer_mac_addr - mac address of the peer
|
* @peer_mac_addr - mac address of the peer
|
||||||
|
@@ -748,7 +748,7 @@ struct dp_txrx_pool_stats {
|
|||||||
* @cached: is the srng ring memory cached or un-cached memory
|
* @cached: is the srng ring memory cached or un-cached memory
|
||||||
* @irq: irq number of the srng ring
|
* @irq: irq number of the srng ring
|
||||||
* @num_entries: number of entries in the srng ring
|
* @num_entries: number of entries in the srng ring
|
||||||
* @is_mem_prealloc: Is this srng memeory pre-allocated
|
* @is_mem_prealloc: Is this srng memory pre-allocated
|
||||||
* @crit_thresh: Critical threshold for near-full processing of this srng
|
* @crit_thresh: Critical threshold for near-full processing of this srng
|
||||||
* @safe_thresh: Safe threshold for near-full processing of this srng
|
* @safe_thresh: Safe threshold for near-full processing of this srng
|
||||||
* @near_full: Flag to indicate srng is near-full
|
* @near_full: Flag to indicate srng is near-full
|
||||||
@@ -1609,7 +1609,7 @@ struct dp_last_op_info {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* struct dp_swlm_tcl_data - params for tcl register write coalescing
|
* struct dp_swlm_tcl_data - params for tcl register write coalescing
|
||||||
* descision making
|
* decision making
|
||||||
* @nbuf: TX packet
|
* @nbuf: TX packet
|
||||||
* @tid: tid for transmitting the current packet
|
* @tid: tid for transmitting the current packet
|
||||||
* @num_ll_connections: Number of low latency connections on this vdev
|
* @num_ll_connections: Number of low latency connections on this vdev
|
||||||
@@ -1994,7 +1994,7 @@ struct dp_arch_ops {
|
|||||||
* @pn_in_reo_dest: PN provided by hardware in the REO destination ring.
|
* @pn_in_reo_dest: PN provided by hardware in the REO destination ring.
|
||||||
* @dmac_cmn_src_rxbuf_ring_enabled: Flag to indicate DMAC mode common Rx
|
* @dmac_cmn_src_rxbuf_ring_enabled: Flag to indicate DMAC mode common Rx
|
||||||
* buffer source rings
|
* buffer source rings
|
||||||
* @rssi_dbm_conv_support: Rssi dbm converstion support param.
|
* @rssi_dbm_conv_support: Rssi dbm conversion support param.
|
||||||
* @umac_hw_reset_support: UMAC HW reset support
|
* @umac_hw_reset_support: UMAC HW reset support
|
||||||
*/
|
*/
|
||||||
struct dp_soc_features {
|
struct dp_soc_features {
|
||||||
@@ -2335,7 +2335,7 @@ struct dp_soc {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
qdf_spinlock_t ast_lock;
|
qdf_spinlock_t ast_lock;
|
||||||
/*Timer for AST entry ageout maintainance */
|
/*Timer for AST entry ageout maintenance */
|
||||||
qdf_timer_t ast_aging_timer;
|
qdf_timer_t ast_aging_timer;
|
||||||
|
|
||||||
/*Timer counter for WDS AST entry ageout*/
|
/*Timer counter for WDS AST entry ageout*/
|
||||||
@@ -2930,7 +2930,7 @@ struct dp_pdev {
|
|||||||
/**
|
/**
|
||||||
* TODO: See if we need a ring map here for LMAC rings.
|
* TODO: See if we need a ring map here for LMAC rings.
|
||||||
* 1. Monitor rings are currently planning to be processed on receiving
|
* 1. Monitor rings are currently planning to be processed on receiving
|
||||||
* PPDU end interrupts and hence wont need ring based interrupts.
|
* PPDU end interrupts and hence won't need ring based interrupts.
|
||||||
* 2. Rx buffer rings will be replenished during REO destination
|
* 2. Rx buffer rings will be replenished during REO destination
|
||||||
* processing and doesn't require regular interrupt handling - we will
|
* processing and doesn't require regular interrupt handling - we will
|
||||||
* only handle low water mark interrupts which is not expected
|
* only handle low water mark interrupts which is not expected
|
||||||
@@ -3090,7 +3090,7 @@ struct dp_pdev {
|
|||||||
*/
|
*/
|
||||||
struct rx_protocol_tag_stats
|
struct rx_protocol_tag_stats
|
||||||
reo_proto_tag_stats[MAX_REO_DEST_RINGS][RX_PROTOCOL_TAG_MAX];
|
reo_proto_tag_stats[MAX_REO_DEST_RINGS][RX_PROTOCOL_TAG_MAX];
|
||||||
/* Track msdus received from expection ring separately */
|
/* Track msdus received from exception ring separately */
|
||||||
struct rx_protocol_tag_stats
|
struct rx_protocol_tag_stats
|
||||||
rx_err_proto_tag_stats[RX_PROTOCOL_TAG_MAX];
|
rx_err_proto_tag_stats[RX_PROTOCOL_TAG_MAX];
|
||||||
struct rx_protocol_tag_stats
|
struct rx_protocol_tag_stats
|
||||||
@@ -4055,7 +4055,7 @@ struct dp_peer_stats {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct dp_txrx_peer: DP txrx_peer strcuture used in per pkt path
|
* struct dp_txrx_peer: DP txrx_peer structure used in per pkt path
|
||||||
* @tx_failed: Total Tx failure
|
* @tx_failed: Total Tx failure
|
||||||
* @cdp_pkt_info comp_pkt: Pkt Info for which completions were received
|
* @cdp_pkt_info comp_pkt: Pkt Info for which completions were received
|
||||||
* @to_stack: Total packets sent up the stack
|
* @to_stack: Total packets sent up the stack
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
||||||
|
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -152,7 +153,7 @@ qdf_export_symbol(dp_wdi_event_handler);
|
|||||||
* dp_wdi_event_sub() - Subscribe WDI event
|
* dp_wdi_event_sub() - Subscribe WDI event
|
||||||
* @soc: soc handle
|
* @soc: soc handle
|
||||||
* @pdev_id: id of pdev
|
* @pdev_id: id of pdev
|
||||||
* @event_cb_sub_handle: subcribe evnet handle
|
* @event_cb_sub_handle: subscribe event handle
|
||||||
* @event: Event to be subscribe
|
* @event: Event to be subscribe
|
||||||
*
|
*
|
||||||
* Return: 0 for success. nonzero for failure.
|
* Return: 0 for success. nonzero for failure.
|
||||||
|
@@ -48,7 +48,7 @@ static struct wlan_cfg_tcl_wbm_ring_num_map g_tcl_wbm_map_array[MAX_TCL_DATA_RIN
|
|||||||
{2, 2, HAL_LI_WBM_SW2_BM_ID, 0},
|
{2, 2, HAL_LI_WBM_SW2_BM_ID, 0},
|
||||||
/*
|
/*
|
||||||
* Although using wbm_ring 4, wbm_ring 3 is mentioned in order to match
|
* Although using wbm_ring 4, wbm_ring 3 is mentioned in order to match
|
||||||
* with the tx_mask in dp_service_srngs. Please be carefull while using
|
* with the tx_mask in dp_service_srngs. Please be careful while using
|
||||||
* this table anywhere else.
|
* this table anywhere else.
|
||||||
*/
|
*/
|
||||||
{3, 3, HAL_LI_WBM_SW4_BM_ID, 0}
|
{3, 3, HAL_LI_WBM_SW4_BM_ID, 0}
|
||||||
|
@@ -411,7 +411,7 @@ QDF_STATUS dp_vdev_set_monitor_mode_rings(struct dp_pdev *pdev,
|
|||||||
|
|
||||||
pdev_cfg_ctx = pdev->wlan_cfg_ctx;
|
pdev_cfg_ctx = pdev->wlan_cfg_ctx;
|
||||||
|
|
||||||
/* If monitor rings are aleady initilized, return from here */
|
/* If monitor rings are already initialized, return from here */
|
||||||
if (mon_pdev->pdev_mon_init)
|
if (mon_pdev->pdev_mon_init)
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
|
|
||||||
|
@@ -82,7 +82,7 @@ static QDF_STATUS dp_mon_filter_check_co_exist(struct dp_pdev *pdev)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Check if the m_copy, monitor mode and the smart_monitor_mode
|
* Check if the m_copy, monitor mode and the smart_monitor_mode
|
||||||
* can co-exist togther.
|
* can co-exist together.
|
||||||
*/
|
*/
|
||||||
if (mon_pdev->mcopy_mode &&
|
if (mon_pdev->mcopy_mode &&
|
||||||
(mon_pdev->mvdev || mon_pdev->neighbour_peers_added)) {
|
(mon_pdev->mvdev || mon_pdev->neighbour_peers_added)) {
|
||||||
|
@@ -54,7 +54,7 @@ void dp_rx_pdev_mon_desc_pool_free(struct dp_pdev *pdev);
|
|||||||
/**
|
/**
|
||||||
* dp_rx_mon_dest_process() - Brain of the Rx processing functionality
|
* dp_rx_mon_dest_process() - Brain of the Rx processing functionality
|
||||||
* Called from the bottom half (tasklet/NET_RX_SOFTIRQ)
|
* Called from the bottom half (tasklet/NET_RX_SOFTIRQ)
|
||||||
* @soc: core txrx main contex
|
* @soc: core txrx main context
|
||||||
* @int_ctx: interrupt context
|
* @int_ctx: interrupt context
|
||||||
* @hal_ring: opaque pointer to the HAL Rx Ring, which will be serviced
|
* @hal_ring: opaque pointer to the HAL Rx Ring, which will be serviced
|
||||||
* @quota: No. of units (packets) that can be serviced in one shot.
|
* @quota: No. of units (packets) that can be serviced in one shot.
|
||||||
@@ -122,7 +122,7 @@ dp_mon_dest_srng_drop_for_mac(struct dp_pdev *pdev, uint32_t mac_id);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_rxdma_err_process() - RxDMA error processing functionality
|
* dp_rxdma_err_process() - RxDMA error processing functionality
|
||||||
* @soc: core txrx main contex
|
* @soc: core txrx main context
|
||||||
* @mac_id: mac id which is one of 3 mac_ids
|
* @mac_id: mac id which is one of 3 mac_ids
|
||||||
* @hal_ring: opaque pointer to the HAL Rx Ring, which will be serviced
|
* @hal_ring: opaque pointer to the HAL Rx Ring, which will be serviced
|
||||||
* @quota: No. of units (packets) that can be serviced in one shot.
|
* @quota: No. of units (packets) that can be serviced in one shot.
|
||||||
|
@@ -395,7 +395,7 @@ dp_rx_mon_mpdu_pop(struct dp_soc *soc, uint32_t mac_id,
|
|||||||
|
|
||||||
dp_rx_mon_buffer_set_pktlen(msdu, rx_buf_size);
|
dp_rx_mon_buffer_set_pktlen(msdu, rx_buf_size);
|
||||||
#if 0
|
#if 0
|
||||||
/* Disble it.see packet on msdu done set to 0 */
|
/* Disable it.see packet on msdu done set to 0 */
|
||||||
/*
|
/*
|
||||||
* Check if DMA completed -- msdu_done is the
|
* Check if DMA completed -- msdu_done is the
|
||||||
* last bit to be written
|
* last bit to be written
|
||||||
@@ -1396,7 +1396,7 @@ dp_rx_mon_restitch_mpdu_from_msdus(struct dp_soc *soc,
|
|||||||
|
|
||||||
/* Allocate a new nbuf for holding the 802.11 header retrieved from the
|
/* Allocate a new nbuf for holding the 802.11 header retrieved from the
|
||||||
* status of the now decapped first msdu. Leave enough headroom for
|
* status of the now decapped first msdu. Leave enough headroom for
|
||||||
* accomodating any radio-tap /prism like PHY header
|
* accommodating any radio-tap /prism like PHY header
|
||||||
*/
|
*/
|
||||||
mpdu_buf = qdf_nbuf_alloc(soc->osdev,
|
mpdu_buf = qdf_nbuf_alloc(soc->osdev,
|
||||||
MAX_MONITOR_HEADER + mpdu_buf_len,
|
MAX_MONITOR_HEADER + mpdu_buf_len,
|
||||||
@@ -1769,7 +1769,7 @@ dp_rx_mon_frag_restitch_mpdu_from_msdus(struct dp_soc *soc,
|
|||||||
frag_size = qdf_nbuf_get_frag_size_by_idx(head_msdu, 0);
|
frag_size = qdf_nbuf_get_frag_size_by_idx(head_msdu, 0);
|
||||||
|
|
||||||
if (buf_info.first_buffer && buf_info.last_buffer) {
|
if (buf_info.first_buffer && buf_info.last_buffer) {
|
||||||
/* MSDU with single bufffer */
|
/* MSDU with single buffer */
|
||||||
amsdu_pad = frag_size & 0x3;
|
amsdu_pad = frag_size & 0x3;
|
||||||
amsdu_pad = amsdu_pad ? (4 - amsdu_pad) : 0;
|
amsdu_pad = amsdu_pad ? (4 - amsdu_pad) : 0;
|
||||||
if (amsdu_pad && (amsdu_pad <= pad_byte_pholder)) {
|
if (amsdu_pad && (amsdu_pad <= pad_byte_pholder)) {
|
||||||
@@ -1944,7 +1944,7 @@ dp_rx_mon_frag_restitch_mpdu_from_msdus(struct dp_soc *soc,
|
|||||||
amsdu_pad = tot_msdu_len & 0x3;
|
amsdu_pad = tot_msdu_len & 0x3;
|
||||||
amsdu_pad = amsdu_pad ? (4 - amsdu_pad) : 0;
|
amsdu_pad = amsdu_pad ? (4 - amsdu_pad) : 0;
|
||||||
|
|
||||||
/* Create placeholder if current bufer can
|
/* Create placeholder if current buffer can
|
||||||
* accommodate padding.
|
* accommodate padding.
|
||||||
*/
|
*/
|
||||||
if (amsdu_pad && (amsdu_pad <= pad_byte_pholder)) {
|
if (amsdu_pad && (amsdu_pad <= pad_byte_pholder)) {
|
||||||
|
@@ -58,7 +58,7 @@ void dp_mon_filter_dealloc_2_0(struct dp_pdev *pdev)
|
|||||||
mon_pdev_be = dp_get_be_mon_pdev_from_dp_mon_pdev(mon_pdev);
|
mon_pdev_be = dp_get_be_mon_pdev_from_dp_mon_pdev(mon_pdev);
|
||||||
mon_filter = mon_pdev_be->filter_be;
|
mon_filter = mon_pdev_be->filter_be;
|
||||||
if (!mon_filter) {
|
if (!mon_filter) {
|
||||||
dp_mon_filter_err("Found NULL memmory for the Monitor filter");
|
dp_mon_filter_err("Found NULL memory for the Monitor filter");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2277,7 +2277,7 @@ void dp_mon_filter_reset_pktlog_hybrid_2_0(struct dp_pdev *pdev)
|
|||||||
* dp_rx_mon_filter_h2t_setup() - Setup the filter for the Target setup
|
* dp_rx_mon_filter_h2t_setup() - Setup the filter for the Target setup
|
||||||
* @soc: DP soc handle
|
* @soc: DP soc handle
|
||||||
* @pdev: DP pdev handle
|
* @pdev: DP pdev handle
|
||||||
* @srng_type: The srng type for which filter wll be set
|
* @srng_type: The srng type for which filter will be set
|
||||||
* @tlv_filter: tlv filter
|
* @tlv_filter: tlv filter
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
@@ -2764,7 +2764,7 @@ void dp_tx_mon_wordmask_config_set(struct htt_tx_ring_tlv_filter *dst_filter,
|
|||||||
* dp_tx_mon_filter_h2t_setup() - Setup the filter
|
* dp_tx_mon_filter_h2t_setup() - Setup the filter
|
||||||
* @soc: DP soc handle
|
* @soc: DP soc handle
|
||||||
* @pdev: DP pdev handle
|
* @pdev: DP pdev handle
|
||||||
* @srng_type: The srng type for which filter wll be set
|
* @srng_type: The srng type for which filter will be set
|
||||||
* @tlv_filter: tlv filter
|
* @tlv_filter: tlv filter
|
||||||
*/
|
*/
|
||||||
static
|
static
|
||||||
|
@@ -742,7 +742,7 @@ dp_rx_mon_handle_full_mon(struct dp_pdev *pdev,
|
|||||||
RX_MONITOR_BUFFER_SIZE - (frag_size + DP_RX_MON_PACKET_OFFSET + DP_RX_MON_NONRAW_L2_HDR_PAD_BYTE);
|
RX_MONITOR_BUFFER_SIZE - (frag_size + DP_RX_MON_PACKET_OFFSET + DP_RX_MON_NONRAW_L2_HDR_PAD_BYTE);
|
||||||
|
|
||||||
if (msdu_meta->first_buffer && msdu_meta->last_buffer) {
|
if (msdu_meta->first_buffer && msdu_meta->last_buffer) {
|
||||||
/* MSDU with single bufffer */
|
/* MSDU with single buffer */
|
||||||
amsdu_pad = frag_size & 0x3;
|
amsdu_pad = frag_size & 0x3;
|
||||||
amsdu_pad = amsdu_pad ? (4 - amsdu_pad) : 0;
|
amsdu_pad = amsdu_pad ? (4 - amsdu_pad) : 0;
|
||||||
if (amsdu_pad && (amsdu_pad <= pad_byte_pholder)) {
|
if (amsdu_pad && (amsdu_pad <= pad_byte_pholder)) {
|
||||||
@@ -891,13 +891,13 @@ dp_rx_mon_handle_full_mon(struct dp_pdev *pdev,
|
|||||||
* 2. Last buffer of MSDU in case of multiple buf MSDU
|
* 2. Last buffer of MSDU in case of multiple buf MSDU
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This flag is used to identify msdu boundry */
|
/* This flag is used to identify msdu boundary */
|
||||||
prev_msdu_end_received = true;
|
prev_msdu_end_received = true;
|
||||||
/* Check size of buffer if amsdu padding required */
|
/* Check size of buffer if amsdu padding required */
|
||||||
amsdu_pad = tot_msdu_len & 0x3;
|
amsdu_pad = tot_msdu_len & 0x3;
|
||||||
amsdu_pad = amsdu_pad ? (4 - amsdu_pad) : 0;
|
amsdu_pad = amsdu_pad ? (4 - amsdu_pad) : 0;
|
||||||
|
|
||||||
/* Create placeholder if current bufer can
|
/* Create placeholder if current buffer can
|
||||||
* accommodate padding.
|
* accommodate padding.
|
||||||
*/
|
*/
|
||||||
if (amsdu_pad && (amsdu_pad <= pad_byte_pholder)) {
|
if (amsdu_pad && (amsdu_pad <= pad_byte_pholder)) {
|
||||||
|
@@ -93,7 +93,7 @@ dp_tx_mon_buf_desc_pool_alloc(struct dp_soc *soc);
|
|||||||
*
|
*
|
||||||
* @mon_pdev - DP_MON_PDEV handle
|
* @mon_pdev - DP_MON_PDEV handle
|
||||||
* @ppdu_id - ppdu_id
|
* @ppdu_id - ppdu_id
|
||||||
* @end_reason - monitor destiantion descriptor end reason
|
* @end_reason - monitor destination descriptor end reason
|
||||||
*
|
*
|
||||||
* Return: void
|
* Return: void
|
||||||
*/
|
*/
|
||||||
|
@@ -989,7 +989,7 @@ dp_tx_mon_alloc_mpdu(struct dp_pdev *pdev, struct dp_tx_ppdu_info *tx_ppdu_info)
|
|||||||
/*
|
/*
|
||||||
* payload will be added as a frag to buffer
|
* payload will be added as a frag to buffer
|
||||||
* and we allocate new skb for radiotap header
|
* and we allocate new skb for radiotap header
|
||||||
* we allocate a dummy bufffer size
|
* we allocate a dummy buffer size
|
||||||
*/
|
*/
|
||||||
mpdu_nbuf = qdf_nbuf_alloc(pdev->soc->osdev,
|
mpdu_nbuf = qdf_nbuf_alloc(pdev->soc->osdev,
|
||||||
MAX_MONITOR_HEADER, MAX_MONITOR_HEADER,
|
MAX_MONITOR_HEADER, MAX_MONITOR_HEADER,
|
||||||
@@ -1620,7 +1620,7 @@ dp_tx_mon_process_tlv_2_0(struct dp_pdev *pdev,
|
|||||||
*
|
*
|
||||||
* @mon_pdev - DP_MON_PDEV handle
|
* @mon_pdev - DP_MON_PDEV handle
|
||||||
* @ppdu_id - ppdu_id
|
* @ppdu_id - ppdu_id
|
||||||
* @end_reason - monitor destiantion descriptor end reason
|
* @end_reason - monitor destination descriptor end reason
|
||||||
*
|
*
|
||||||
* Return: void
|
* Return: void
|
||||||
*/
|
*/
|
||||||
@@ -1817,7 +1817,7 @@ dp_tx_mon_process_status_tlv(struct dp_soc *soc,
|
|||||||
*
|
*
|
||||||
* @mon_pdev - DP_MON_PDEV handle
|
* @mon_pdev - DP_MON_PDEV handle
|
||||||
* @ppdu_id - ppdu_id
|
* @ppdu_id - ppdu_id
|
||||||
* @end_reason - monitor destiantion descriptor end reason
|
* @end_reason - monitor destination descriptor end reason
|
||||||
*
|
*
|
||||||
* Return: void
|
* Return: void
|
||||||
*/
|
*/
|
||||||
|
@@ -5903,7 +5903,7 @@ dp_mon_compute_min_nf(struct cdp_rssi_dbm_conv_param_dp *conv_params,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* dp_mon_pdev_params_rssi_dbm_conv() --> to set rssi in dbm converstion
|
* dp_mon_pdev_params_rssi_dbm_conv() --> to set rssi in dbm conversion
|
||||||
* params into monitor pdev.
|
* params into monitor pdev.
|
||||||
*@cdp_soc: dp soc handle.
|
*@cdp_soc: dp soc handle.
|
||||||
*@params: cdp_rssi_db2dbm_param_dp structure value.
|
*@params: cdp_rssi_db2dbm_param_dp structure value.
|
||||||
@@ -5927,7 +5927,7 @@ dp_mon_pdev_params_rssi_dbm_conv(struct cdp_soc_t *cdp_soc,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!soc->features.rssi_dbm_conv_support) {
|
if (!soc->features.rssi_dbm_conv_support) {
|
||||||
dp_cdp_err("rssi dbm converstion support is false");
|
dp_cdp_err("rssi dbm conversion support is false");
|
||||||
return QDF_STATUS_E_INVAL;
|
return QDF_STATUS_E_INVAL;
|
||||||
}
|
}
|
||||||
if (!pdev || !pdev->monitor_pdev) {
|
if (!pdev || !pdev->monitor_pdev) {
|
||||||
|
@@ -547,7 +547,7 @@ void dp_ppdu_desc_deliver(struct dp_pdev *pdev, struct ppdu_info *ppdu_info);
|
|||||||
|
|
||||||
#ifdef QCA_RSSI_DB2DBM
|
#ifdef QCA_RSSI_DB2DBM
|
||||||
/*
|
/*
|
||||||
* dp_mon_pdev_params_rssi_dbm_conv() --> to set rssi in dbm converstion
|
* dp_mon_pdev_params_rssi_dbm_conv() --> to set rssi in dbm conversion
|
||||||
* params into monitor pdev.
|
* params into monitor pdev.
|
||||||
*@cdp_soc: dp soc handle.
|
*@cdp_soc: dp soc handle.
|
||||||
*@params: cdp_rssi_db2dbm_param_dp structure value.
|
*@params: cdp_rssi_db2dbm_param_dp structure value.
|
||||||
@@ -2133,7 +2133,7 @@ static inline void dp_monitor_flush_rings(struct dp_soc *soc)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* dp_monitor_config_undecoded_metadata_capture() - Monitor config
|
* dp_monitor_config_undecoded_metadata_capture() - Monitor config
|
||||||
* undecoded metatdata capture
|
* undecoded metadata capture
|
||||||
* @pdev: point to pdev
|
* @pdev: point to pdev
|
||||||
* @val: val
|
* @val: val
|
||||||
*
|
*
|
||||||
@@ -2669,7 +2669,7 @@ static inline void dp_monitor_peer_tx_capture_filter_check(struct dp_pdev *pdev,
|
|||||||
* dp_monitor_tx_add_to_comp_queue() - add completion msdu to queue
|
* dp_monitor_tx_add_to_comp_queue() - add completion msdu to queue
|
||||||
*
|
*
|
||||||
* This API returns QDF_STATUS_SUCCESS in case where buffer is added
|
* This API returns QDF_STATUS_SUCCESS in case where buffer is added
|
||||||
* to txmonitor queue successfuly caller will not free the buffer in
|
* to txmonitor queue successfully caller will not free the buffer in
|
||||||
* this case. In other cases this API return QDF_STATUS_E_FAILURE and
|
* this case. In other cases this API return QDF_STATUS_E_FAILURE and
|
||||||
* caller frees the buffer
|
* caller frees the buffer
|
||||||
*
|
*
|
||||||
|
@@ -137,7 +137,7 @@ dp_mon_set_fp_phy_err_filter(struct htt_rx_ring_tlv_filter *tlv_filter,
|
|||||||
* dp_mon_filter_h2t_setup() - Setup the filter for the Target setup
|
* dp_mon_filter_h2t_setup() - Setup the filter for the Target setup
|
||||||
* @soc: DP soc handle
|
* @soc: DP soc handle
|
||||||
* @pdev: DP pdev handle
|
* @pdev: DP pdev handle
|
||||||
* @srng_type: The srng type for which filter wll be set
|
* @srng_type: The srng type for which filter will be set
|
||||||
* @tlv_filter: tlv filter
|
* @tlv_filter: tlv filter
|
||||||
*/
|
*/
|
||||||
void dp_mon_filter_h2t_setup(struct dp_soc *soc, struct dp_pdev *pdev,
|
void dp_mon_filter_h2t_setup(struct dp_soc *soc, struct dp_pdev *pdev,
|
||||||
@@ -610,7 +610,7 @@ dp_mon_filter_reset_mon_srng(struct dp_soc *soc, struct dp_pdev *pdev,
|
|||||||
|
|
||||||
if (dp_mon_ht2_rx_ring_cfg(soc, pdev, mon_srng_type,
|
if (dp_mon_ht2_rx_ring_cfg(soc, pdev, mon_srng_type,
|
||||||
&tlv_filter) != QDF_STATUS_SUCCESS) {
|
&tlv_filter) != QDF_STATUS_SUCCESS) {
|
||||||
dp_mon_filter_err("%pK: Monitor destinatin ring filter setting failed",
|
dp_mon_filter_err("%pK: Monitor destination ring filter setting failed",
|
||||||
soc);
|
soc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -741,7 +741,7 @@ void dp_mon_filter_dealloc(struct dp_mon_pdev *mon_pdev)
|
|||||||
* Check if the monitor filters are already allocated to the mon_pdev.
|
* Check if the monitor filters are already allocated to the mon_pdev.
|
||||||
*/
|
*/
|
||||||
if (!mon_filter) {
|
if (!mon_filter) {
|
||||||
dp_mon_filter_err("Found NULL memmory for the Monitor filter");
|
dp_mon_filter_err("Found NULL memory for the Monitor filter");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -402,7 +402,7 @@ void dp_mon_filter_show_filter(struct dp_mon_pdev *mon_pdev,
|
|||||||
* based on target
|
* based on target
|
||||||
* @soc: DP soc handle
|
* @soc: DP soc handle
|
||||||
* @pdev: DP pdev handle
|
* @pdev: DP pdev handle
|
||||||
* @srng_type: The srng type for which filter wll be set
|
* @srng_type: The srng type for which filter will be set
|
||||||
* @tlv_filter: tlv filter
|
* @tlv_filter: tlv filter
|
||||||
*/
|
*/
|
||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
|
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* The maximum headroom reserved for monitor destination buffer to
|
* The maximum headroom reserved for monitor destination buffer to
|
||||||
* accomodate radiotap header and protocol flow tag
|
* accommodate radiotap header and protocol flow tag
|
||||||
*/
|
*/
|
||||||
#ifdef DP_RX_MON_MEM_FRAG
|
#ifdef DP_RX_MON_MEM_FRAG
|
||||||
/*
|
/*
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
* enum dp_mon_reap_status - monitor status ring ppdu status
|
* enum dp_mon_reap_status - monitor status ring ppdu status
|
||||||
*
|
*
|
||||||
* @DP_MON_STATUS_NO_DMA - DMA not done for status ring entry
|
* @DP_MON_STATUS_NO_DMA - DMA not done for status ring entry
|
||||||
* @DP_MON_STATUS_MATCH - status and dest ppdu id mathes
|
* @DP_MON_STATUS_MATCH - status and dest ppdu id matches
|
||||||
* @DP_MON_STATUS_LAG - status ppdu id is lagging
|
* @DP_MON_STATUS_LAG - status ppdu id is lagging
|
||||||
* @DP_MON_STATUS_LEAD - status ppdu id is leading
|
* @DP_MON_STATUS_LEAD - status ppdu id is leading
|
||||||
* @DP_MON_STATUS_REPLENISH - status ring entry is NULL
|
* @DP_MON_STATUS_REPLENISH - status ring entry is NULL
|
||||||
@@ -129,7 +129,7 @@ dp_rx_mon_handle_status_buf_done(struct dp_pdev *pdev,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_full_mon_attach() - Full monitor mode attach
|
* dp_full_mon_attach() - Full monitor mode attach
|
||||||
* This API initilises full monitor mode resources
|
* This API initializes full monitor mode resources
|
||||||
*
|
*
|
||||||
* @pdev: dp pdev object
|
* @pdev: dp pdev object
|
||||||
*
|
*
|
||||||
@@ -218,7 +218,7 @@ QDF_STATUS dp_rx_mon_deliver(struct dp_soc *soc, uint32_t mac_id,
|
|||||||
qdf_nbuf_t head_msdu, qdf_nbuf_t tail_msdu);
|
qdf_nbuf_t head_msdu, qdf_nbuf_t tail_msdu);
|
||||||
/*
|
/*
|
||||||
* dp_rx_mon_deliver_non_std() - deliver frames for non standard path
|
* dp_rx_mon_deliver_non_std() - deliver frames for non standard path
|
||||||
* @soc: core txrx main contex
|
* @soc: core txrx main context
|
||||||
* @mac_id: MAC ID
|
* @mac_id: MAC ID
|
||||||
*
|
*
|
||||||
* This function delivers the radio tap and dummy MSDU
|
* This function delivers the radio tap and dummy MSDU
|
||||||
@@ -317,7 +317,7 @@ dp_rx_populate_su_evm_details(struct hal_rx_ppdu_info *ppdu_info,
|
|||||||
/**
|
/**
|
||||||
* dp_rx_handle_ppdu_stats() - Allocate and deliver ppdu stats to cdp layer
|
* dp_rx_handle_ppdu_stats() - Allocate and deliver ppdu stats to cdp layer
|
||||||
* @soc: core txrx main context
|
* @soc: core txrx main context
|
||||||
* @pdev: pdev strcuture
|
* @pdev: pdev structure
|
||||||
* @ppdu_info: structure for rx ppdu ring
|
* @ppdu_info: structure for rx ppdu ring
|
||||||
*
|
*
|
||||||
* Return: none
|
* Return: none
|
||||||
@@ -371,7 +371,7 @@ dp_rx_handle_ppdu_stats(struct dp_soc *soc, struct dp_pdev *pdev,
|
|||||||
* dp_rx_handle_ppdu_undecoded_metadata() - Allocate and deliver ppdu info
|
* dp_rx_handle_ppdu_undecoded_metadata() - Allocate and deliver ppdu info
|
||||||
* undecoded metadata to cdp layer
|
* undecoded metadata to cdp layer
|
||||||
* @soc: core txrx main context
|
* @soc: core txrx main context
|
||||||
* @pdev: pdev strcuture
|
* @pdev: pdev structure
|
||||||
* @ppdu_info: structure for rx ppdu ring
|
* @ppdu_info: structure for rx ppdu ring
|
||||||
*
|
*
|
||||||
* Return: none
|
* Return: none
|
||||||
@@ -650,7 +650,7 @@ QDF_STATUS dp_rx_mon_deliver(struct dp_soc *soc,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_rx_mon_deliver_non_std()
|
* dp_rx_mon_deliver_non_std()
|
||||||
* @soc: core txrx main contex
|
* @soc: core txrx main context
|
||||||
* @mac_id: MAC ID
|
* @mac_id: MAC ID
|
||||||
*
|
*
|
||||||
* This function delivers the radio tap and dummy MSDU
|
* This function delivers the radio tap and dummy MSDU
|
||||||
|
Reference in New Issue
Block a user