Lines Matching refs:msdu

312 	struct sk_buff *msdu;  in ath10k_htt_rx_netbuf_pop()  local
322 msdu = htt->rx_ring.netbufs_ring[idx]; in ath10k_htt_rx_netbuf_pop()
332 ATH10K_SKB_RXCB(msdu)->paddr, in ath10k_htt_rx_netbuf_pop()
333 msdu->len + skb_tailroom(msdu), in ath10k_htt_rx_netbuf_pop()
336 msdu->data, msdu->len + skb_tailroom(msdu)); in ath10k_htt_rx_netbuf_pop()
338 return msdu; in ath10k_htt_rx_netbuf_pop()
347 struct sk_buff *msdu; in ath10k_htt_rx_amsdu_pop() local
355 msdu = ath10k_htt_rx_netbuf_pop(htt); in ath10k_htt_rx_amsdu_pop()
356 if (!msdu) { in ath10k_htt_rx_amsdu_pop()
361 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_amsdu_pop()
363 rx_desc = (struct htt_rx_desc *)msdu->data; in ath10k_htt_rx_amsdu_pop()
368 skb_put(msdu, offsetof(struct htt_rx_desc, msdu_payload)); in ath10k_htt_rx_amsdu_pop()
369 skb_pull(msdu, offsetof(struct htt_rx_desc, msdu_payload)); in ath10k_htt_rx_amsdu_pop()
395 skb_trim(msdu, 0); in ath10k_htt_rx_amsdu_pop()
396 skb_put(msdu, min(msdu_len, HTT_RX_MSDU_SIZE)); in ath10k_htt_rx_amsdu_pop()
397 msdu_len -= msdu->len; in ath10k_htt_rx_amsdu_pop()
401 msdu = ath10k_htt_rx_netbuf_pop(htt); in ath10k_htt_rx_amsdu_pop()
402 if (!msdu) { in ath10k_htt_rx_amsdu_pop()
407 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_amsdu_pop()
408 skb_trim(msdu, 0); in ath10k_htt_rx_amsdu_pop()
409 skb_put(msdu, min(msdu_len, HTT_RX_BUF_SIZE)); in ath10k_htt_rx_amsdu_pop()
410 msdu_len -= msdu->len; in ath10k_htt_rx_amsdu_pop()
448 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr() local
452 msdu = ath10k_htt_rx_find_skb_paddr(ar, paddr); in ath10k_htt_rx_pop_paddr()
453 if (!msdu) in ath10k_htt_rx_pop_paddr()
456 rxcb = ATH10K_SKB_RXCB(msdu); in ath10k_htt_rx_pop_paddr()
461 msdu->len + skb_tailroom(msdu), in ath10k_htt_rx_pop_paddr()
464 msdu->data, msdu->len + skb_tailroom(msdu)); in ath10k_htt_rx_pop_paddr()
466 return msdu; in ath10k_htt_rx_pop_paddr()
479 struct sk_buff *msdu, in ath10k_htt_rx_handle_amsdu_mon_32() argument
491 rxd = (void *)msdu->data; in ath10k_htt_rx_handle_amsdu_mon_32()
494 skb_put(msdu, sizeof(struct htt_rx_desc)); in ath10k_htt_rx_handle_amsdu_mon_32()
495 skb_pull(msdu, sizeof(struct htt_rx_desc)); in ath10k_htt_rx_handle_amsdu_mon_32()
496 skb_put(msdu, min(amsdu_len, HTT_RX_MSDU_SIZE)); in ath10k_htt_rx_handle_amsdu_mon_32()
497 amsdu_len -= msdu->len; in ath10k_htt_rx_handle_amsdu_mon_32()
518 ath10k_htt_append_frag_list(msdu, frag_buf, amsdu_len); in ath10k_htt_rx_handle_amsdu_mon_32()
555 struct sk_buff *msdu, in ath10k_htt_rx_handle_amsdu_mon_64() argument
567 rxd = (void *)msdu->data; in ath10k_htt_rx_handle_amsdu_mon_64()
570 skb_put(msdu, sizeof(struct htt_rx_desc)); in ath10k_htt_rx_handle_amsdu_mon_64()
571 skb_pull(msdu, sizeof(struct htt_rx_desc)); in ath10k_htt_rx_handle_amsdu_mon_64()
572 skb_put(msdu, min(amsdu_len, HTT_RX_MSDU_SIZE)); in ath10k_htt_rx_handle_amsdu_mon_64()
573 amsdu_len -= msdu->len; in ath10k_htt_rx_handle_amsdu_mon_64()
594 ath10k_htt_append_frag_list(msdu, frag_buf, amsdu_len); in ath10k_htt_rx_handle_amsdu_mon_64()
636 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr32_list() local
649 msdu = ath10k_htt_rx_pop_paddr(htt, paddr); in ath10k_htt_rx_pop_paddr32_list()
650 if (!msdu) { in ath10k_htt_rx_pop_paddr32_list()
656 ret = ath10k_htt_rx_handle_amsdu_mon_32(htt, msdu, in ath10k_htt_rx_pop_paddr32_list()
662 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr32_list()
667 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr32_list()
670 rxd = (void *)msdu->data; in ath10k_htt_rx_pop_paddr32_list()
674 skb_put(msdu, sizeof(*rxd)); in ath10k_htt_rx_pop_paddr32_list()
675 skb_pull(msdu, sizeof(*rxd)); in ath10k_htt_rx_pop_paddr32_list()
676 skb_put(msdu, __le16_to_cpu(msdu_desc->msdu_len)); in ath10k_htt_rx_pop_paddr32_list()
698 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr64_list() local
710 msdu = ath10k_htt_rx_pop_paddr(htt, paddr); in ath10k_htt_rx_pop_paddr64_list()
711 if (!msdu) { in ath10k_htt_rx_pop_paddr64_list()
717 ret = ath10k_htt_rx_handle_amsdu_mon_64(htt, msdu, in ath10k_htt_rx_pop_paddr64_list()
723 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr64_list()
728 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr64_list()
731 rxd = (void *)msdu->data; in ath10k_htt_rx_pop_paddr64_list()
735 skb_put(msdu, sizeof(*rxd)); in ath10k_htt_rx_pop_paddr64_list()
736 skb_pull(msdu, sizeof(*rxd)); in ath10k_htt_rx_pop_paddr64_list()
737 skb_put(msdu, __le16_to_cpu(msdu_desc->msdu_len)); in ath10k_htt_rx_pop_paddr64_list()
1353 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_raw() argument
1369 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_h_undecap_raw()
1403 skb_trim(msdu, msdu->len - FCS_LEN); in ath10k_htt_rx_h_undecap_raw()
1417 memcpy(skb_push(msdu, crypto_len), in ath10k_htt_rx_h_undecap_raw()
1421 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_raw()
1438 hdr = (void *)msdu->data; in ath10k_htt_rx_h_undecap_raw()
1442 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1445 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1450 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1455 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1463 skb_trim(msdu, msdu->len - MICHAEL_MIC_LEN); in ath10k_htt_rx_h_undecap_raw()
1470 memmove((void *)msdu->data + crypto_len, in ath10k_htt_rx_h_undecap_raw()
1471 (void *)msdu->data, hdr_len); in ath10k_htt_rx_h_undecap_raw()
1472 skb_pull(msdu, crypto_len); in ath10k_htt_rx_h_undecap_raw()
1477 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_nwifi() argument
1502 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_h_undecap_nwifi()
1505 skb_put(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_nwifi()
1507 hdr = (struct ieee80211_hdr *)(msdu->data + l3_pad_bytes); in ath10k_htt_rx_h_undecap_nwifi()
1512 skb_pull(msdu, hdr_len); in ath10k_htt_rx_h_undecap_nwifi()
1519 memcpy(skb_push(msdu, in ath10k_htt_rx_h_undecap_nwifi()
1525 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_nwifi()
1530 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_nwifi()
1536 struct sk_buff *msdu, in ath10k_htt_rx_h_find_rfc1042() argument
1546 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_h_find_rfc1042()
1572 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_eth() argument
1592 rfc1042 = ath10k_htt_rx_h_find_rfc1042(ar, msdu, enctype); in ath10k_htt_rx_h_undecap_eth()
1596 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_h_undecap_eth()
1598 skb_put(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_eth()
1599 skb_pull(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_eth()
1602 eth = (struct ethhdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1605 skb_pull(msdu, sizeof(struct ethhdr)); in ath10k_htt_rx_h_undecap_eth()
1608 memcpy(skb_push(msdu, sizeof(struct rfc1042_hdr)), rfc1042, in ath10k_htt_rx_h_undecap_eth()
1616 memcpy(skb_push(msdu, in ath10k_htt_rx_h_undecap_eth()
1622 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_eth()
1627 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1633 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_snap() argument
1650 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_h_undecap_snap()
1653 skb_put(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_snap()
1654 skb_pull(msdu, sizeof(struct amsdu_subframe_hdr) + l3_pad_bytes); in ath10k_htt_rx_h_undecap_snap()
1660 memcpy(skb_push(msdu, in ath10k_htt_rx_h_undecap_snap()
1666 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_snap()
1670 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap() argument
1690 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_h_undecap()
1696 ath10k_htt_rx_h_undecap_raw(ar, msdu, status, enctype, in ath10k_htt_rx_h_undecap()
1700 ath10k_htt_rx_h_undecap_nwifi(ar, msdu, status, first_hdr, in ath10k_htt_rx_h_undecap()
1704 ath10k_htt_rx_h_undecap_eth(ar, msdu, status, first_hdr, enctype); in ath10k_htt_rx_h_undecap()
1707 ath10k_htt_rx_h_undecap_snap(ar, msdu, status, first_hdr, in ath10k_htt_rx_h_undecap()
1744 static void ath10k_htt_rx_h_csum_offload(struct sk_buff *msdu) in ath10k_htt_rx_h_csum_offload() argument
1746 msdu->ip_summed = ath10k_htt_rx_get_csum_state(msdu); in ath10k_htt_rx_h_csum_offload()
1837 struct sk_buff *msdu, *temp; in ath10k_htt_rx_h_mpdu() local
1948 skb_queue_walk(amsdu, msdu) { in ath10k_htt_rx_h_mpdu()
1952 msdu, in ath10k_htt_rx_h_mpdu()
1959 msdu, in ath10k_htt_rx_h_mpdu()
1965 temp = msdu->prev; in ath10k_htt_rx_h_mpdu()
1966 __skb_unlink(msdu, amsdu); in ath10k_htt_rx_h_mpdu()
1967 dev_kfree_skb_any(msdu); in ath10k_htt_rx_h_mpdu()
1968 msdu = temp; in ath10k_htt_rx_h_mpdu()
1974 ath10k_htt_rx_h_csum_offload(msdu); in ath10k_htt_rx_h_mpdu()
1980 ath10k_htt_rx_h_undecap(ar, msdu, status, first_hdr, enctype, in ath10k_htt_rx_h_mpdu()
1995 hdr = (void *)msdu->data; in ath10k_htt_rx_h_mpdu()
2009 struct sk_buff *msdu; in ath10k_htt_rx_h_enqueue() local
2014 while ((msdu = __skb_dequeue(amsdu))) { in ath10k_htt_rx_h_enqueue()
2021 if (msdu == first_subframe) { in ath10k_htt_rx_h_enqueue()
2028 ath10k_htt_rx_h_queue_msdu(ar, status, msdu); in ath10k_htt_rx_h_enqueue()
3034 struct sk_buff *msdu; in ath10k_htt_rx_extract_amsdu() local
3043 while ((msdu = __skb_dequeue(list))) { in ath10k_htt_rx_extract_amsdu()
3044 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_extract_amsdu()
3046 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_extract_amsdu()
3052 msdu = skb_peek_tail(amsdu); in ath10k_htt_rx_extract_amsdu()
3053 rxd = (void *)msdu->data - sizeof(*rxd); in ath10k_htt_rx_extract_amsdu()
3088 struct sk_buff *msdu; in ath10k_htt_rx_h_rx_offload() local
3091 while ((msdu = __skb_dequeue(list))) { in ath10k_htt_rx_h_rx_offload()
3096 rx = (void *)msdu->data; in ath10k_htt_rx_h_rx_offload()
3098 skb_put(msdu, sizeof(*rx)); in ath10k_htt_rx_h_rx_offload()
3099 skb_pull(msdu, sizeof(*rx)); in ath10k_htt_rx_h_rx_offload()
3101 if (skb_tailroom(msdu) < __le16_to_cpu(rx->msdu_len)) { in ath10k_htt_rx_h_rx_offload()
3103 dev_kfree_skb_any(msdu); in ath10k_htt_rx_h_rx_offload()
3107 skb_put(msdu, __le16_to_cpu(rx->msdu_len)); in ath10k_htt_rx_h_rx_offload()
3114 offset = 4 - ((unsigned long)msdu->data & 3); in ath10k_htt_rx_h_rx_offload()
3115 skb_put(msdu, offset); in ath10k_htt_rx_h_rx_offload()
3116 memmove(msdu->data + offset, msdu->data, msdu->len); in ath10k_htt_rx_h_rx_offload()
3117 skb_pull(msdu, offset); in ath10k_htt_rx_h_rx_offload()
3126 ath10k_htt_rx_h_rx_offload_prot(status, msdu); in ath10k_htt_rx_h_rx_offload()
3128 ath10k_htt_rx_h_queue_msdu(ar, status, msdu); in ath10k_htt_rx_h_rx_offload()