Lines Matching refs:rxcb

1766 	struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(first);  in ath11k_dp_rx_msdu_coalesce()  local
1786 rxcb->is_first_msdu = ath11k_dp_rx_h_msdu_end_first_msdu(ab, ldesc); in ath11k_dp_rx_msdu_coalesce()
1787 rxcb->is_last_msdu = ath11k_dp_rx_h_msdu_end_last_msdu(ab, ldesc); in ath11k_dp_rx_msdu_coalesce()
1799 ath11k_dp_rx_desc_end_tlv_copy(ab, rxcb->rx_desc, ldesc); in ath11k_dp_rx_msdu_coalesce()
1806 rxcb = ATH11K_SKB_RXCB(skb); in ath11k_dp_rx_msdu_coalesce()
1807 if (!rxcb->is_continuation) { in ath11k_dp_rx_msdu_coalesce()
1818 rxcb = ATH11K_SKB_RXCB(skb); in ath11k_dp_rx_msdu_coalesce()
1819 if (rxcb->is_continuation) in ath11k_dp_rx_msdu_coalesce()
1837 if (!rxcb->is_continuation) in ath11k_dp_rx_msdu_coalesce()
1848 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(first); in ath11k_dp_rx_get_msdu_last_buf() local
1850 if (!rxcb->is_continuation) in ath11k_dp_rx_get_msdu_last_buf()
1854 rxcb = ATH11K_SKB_RXCB(skb); in ath11k_dp_rx_get_msdu_last_buf()
1855 if (!rxcb->is_continuation) in ath11k_dp_rx_get_msdu_last_buf()
1864 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_csum_offload() local
1868 rx_attention = ath11k_dp_rx_get_attention(ar->ab, rxcb->rx_desc); in ath11k_dp_rx_h_csum_offload()
1962 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_undecap_nwifi() local
1978 if (rxcb->is_first_msdu) { in ath11k_dp_rx_h_undecap_nwifi()
1999 qos_ctl = rxcb->tid; in ath11k_dp_rx_h_undecap_nwifi()
2001 if (ath11k_dp_rx_h_msdu_start_mesh_ctl_present(ar->ab, rxcb->rx_desc)) in ath11k_dp_rx_h_undecap_nwifi()
2017 if (!rxcb->is_first_msdu) { in ath11k_dp_rx_h_undecap_nwifi()
2040 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_undecap_raw() local
2045 if (!rxcb->is_first_msdu || in ath11k_dp_rx_h_undecap_raw()
2046 !(rxcb->is_first_msdu && rxcb->is_last_msdu)) { in ath11k_dp_rx_h_undecap_raw()
2098 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_find_rfc1042() local
2104 is_amsdu = !(rxcb->is_first_msdu && rxcb->is_last_msdu); in ath11k_dp_rx_h_find_rfc1042()
2105 hdr = (struct ieee80211_hdr *)ath11k_dp_rx_h_80211_hdr(ar->ab, rxcb->rx_desc); in ath11k_dp_rx_h_find_rfc1042()
2108 if (rxcb->is_first_msdu) { in ath11k_dp_rx_h_find_rfc1042()
2218 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_find_peer() local
2219 struct hal_rx_desc *rx_desc = rxcb->rx_desc; in ath11k_dp_rx_h_find_peer()
2224 if (rxcb->peer_id) in ath11k_dp_rx_h_find_peer()
2225 peer = ath11k_peer_find_by_id(ab, rxcb->peer_id); in ath11k_dp_rx_h_find_peer()
2246 struct ath11k_skb_rxcb *rxcb; in ath11k_dp_rx_h_mpdu() local
2253 rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_mpdu()
2255 rxcb->is_mcbc = fill_crypto_hdr; in ath11k_dp_rx_h_mpdu()
2257 if (rxcb->is_mcbc) { in ath11k_dp_rx_h_mpdu()
2258 rxcb->peer_id = ath11k_dp_rx_h_mpdu_start_peer_id(ar->ab, rx_desc); in ath11k_dp_rx_h_mpdu()
2259 rxcb->seq_no = ath11k_dp_rx_h_mpdu_start_seq_no(ar->ab, rx_desc); in ath11k_dp_rx_h_mpdu()
2265 if (rxcb->is_mcbc) in ath11k_dp_rx_h_mpdu()
2446 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_deliver_msdu() local
2448 bool is_mcbc = rxcb->is_mcbc; in ath11k_dp_rx_deliver_msdu()
2449 bool is_eapol = rxcb->is_eapol; in ath11k_dp_rx_deliver_msdu()
2460 decap = ath11k_dp_rx_h_msdu_start_decap_type(ar->ab, rxcb->rx_desc); in ath11k_dp_rx_deliver_msdu()
2473 rxcb->tid, in ath11k_dp_rx_deliver_msdu()
2475 rxcb->seq_no, in ath11k_dp_rx_deliver_msdu()
2520 struct ath11k_skb_rxcb *rxcb; in ath11k_dp_rx_process_msdu() local
2551 rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_process_msdu()
2552 rxcb->rx_desc = rx_desc; in ath11k_dp_rx_process_msdu()
2556 if (rxcb->is_frag) { in ath11k_dp_rx_process_msdu()
2558 } else if (!rxcb->is_continuation) { in ath11k_dp_rx_process_msdu()
2637 struct ath11k_skb_rxcb *rxcb; in ath11k_dp_process_rx() local
2685 rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_process_rx()
2686 dma_unmap_single(ab->dev, rxcb->paddr, in ath11k_dp_process_rx()
2701 rxcb->is_first_msdu = !!(desc->rx_msdu_info.info0 & in ath11k_dp_process_rx()
2703 rxcb->is_last_msdu = !!(desc->rx_msdu_info.info0 & in ath11k_dp_process_rx()
2705 rxcb->is_continuation = !!(desc->rx_msdu_info.info0 & in ath11k_dp_process_rx()
2707 rxcb->peer_id = FIELD_GET(RX_MPDU_DESC_META_DATA_PEER_ID, in ath11k_dp_process_rx()
2709 rxcb->seq_no = FIELD_GET(RX_MPDU_DESC_INFO0_SEQ_NUM, in ath11k_dp_process_rx()
2711 rxcb->tid = FIELD_GET(HAL_REO_DEST_RING_INFO0_RX_QUEUE_NUM, in ath11k_dp_process_rx()
2714 rxcb->mac_id = mac_id; in ath11k_dp_process_rx()
2717 if (rxcb->is_continuation) { in ath11k_dp_process_rx()
3000 struct ath11k_skb_rxcb *rxcb; in ath11k_dp_rx_reap_mon_status_ring() local
3044 rxcb = ATH11K_SKB_RXCB(skb); in ath11k_dp_rx_reap_mon_status_ring()
3046 dma_sync_single_for_cpu(ab->dev, rxcb->paddr, in ath11k_dp_rx_reap_mon_status_ring()
3076 dma_unmap_single(ab->dev, rxcb->paddr, in ath11k_dp_rx_reap_mon_status_ring()
3095 rxcb = ATH11K_SKB_RXCB(skb); in ath11k_dp_rx_reap_mon_status_ring()
3100 ath11k_hal_rx_buf_addr_info_set(rx_mon_status_desc, rxcb->paddr, in ath11k_dp_rx_reap_mon_status_ring()
3693 struct ath11k_skb_rxcb *rxcb; in ath11k_dp_process_rx_err_buf() local
3711 rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_process_rx_err_buf()
3712 dma_unmap_single(ar->ab->dev, rxcb->paddr, in ath11k_dp_process_rx_err_buf()
3875 struct ath11k_skb_rxcb *rxcb; in ath11k_dp_rx_null_q_desc_sg_drop() local
3882 rxcb = ATH11K_SKB_RXCB(skb); in ath11k_dp_rx_null_q_desc_sg_drop()
3883 if (rxcb->err_rel_src == HAL_WBM_REL_SRC_MODULE_REO && in ath11k_dp_rx_null_q_desc_sg_drop()
3884 rxcb->err_code == HAL_REO_DEST_RING_ERROR_CODE_DESC_ADDR_ZERO) { in ath11k_dp_rx_null_q_desc_sg_drop()
3902 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_null_q_desc() local
3907 if (!rxcb->is_frag && ((msdu_len + hal_rx_desc_sz) > DP_RX_BUFFER_SIZE)) { in ath11k_dp_rx_h_null_q_desc()
3931 rxcb->is_first_msdu = ath11k_dp_rx_h_msdu_end_first_msdu(ar->ab, desc); in ath11k_dp_rx_h_null_q_desc()
3932 rxcb->is_last_msdu = ath11k_dp_rx_h_msdu_end_last_msdu(ar->ab, desc); in ath11k_dp_rx_h_null_q_desc()
3934 if (rxcb->is_frag) { in ath11k_dp_rx_h_null_q_desc()
3949 rxcb->tid = ath11k_dp_rx_h_mpdu_start_tid(ar->ab, desc); in ath11k_dp_rx_h_null_q_desc()
3962 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_reo_err() local
3965 ar->ab->soc_stats.reo_error[rxcb->err_code]++; in ath11k_dp_rx_h_reo_err()
3967 switch (rxcb->err_code) { in ath11k_dp_rx_h_reo_err()
3995 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_tkip_mic_err() local
3998 rxcb->is_first_msdu = ath11k_dp_rx_h_msdu_end_first_msdu(ar->ab, desc); in ath11k_dp_rx_h_tkip_mic_err()
3999 rxcb->is_last_msdu = ath11k_dp_rx_h_msdu_end_last_msdu(ar->ab, desc); in ath11k_dp_rx_h_tkip_mic_err()
4018 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_rxdma_err() local
4021 ar->ab->soc_stats.rxdma_error[rxcb->err_code]++; in ath11k_dp_rx_h_rxdma_err()
4023 switch (rxcb->err_code) { in ath11k_dp_rx_h_rxdma_err()
4043 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_wbm_err() local
4047 switch (rxcb->err_rel_src) { in ath11k_dp_rx_wbm_err()
4077 struct ath11k_skb_rxcb *rxcb; in ath11k_dp_rx_process_wbm_err() local
4124 rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_process_wbm_err()
4125 dma_unmap_single(ab->dev, rxcb->paddr, in ath11k_dp_rx_process_wbm_err()
4139 rxcb->err_rel_src = err_info.err_rel_src; in ath11k_dp_rx_process_wbm_err()
4140 rxcb->err_code = err_info.err_code; in ath11k_dp_rx_process_wbm_err()
4141 rxcb->rx_desc = (struct hal_rx_desc *)msdu->data; in ath11k_dp_rx_process_wbm_err()
4195 struct ath11k_skb_rxcb *rxcb; in ath11k_dp_process_rxdma_err() local
4250 rxcb = ATH11K_SKB_RXCB(skb); in ath11k_dp_process_rxdma_err()
4251 dma_unmap_single(ab->dev, rxcb->paddr, in ath11k_dp_process_rxdma_err()
4650 struct ath11k_skb_rxcb *rxcb; in ath11k_dp_rx_mon_mpdu_pop() local
4722 rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_mon_mpdu_pop()
4723 if (!rxcb->unmapped) { in ath11k_dp_rx_mon_mpdu_pop()
4724 dma_unmap_single(ar->ab->dev, rxcb->paddr, in ath11k_dp_rx_mon_mpdu_pop()
4728 rxcb->unmapped = 1; in ath11k_dp_rx_mon_mpdu_pop()
5289 struct ath11k_skb_rxcb *rxcb; in ath11k_dp_rx_full_mon_mpdu_pop() local
5356 rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_full_mon_mpdu_pop()
5357 if (!rxcb->unmapped) { in ath11k_dp_rx_full_mon_mpdu_pop()
5358 dma_unmap_single(ar->ab->dev, rxcb->paddr, in ath11k_dp_rx_full_mon_mpdu_pop()
5362 rxcb->unmapped = 1; in ath11k_dp_rx_full_mon_mpdu_pop()