Lines Matching refs:msdu

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()
1242 cmd->mgmt_tx.len = __cpu_to_le32(msdu->len); in ath10k_htt_mgmt_tx()
1245 memcpy(cmd->mgmt_tx.hdr, msdu->data, in ath10k_htt_mgmt_tx()
1246 min_t(int, msdu->len, HTT_MGMT_FRM_HDR_DOWNLOAD_LEN)); in ath10k_htt_mgmt_tx()
1256 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_mgmt_tx()
1273 struct sk_buff *msdu) in ath10k_htt_tx_hl() argument
1279 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_tx_hl()
1282 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_tx_hl()
1283 u8 tid = ath10k_htt_tx_get_tid(msdu, is_eth); in ath10k_htt_tx_hl()
1289 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_tx_hl()
1295 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_hl()
1299 data_len = msdu->len; in ath10k_htt_tx_hl()
1324 if (msdu->ip_summed == CHECKSUM_PARTIAL && in ath10k_htt_tx_hl()
1333 if (skb_headroom(msdu) < HTT_TX_HL_NEEDED_HEADROOM) { in ath10k_htt_tx_hl()
1334 tmp_skb = msdu; in ath10k_htt_tx_hl()
1338 skb_headroom(msdu), HTT_TX_HL_NEEDED_HEADROOM); in ath10k_htt_tx_hl()
1339 msdu = skb_realloc_headroom(msdu, HTT_TX_HL_NEEDED_HEADROOM); in ath10k_htt_tx_hl()
1341 if (!msdu) { in ath10k_htt_tx_hl()
1350 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_tx_hl()
1363 skb_get(msdu); in ath10k_htt_tx_hl()
1365 skb_push(msdu, sizeof(*cmd_hdr)); in ath10k_htt_tx_hl()
1366 skb_push(msdu, sizeof(*tx_desc)); in ath10k_htt_tx_hl()
1367 cmd_hdr = (struct htt_cmd_hdr *)msdu->data; in ath10k_htt_tx_hl()
1368 tx_desc = (struct htt_data_tx_desc *)(msdu->data + sizeof(*cmd_hdr)); in ath10k_htt_tx_hl()
1381 res = ath10k_htc_send_hl(&htt->ar->htc, htt->eid, msdu); in ath10k_htt_tx_hl()
1389 struct sk_buff *msdu) in ath10k_htt_tx_32() argument
1393 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(msdu); in ath10k_htt_tx_32()
1394 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_tx_32()
1399 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_tx_32()
1400 u8 tid = ath10k_htt_tx_get_tid(msdu, is_eth); in ath10k_htt_tx_32()
1411 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_tx_32()
1417 prefetch_len = min(htt->prefetch_len, msdu->len); in ath10k_htt_tx_32()
1425 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_tx_32()
1431 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_32()
1435 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_32()
1439 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_tx_32()
1466 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1474 frags[0].dword_addr.len = __cpu_to_le32(msdu->len); in ath10k_htt_tx_32()
1519 if (msdu->ip_summed == CHECKSUM_PARTIAL && in ath10k_htt_tx_32()
1536 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1549 trace_ath10k_htt_tx(ar, msdu_id, msdu->len, vdev_id, tid); in ath10k_htt_tx_32()
1552 flags0, flags1, msdu->len, msdu_id, &frags_paddr, in ath10k_htt_tx_32()
1555 msdu->data, msdu->len); in ath10k_htt_tx_32()
1556 trace_ath10k_tx_hdr(ar, msdu->data, msdu->len); in ath10k_htt_tx_32()
1557 trace_ath10k_tx_payload(ar, msdu->data, msdu->len); in ath10k_htt_tx_32()
1570 sg_items[1].vaddr = msdu->data; in ath10k_htt_tx_32()
1583 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_tx_32()
1594 struct sk_buff *msdu) in ath10k_htt_tx_64() argument
1598 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(msdu); in ath10k_htt_tx_64()
1599 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_tx_64()
1604 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_tx_64()
1605 u8 tid = ath10k_htt_tx_get_tid(msdu, is_eth); in ath10k_htt_tx_64()
1616 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_tx_64()
1622 prefetch_len = min(htt->prefetch_len, msdu->len); in ath10k_htt_tx_64()
1630 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_tx_64()
1636 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_64()
1640 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_64()
1644 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_tx_64()
1672 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1682 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1726 if (msdu->ip_summed == CHECKSUM_PARTIAL && in ath10k_htt_tx_64()
1746 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1761 trace_ath10k_htt_tx(ar, msdu_id, msdu->len, vdev_id, tid); in ath10k_htt_tx_64()
1764 flags0, flags1, msdu->len, msdu_id, &frags_paddr, in ath10k_htt_tx_64()
1767 msdu->data, msdu->len); in ath10k_htt_tx_64()
1768 trace_ath10k_tx_hdr(ar, msdu->data, msdu->len); in ath10k_htt_tx_64()
1769 trace_ath10k_tx_payload(ar, msdu->data, msdu->len); in ath10k_htt_tx_64()
1782 sg_items[1].vaddr = msdu->data; in ath10k_htt_tx_64()
1795 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_tx_64()