Lines Matching refs:msdu

253 	struct sk_buff *msdu;  in ath10k_htt_rx_netbuf_pop()  local
263 msdu = htt->rx_ring.netbufs_ring[idx]; in ath10k_htt_rx_netbuf_pop()
273 ATH10K_SKB_RXCB(msdu)->paddr, in ath10k_htt_rx_netbuf_pop()
274 msdu->len + skb_tailroom(msdu), in ath10k_htt_rx_netbuf_pop()
277 msdu->data, msdu->len + skb_tailroom(msdu)); in ath10k_htt_rx_netbuf_pop()
279 return msdu; in ath10k_htt_rx_netbuf_pop()
289 struct sk_buff *msdu; in ath10k_htt_rx_amsdu_pop() local
297 msdu = ath10k_htt_rx_netbuf_pop(htt); in ath10k_htt_rx_amsdu_pop()
298 if (!msdu) { in ath10k_htt_rx_amsdu_pop()
303 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_amsdu_pop()
305 rx_desc = (struct htt_rx_desc *)msdu->data; in ath10k_htt_rx_amsdu_pop()
309 skb_put(msdu, offsetof(struct htt_rx_desc, msdu_payload)); in ath10k_htt_rx_amsdu_pop()
310 skb_pull(msdu, offsetof(struct htt_rx_desc, msdu_payload)); in ath10k_htt_rx_amsdu_pop()
378 skb_trim(msdu, 0); in ath10k_htt_rx_amsdu_pop()
379 skb_put(msdu, min(msdu_len, HTT_RX_MSDU_SIZE)); in ath10k_htt_rx_amsdu_pop()
380 msdu_len -= msdu->len; in ath10k_htt_rx_amsdu_pop()
384 msdu = ath10k_htt_rx_netbuf_pop(htt); in ath10k_htt_rx_amsdu_pop()
385 if (!msdu) { in ath10k_htt_rx_amsdu_pop()
390 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_amsdu_pop()
391 skb_trim(msdu, 0); in ath10k_htt_rx_amsdu_pop()
392 skb_put(msdu, min(msdu_len, HTT_RX_BUF_SIZE)); in ath10k_htt_rx_amsdu_pop()
393 msdu_len -= msdu->len; in ath10k_htt_rx_amsdu_pop()
438 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr() local
442 msdu = ath10k_htt_rx_find_skb_paddr(ar, paddr); in ath10k_htt_rx_pop_paddr()
443 if (!msdu) in ath10k_htt_rx_pop_paddr()
446 rxcb = ATH10K_SKB_RXCB(msdu); in ath10k_htt_rx_pop_paddr()
451 msdu->len + skb_tailroom(msdu), in ath10k_htt_rx_pop_paddr()
454 msdu->data, msdu->len + skb_tailroom(msdu)); in ath10k_htt_rx_pop_paddr()
456 return msdu; in ath10k_htt_rx_pop_paddr()
466 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr_list() local
479 msdu = ath10k_htt_rx_pop_paddr(htt, paddr); in ath10k_htt_rx_pop_paddr_list()
480 if (!msdu) { in ath10k_htt_rx_pop_paddr_list()
485 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr_list()
488 rxd = (void *)msdu->data; in ath10k_htt_rx_pop_paddr_list()
492 skb_put(msdu, sizeof(*rxd)); in ath10k_htt_rx_pop_paddr_list()
493 skb_pull(msdu, sizeof(*rxd)); in ath10k_htt_rx_pop_paddr_list()
494 skb_put(msdu, __le16_to_cpu(msdu_desc->msdu_len)); in ath10k_htt_rx_pop_paddr_list()
1024 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_raw() argument
1036 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_h_undecap_raw()
1060 skb_trim(msdu, msdu->len - FCS_LEN); in ath10k_htt_rx_h_undecap_raw()
1076 hdr = (void *)msdu->data; in ath10k_htt_rx_h_undecap_raw()
1079 skb_trim(msdu, msdu->len - ath10k_htt_rx_crypto_tail_len(ar, enctype)); in ath10k_htt_rx_h_undecap_raw()
1084 skb_trim(msdu, msdu->len - 8); in ath10k_htt_rx_h_undecap_raw()
1090 memmove((void *)msdu->data + crypto_len, in ath10k_htt_rx_h_undecap_raw()
1091 (void *)msdu->data, hdr_len); in ath10k_htt_rx_h_undecap_raw()
1092 skb_pull(msdu, crypto_len); in ath10k_htt_rx_h_undecap_raw()
1096 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_nwifi() argument
1117 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_nwifi()
1121 skb_pull(msdu, hdr_len); in ath10k_htt_rx_h_undecap_nwifi()
1126 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_nwifi()
1131 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_nwifi()
1137 struct sk_buff *msdu, in ath10k_htt_rx_h_find_rfc1042() argument
1146 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_h_find_rfc1042()
1172 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_eth() argument
1189 rfc1042 = ath10k_htt_rx_h_find_rfc1042(ar, msdu, enctype); in ath10k_htt_rx_h_undecap_eth()
1194 eth = (struct ethhdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1197 skb_pull(msdu, sizeof(struct ethhdr)); in ath10k_htt_rx_h_undecap_eth()
1200 memcpy(skb_push(msdu, sizeof(struct rfc1042_hdr)), rfc1042, in ath10k_htt_rx_h_undecap_eth()
1206 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_eth()
1211 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1217 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_snap() argument
1230 skb_pull(msdu, sizeof(struct amsdu_subframe_hdr)); in ath10k_htt_rx_h_undecap_snap()
1234 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_snap()
1238 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap() argument
1258 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_h_undecap()
1264 ath10k_htt_rx_h_undecap_raw(ar, msdu, status, enctype, in ath10k_htt_rx_h_undecap()
1268 ath10k_htt_rx_h_undecap_nwifi(ar, msdu, status, first_hdr); in ath10k_htt_rx_h_undecap()
1271 ath10k_htt_rx_h_undecap_eth(ar, msdu, status, first_hdr, enctype); in ath10k_htt_rx_h_undecap()
1274 ath10k_htt_rx_h_undecap_snap(ar, msdu, status, first_hdr); in ath10k_htt_rx_h_undecap()
1310 static void ath10k_htt_rx_h_csum_offload(struct sk_buff *msdu) in ath10k_htt_rx_h_csum_offload() argument
1312 msdu->ip_summed = ath10k_htt_rx_get_csum_state(msdu); in ath10k_htt_rx_h_csum_offload()
1321 struct sk_buff *msdu; in ath10k_htt_rx_h_mpdu() local
1395 skb_queue_walk(amsdu, msdu) { in ath10k_htt_rx_h_mpdu()
1396 ath10k_htt_rx_h_csum_offload(msdu); in ath10k_htt_rx_h_mpdu()
1397 ath10k_htt_rx_h_undecap(ar, msdu, status, first_hdr, enctype, in ath10k_htt_rx_h_mpdu()
1407 hdr = (void *)msdu->data; in ath10k_htt_rx_h_mpdu()
1416 struct sk_buff *msdu; in ath10k_htt_rx_h_deliver() local
1418 while ((msdu = __skb_dequeue(amsdu))) { in ath10k_htt_rx_h_deliver()
1425 ath10k_process_rx(ar, status, msdu); in ath10k_htt_rx_h_deliver()
1506 struct sk_buff *msdu; in ath10k_htt_rx_amsdu_allowed() local
1511 msdu = skb_peek(amsdu); in ath10k_htt_rx_amsdu_allowed()
1512 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_amsdu_allowed()
1787 struct sk_buff *msdu; in ath10k_htt_rx_extract_amsdu() local
1796 while ((msdu = __skb_dequeue(list))) { in ath10k_htt_rx_extract_amsdu()
1797 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_extract_amsdu()
1799 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_extract_amsdu()
1805 msdu = skb_peek_tail(amsdu); in ath10k_htt_rx_extract_amsdu()
1806 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_extract_amsdu()
1841 struct sk_buff *msdu; in ath10k_htt_rx_h_rx_offload() local
1844 while ((msdu = __skb_dequeue(list))) { in ath10k_htt_rx_h_rx_offload()
1849 rx = (void *)msdu->data; in ath10k_htt_rx_h_rx_offload()
1851 skb_put(msdu, sizeof(*rx)); in ath10k_htt_rx_h_rx_offload()
1852 skb_pull(msdu, sizeof(*rx)); in ath10k_htt_rx_h_rx_offload()
1854 if (skb_tailroom(msdu) < __le16_to_cpu(rx->msdu_len)) { in ath10k_htt_rx_h_rx_offload()
1856 dev_kfree_skb_any(msdu); in ath10k_htt_rx_h_rx_offload()
1860 skb_put(msdu, __le16_to_cpu(rx->msdu_len)); in ath10k_htt_rx_h_rx_offload()
1867 offset = 4 - ((unsigned long)msdu->data & 3); in ath10k_htt_rx_h_rx_offload()
1868 skb_put(msdu, offset); in ath10k_htt_rx_h_rx_offload()
1869 memmove(msdu->data + offset, msdu->data, msdu->len); in ath10k_htt_rx_h_rx_offload()
1870 skb_pull(msdu, offset); in ath10k_htt_rx_h_rx_offload()
1879 ath10k_htt_rx_h_rx_offload_prot(status, msdu); in ath10k_htt_rx_h_rx_offload()
1881 ath10k_process_rx(ar, status, msdu); in ath10k_htt_rx_h_rx_offload()