/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | htt_tx.c | 1183 int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu) in ath10k_htt_mgmt_tx() argument 1189 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_mgmt_tx() 1190 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_mgmt_tx() 1195 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_mgmt_tx() 1200 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_mgmt_tx() 1212 skb_put(msdu, sizeof(struct ieee80211_mmie_16)); in ath10k_htt_mgmt_tx() 1216 skb_put(msdu, IEEE80211_GCMP_MIC_LEN); in ath10k_htt_mgmt_tx() 1218 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_mgmt_tx() 1228 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_mgmt_tx() 1241 cmd->mgmt_tx.msdu_paddr = __cpu_to_le32(ATH10K_SKB_CB(msdu)->paddr); in ath10k_htt_mgmt_tx() [all …]
|
H A D | htt_rx.c | 320 struct sk_buff *msdu; in ath10k_htt_rx_netbuf_pop() local 330 msdu = htt->rx_ring.netbufs_ring[idx]; in ath10k_htt_rx_netbuf_pop() 340 ATH10K_SKB_RXCB(msdu)->paddr, in ath10k_htt_rx_netbuf_pop() 341 msdu->len + skb_tailroom(msdu), in ath10k_htt_rx_netbuf_pop() 344 msdu->data, msdu->len + skb_tailroom(msdu)); in ath10k_htt_rx_netbuf_pop() 346 return msdu; in ath10k_htt_rx_netbuf_pop() 356 struct sk_buff *msdu; in ath10k_htt_rx_amsdu_pop() local 368 msdu = ath10k_htt_rx_netbuf_pop(htt); in ath10k_htt_rx_amsdu_pop() 369 if (!msdu) { in ath10k_htt_rx_amsdu_pop() 374 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_amsdu_pop() [all …]
|
H A D | txrx.c | 53 struct sk_buff *msdu; in ath10k_txrx_tx_unref() local 67 msdu = idr_find(&htt->pending_tx, tx_done->msdu_id); in ath10k_txrx_tx_unref() 68 if (!msdu) { in ath10k_txrx_tx_unref() 75 skb_cb = ATH10K_SKB_CB(msdu); in ath10k_txrx_tx_unref() 95 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_txrx_tx_unref() 97 ath10k_report_offchan_tx(htt->ar, msdu); in ath10k_txrx_tx_unref() 99 info = IEEE80211_SKB_CB(msdu); in ath10k_txrx_tx_unref() 133 status.skb = msdu; in ath10k_txrx_tx_unref()
|
H A D | wmi-ops.h | 143 int (*cleanup_mgmt_tx_send)(struct ath10k *ar, struct sk_buff *msdu); 455 ath10k_wmi_cleanup_mgmt_tx_send(struct ath10k *ar, struct sk_buff *msdu) in ath10k_wmi_cleanup_mgmt_tx_send() argument 460 return ar->wmi.ops->cleanup_mgmt_tx_send(ar, msdu); in ath10k_wmi_cleanup_mgmt_tx_send() 464 ath10k_wmi_mgmt_tx_send(struct ath10k *ar, struct sk_buff *msdu, in ath10k_wmi_mgmt_tx_send() argument 473 skb = ar->wmi.ops->gen_mgmt_tx_send(ar, msdu, paddr); in ath10k_wmi_mgmt_tx_send() 486 ath10k_wmi_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu) in ath10k_wmi_mgmt_tx() argument 488 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(msdu); in ath10k_wmi_mgmt_tx() 495 skb = ar->wmi.ops->gen_mgmt_tx(ar, msdu); in ath10k_wmi_mgmt_tx() 508 ieee80211_tx_status_irqsafe(ar->hw, msdu); in ath10k_wmi_mgmt_tx()
|
H A D | htt.h | 1955 struct sk_buff *msdu); 1996 struct sk_buff *msdu) in ath10k_htt_tx() argument 1998 return htt->tx_ops->htt_tx(htt, txmode, msdu); in ath10k_htt_tx() 2473 int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu);
|
H A D | wmi-tlv.c | 3267 struct sk_buff *msdu) in ath10k_wmi_tlv_op_cleanup_mgmt_tx_send() argument 3269 struct ath10k_skb_cb *cb = ATH10K_SKB_CB(msdu); in ath10k_wmi_tlv_op_cleanup_mgmt_tx_send() 3302 ath10k_wmi_tlv_op_gen_mgmt_tx_send(struct ath10k *ar, struct sk_buff *msdu, in ath10k_wmi_tlv_op_gen_mgmt_tx_send() argument 3305 struct ath10k_skb_cb *cb = ATH10K_SKB_CB(msdu); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3309 u32 buf_len = msdu->len; in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3323 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3338 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3351 desc_id = ath10k_wmi_mgmt_tx_alloc_msdu_id(ar, msdu, paddr); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3371 cmd->frame_len = __cpu_to_le32(msdu->len); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3386 memcpy(ptr, msdu->data, buf_len); in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
|
H A D | wmi.c | 1954 ath10k_wmi_op_gen_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu) in ath10k_wmi_op_gen_mgmt_tx() argument 1956 struct ath10k_skb_cb *cb = ATH10K_SKB_CB(msdu); in ath10k_wmi_op_gen_mgmt_tx() 1963 u32 buf_len = msdu->len; in ath10k_wmi_op_gen_mgmt_tx() 1967 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_wmi_op_gen_mgmt_tx() 1980 len = sizeof(cmd->hdr) + msdu->len; in ath10k_wmi_op_gen_mgmt_tx() 2016 memcpy(cmd->buf, msdu->data, msdu->len); in ath10k_wmi_op_gen_mgmt_tx() 2019 msdu, skb->len, fc & IEEE80211_FCTL_FTYPE, in ath10k_wmi_op_gen_mgmt_tx() 2413 struct sk_buff *msdu; in wmi_process_mgmt_tx_comp() local 2426 msdu = pkt_addr->vaddr; in wmi_process_mgmt_tx_comp() 2428 msdu->len, DMA_TO_DEVICE); in wmi_process_mgmt_tx_comp() [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | dp_rx.c | 1886 static void ath11k_dp_rx_h_csum_offload(struct ath11k *ar, struct sk_buff *msdu) in ath11k_dp_rx_h_csum_offload() argument 1888 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_csum_offload() 1896 msdu->ip_summed = (ip_csum_fail || l4_csum_fail) ? in ath11k_dp_rx_h_csum_offload() 1981 struct sk_buff *msdu, in ath11k_dp_rx_h_undecap_nwifi() argument 1986 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_undecap_nwifi() 1996 hdr = (struct ieee80211_hdr *)msdu->data; in ath11k_dp_rx_h_undecap_nwifi() 2000 skb_pull(msdu, ieee80211_hdrlen(hdr->frame_control)); in ath11k_dp_rx_h_undecap_nwifi() 2035 memcpy(skb_push(msdu, in ath11k_dp_rx_h_undecap_nwifi() 2046 memcpy(skb_push(msdu, in ath11k_dp_rx_h_undecap_nwifi() 2049 memcpy(skb_push(msdu, hdr_len), decap_hdr, hdr_len); in ath11k_dp_rx_h_undecap_nwifi() [all …]
|
H A D | dp_tx.c | 299 struct sk_buff *msdu; in ath11k_dp_tx_free_txbuf() local 303 msdu = idr_remove(&tx_ring->txbuf_idr, msdu_id); in ath11k_dp_tx_free_txbuf() 306 if (unlikely(!msdu)) { in ath11k_dp_tx_free_txbuf() 312 skb_cb = ATH11K_SKB_CB(msdu); in ath11k_dp_tx_free_txbuf() 314 dma_unmap_single(ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath11k_dp_tx_free_txbuf() 315 dev_kfree_skb_any(msdu); in ath11k_dp_tx_free_txbuf() 328 struct sk_buff *msdu; in ath11k_dp_tx_htt_tx_complete_buf() local 335 msdu = idr_remove(&tx_ring->txbuf_idr, ts->msdu_id); in ath11k_dp_tx_htt_tx_complete_buf() 338 if (unlikely(!msdu)) { in ath11k_dp_tx_htt_tx_complete_buf() 344 skb_cb = ATH11K_SKB_CB(msdu); in ath11k_dp_tx_htt_tx_complete_buf() [all …]
|
H A D | hal_rx.c | 296 struct hal_rx_msdu_details *msdu; in ath11k_hal_rx_msdu_link_info_get() local 301 msdu = &link->msdu_link[0]; in ath11k_hal_rx_msdu_link_info_get() 303 msdu->buf_addr_info.info1); in ath11k_hal_rx_msdu_link_info_get() 306 msdu = &link->msdu_link[i]; in ath11k_hal_rx_msdu_link_info_get() 309 msdu->buf_addr_info.info0)) { in ath11k_hal_rx_msdu_link_info_get() 314 msdu->buf_addr_info.info1); in ath11k_hal_rx_msdu_link_info_get()
|
H A D | dp.c | 1026 struct sk_buff *msdu = skb; in ath11k_dp_tx_pending_cleanup() local 1028 dma_unmap_single(ab->dev, ATH11K_SKB_CB(msdu)->paddr, msdu->len, in ath11k_dp_tx_pending_cleanup() 1031 dev_kfree_skb_any(msdu); in ath11k_dp_tx_pending_cleanup()
|
H A D | mac.c | 5983 struct sk_buff *msdu; in ath11k_mac_tx_mgmt_free() local 5987 msdu = idr_remove(&ar->txmgmt_idr, buf_id); in ath11k_mac_tx_mgmt_free() 5990 if (!msdu) in ath11k_mac_tx_mgmt_free() 5993 dma_unmap_single(ar->ab->dev, ATH11K_SKB_CB(msdu)->paddr, msdu->len, in ath11k_mac_tx_mgmt_free() 5996 info = IEEE80211_SKB_CB(msdu); in ath11k_mac_tx_mgmt_free() 5999 ath11k_mgmt_over_wmi_tx_drop(ar, msdu); in ath11k_mac_tx_mgmt_free()
|
H A D | wmi.c | 6116 struct sk_buff *msdu; in wmi_process_mgmt_tx_comp() local 6122 msdu = idr_find(&ar->txmgmt_idr, tx_compl_param->desc_id); in wmi_process_mgmt_tx_comp() 6124 if (!msdu) { in wmi_process_mgmt_tx_comp() 6134 skb_cb = ATH11K_SKB_CB(msdu); in wmi_process_mgmt_tx_comp() 6135 dma_unmap_single(ar->ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in wmi_process_mgmt_tx_comp() 6137 info = IEEE80211_SKB_CB(msdu); in wmi_process_mgmt_tx_comp() 6146 ieee80211_tx_status_irqsafe(ar->hw, msdu); in wmi_process_mgmt_tx_comp()
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | dp_rx.c | 1869 static void ath12k_dp_rx_h_csum_offload(struct ath12k *ar, struct sk_buff *msdu) in ath12k_dp_rx_h_csum_offload() argument 1871 struct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(msdu); in ath12k_dp_rx_h_csum_offload() 1878 msdu->ip_summed = (ip_csum_fail || l4_csum_fail) ? in ath12k_dp_rx_h_csum_offload() 1963 struct sk_buff *msdu, in ath12k_dp_rx_h_undecap_nwifi() argument 1968 struct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(msdu); in ath12k_dp_rx_h_undecap_nwifi() 1976 hdr = (struct ieee80211_hdr *)msdu->data; in ath12k_dp_rx_h_undecap_nwifi() 1978 skb_pull(msdu, hdr_len); in ath12k_dp_rx_h_undecap_nwifi() 1998 crypto_hdr = skb_push(msdu, ath12k_dp_rx_crypto_param_len(ar, enctype)); in ath12k_dp_rx_h_undecap_nwifi() 2004 memcpy(skb_push(msdu, in ath12k_dp_rx_h_undecap_nwifi() 2007 memcpy(skb_push(msdu, hdr_len), decap_hdr, hdr_len); in ath12k_dp_rx_h_undecap_nwifi() [all …]
|
H A D | dp_tx.c | 349 struct sk_buff *msdu, u8 mac_id, in ath12k_dp_tx_free_txbuf() argument 356 skb_cb = ATH12K_SKB_CB(msdu); in ath12k_dp_tx_free_txbuf() 358 dma_unmap_single(ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath12k_dp_tx_free_txbuf() 363 dev_kfree_skb_any(msdu); in ath12k_dp_tx_free_txbuf() 372 struct sk_buff *msdu, in ath12k_dp_tx_htt_tx_complete_buf() argument 380 skb_cb = ATH12K_SKB_CB(msdu); in ath12k_dp_tx_htt_tx_complete_buf() 381 info = IEEE80211_SKB_CB(msdu); in ath12k_dp_tx_htt_tx_complete_buf() 388 dma_unmap_single(ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath12k_dp_tx_htt_tx_complete_buf() 406 ieee80211_tx_status(ar->hw, msdu); in ath12k_dp_tx_htt_tx_complete_buf() 412 struct sk_buff *msdu, in ath12k_dp_tx_process_htt_tx_complete() argument [all …]
|
H A D | dp_mon.c | 807 struct sk_buff *msdu; in ath12k_dp_mon_rx_parse_status_tlv() local 812 msdu = idr_remove(&buf_ring->bufs_idr, buf_id); in ath12k_dp_mon_rx_parse_status_tlv() 815 if (unlikely(!msdu)) { in ath12k_dp_mon_rx_parse_status_tlv() 821 rxcb = ATH12K_SKB_RXCB(msdu); in ath12k_dp_mon_rx_parse_status_tlv() 823 msdu->len + skb_tailroom(msdu), in ath12k_dp_mon_rx_parse_status_tlv() 827 mon_mpdu->tail->next = msdu; in ath12k_dp_mon_rx_parse_status_tlv() 829 mon_mpdu->tail = msdu; in ath12k_dp_mon_rx_parse_status_tlv() 865 static void ath12k_dp_mon_rx_msdus_set_payload(struct ath12k *ar, struct sk_buff *msdu) in ath12k_dp_mon_rx_msdus_set_payload() argument 871 (struct hal_rx_desc *)msdu->data); in ath12k_dp_mon_rx_msdus_set_payload() 872 skb_pull(msdu, rx_pkt_offset + l2_hdr_offset); in ath12k_dp_mon_rx_msdus_set_payload() [all …]
|
H A D | dp_rx.h | 132 ath12k_dp_rx_h_find_peer(struct ath12k_base *ab, struct sk_buff *msdu); 140 ath12k_dp_rx_h_find_peer(struct ath12k_base *ab, struct sk_buff *msdu);
|
H A D | hal_rx.c | 292 struct hal_rx_msdu_details *msdu; in ath12k_hal_rx_msdu_link_info_get() local 298 msdu = &link->msdu_link[0]; in ath12k_hal_rx_msdu_link_info_get() 299 *rbm = le32_get_bits(msdu->buf_addr_info.info1, in ath12k_hal_rx_msdu_link_info_get() 303 msdu = &link->msdu_link[i]; in ath12k_hal_rx_msdu_link_info_get() 305 val = le32_get_bits(msdu->buf_addr_info.info0, in ath12k_hal_rx_msdu_link_info_get() 311 *msdu_cookies = le32_get_bits(msdu->buf_addr_info.info1, in ath12k_hal_rx_msdu_link_info_get()
|
H A D | wmi.c | 5105 struct sk_buff *msdu; in wmi_process_mgmt_tx_comp() local 5111 msdu = idr_find(&ar->txmgmt_idr, desc_id); in wmi_process_mgmt_tx_comp() 5113 if (!msdu) { in wmi_process_mgmt_tx_comp() 5123 skb_cb = ATH12K_SKB_CB(msdu); in wmi_process_mgmt_tx_comp() 5124 dma_unmap_single(ar->ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in wmi_process_mgmt_tx_comp() 5126 info = IEEE80211_SKB_CB(msdu); in wmi_process_mgmt_tx_comp() 5130 ieee80211_tx_status_irqsafe(ar->hw, msdu); in wmi_process_mgmt_tx_comp()
|
H A D | mac.c | 4739 struct sk_buff *msdu = skb; in ath12k_mac_tx_mgmt_pending_free() local 4747 dma_unmap_single(ab->dev, ATH12K_SKB_CB(msdu)->paddr, msdu->len, in ath12k_mac_tx_mgmt_pending_free() 4750 info = IEEE80211_SKB_CB(msdu); in ath12k_mac_tx_mgmt_pending_free() 4762 struct sk_buff *msdu = skb; in ath12k_mac_vif_txmgmt_idr_remove() local 4770 dma_unmap_single(ab->dev, skb_cb->paddr, msdu->len, in ath12k_mac_vif_txmgmt_idr_remove()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | mac.c | 524 u32 msdu, info = le32_to_cpu(tx_info[i]); in mt7921_mac_tx_free() local 550 msdu = FIELD_GET(MT_TX_FREE_MSDU_ID, info); in mt7921_mac_tx_free() 559 txwi = mt76_token_release(mdev, msdu, &wake); in mt7921_mac_tx_free()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | mac.c | 922 u32 msdu, info; in mt7915_mac_tx_free() local 975 msdu = (info >> (15 * i)) & MT_TX_FREE_MSDU_ID_V3; in mt7915_mac_tx_free() 976 if (msdu == MT_TX_FREE_MSDU_ID_V3) in mt7915_mac_tx_free() 979 msdu = FIELD_GET(MT_TX_FREE_MSDU_ID, info); in mt7915_mac_tx_free() 982 txwi = mt76_token_release(mdev, msdu, &wake); in mt7915_mac_tx_free() 1021 u16 msdu = le16_to_cpu(info[i]); in mt7915_mac_tx_free_v0() local 1023 txwi = mt76_token_release(mdev, msdu, &wake); in mt7915_mac_tx_free_v0()
|
/freebsd/tools/tools/iwn/iwnstats/ |
H A D | main.c | 164 le32toh(tx->msdu)); in iwn_stats_tx_print()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | mac.c | 1103 u32 msdu, info; in mt7996_mac_tx_free() local 1136 msdu = (info >> (15 * i)) & MT_TXFREE_INFO_MSDU_ID; in mt7996_mac_tx_free() 1137 if (msdu == MT_TXFREE_INFO_MSDU_ID) in mt7996_mac_tx_free() 1141 txwi = mt76_token_release(mdev, msdu, &wake); in mt7996_mac_tx_free()
|
/freebsd/sys/dev/iwn/ |
H A D | if_iwnreg.h | 1670 uint32_t msdu; member
|