Lines Matching refs:nbuf
63 qdf_nbuf_t nbuf) in dp_rx_mcast_echo_check() argument
81 data = qdf_nbuf_data(nbuf); in dp_rx_mcast_echo_check()
336 dp_rx_nbuf_unmap_pool(soc, rx_desc_pool, rx_desc->nbuf); in dp_rx_msdus_drop()
340 rx_desc->rx_buf_start = qdf_nbuf_data(rx_desc->nbuf); 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()
475 qdf_nbuf_t nbuf, uint32_t frame_mask, in dp_rx_deliver_oor_frame() argument
485 if (qdf_unlikely(qdf_nbuf_is_frag(nbuf))) { in dp_rx_deliver_oor_frame()
488 msdu_len = QDF_NBUF_CB_RX_PKT_LEN(nbuf); in dp_rx_deliver_oor_frame()
490 qdf_nbuf_set_pktlen(nbuf, msdu_len + skip_len); in dp_rx_deliver_oor_frame()
493 QDF_NBUF_CB_RX_NUM_ELEMENTS_IN_LIST(nbuf) = 1; in dp_rx_deliver_oor_frame()
494 dp_rx_set_hdr_pad(nbuf, l2_hdr_offset); in dp_rx_deliver_oor_frame()
495 qdf_nbuf_pull_head(nbuf, skip_len); in dp_rx_deliver_oor_frame()
496 qdf_nbuf_set_exc_frame(nbuf, 1); in dp_rx_deliver_oor_frame()
500 dp_rx_deliver_to_stack(soc, txrx_peer->vdev, txrx_peer, nbuf, NULL); in dp_rx_deliver_oor_frame()
508 qdf_nbuf_t nbuf, uint32_t frame_mask, in dp_rx_deliver_oor_frame() argument
511 return dp_rx_deliver_special_frame(soc, txrx_peer, nbuf, frame_mask, in dp_rx_deliver_oor_frame()
531 qdf_nbuf_t nbuf, in dp_rx_oor_handle() argument
548 if (dp_rx_deliver_oor_frame(soc, txrx_peer, nbuf, frame_mask, in dp_rx_oor_handle()
560 dp_rx_nbuf_free(nbuf); in dp_rx_oor_handle()
576 qdf_nbuf_t nbuf) in dp_rx_err_nbuf_pn_check() argument
580 if (!hal_rx_encryption_info_valid(soc->hal_soc, qdf_nbuf_data(nbuf))) in dp_rx_err_nbuf_pn_check()
584 hal_rx_tlv_get_pn_num(soc->hal_soc, qdf_nbuf_data(nbuf), curr_pn); in dp_rx_err_nbuf_pn_check()
596 qdf_nbuf_t nbuf) in dp_rx_err_handle_bar() argument
605 qdf_nbuf_t nbuf) in dp_rx_err_handle_bar() argument
620 rx_tlv_hdr = qdf_nbuf_data(nbuf); in dp_rx_err_handle_bar()
666 _dp_rx_bar_frame_handle(struct dp_soc *soc, qdf_nbuf_t nbuf, in _dp_rx_bar_frame_handle() argument
693 dp_rx_err_handle_bar(soc, peer, nbuf); in _dp_rx_bar_frame_handle()
729 qdf_nbuf_t nbuf; in dp_rx_bar_frame_handle() local
735 nbuf = rx_desc->nbuf; in dp_rx_bar_frame_handle()
738 dp_rx_nbuf_unmap_pool(soc, rx_desc_pool, nbuf); in dp_rx_bar_frame_handle()
741 rx_tlv_hdr = qdf_nbuf_data(nbuf); in dp_rx_bar_frame_handle()
752 _dp_rx_bar_frame_handle(soc, nbuf, mpdu_desc_info, tid, err_status, in dp_rx_bar_frame_handle()
754 dp_rx_err_send_pktlog(soc, pdev, mpdu_desc_info, nbuf, in dp_rx_bar_frame_handle()
758 dp_rx_buffer_pool_nbuf_free(soc, rx_desc->nbuf, in dp_rx_bar_frame_handle()
767 void dp_2k_jump_handle(struct dp_soc *soc, qdf_nbuf_t nbuf, uint8_t *rx_tlv_hdr, in dp_2k_jump_handle() argument
823 if (dp_rx_deliver_special_frame(soc, txrx_peer, nbuf, frame_mask, in dp_2k_jump_handle()
834 dp_rx_nbuf_free(nbuf); in dp_2k_jump_handle()
843 qdf_nbuf_t nbuf) in dp_rx_null_q_handle_invalid_peer_id_exception() argument
868 1, qdf_nbuf_len(nbuf)); in dp_rx_null_q_handle_invalid_peer_id_exception()
869 dp_rx_nbuf_free(nbuf); in dp_rx_null_q_handle_invalid_peer_id_exception()
881 qdf_nbuf_t nbuf) in dp_rx_null_q_handle_invalid_peer_id_exception() argument
907 qdf_nbuf_t nbuf, in dp_rx_deliver_to_osif_stack() argument
912 dp_rx_eapol_deliver_to_stack(soc, vdev, txrx_peer, nbuf, NULL); in dp_rx_deliver_to_osif_stack()
914 dp_rx_deliver_to_stack(soc, vdev, txrx_peer, nbuf, NULL); in dp_rx_deliver_to_osif_stack()
921 qdf_nbuf_t nbuf, in dp_rx_deliver_to_osif_stack() argument
925 dp_rx_deliver_to_stack(soc, vdev, txrx_peer, nbuf, NULL); in dp_rx_deliver_to_osif_stack()
988 dp_rx_err_populate_mpdu_desc_info(struct dp_soc *soc, qdf_nbuf_t nbuf, in dp_rx_err_populate_mpdu_desc_info() argument
1001 qdf_nbuf_data(nbuf), in dp_rx_err_populate_mpdu_desc_info()
1007 dp_rx_err_populate_mpdu_desc_info(struct dp_soc *soc, qdf_nbuf_t nbuf, in dp_rx_err_populate_mpdu_desc_info() argument
1011 hal_rx_tlv_populate_mpdu_desc_info(soc->hal_soc, qdf_nbuf_data(nbuf), in dp_rx_err_populate_mpdu_desc_info()
1046 qdf_nbuf_t nbuf; in dp_rx_reo_err_entry_process() local
1085 nbuf = rx_desc->nbuf; in dp_rx_reo_err_entry_process()
1095 qdf_unlikely(!nbuf)) { in dp_rx_reo_err_entry_process()
1121 dp_rx_nbuf_unmap_pool(soc, rx_desc_pool, nbuf); in dp_rx_reo_err_entry_process()
1125 QDF_NBUF_CB_RX_PKT_LEN(nbuf) = msdu_list.msdu_info[i].msdu_len; in dp_rx_reo_err_entry_process()
1130 DP_RX_LIST_APPEND(head_nbuf, tail_nbuf, nbuf); in dp_rx_reo_err_entry_process()
1134 qdf_nbuf_set_rx_chfrag_cont(nbuf, 1); in dp_rx_reo_err_entry_process()
1149 dp_rx_err_populate_mpdu_desc_info(soc, nbuf, in dp_rx_reo_err_entry_process()
1179 status = dp_rx_err_nbuf_pn_check(soc, ring_desc, nbuf); in dp_rx_reo_err_entry_process()
1190 _dp_rx_bar_frame_handle(soc, nbuf, in dp_rx_reo_err_entry_process()
1209 nbuf = dp_rx_sg_create(soc, head_nbuf); in dp_rx_reo_err_entry_process()
1210 qdf_nbuf_set_is_frag(nbuf, 1); in dp_rx_reo_err_entry_process()
1223 dp_rx_nbuf_set_link_id_from_tlv(soc, qdf_nbuf_data(nbuf), nbuf); in dp_rx_reo_err_entry_process()
1228 nbuf, in dp_rx_reo_err_entry_process()
1233 dp_rx_set_nbuf_band(nbuf, txrx_peer, link_id); in dp_rx_reo_err_entry_process()
1249 dp_2k_jump_handle(soc, nbuf, rx_tlv_hdr_last, in dp_rx_reo_err_entry_process()
1254 dp_rx_oor_handle(soc, nbuf, peer_id, rx_tlv_hdr_last); in dp_rx_reo_err_entry_process()
1257 soc->arch_ops.dp_rx_null_q_desc_handle(soc, nbuf, in dp_rx_reo_err_entry_process()
1266 dp_rx_nbuf_free(nbuf); in dp_rx_reo_err_entry_process()
1273 nbuf = head_nbuf; in dp_rx_reo_err_entry_process()
1274 while (nbuf) { in dp_rx_reo_err_entry_process()
1275 next_nbuf = qdf_nbuf_next(nbuf); in dp_rx_reo_err_entry_process()
1276 dp_rx_nbuf_free(nbuf); in dp_rx_reo_err_entry_process()
1277 nbuf = next_nbuf; in dp_rx_reo_err_entry_process()
1330 dp_rx_process_rxdma_err(struct dp_soc *soc, qdf_nbuf_t nbuf, in dp_rx_process_rxdma_err() argument
1360 dp_rx_nbuf_free(nbuf); in dp_rx_process_rxdma_err()
1364 qdf_nbuf_set_pktlen(nbuf, pkt_len); in dp_rx_process_rxdma_err()
1366 qdf_nbuf_set_next(nbuf, NULL); in dp_rx_process_rxdma_err()
1368 qdf_nbuf_set_rx_chfrag_start(nbuf, 1); in dp_rx_process_rxdma_err()
1369 qdf_nbuf_set_rx_chfrag_end(nbuf, 1); in dp_rx_process_rxdma_err()
1374 qdf_nbuf_len(nbuf)); in dp_rx_process_rxdma_err()
1376 dp_rx_process_invalid_peer_wrapper(soc, nbuf, true, mac_id); in dp_rx_process_rxdma_err()
1385 dp_rx_nbuf_free(nbuf); in dp_rx_process_rxdma_err()
1394 dp_rx_skip_tlvs(soc, nbuf, l2_hdr_offset); in dp_rx_process_rxdma_err()
1399 pkt_type = qdf_nbuf_data(nbuf) + (2 * QDF_MAC_ADDR_SIZE); in dp_rx_process_rxdma_err()
1419 if (qdf_nbuf_is_ipv4_wapi_pkt(nbuf)) { in dp_rx_process_rxdma_err()
1428 (qdf_nbuf_is_ipv4_eapol_pkt(nbuf))) in dp_rx_process_rxdma_err()
1434 dp_rx_nbuf_free(nbuf); in dp_rx_process_rxdma_err()
1440 if (dp_rx_filter_mesh_packets(vdev, nbuf, rx_tlv_hdr) in dp_rx_process_rxdma_err()
1445 dp_rx_nbuf_free(nbuf); in dp_rx_process_rxdma_err()
1448 dp_rx_fill_mesh_stats(vdev, nbuf, rx_tlv_hdr, txrx_peer); in dp_rx_process_rxdma_err()
1455 eh = (qdf_ether_header_t *)qdf_nbuf_data(nbuf); in dp_rx_process_rxdma_err()
1459 qdf_nbuf_len(nbuf), link_id); in dp_rx_process_rxdma_err()
1462 qdf_nbuf_len(nbuf), in dp_rx_process_rxdma_err()
1467 qdf_nbuf_len(nbuf), in dp_rx_process_rxdma_err()
1472 dp_rx_deliver_raw(vdev, nbuf, txrx_peer, link_id); in dp_rx_process_rxdma_err()
1475 dp_rx_update_protocol_tag(soc, vdev, nbuf, rx_tlv_hdr, in dp_rx_process_rxdma_err()
1478 dp_rx_update_flow_tag(soc, vdev, nbuf, rx_tlv_hdr, true); in dp_rx_process_rxdma_err()
1480 qdf_nbuf_set_exc_frame(nbuf, 1); in dp_rx_process_rxdma_err()
1481 dp_rx_deliver_to_osif_stack(soc, vdev, txrx_peer, nbuf, NULL, in dp_rx_process_rxdma_err()
1482 qdf_nbuf_is_ipv4_eapol_pkt(nbuf)); in dp_rx_process_rxdma_err()
1488 void dp_rx_process_mic_error(struct dp_soc *soc, qdf_nbuf_t nbuf, in dp_rx_process_mic_error() argument
1522 is_raw = HAL_IS_DECAP_FORMAT_RAW(soc->hal_soc, qdf_nbuf_data(nbuf)); in dp_rx_process_mic_error()
1525 qdf_nbuf_data(nbuf)); in dp_rx_process_mic_error()
1529 qdf_nbuf_data(nbuf)); in dp_rx_process_mic_error()
1531 qdf_nbuf_data(nbuf)); in dp_rx_process_mic_error()
1534 tid, rx_seq, nbuf); in dp_rx_process_mic_error()
1541 if (hal_rx_mpdu_get_addr1(soc->hal_soc, qdf_nbuf_data(nbuf), in dp_rx_process_mic_error()
1547 if (hal_rx_mpdu_get_addr2(soc->hal_soc, qdf_nbuf_data(nbuf), in dp_rx_process_mic_error()
1567 dp_rx_nbuf_free(nbuf); in dp_rx_process_mic_error()
1592 qdf_nbuf_t nbuf, in dp_rx_igmp_handler() argument
1597 nbuf, link_id)) in dp_rx_igmp_handler()
1606 qdf_nbuf_t nbuf, in dp_rx_igmp_handler() argument
1631 dp_rx_err_route_hdl(struct dp_soc *soc, qdf_nbuf_t nbuf, in dp_rx_err_route_hdl() argument
1646 nbuf, in dp_rx_err_route_hdl()
1649 qdf_nbuf_set_rx_chfrag_end(nbuf, in dp_rx_err_route_hdl()
1652 qdf_nbuf_set_da_mcbc(nbuf, hal_rx_msdu_end_da_is_mcbc_get(soc->hal_soc, in dp_rx_err_route_hdl()
1654 qdf_nbuf_set_da_valid(nbuf, in dp_rx_err_route_hdl()
1657 qdf_nbuf_set_sa_valid(nbuf, in dp_rx_err_route_hdl()
1665 if (qdf_likely(!qdf_nbuf_is_frag(nbuf))) { in dp_rx_err_route_hdl()
1670 qdf_nbuf_set_pktlen(nbuf, qdf_min(pkt_len, (uint32_t)buf_size)); in dp_rx_err_route_hdl()
1698 if (qdf_nbuf_is_frag(nbuf)) in dp_rx_err_route_hdl()
1699 qdf_nbuf_pull_head(nbuf, soc->rx_pkt_tlv_size); in dp_rx_err_route_hdl()
1701 qdf_nbuf_pull_head(nbuf, (msdu_metadata.l3_hdr_pad + in dp_rx_err_route_hdl()
1708 QDF_NBUF_CB_RX_PEER_ID(nbuf) = txrx_peer->peer_id; in dp_rx_err_route_hdl()
1709 if (dp_rx_igmp_handler(soc, vdev, txrx_peer, nbuf, link_id)) in dp_rx_err_route_hdl()
1712 dp_vdev_peer_stats_update_protocol_cnt(vdev, nbuf, NULL, 0, 1); in dp_rx_err_route_hdl()
1718 is_eapol = qdf_nbuf_is_ipv4_eapol_pkt(nbuf); in dp_rx_err_route_hdl()
1719 if (is_eapol || qdf_nbuf_is_ipv4_wapi_pkt(nbuf)) { in dp_rx_err_route_hdl()
1721 (qdf_ether_header_t *)qdf_nbuf_data(nbuf); in dp_rx_err_route_hdl()
1724 qdf_nbuf_len(nbuf)); in dp_rx_err_route_hdl()
1730 dp_rx_update_protocol_tag(soc, vdev, nbuf, rx_tlv_hdr, in dp_rx_err_route_hdl()
1734 dp_rx_update_flow_tag(soc, vdev, nbuf, rx_tlv_hdr, in dp_rx_err_route_hdl()
1737 qdf_nbuf_len(nbuf), in dp_rx_err_route_hdl()
1741 qdf_nbuf_len(nbuf), in dp_rx_err_route_hdl()
1743 qdf_nbuf_set_exc_frame(nbuf, 1); in dp_rx_err_route_hdl()
1744 qdf_nbuf_set_next(nbuf, NULL); in dp_rx_err_route_hdl()
1746 dp_rx_deliver_to_osif_stack(soc, vdev, txrx_peer, nbuf, in dp_rx_err_route_hdl()
1760 dp_rx_nbuf_free(nbuf); in dp_rx_err_route_hdl()
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()
1881 dp_rx_nbuf_unmap_pool(soc, rx_desc_pool, rx_desc->nbuf); 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()
2475 qdf_nbuf_t nbuf) in dp_rx_err_tlv_invalidate() argument
2482 qdf_nbuf_dma_inv_range_no_dsb((void *)nbuf->data, in dp_rx_err_tlv_invalidate()
2483 (void *)(nbuf->data + in dp_rx_err_tlv_invalidate()
2489 qdf_nbuf_t nbuf) in dp_rx_err_tlv_invalidate() argument
2498 qdf_nbuf_t nbuf) in dp_rx_get_peer_id() argument
2509 qdf_nbuf_t nbuf, in dp_rx_get_wbm_err_info_from_nbuf() argument
2520 qdf_nbuf_t nbuf, in dp_rx_set_wbm_err_info_in_nbuf() argument
2524 qdf_nbuf_data(nbuf), in dp_rx_set_wbm_err_info_in_nbuf()
2532 qdf_nbuf_t nbuf) in dp_rx_get_peer_id() argument
2534 uint32_t peer_mdata = QDF_NBUF_CB_RX_MPDU_DESC_INFO_2(nbuf); in dp_rx_get_peer_id()
2541 qdf_nbuf_t nbuf, in dp_rx_get_wbm_err_info_from_nbuf() argument
2545 wbm_err->info = QDF_NBUF_CB_RX_ERROR_CODE_INFO(nbuf); in dp_rx_get_wbm_err_info_from_nbuf()
2550 qdf_nbuf_t nbuf, in dp_rx_set_wbm_err_info_in_nbuf() argument
2553 QDF_NBUF_CB_RX_ERROR_CODE_INFO(nbuf) = wbm_err.info; in dp_rx_set_wbm_err_info_in_nbuf()
2567 qdf_nbuf_t nbuf, next; in dp_rx_wbm_err_process() local
2585 nbuf = nbuf_head; in dp_rx_wbm_err_process()
2586 while (nbuf) { in dp_rx_wbm_err_process()
2593 rx_tlv_hdr = qdf_nbuf_data(nbuf); in dp_rx_wbm_err_process()
2599 dp_rx_get_wbm_err_info_from_nbuf(soc, nbuf, in dp_rx_wbm_err_process()
2605 nbuf); in dp_rx_wbm_err_process()
2621 dp_set_rx_queue(nbuf, 0); in dp_rx_wbm_err_process()
2623 next = nbuf->next; in dp_rx_wbm_err_process()
2628 if (qdf_nbuf_is_rx_chfrag_cont(nbuf)) { in dp_rx_wbm_err_process()
2629 nbuf = dp_rx_sg_create(soc, nbuf); in dp_rx_wbm_err_process()
2630 next = nbuf->next; in dp_rx_wbm_err_process()
2635 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2637 nbuf = next; in dp_rx_wbm_err_process()
2644 dp_rx_nbuf_set_link_id_from_tlv(soc, rx_tlv_hdr, nbuf); in dp_rx_wbm_err_process()
2652 nbuf, in dp_rx_wbm_err_process()
2678 soc, nbuf, in dp_rx_wbm_err_process()
2701 QDF_NBUF_CB_RX_PKT_LEN(nbuf) = in dp_rx_wbm_err_process()
2704 nbuf->next = NULL; in dp_rx_wbm_err_process()
2705 dp_2k_jump_handle(soc, nbuf, in dp_rx_wbm_err_process()
2720 QDF_NBUF_CB_RX_PKT_LEN(nbuf) = in dp_rx_wbm_err_process()
2723 nbuf->next = NULL; in dp_rx_wbm_err_process()
2724 dp_rx_oor_handle(soc, nbuf, in dp_rx_wbm_err_process()
2733 nbuf); in dp_rx_wbm_err_process()
2736 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2746 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2753 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2757 dp_rx_err_route_hdl(soc, nbuf, txrx_peer, in dp_rx_wbm_err_process()
2765 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2791 dp_rx_process_rxdma_err(soc, nbuf, in dp_rx_wbm_err_process()
2802 dp_rx_process_mic_error(soc, nbuf, in dp_rx_wbm_err_process()
2819 dp_rx_process_mic_error(soc, nbuf, in dp_rx_wbm_err_process()
2834 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2839 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2846 dp_rx_process_rxdma_err(soc, nbuf, in dp_rx_wbm_err_process()
2856 qdf_nbuf_len(nbuf), in dp_rx_wbm_err_process()
2858 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2864 dp_rx_process_rxdma_err(soc, nbuf, in dp_rx_wbm_err_process()
2872 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2878 dp_rx_err_route_hdl(soc, nbuf, txrx_peer, in dp_rx_wbm_err_process()
2887 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2892 dp_rx_nbuf_free(nbuf); in dp_rx_wbm_err_process()
2904 nbuf = next; in dp_rx_wbm_err_process()
3017 msdu = rx_desc->nbuf; in dp_rx_err_mpdu_pop()
3207 msdu = rx_desc->nbuf; in dp_wbm_int_err_mpdu_pop()
3279 if (rx_desc && rx_desc->nbuf) { in dp_handle_wbm_internal_error()
3283 rx_desc->nbuf); in dp_handle_wbm_internal_error()
3287 dp_rx_buffer_pool_nbuf_free(soc, rx_desc->nbuf, in dp_handle_wbm_internal_error()