Lines Matching refs:msdu

1200 int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu)  in ath10k_htt_mgmt_tx()  argument
1206 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_mgmt_tx()
1207 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_mgmt_tx()
1212 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_mgmt_tx()
1217 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_mgmt_tx()
1229 skb_put(msdu, sizeof(struct ieee80211_mmie_16)); in ath10k_htt_mgmt_tx()
1233 skb_put(msdu, IEEE80211_GCMP_MIC_LEN); in ath10k_htt_mgmt_tx()
1235 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_mgmt_tx()
1245 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_mgmt_tx()
1258 cmd->mgmt_tx.msdu_paddr = __cpu_to_le32(ATH10K_SKB_CB(msdu)->paddr); in ath10k_htt_mgmt_tx()
1259 cmd->mgmt_tx.len = __cpu_to_le32(msdu->len); in ath10k_htt_mgmt_tx()
1262 memcpy(cmd->mgmt_tx.hdr, msdu->data, in ath10k_htt_mgmt_tx()
1263 min_t(int, msdu->len, HTT_MGMT_FRM_HDR_DOWNLOAD_LEN)); in ath10k_htt_mgmt_tx()
1273 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_mgmt_tx()
1290 struct sk_buff *msdu) in ath10k_htt_tx_hl() argument
1295 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_tx_hl()
1297 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_tx_hl()
1300 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_tx_hl()
1301 u8 tid = ath10k_htt_tx_get_tid(msdu, is_eth); in ath10k_htt_tx_hl()
1310 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_hl()
1313 data_len = msdu->len; in ath10k_htt_tx_hl()
1338 if (msdu->ip_summed == CHECKSUM_PARTIAL && in ath10k_htt_tx_hl()
1347 if (skb_headroom(msdu) < HTT_TX_HL_NEEDED_HEADROOM) { in ath10k_htt_tx_hl()
1348 tmp_skb = msdu; in ath10k_htt_tx_hl()
1352 skb_headroom(msdu), HTT_TX_HL_NEEDED_HEADROOM); in ath10k_htt_tx_hl()
1353 msdu = skb_realloc_headroom(msdu, HTT_TX_HL_NEEDED_HEADROOM); in ath10k_htt_tx_hl()
1355 if (!msdu) { in ath10k_htt_tx_hl()
1364 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_tx_hl()
1377 skb_get(msdu); in ath10k_htt_tx_hl()
1379 skb_push(msdu, sizeof(*cmd_hdr)); in ath10k_htt_tx_hl()
1380 skb_push(msdu, sizeof(*tx_desc)); in ath10k_htt_tx_hl()
1381 cmd_hdr = (struct htt_cmd_hdr *)msdu->data; in ath10k_htt_tx_hl()
1382 tx_desc = (struct htt_data_tx_desc *)(msdu->data + sizeof(*cmd_hdr)); in ath10k_htt_tx_hl()
1395 res = ath10k_htc_send_hl(&htt->ar->htc, htt->eid, msdu); in ath10k_htt_tx_hl()
1403 struct sk_buff *msdu) in ath10k_htt_tx_32() argument
1407 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_tx_32()
1408 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(msdu); in ath10k_htt_tx_32()
1409 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_tx_32()
1414 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_tx_32()
1415 u8 tid = ath10k_htt_tx_get_tid(msdu, is_eth); in ath10k_htt_tx_32()
1426 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_tx_32()
1432 prefetch_len = min(htt->prefetch_len, msdu->len); in ath10k_htt_tx_32()
1443 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_32()
1447 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_32()
1450 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_tx_32()
1477 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1485 frags[0].dword_addr.len = __cpu_to_le32(msdu->len); in ath10k_htt_tx_32()
1530 if (msdu->ip_summed == CHECKSUM_PARTIAL && in ath10k_htt_tx_32()
1547 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1560 trace_ath10k_htt_tx(ar, msdu_id, msdu->len, vdev_id, tid); in ath10k_htt_tx_32()
1563 flags0, flags1, msdu->len, msdu_id, &frags_paddr, in ath10k_htt_tx_32()
1566 msdu->data, msdu->len); in ath10k_htt_tx_32()
1567 trace_ath10k_tx_hdr(ar, msdu->data, msdu->len); in ath10k_htt_tx_32()
1568 trace_ath10k_tx_payload(ar, msdu->data, msdu->len); in ath10k_htt_tx_32()
1581 sg_items[1].vaddr = msdu->data; in ath10k_htt_tx_32()
1594 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_tx_32()
1605 struct sk_buff *msdu) in ath10k_htt_tx_64() argument
1609 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_tx_64()
1610 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(msdu); in ath10k_htt_tx_64()
1611 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_tx_64()
1616 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_tx_64()
1617 u8 tid = ath10k_htt_tx_get_tid(msdu, is_eth); in ath10k_htt_tx_64()
1628 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_tx_64()
1634 prefetch_len = min(htt->prefetch_len, msdu->len); in ath10k_htt_tx_64()
1645 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_64()
1649 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_64()
1652 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_tx_64()
1680 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1690 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1734 if (msdu->ip_summed == CHECKSUM_PARTIAL && in ath10k_htt_tx_64()
1754 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1769 trace_ath10k_htt_tx(ar, msdu_id, msdu->len, vdev_id, tid); in ath10k_htt_tx_64()
1772 flags0, flags1, msdu->len, msdu_id, &frags_paddr, in ath10k_htt_tx_64()
1775 msdu->data, msdu->len); in ath10k_htt_tx_64()
1776 trace_ath10k_tx_hdr(ar, msdu->data, msdu->len); in ath10k_htt_tx_64()
1777 trace_ath10k_tx_payload(ar, msdu->data, msdu->len); in ath10k_htt_tx_64()
1790 sg_items[1].vaddr = msdu->data; in ath10k_htt_tx_64()
1803 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_tx_64()