/linux/drivers/net/wireless/ath/ath10k/ |
H A D | htt_tx.c | 1179 int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu) in ath10k_htt_mgmt_tx() argument 1185 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_mgmt_tx() 1186 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_mgmt_tx() 1191 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_mgmt_tx() 1196 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_mgmt_tx() 1208 skb_put(msdu, sizeof(struct ieee80211_mmie_16)); in ath10k_htt_mgmt_tx() 1212 skb_put(msdu, IEEE80211_GCMP_MIC_LEN); in ath10k_htt_mgmt_tx() 1214 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_mgmt_tx() 1224 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_mgmt_tx() 1237 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 | 321 struct sk_buff *msdu; in ath10k_htt_rx_netbuf_pop() local 331 msdu = htt->rx_ring.netbufs_ring[idx]; in ath10k_htt_rx_netbuf_pop() 341 ATH10K_SKB_RXCB(msdu)->paddr, in ath10k_htt_rx_netbuf_pop() 342 msdu->len + skb_tailroom(msdu), in ath10k_htt_rx_netbuf_pop() 345 msdu->data, msdu->len + skb_tailroom(msdu)); in ath10k_htt_rx_netbuf_pop() 347 return msdu; in ath10k_htt_rx_netbuf_pop() 357 struct sk_buff *msdu; in ath10k_htt_rx_amsdu_pop() local 369 msdu = ath10k_htt_rx_netbuf_pop(htt); in ath10k_htt_rx_amsdu_pop() 370 if (!msdu) { in ath10k_htt_rx_amsdu_pop() 375 __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); 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 | 1940 struct sk_buff *msdu); 1981 struct sk_buff *msdu) in ath10k_htt_tx() argument 1983 return htt->tx_ops->htt_tx(htt, txmode, msdu); in ath10k_htt_tx() 2458 int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu);
|
H A D | wmi-tlv.c | 3043 struct sk_buff *msdu) in ath10k_wmi_tlv_op_cleanup_mgmt_tx_send() argument 3045 struct ath10k_skb_cb *cb = ATH10K_SKB_CB(msdu); in ath10k_wmi_tlv_op_cleanup_mgmt_tx_send() 3083 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 3086 struct ath10k_skb_cb *cb = ATH10K_SKB_CB(msdu); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3090 u32 buf_len = msdu->len; in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3100 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3115 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3128 desc_id = ath10k_wmi_mgmt_tx_alloc_msdu_id(ar, msdu, paddr); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3143 cmd->frame_len = __cpu_to_le32(msdu->len); in ath10k_wmi_tlv_op_gen_mgmt_tx_send() 3154 memcpy(ptr, msdu->data, buf_len); in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
|
H A D | wmi.c | 1968 ath10k_wmi_op_gen_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu) in ath10k_wmi_op_gen_mgmt_tx() argument 1970 struct ath10k_skb_cb *cb = ATH10K_SKB_CB(msdu); in ath10k_wmi_op_gen_mgmt_tx() 1977 u32 buf_len = msdu->len; in ath10k_wmi_op_gen_mgmt_tx() 1981 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_wmi_op_gen_mgmt_tx() 1994 len = sizeof(cmd->hdr) + msdu->len; in ath10k_wmi_op_gen_mgmt_tx() 2030 memcpy(cmd->buf, msdu->data, msdu->len); in ath10k_wmi_op_gen_mgmt_tx() 2033 msdu, skb->len, fc & IEEE80211_FCTL_FTYPE, in ath10k_wmi_op_gen_mgmt_tx() 2427 struct sk_buff *msdu; in wmi_process_mgmt_tx_comp() local 2440 msdu = pkt_addr->vaddr; in wmi_process_mgmt_tx_comp() 2442 msdu->len, DMA_TO_DEVICE); in wmi_process_mgmt_tx_comp() [all …]
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | dp_rx.c | 1866 static void ath12k_dp_rx_h_csum_offload(struct ath12k *ar, struct sk_buff *msdu) in ath12k_dp_rx_h_csum_offload() argument 1868 struct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(msdu); in ath12k_dp_rx_h_csum_offload() 1875 msdu->ip_summed = (ip_csum_fail || l4_csum_fail) ? in ath12k_dp_rx_h_csum_offload() 1960 struct sk_buff *msdu, in ath12k_dp_rx_h_undecap_nwifi() argument 1965 struct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(msdu); in ath12k_dp_rx_h_undecap_nwifi() 1973 hdr = (struct ieee80211_hdr *)msdu->data; in ath12k_dp_rx_h_undecap_nwifi() 1975 skb_pull(msdu, hdr_len); in ath12k_dp_rx_h_undecap_nwifi() 1995 crypto_hdr = skb_push(msdu, ath12k_dp_rx_crypto_param_len(ar, enctype)); in ath12k_dp_rx_h_undecap_nwifi() 2001 memcpy(skb_push(msdu, in ath12k_dp_rx_h_undecap_nwifi() 2004 memcpy(skb_push(msdu, hdr_len), decap_hdr, hdr_len); in ath12k_dp_rx_h_undecap_nwifi() [all …]
|
H A D | dp_tx.c | 480 struct sk_buff *msdu, u8 mac_id, in ath12k_dp_tx_free_txbuf() argument 487 skb_cb = ATH12K_SKB_CB(msdu); in ath12k_dp_tx_free_txbuf() 490 dma_unmap_single(ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath12k_dp_tx_free_txbuf() 495 ieee80211_free_txskb(ar->ah->hw, msdu); in ath12k_dp_tx_free_txbuf() 503 struct sk_buff *msdu, in ath12k_dp_tx_htt_tx_complete_buf() argument 511 skb_cb = ATH12K_SKB_CB(msdu); in ath12k_dp_tx_htt_tx_complete_buf() 512 info = IEEE80211_SKB_CB(msdu); in ath12k_dp_tx_htt_tx_complete_buf() 519 dma_unmap_single(ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath12k_dp_tx_htt_tx_complete_buf() 541 ieee80211_tx_status_skb(ath12k_ar_to_hw(ar), msdu); in ath12k_dp_tx_htt_tx_complete_buf() 547 struct sk_buff *msdu, in ath12k_dp_tx_process_htt_tx_complete() argument [all …]
|
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 | 5170 struct sk_buff *msdu; in wmi_process_mgmt_tx_comp() local 5176 msdu = idr_find(&ar->txmgmt_idr, desc_id); in wmi_process_mgmt_tx_comp() 5178 if (!msdu) { in wmi_process_mgmt_tx_comp() 5188 skb_cb = ATH12K_SKB_CB(msdu); in wmi_process_mgmt_tx_comp() 5189 dma_unmap_single(ar->ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in wmi_process_mgmt_tx_comp() 5191 info = IEEE80211_SKB_CB(msdu); in wmi_process_mgmt_tx_comp() 5195 ieee80211_tx_status_irqsafe(ath12k_ar_to_hw(ar), msdu); in wmi_process_mgmt_tx_comp()
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | dp_rx.c | 1866 static void ath11k_dp_rx_h_csum_offload(struct ath11k *ar, struct sk_buff *msdu) in ath11k_dp_rx_h_csum_offload() argument 1868 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_csum_offload() 1876 msdu->ip_summed = (ip_csum_fail || l4_csum_fail) ? in ath11k_dp_rx_h_csum_offload() 1960 struct sk_buff *msdu, in ath11k_dp_rx_h_undecap_nwifi() argument 1965 struct ath11k_skb_rxcb *rxcb = ATH11K_SKB_RXCB(msdu); in ath11k_dp_rx_h_undecap_nwifi() 1975 hdr = (struct ieee80211_hdr *)msdu->data; in ath11k_dp_rx_h_undecap_nwifi() 1979 skb_pull(msdu, ieee80211_hdrlen(hdr->frame_control)); in ath11k_dp_rx_h_undecap_nwifi() 2014 memcpy(skb_push(msdu, in ath11k_dp_rx_h_undecap_nwifi() 2021 memcpy(skb_push(msdu, in ath11k_dp_rx_h_undecap_nwifi() 2024 memcpy(skb_push(msdu, hdr_len), decap_hdr, hdr_len); in ath11k_dp_rx_h_undecap_nwifi() [all …]
|
H A D | dp_tx.c | 291 struct sk_buff *msdu; in ath11k_dp_tx_free_txbuf() local 295 msdu = idr_remove(&tx_ring->txbuf_idr, msdu_id); in ath11k_dp_tx_free_txbuf() 298 if (unlikely(!msdu)) { in ath11k_dp_tx_free_txbuf() 304 skb_cb = ATH11K_SKB_CB(msdu); in ath11k_dp_tx_free_txbuf() 306 dma_unmap_single(ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath11k_dp_tx_free_txbuf() 307 dev_kfree_skb_any(msdu); in ath11k_dp_tx_free_txbuf() 320 struct sk_buff *msdu; in ath11k_dp_tx_htt_tx_complete_buf() local 327 msdu = idr_remove(&tx_ring->txbuf_idr, ts->msdu_id); in ath11k_dp_tx_htt_tx_complete_buf() 330 if (unlikely(!msdu)) { in ath11k_dp_tx_htt_tx_complete_buf() 336 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 | 1027 struct sk_buff *msdu = skb; in ath11k_dp_tx_pending_cleanup() local 1029 dma_unmap_single(ab->dev, ATH11K_SKB_CB(msdu)->paddr, msdu->len, in ath11k_dp_tx_pending_cleanup() 1032 dev_kfree_skb_any(msdu); in ath11k_dp_tx_pending_cleanup()
|
H A D | mac.c | 5861 struct sk_buff *msdu; in ath11k_mac_tx_mgmt_free() local 5865 msdu = idr_remove(&ar->txmgmt_idr, buf_id); in ath11k_mac_tx_mgmt_free() 5868 if (!msdu) in ath11k_mac_tx_mgmt_free() 5871 dma_unmap_single(ar->ab->dev, ATH11K_SKB_CB(msdu)->paddr, msdu->len, in ath11k_mac_tx_mgmt_free() 5874 info = IEEE80211_SKB_CB(msdu); in ath11k_mac_tx_mgmt_free() 5877 ath11k_mgmt_over_wmi_tx_drop(ar, msdu); in ath11k_mac_tx_mgmt_free()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | mac.c | 514 u32 msdu, info = le32_to_cpu(tx_info[i]); in mt7921_mac_tx_free() local 540 msdu = FIELD_GET(MT_TX_FREE_MSDU_ID, info); in mt7921_mac_tx_free() 549 txwi = mt76_token_release(mdev, msdu, &wake); in mt7921_mac_tx_free()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | mac.c | 908 u32 msdu, info; in mt7915_mac_tx_free() local 961 msdu = (info >> (15 * i)) & MT_TX_FREE_MSDU_ID_V3; in mt7915_mac_tx_free() 962 if (msdu == MT_TX_FREE_MSDU_ID_V3) in mt7915_mac_tx_free() 965 msdu = FIELD_GET(MT_TX_FREE_MSDU_ID, info); in mt7915_mac_tx_free() 968 txwi = mt76_token_release(mdev, msdu, &wake); in mt7915_mac_tx_free() 998 u16 msdu = le16_to_cpu(info[i]); in mt7915_mac_tx_free_v0() local 1000 txwi = mt76_token_release(mdev, msdu, &wake); in mt7915_mac_tx_free_v0()
|
/linux/drivers/net/ieee802154/ |
H A D | ca8210.c | 413 u8 msdu[MAX_DATA_SIZE]; member 1435 u8 *msdu, in mcps_data_request() argument 1469 memcpy(command.pdata.data_req.msdu, msdu, msdu_length); in mcps_data_request() 1470 psec = (struct secspec *)(command.pdata.data_req.msdu + msdu_length); in mcps_data_request()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
H A D | mac.c | 1118 u32 msdu, info; in mt7925_mac_tx_free() local 1157 msdu = (info >> (15 * i)) & MT_TXFREE_INFO_MSDU_ID; in mt7925_mac_tx_free() 1158 if (msdu == MT_TXFREE_INFO_MSDU_ID) in mt7925_mac_tx_free() 1162 txwi = mt76_token_release(mdev, msdu, &wake); in mt7925_mac_tx_free()
|
/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_hw.h | 843 __le16 msdu; member 922 u8 msdu[3]; member
|
/linux/include/net/bluetooth/ |
H A D | l2cap.h | 364 __le16 msdu; member
|
/linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | mac.c | 1121 u32 msdu, info; in mt7996_mac_tx_free() local 1164 msdu = (info >> (15 * i)) & MT_TXFREE_INFO_MSDU_ID; in mt7996_mac_tx_free() 1165 if (msdu == MT_TXFREE_INFO_MSDU_ID) in mt7996_mac_tx_free() 1169 txwi = mt76_token_release(mdev, msdu, &wake); in mt7996_mac_tx_free()
|
/linux/net/mac80211/ |
H A D | sta_info.c | 2492 value = rxstats->msdu[tid]; in sta_get_tidstats_msdu() 2525 tidstats->tx_msdu = sta->deflink.tx_stats.msdu[tid]; in sta_set_tidstats()
|
H A D | tx.c | 869 tx->sta->deflink.tx_stats.msdu[IEEE80211_NUM_TIDS]++; in ieee80211_tx_h_sequence() 883 tx->sta->deflink.tx_stats.msdu[tid]++; in ieee80211_tx_h_sequence() 3578 sta->deflink.tx_stats.msdu[tid] += in ieee80211_xmit_fast_finish() 3581 sta->deflink.tx_stats.msdu[tid]++; in ieee80211_xmit_fast_finish()
|