Lines Matching refs:msdu

320 	struct sk_buff *msdu;  in ath10k_htt_rx_netbuf_pop()  local
330 msdu = htt->rx_ring.netbufs_ring[idx]; in ath10k_htt_rx_netbuf_pop()
340 ATH10K_SKB_RXCB(msdu)->paddr, in ath10k_htt_rx_netbuf_pop()
341 msdu->len + skb_tailroom(msdu), in ath10k_htt_rx_netbuf_pop()
344 msdu->data, msdu->len + skb_tailroom(msdu)); in ath10k_htt_rx_netbuf_pop()
346 return msdu; in ath10k_htt_rx_netbuf_pop()
356 struct sk_buff *msdu; in ath10k_htt_rx_amsdu_pop() local
368 msdu = ath10k_htt_rx_netbuf_pop(htt); in ath10k_htt_rx_amsdu_pop()
369 if (!msdu) { in ath10k_htt_rx_amsdu_pop()
374 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_amsdu_pop()
376 rx_desc = HTT_RX_BUF_TO_RX_DESC(hw, msdu->data); in ath10k_htt_rx_amsdu_pop()
386 skb_put(msdu, hw->rx_desc_ops->rx_desc_msdu_payload_offset); in ath10k_htt_rx_amsdu_pop()
387 skb_pull(msdu, hw->rx_desc_ops->rx_desc_msdu_payload_offset); in ath10k_htt_rx_amsdu_pop()
413 skb_trim(msdu, 0); in ath10k_htt_rx_amsdu_pop()
414 skb_put(msdu, min(msdu_len, ath10k_htt_rx_msdu_size(hw))); in ath10k_htt_rx_amsdu_pop()
415 msdu_len -= msdu->len; in ath10k_htt_rx_amsdu_pop()
419 msdu = ath10k_htt_rx_netbuf_pop(htt); in ath10k_htt_rx_amsdu_pop()
420 if (!msdu) { in ath10k_htt_rx_amsdu_pop()
425 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_amsdu_pop()
426 skb_trim(msdu, 0); in ath10k_htt_rx_amsdu_pop()
427 skb_put(msdu, min(msdu_len, HTT_RX_BUF_SIZE)); in ath10k_htt_rx_amsdu_pop()
428 msdu_len -= msdu->len; in ath10k_htt_rx_amsdu_pop()
467 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr() local
471 msdu = ath10k_htt_rx_find_skb_paddr(ar, paddr); in ath10k_htt_rx_pop_paddr()
472 if (!msdu) in ath10k_htt_rx_pop_paddr()
475 rxcb = ATH10K_SKB_RXCB(msdu); in ath10k_htt_rx_pop_paddr()
480 msdu->len + skb_tailroom(msdu), in ath10k_htt_rx_pop_paddr()
483 msdu->data, msdu->len + skb_tailroom(msdu)); in ath10k_htt_rx_pop_paddr()
485 return msdu; in ath10k_htt_rx_pop_paddr()
498 struct sk_buff *msdu, in ath10k_htt_rx_handle_amsdu_mon_32() argument
511 rxd = HTT_RX_BUF_TO_RX_DESC(hw, msdu->data); in ath10k_htt_rx_handle_amsdu_mon_32()
514 skb_put(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_handle_amsdu_mon_32()
515 skb_pull(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_handle_amsdu_mon_32()
516 skb_put(msdu, min(amsdu_len, ath10k_htt_rx_msdu_size(hw))); in ath10k_htt_rx_handle_amsdu_mon_32()
517 amsdu_len -= msdu->len; in ath10k_htt_rx_handle_amsdu_mon_32()
538 ath10k_htt_append_frag_list(msdu, frag_buf, amsdu_len); in ath10k_htt_rx_handle_amsdu_mon_32()
575 struct sk_buff *msdu, in ath10k_htt_rx_handle_amsdu_mon_64() argument
588 rxd = HTT_RX_BUF_TO_RX_DESC(hw, msdu->data); in ath10k_htt_rx_handle_amsdu_mon_64()
591 skb_put(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_handle_amsdu_mon_64()
592 skb_pull(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_handle_amsdu_mon_64()
593 skb_put(msdu, min(amsdu_len, ath10k_htt_rx_msdu_size(hw))); in ath10k_htt_rx_handle_amsdu_mon_64()
594 amsdu_len -= msdu->len; in ath10k_htt_rx_handle_amsdu_mon_64()
615 ath10k_htt_append_frag_list(msdu, frag_buf, amsdu_len); in ath10k_htt_rx_handle_amsdu_mon_64()
659 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr32_list() local
672 msdu = ath10k_htt_rx_pop_paddr(htt, paddr); in ath10k_htt_rx_pop_paddr32_list()
673 if (!msdu) { in ath10k_htt_rx_pop_paddr32_list()
679 ret = ath10k_htt_rx_handle_amsdu_mon_32(htt, msdu, in ath10k_htt_rx_pop_paddr32_list()
685 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr32_list()
690 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr32_list()
693 rxd = HTT_RX_BUF_TO_RX_DESC(hw, msdu->data); in ath10k_htt_rx_pop_paddr32_list()
698 skb_put(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_pop_paddr32_list()
699 skb_pull(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_pop_paddr32_list()
700 skb_put(msdu, __le16_to_cpu(msdu_desc->msdu_len)); in ath10k_htt_rx_pop_paddr32_list()
724 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr64_list() local
736 msdu = ath10k_htt_rx_pop_paddr(htt, paddr); in ath10k_htt_rx_pop_paddr64_list()
737 if (!msdu) { in ath10k_htt_rx_pop_paddr64_list()
743 ret = ath10k_htt_rx_handle_amsdu_mon_64(htt, msdu, in ath10k_htt_rx_pop_paddr64_list()
749 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr64_list()
754 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr64_list()
757 rxd = HTT_RX_BUF_TO_RX_DESC(hw, msdu->data); in ath10k_htt_rx_pop_paddr64_list()
762 skb_put(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_pop_paddr64_list()
763 skb_pull(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_pop_paddr64_list()
764 skb_put(msdu, __le16_to_cpu(msdu_desc->msdu_len)); in ath10k_htt_rx_pop_paddr64_list()
1418 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_raw() argument
1437 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap_raw()
1473 skb_trim(msdu, msdu->len - FCS_LEN); in ath10k_htt_rx_h_undecap_raw()
1487 memcpy(skb_push(msdu, crypto_len), in ath10k_htt_rx_h_undecap_raw()
1491 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_raw()
1508 hdr = (void *)msdu->data; in ath10k_htt_rx_h_undecap_raw()
1512 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1515 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1520 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1525 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1533 skb_trim(msdu, msdu->len - MICHAEL_MIC_LEN); in ath10k_htt_rx_h_undecap_raw()
1540 memmove((void *)msdu->data + crypto_len, in ath10k_htt_rx_h_undecap_raw()
1541 (void *)msdu->data, hdr_len); in ath10k_htt_rx_h_undecap_raw()
1542 skb_pull(msdu, crypto_len); in ath10k_htt_rx_h_undecap_raw()
1547 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_nwifi() argument
1573 rxd = HTT_RX_BUF_TO_RX_DESC(hw, (void *)msdu->data - in ath10k_htt_rx_h_undecap_nwifi()
1577 skb_put(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_nwifi()
1579 hdr = (struct ieee80211_hdr *)(msdu->data + l3_pad_bytes); in ath10k_htt_rx_h_undecap_nwifi()
1584 skb_pull(msdu, hdr_len); in ath10k_htt_rx_h_undecap_nwifi()
1591 memcpy(skb_push(msdu, in ath10k_htt_rx_h_undecap_nwifi()
1597 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_nwifi()
1602 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_nwifi()
1608 struct sk_buff *msdu, in ath10k_htt_rx_h_find_rfc1042() argument
1622 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_find_rfc1042()
1651 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_eth() argument
1672 rfc1042 = ath10k_htt_rx_h_find_rfc1042(ar, msdu, enctype); in ath10k_htt_rx_h_undecap_eth()
1677 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap_eth()
1680 skb_put(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_eth()
1681 skb_pull(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_eth()
1684 eth = (struct ethhdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1687 skb_pull(msdu, sizeof(struct ethhdr)); in ath10k_htt_rx_h_undecap_eth()
1690 memcpy(skb_push(msdu, sizeof(struct rfc1042_hdr)), rfc1042, in ath10k_htt_rx_h_undecap_eth()
1698 memcpy(skb_push(msdu, in ath10k_htt_rx_h_undecap_eth()
1704 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_eth()
1709 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1715 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_snap() argument
1734 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap_snap()
1738 skb_put(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_snap()
1739 skb_pull(msdu, sizeof(struct amsdu_subframe_hdr) + l3_pad_bytes); in ath10k_htt_rx_h_undecap_snap()
1745 memcpy(skb_push(msdu, in ath10k_htt_rx_h_undecap_snap()
1751 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_snap()
1755 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap() argument
1778 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap()
1786 ath10k_htt_rx_h_undecap_raw(ar, msdu, status, enctype, in ath10k_htt_rx_h_undecap()
1790 ath10k_htt_rx_h_undecap_nwifi(ar, msdu, status, first_hdr, in ath10k_htt_rx_h_undecap()
1794 ath10k_htt_rx_h_undecap_eth(ar, msdu, status, first_hdr, enctype); in ath10k_htt_rx_h_undecap()
1797 ath10k_htt_rx_h_undecap_snap(ar, msdu, status, first_hdr, in ath10k_htt_rx_h_undecap()
1841 struct sk_buff *msdu) in ath10k_htt_rx_h_csum_offload() argument
1843 msdu->ip_summed = ath10k_htt_rx_get_csum_state(hw, msdu); in ath10k_htt_rx_h_csum_offload()
1934 struct sk_buff *msdu, *temp; in ath10k_htt_rx_h_mpdu() local
2056 skb_queue_walk(amsdu, msdu) { in ath10k_htt_rx_h_mpdu()
2060 msdu, in ath10k_htt_rx_h_mpdu()
2067 msdu, in ath10k_htt_rx_h_mpdu()
2073 temp = msdu->prev; in ath10k_htt_rx_h_mpdu()
2074 __skb_unlink(msdu, amsdu); in ath10k_htt_rx_h_mpdu()
2075 dev_kfree_skb_any(msdu); in ath10k_htt_rx_h_mpdu()
2076 msdu = temp; in ath10k_htt_rx_h_mpdu()
2082 ath10k_htt_rx_h_csum_offload(&ar->hw_params, msdu); in ath10k_htt_rx_h_mpdu()
2088 ath10k_htt_rx_h_undecap(ar, msdu, status, first_hdr, enctype, in ath10k_htt_rx_h_mpdu()
2103 hdr = (void *)msdu->data; in ath10k_htt_rx_h_mpdu()
2117 struct sk_buff *msdu; in ath10k_htt_rx_h_enqueue() local
2122 while ((msdu = __skb_dequeue(amsdu))) { in ath10k_htt_rx_h_enqueue()
2129 if (msdu == first_subframe) { in ath10k_htt_rx_h_enqueue()
2136 ath10k_htt_rx_h_queue_msdu(ar, status, msdu); in ath10k_htt_rx_h_enqueue()
3157 struct sk_buff *msdu; in ath10k_htt_rx_extract_amsdu() local
3167 while ((msdu = __skb_dequeue(list))) { in ath10k_htt_rx_extract_amsdu()
3168 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_extract_amsdu()
3171 (void *)msdu->data - in ath10k_htt_rx_extract_amsdu()
3180 msdu = skb_peek_tail(amsdu); in ath10k_htt_rx_extract_amsdu()
3182 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_extract_amsdu()
3219 struct sk_buff *msdu; in ath10k_htt_rx_h_rx_offload() local
3222 while ((msdu = __skb_dequeue(list))) { in ath10k_htt_rx_h_rx_offload()
3227 rx = (void *)msdu->data; in ath10k_htt_rx_h_rx_offload()
3229 skb_put(msdu, sizeof(*rx)); in ath10k_htt_rx_h_rx_offload()
3230 skb_pull(msdu, sizeof(*rx)); in ath10k_htt_rx_h_rx_offload()
3232 if (skb_tailroom(msdu) < __le16_to_cpu(rx->msdu_len)) { in ath10k_htt_rx_h_rx_offload()
3234 dev_kfree_skb_any(msdu); in ath10k_htt_rx_h_rx_offload()
3238 skb_put(msdu, __le16_to_cpu(rx->msdu_len)); in ath10k_htt_rx_h_rx_offload()
3245 offset = 4 - ((unsigned long)msdu->data & 3); in ath10k_htt_rx_h_rx_offload()
3246 skb_put(msdu, offset); in ath10k_htt_rx_h_rx_offload()
3247 memmove(msdu->data + offset, msdu->data, msdu->len); in ath10k_htt_rx_h_rx_offload()
3248 skb_pull(msdu, offset); in ath10k_htt_rx_h_rx_offload()
3257 ath10k_htt_rx_h_rx_offload_prot(status, msdu); in ath10k_htt_rx_h_rx_offload()
3259 ath10k_htt_rx_h_queue_msdu(ar, status, msdu); in ath10k_htt_rx_h_rx_offload()