Lines Matching refs:msdu

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()
1238 cmd->mgmt_tx.len = __cpu_to_le32(msdu->len); in ath10k_htt_mgmt_tx()
1241 memcpy(cmd->mgmt_tx.hdr, msdu->data, in ath10k_htt_mgmt_tx()
1242 min_t(int, msdu->len, HTT_MGMT_FRM_HDR_DOWNLOAD_LEN)); in ath10k_htt_mgmt_tx()
1252 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_mgmt_tx()
1269 struct sk_buff *msdu) in ath10k_htt_tx_hl() argument
1275 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_tx_hl()
1278 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_tx_hl()
1279 u8 tid = ath10k_htt_tx_get_tid(msdu, is_eth); in ath10k_htt_tx_hl()
1285 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_tx_hl()
1291 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_hl()
1295 data_len = msdu->len; in ath10k_htt_tx_hl()
1320 if (msdu->ip_summed == CHECKSUM_PARTIAL && in ath10k_htt_tx_hl()
1329 if (skb_headroom(msdu) < HTT_TX_HL_NEEDED_HEADROOM) { in ath10k_htt_tx_hl()
1330 tmp_skb = msdu; in ath10k_htt_tx_hl()
1334 skb_headroom(msdu), HTT_TX_HL_NEEDED_HEADROOM); in ath10k_htt_tx_hl()
1335 msdu = skb_realloc_headroom(msdu, HTT_TX_HL_NEEDED_HEADROOM); in ath10k_htt_tx_hl()
1337 if (!msdu) { in ath10k_htt_tx_hl()
1346 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_tx_hl()
1359 skb_get(msdu); in ath10k_htt_tx_hl()
1361 skb_push(msdu, sizeof(*cmd_hdr)); in ath10k_htt_tx_hl()
1362 skb_push(msdu, sizeof(*tx_desc)); in ath10k_htt_tx_hl()
1363 cmd_hdr = (struct htt_cmd_hdr *)msdu->data; in ath10k_htt_tx_hl()
1364 tx_desc = (struct htt_data_tx_desc *)(msdu->data + sizeof(*cmd_hdr)); in ath10k_htt_tx_hl()
1377 res = ath10k_htc_send_hl(&htt->ar->htc, htt->eid, msdu); in ath10k_htt_tx_hl()
1385 struct sk_buff *msdu) in ath10k_htt_tx_32() argument
1389 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(msdu); in ath10k_htt_tx_32()
1390 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_tx_32()
1395 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_tx_32()
1396 u8 tid = ath10k_htt_tx_get_tid(msdu, is_eth); in ath10k_htt_tx_32()
1407 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_tx_32()
1413 prefetch_len = min(htt->prefetch_len, msdu->len); in ath10k_htt_tx_32()
1421 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_tx_32()
1427 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_32()
1431 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_32()
1435 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_tx_32()
1462 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1470 frags[0].dword_addr.len = __cpu_to_le32(msdu->len); in ath10k_htt_tx_32()
1515 if (msdu->ip_summed == CHECKSUM_PARTIAL && in ath10k_htt_tx_32()
1532 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1545 trace_ath10k_htt_tx(ar, msdu_id, msdu->len, vdev_id, tid); in ath10k_htt_tx_32()
1548 flags0, flags1, msdu->len, msdu_id, &frags_paddr, in ath10k_htt_tx_32()
1551 msdu->data, msdu->len); in ath10k_htt_tx_32()
1552 trace_ath10k_tx_hdr(ar, msdu->data, msdu->len); in ath10k_htt_tx_32()
1553 trace_ath10k_tx_payload(ar, msdu->data, msdu->len); in ath10k_htt_tx_32()
1566 sg_items[1].vaddr = msdu->data; in ath10k_htt_tx_32()
1579 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_tx_32()
1590 struct sk_buff *msdu) in ath10k_htt_tx_64() argument
1594 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(msdu); in ath10k_htt_tx_64()
1595 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_tx_64()
1600 u8 vdev_id = ath10k_htt_tx_get_vdev_id(ar, msdu); in ath10k_htt_tx_64()
1601 u8 tid = ath10k_htt_tx_get_tid(msdu, is_eth); in ath10k_htt_tx_64()
1612 res = ath10k_htt_tx_alloc_msdu_id(htt, msdu); in ath10k_htt_tx_64()
1618 prefetch_len = min(htt->prefetch_len, msdu->len); in ath10k_htt_tx_64()
1626 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_tx_64()
1632 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_64()
1636 skb_put(msdu, IEEE80211_CCMP_MIC_LEN); in ath10k_htt_tx_64()
1640 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_tx_64()
1668 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1678 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1722 if (msdu->ip_summed == CHECKSUM_PARTIAL && in ath10k_htt_tx_64()
1742 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1757 trace_ath10k_htt_tx(ar, msdu_id, msdu->len, vdev_id, tid); in ath10k_htt_tx_64()
1760 flags0, flags1, msdu->len, msdu_id, &frags_paddr, in ath10k_htt_tx_64()
1763 msdu->data, msdu->len); in ath10k_htt_tx_64()
1764 trace_ath10k_tx_hdr(ar, msdu->data, msdu->len); in ath10k_htt_tx_64()
1765 trace_ath10k_tx_payload(ar, msdu->data, msdu->len); in ath10k_htt_tx_64()
1778 sg_items[1].vaddr = msdu->data; in ath10k_htt_tx_64()
1791 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_tx_64()