| /freebsd/sys/contrib/dev/athk/ath10k/ |
| H A D | htt_tx.c | 1181 int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu) in ath10k_htt_mgmt_tx() argument 1187 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_mgmt_tx() 1188 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_mgmt_tx() 1193 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_mgmt_tx() 1198 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_mgmt_tx() 1210 skb_put(msdu, sizeof(struct ieee80211_mmie_16)); in ath10k_htt_mgmt_tx() 1214 skb_put(msdu, IEEE80211_GCMP_MIC_LEN); in ath10k_htt_mgmt_tx() 1216 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_mgmt_tx() 1226 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_mgmt_tx() 1239 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 | 325 struct sk_buff *msdu; in ath10k_htt_rx_netbuf_pop() local 335 msdu = htt->rx_ring.netbufs_ring[idx]; in ath10k_htt_rx_netbuf_pop() 345 ATH10K_SKB_RXCB(msdu)->paddr, in ath10k_htt_rx_netbuf_pop() 346 msdu->len + skb_tailroom(msdu), in ath10k_htt_rx_netbuf_pop() 349 msdu->data, msdu->len + skb_tailroom(msdu)); in ath10k_htt_rx_netbuf_pop() 351 return msdu; in ath10k_htt_rx_netbuf_pop() 354 /* return: < 0 fatal error, 0 - non chained msdu, 361 struct sk_buff *msdu; ath10k_htt_rx_amsdu_pop() local 476 struct sk_buff *msdu; ath10k_htt_rx_pop_paddr() local 507 ath10k_htt_rx_handle_amsdu_mon_32(struct ath10k_htt * htt,struct sk_buff * msdu,struct htt_rx_in_ord_msdu_desc ** msdu_desc) ath10k_htt_rx_handle_amsdu_mon_32() argument 584 ath10k_htt_rx_handle_amsdu_mon_64(struct ath10k_htt * htt,struct sk_buff * msdu,struct htt_rx_in_ord_msdu_desc_ext ** msdu_desc) ath10k_htt_rx_handle_amsdu_mon_64() argument 677 struct sk_buff *msdu; ath10k_htt_rx_pop_paddr32_list() local 742 struct sk_buff *msdu; ath10k_htt_rx_pop_paddr64_list() local 1443 ath10k_htt_rx_h_undecap_raw(struct ath10k * ar,struct sk_buff * msdu,struct ieee80211_rx_status * status,enum htt_rx_mpdu_encrypt_type enctype,bool is_decrypted,const u8 first_hdr[64]) ath10k_htt_rx_h_undecap_raw() argument 1588 ath10k_htt_rx_h_undecap_nwifi(struct ath10k * ar,struct sk_buff * msdu,struct ieee80211_rx_status * status,const u8 first_hdr[64],enum htt_rx_mpdu_encrypt_type enctype) ath10k_htt_rx_h_undecap_nwifi() argument 1680 ath10k_htt_rx_h_find_rfc1042(struct ath10k * ar,struct sk_buff * msdu,enum htt_rx_mpdu_encrypt_type enctype) ath10k_htt_rx_h_find_rfc1042() argument 1735 ath10k_htt_rx_h_undecap_eth(struct ath10k * ar,struct sk_buff * msdu,struct ieee80211_rx_status * status,const u8 first_hdr[64],enum htt_rx_mpdu_encrypt_type enctype) ath10k_htt_rx_h_undecap_eth() argument 1822 ath10k_htt_rx_h_undecap_snap(struct ath10k * ar,struct sk_buff * msdu,struct ieee80211_rx_status * status,const u8 first_hdr[64],enum htt_rx_mpdu_encrypt_type enctype) ath10k_htt_rx_h_undecap_snap() argument 1878 ath10k_htt_rx_h_undecap(struct ath10k * ar,struct sk_buff * msdu,struct ieee80211_rx_status * status,u8 first_hdr[64],enum htt_rx_mpdu_encrypt_type enctype,bool is_decrypted) ath10k_htt_rx_h_undecap() argument 1972 ath10k_htt_rx_h_csum_offload(struct ath10k_hw_params * hw,struct sk_buff * msdu) ath10k_htt_rx_h_csum_offload() argument 2062 struct sk_buff *msdu, *temp; ath10k_htt_rx_h_mpdu() local 2251 struct sk_buff *msdu; ath10k_htt_rx_h_enqueue() local 3298 struct sk_buff *msdu; ath10k_htt_rx_extract_amsdu() local 3368 struct sk_buff *msdu; ath10k_htt_rx_h_rx_offload() local [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); 458 ath10k_wmi_cleanup_mgmt_tx_send(struct ath10k *ar, struct sk_buff *msdu) in ath10k_wmi_cleanup_mgmt_tx_send() argument 463 return ar->wmi.ops->cleanup_mgmt_tx_send(ar, msdu); in ath10k_wmi_cleanup_mgmt_tx_send() 467 ath10k_wmi_mgmt_tx_send(struct ath10k *ar, struct sk_buff *msdu, in ath10k_wmi_mgmt_tx_send() argument 476 skb = ar->wmi.ops->gen_mgmt_tx_send(ar, msdu, paddr); in ath10k_wmi_mgmt_tx_send() 489 ath10k_wmi_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu) in ath10k_wmi_mgmt_tx() argument 491 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(msdu); in ath10k_wmi_mgmt_tx() 498 skb = ar->wmi.ops->gen_mgmt_tx(ar, msdu); in ath10k_wmi_mgmt_tx() 511 ieee80211_tx_status_irqsafe(ar->hw, msdu); in ath10k_wmi_mgmt_tx()
|
| H A D | htt.h | 1959 struct sk_buff *msdu); 2000 struct sk_buff *msdu) in ath10k_htt_tx() argument 2002 return htt->tx_ops->htt_tx(htt, txmode, msdu); in ath10k_htt_tx() 2477 int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu);
|
| H A D | wmi-tlv.c | 3272 struct sk_buff *msdu) in ath10k_wmi_tlv_op_cleanup_mgmt_tx_send() argument 3274 struct ath10k_skb_cb *cb = ATH10K_SKB_CB(msdu); in ath10k_wmi_tlv_op_cleanup_mgmt_tx_send() 3312 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 3315 struct ath10k_skb_cb *cb = ATH10K_SKB_CB(msdu); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3319 u32 buf_len = msdu->len; in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3333 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3348 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3361 desc_id = ath10k_wmi_mgmt_tx_alloc_msdu_id(ar, msdu, paddr); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3381 cmd->frame_len = __cpu_to_le32(msdu->len); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3396 memcpy(ptr, msdu->data, buf_len); in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
|
| H A D | wmi.c | 1982 ath10k_wmi_op_gen_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu) in ath10k_wmi_op_gen_mgmt_tx() argument 1984 struct ath10k_skb_cb *cb = ATH10K_SKB_CB(msdu); in ath10k_wmi_op_gen_mgmt_tx() 1991 u32 buf_len = msdu->len; in ath10k_wmi_op_gen_mgmt_tx() 1995 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_wmi_op_gen_mgmt_tx() 2008 len = sizeof(cmd->hdr) + msdu->len; in ath10k_wmi_op_gen_mgmt_tx() 2044 memcpy(cmd->buf, msdu->data, msdu->len); in ath10k_wmi_op_gen_mgmt_tx() 2047 msdu, skb->len, fc & IEEE80211_FCTL_FTYPE, in ath10k_wmi_op_gen_mgmt_tx() 2441 struct sk_buff *msdu; in wmi_process_mgmt_tx_comp() local 2454 msdu = pkt_addr->vaddr; in wmi_process_mgmt_tx_comp() 2456 msdu->len, DMA_TO_DEVICE); in wmi_process_mgmt_tx_comp() [all …]
|
| /freebsd/sys/contrib/dev/athk/ath11k/ |
| H A D | dp_rx.c | 1881 static void ath11k_dp_rx_h_csum_offload(struct ath11k *ar, struct sk_buff *msdu) in ath11k_dp_rx_h_csum_offload() argument 1883 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_csum_offload() 1891 msdu->ip_summed = (ip_csum_fail || l4_csum_fail) ? in ath11k_dp_rx_h_csum_offload() 1975 struct sk_buff *msdu, in ath11k_dp_rx_h_undecap_nwifi() argument 1980 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_undecap_nwifi() 1990 hdr = (struct ieee80211_hdr *)msdu->data; in ath11k_dp_rx_h_undecap_nwifi() 1994 skb_pull(msdu, ieee80211_hdrlen(hdr->frame_control)); in ath11k_dp_rx_h_undecap_nwifi() 2029 memcpy(skb_push(msdu, in ath11k_dp_rx_h_undecap_nwifi() 2040 memcpy(skb_push(msdu, in ath11k_dp_rx_h_undecap_nwifi() 2043 memcpy(skb_push(msdu, hdr_len), decap_hdr, hdr_len); in ath11k_dp_rx_h_undecap_nwifi() [all …]
|
| H A D | dp_tx.c | 300 struct sk_buff *msdu; in ath11k_dp_tx_free_txbuf() local 304 msdu = idr_remove(&tx_ring->txbuf_idr, msdu_id); in ath11k_dp_tx_free_txbuf() 307 if (unlikely(!msdu)) { in ath11k_dp_tx_free_txbuf() 313 skb_cb = ATH11K_SKB_CB(msdu); in ath11k_dp_tx_free_txbuf() 315 dma_unmap_single(ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath11k_dp_tx_free_txbuf() 316 dev_kfree_skb_any(msdu); in ath11k_dp_tx_free_txbuf() 329 struct sk_buff *msdu; in ath11k_dp_tx_htt_tx_complete_buf() local 336 msdu = idr_remove(&tx_ring->txbuf_idr, ts->msdu_id); in ath11k_dp_tx_htt_tx_complete_buf() 339 if (unlikely(!msdu)) { in ath11k_dp_tx_htt_tx_complete_buf() 345 skb_cb = ATH11K_SKB_CB(msdu); in ath11k_dp_tx_htt_tx_complete_buf() [all …]
|
| H A D | hal_rx.c | 297 struct hal_rx_msdu_details *msdu; in ath11k_hal_rx_msdu_link_info_get() local 302 msdu = &link->msdu_link[0]; in ath11k_hal_rx_msdu_link_info_get() 304 msdu->buf_addr_info.info1); in ath11k_hal_rx_msdu_link_info_get() 307 msdu = &link->msdu_link[i]; in ath11k_hal_rx_msdu_link_info_get() 310 msdu->buf_addr_info.info0)) { in ath11k_hal_rx_msdu_link_info_get() 315 msdu->buf_addr_info.info1); in ath11k_hal_rx_msdu_link_info_get()
|
| H A D | dp.c | 1029 struct sk_buff *msdu = skb; in ath11k_dp_tx_pending_cleanup() local 1031 dma_unmap_single(ab->dev, ATH11K_SKB_CB(msdu)->paddr, msdu->len, in ath11k_dp_tx_pending_cleanup() 1034 dev_kfree_skb_any(msdu); in ath11k_dp_tx_pending_cleanup()
|
| H A D | mac.c | 5993 struct sk_buff *msdu; in ath11k_mac_tx_mgmt_free() local 5997 msdu = idr_remove(&ar->txmgmt_idr, buf_id); in ath11k_mac_tx_mgmt_free() 6000 if (!msdu) in ath11k_mac_tx_mgmt_free() 6003 dma_unmap_single(ar->ab->dev, ATH11K_SKB_CB(msdu)->paddr, msdu->len, in ath11k_mac_tx_mgmt_free() 6006 info = IEEE80211_SKB_CB(msdu); in ath11k_mac_tx_mgmt_free() 6009 ath11k_mgmt_over_wmi_tx_drop(ar, msdu); in ath11k_mac_tx_mgmt_free()
|
| /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 | 522 u32 msdu, info = le32_to_cpu(tx_info[i]); in mt7921_mac_tx_free() local 544 msdu = FIELD_GET(MT_TX_FREE_MSDU_ID, info); in mt7921_mac_tx_free() 553 txwi = mt76_token_release(mdev, msdu, &wake); in mt7921_mac_tx_free()
|
| /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/mt7915/ |
| H A D | mac.c | 922 u32 msdu, info; in mt7915_mac_tx_free() local 971 msdu = (info >> (15 * i)) & MT_TX_FREE_MSDU_ID_V3; in mt7915_mac_tx_free() 972 if (msdu == MT_TX_FREE_MSDU_ID_V3) in mt7915_mac_tx_free() 975 msdu = FIELD_GET(MT_TX_FREE_MSDU_ID, info); in mt7915_mac_tx_free() 978 txwi = mt76_token_release(mdev, msdu, &wake); in mt7915_mac_tx_free() 1017 u16 msdu = le16_to_cpu(info[i]); in mt7915_mac_tx_free_v0() local 1019 txwi = mt76_token_release(mdev, msdu, &wake); in mt7915_mac_tx_free_v0()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7925/ |
| H A D | mac.c | 1116 u32 msdu, info; in mt7925_mac_tx_free() local 1151 msdu = (info >> (15 * i)) & MT_TXFREE_INFO_MSDU_ID; in mt7925_mac_tx_free() 1152 if (msdu == MT_TXFREE_INFO_MSDU_ID) in mt7925_mac_tx_free() 1156 txwi = mt76_token_release(mdev, msdu, &wake); in mt7925_mac_tx_free()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | mac.c | 1358 u32 msdu, info; in mt7996_mac_tx_free() local 1424 msdu = (info >> (15 * i)) & MT_TXFREE_INFO_MSDU_ID; in mt7996_mac_tx_free() 1425 if (msdu == MT_TXFREE_INFO_MSDU_ID) in mt7996_mac_tx_free() 1429 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
|