Lines Matching refs:rx_desc
289 struct dp_rx_desc *rx_desc; in dp_rx_msdus_drop() local
314 rx_desc = soc->arch_ops.dp_rx_desc_cookie_2_va( in dp_rx_msdus_drop()
317 qdf_assert_always(rx_desc); in dp_rx_msdus_drop()
320 *mac_id = rx_desc->pool_id; in dp_rx_msdus_drop()
321 pdev = dp_get_pdev_for_lmac_id(soc, rx_desc->pool_id); in dp_rx_msdus_drop()
324 soc, rx_desc->pool_id); in dp_rx_msdus_drop()
328 if (!dp_rx_desc_check_magic(rx_desc)) { in dp_rx_msdus_drop()
334 rx_desc_pool = &soc->rx_desc_buf[rx_desc->pool_id]; in dp_rx_msdus_drop()
336 dp_rx_nbuf_unmap_pool(soc, rx_desc_pool, rx_desc->nbuf); in dp_rx_msdus_drop()
337 rx_desc->unmapped = 1; in dp_rx_msdus_drop()
340 rx_desc->rx_buf_start = qdf_nbuf_data(rx_desc->nbuf); in dp_rx_msdus_drop()
344 rx_desc->rx_buf_start); in dp_rx_msdus_drop()
348 rx_tlv_hdr = qdf_nbuf_data(rx_desc->nbuf); in dp_rx_msdus_drop()
353 rx_desc->nbuf, in dp_rx_msdus_drop()
356 dp_rx_buffer_pool_nbuf_free(soc, rx_desc->nbuf, *mac_id); in dp_rx_msdus_drop()
359 &pdev->free_list_tail, rx_desc); in dp_rx_msdus_drop()
724 struct dp_rx_desc *rx_desc, in dp_rx_bar_frame_handle() argument
735 nbuf = rx_desc->nbuf; in dp_rx_bar_frame_handle()
736 rx_desc_pool = &soc->rx_desc_buf[rx_desc->pool_id]; in dp_rx_bar_frame_handle()
739 rx_desc->unmapped = 1; in dp_rx_bar_frame_handle()
744 pdev = dp_get_pdev_for_lmac_id(soc, rx_desc->pool_id); in dp_rx_bar_frame_handle()
748 soc, rx_desc->pool_id); in dp_rx_bar_frame_handle()
758 dp_rx_buffer_pool_nbuf_free(soc, rx_desc->nbuf, in dp_rx_bar_frame_handle()
759 rx_desc->pool_id); in dp_rx_bar_frame_handle()
762 rx_desc); in dp_rx_bar_frame_handle()
1044 struct dp_rx_desc *rx_desc; in dp_rx_reo_err_entry_process() local
1077 rx_desc = soc->arch_ops.dp_rx_desc_cookie_2_va( in dp_rx_reo_err_entry_process()
1081 if (dp_assert_always_internal_stat(rx_desc, soc, in dp_rx_reo_err_entry_process()
1085 nbuf = rx_desc->nbuf; in dp_rx_reo_err_entry_process()
1094 if (qdf_unlikely(!rx_desc->in_use) || in dp_rx_reo_err_entry_process()
1099 ring_desc, rx_desc); in dp_rx_reo_err_entry_process()
1106 ret = dp_rx_desc_paddr_sanity_check(rx_desc, in dp_rx_reo_err_entry_process()
1110 rx_desc->in_err_state = 1; in dp_rx_reo_err_entry_process()
1115 rx_desc_pool_id = rx_desc->pool_id; in dp_rx_reo_err_entry_process()
1122 rx_desc->unmapped = 1; in dp_rx_reo_err_entry_process()
1128 &pdev->free_list_tail, rx_desc); in dp_rx_reo_err_entry_process()
1849 struct dp_rx_desc *rx_desc; in dp_rx_err_handle_msdu_buf() local
1856 rx_desc = dp_rx_cookie_2_va_rxdma_buf(soc, hbi.sw_cookie); in dp_rx_err_handle_msdu_buf()
1859 if (!rx_desc) { in dp_rx_err_handle_msdu_buf()
1864 if (!rx_desc->nbuf) in dp_rx_err_handle_msdu_buf()
1871 if (hbi.paddr != qdf_nbuf_get_frag_paddr(rx_desc->nbuf, 0)) { in dp_rx_err_handle_msdu_buf()
1873 rx_desc->in_err_state = 1; in dp_rx_err_handle_msdu_buf()
1877 rx_desc_pool = &soc->rx_desc_buf[rx_desc->pool_id]; in dp_rx_err_handle_msdu_buf()
1880 qdf_assert_always(!rx_desc->unmapped); in dp_rx_err_handle_msdu_buf()
1881 dp_rx_nbuf_unmap_pool(soc, rx_desc_pool, rx_desc->nbuf); in dp_rx_err_handle_msdu_buf()
1882 rx_desc->unmapped = 1; in dp_rx_err_handle_msdu_buf()
1884 dp_rx_buffer_pool_nbuf_free(soc, rx_desc->nbuf, in dp_rx_err_handle_msdu_buf()
1885 rx_desc->pool_id); in dp_rx_err_handle_msdu_buf()
1887 pdev = dp_get_pdev_for_lmac_id(soc, rx_desc->pool_id); in dp_rx_err_handle_msdu_buf()
1888 lmac_id = rx_desc->pool_id; in dp_rx_err_handle_msdu_buf()
1891 rx_desc); in dp_rx_err_handle_msdu_buf()
2050 struct dp_rx_desc *rx_desc = NULL; in dp_rx_err_process() local
2186 rx_desc = soc->arch_ops.dp_rx_desc_cookie_2_va( in dp_rx_err_process()
2189 qdf_assert_always(rx_desc); in dp_rx_err_process()
2191 mac_id = rx_desc->pool_id; in dp_rx_err_process()
2200 dp_rx_bar_frame_handle(soc, ring_desc, rx_desc, in dp_rx_err_process()
2230 if (qdf_unlikely(!rx_desc->in_use)) { in dp_rx_err_process()
2234 ring_desc, rx_desc); in dp_rx_err_process()
2240 ret = dp_rx_desc_paddr_sanity_check(rx_desc, in dp_rx_err_process()
2244 rx_desc->in_err_state = 1; in dp_rx_err_process()
2250 rx_desc, &mac_id, quota); in dp_rx_err_process()
2434 struct dp_rx_desc *rx_desc) in dp_rx_wbm_desc_nbuf_sanity_check() argument
2440 if (dp_rx_desc_paddr_sanity_check(rx_desc, (&hbi)->paddr)) in dp_rx_wbm_desc_nbuf_sanity_check()
2452 struct dp_rx_desc *rx_desc) in dp_rx_wbm_desc_nbuf_sanity_check() argument
2922 void *rx_desc) in dup_desc_dbg() argument
2929 rx_desc); in dup_desc_dbg()
3011 struct dp_rx_desc *rx_desc = in dp_rx_err_mpdu_pop() local
3016 qdf_assert_always(rx_desc); in dp_rx_err_mpdu_pop()
3017 msdu = rx_desc->nbuf; in dp_rx_err_mpdu_pop()
3031 if (qdf_unlikely(!rx_desc->in_use)) { in dp_rx_err_mpdu_pop()
3034 rx_desc); in dp_rx_err_mpdu_pop()
3038 if (rx_desc->unmapped == 0) { in dp_rx_err_mpdu_pop()
3040 &soc->rx_desc_buf[rx_desc->pool_id]; in dp_rx_err_mpdu_pop()
3045 rx_desc->unmapped = 1; in dp_rx_err_mpdu_pop()
3053 rx_desc->pool_id); in dp_rx_err_mpdu_pop()
3056 tail, rx_desc); in dp_rx_err_mpdu_pop()
3172 struct dp_rx_desc *rx_desc; in dp_wbm_int_err_mpdu_pop() local
3201 rx_desc = soc->arch_ops.dp_rx_desc_cookie_2_va( in dp_wbm_int_err_mpdu_pop()
3204 qdf_assert_always(rx_desc); in dp_wbm_int_err_mpdu_pop()
3206 &soc->rx_desc_buf[rx_desc->pool_id]; in dp_wbm_int_err_mpdu_pop()
3207 msdu = rx_desc->nbuf; in dp_wbm_int_err_mpdu_pop()
3214 if (qdf_unlikely(!rx_desc->in_use) || in dp_wbm_int_err_mpdu_pop()
3222 rx_desc->unmapped = 1; in dp_wbm_int_err_mpdu_pop()
3226 rx_desc->pool_id); in dp_wbm_int_err_mpdu_pop()
3227 rx_bufs_used[rx_desc->pool_id]++; in dp_wbm_int_err_mpdu_pop()
3229 tail, rx_desc); in dp_wbm_int_err_mpdu_pop()
3254 struct dp_rx_desc *rx_desc = NULL; in dp_handle_wbm_internal_error() local
3275 rx_desc = soc->arch_ops.dp_rx_desc_cookie_2_va( in dp_handle_wbm_internal_error()
3279 if (rx_desc && rx_desc->nbuf) { in dp_handle_wbm_internal_error()
3280 rx_desc_pool = &soc->rx_desc_buf[rx_desc->pool_id]; in dp_handle_wbm_internal_error()
3283 rx_desc->nbuf); in dp_handle_wbm_internal_error()
3284 rx_desc->unmapped = 1; in dp_handle_wbm_internal_error()
3287 dp_rx_buffer_pool_nbuf_free(soc, rx_desc->nbuf, in dp_handle_wbm_internal_error()
3288 rx_desc->pool_id); in dp_handle_wbm_internal_error()
3291 rx_desc); in dp_handle_wbm_internal_error()
3293 rx_bufs_reaped[rx_desc->pool_id]++; in dp_handle_wbm_internal_error()