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()
471 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr() local
475 msdu = ath10k_htt_rx_find_skb_paddr(ar, paddr); in ath10k_htt_rx_pop_paddr()
476 if (!msdu) in ath10k_htt_rx_pop_paddr()
479 rxcb = ATH10K_SKB_RXCB(msdu); in ath10k_htt_rx_pop_paddr()
484 msdu->len + skb_tailroom(msdu), in ath10k_htt_rx_pop_paddr()
487 msdu->data, msdu->len + skb_tailroom(msdu)); in ath10k_htt_rx_pop_paddr()
489 return msdu; in ath10k_htt_rx_pop_paddr()
502 struct sk_buff *msdu, in ath10k_htt_rx_handle_amsdu_mon_32() argument
515 rxd = HTT_RX_BUF_TO_RX_DESC(hw, msdu->data); in ath10k_htt_rx_handle_amsdu_mon_32()
518 skb_put(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_handle_amsdu_mon_32()
519 skb_pull(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_handle_amsdu_mon_32()
520 skb_put(msdu, min(amsdu_len, ath10k_htt_rx_msdu_size(hw))); in ath10k_htt_rx_handle_amsdu_mon_32()
521 amsdu_len -= msdu->len; in ath10k_htt_rx_handle_amsdu_mon_32()
542 ath10k_htt_append_frag_list(msdu, frag_buf, amsdu_len); in ath10k_htt_rx_handle_amsdu_mon_32()
579 struct sk_buff *msdu, in ath10k_htt_rx_handle_amsdu_mon_64() argument
592 rxd = HTT_RX_BUF_TO_RX_DESC(hw, msdu->data); in ath10k_htt_rx_handle_amsdu_mon_64()
595 skb_put(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_handle_amsdu_mon_64()
596 skb_pull(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_handle_amsdu_mon_64()
597 skb_put(msdu, min(amsdu_len, ath10k_htt_rx_msdu_size(hw))); in ath10k_htt_rx_handle_amsdu_mon_64()
598 amsdu_len -= msdu->len; in ath10k_htt_rx_handle_amsdu_mon_64()
623 ath10k_htt_append_frag_list(msdu, frag_buf, amsdu_len); in ath10k_htt_rx_handle_amsdu_mon_64()
672 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr32_list() local
685 msdu = ath10k_htt_rx_pop_paddr(htt, paddr); in ath10k_htt_rx_pop_paddr32_list()
686 if (!msdu) { in ath10k_htt_rx_pop_paddr32_list()
692 ret = ath10k_htt_rx_handle_amsdu_mon_32(htt, msdu, in ath10k_htt_rx_pop_paddr32_list()
698 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr32_list()
703 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr32_list()
706 rxd = HTT_RX_BUF_TO_RX_DESC(hw, msdu->data); in ath10k_htt_rx_pop_paddr32_list()
711 skb_put(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_pop_paddr32_list()
712 skb_pull(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_pop_paddr32_list()
713 skb_put(msdu, __le16_to_cpu(msdu_desc->msdu_len)); in ath10k_htt_rx_pop_paddr32_list()
737 struct sk_buff *msdu; in ath10k_htt_rx_pop_paddr64_list() local
749 msdu = ath10k_htt_rx_pop_paddr(htt, paddr); in ath10k_htt_rx_pop_paddr64_list()
750 if (!msdu) { in ath10k_htt_rx_pop_paddr64_list()
756 ret = ath10k_htt_rx_handle_amsdu_mon_64(htt, msdu, in ath10k_htt_rx_pop_paddr64_list()
762 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr64_list()
767 __skb_queue_tail(list, msdu); in ath10k_htt_rx_pop_paddr64_list()
770 rxd = HTT_RX_BUF_TO_RX_DESC(hw, msdu->data); in ath10k_htt_rx_pop_paddr64_list()
775 skb_put(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_pop_paddr64_list()
776 skb_pull(msdu, hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_pop_paddr64_list()
777 skb_put(msdu, __le16_to_cpu(msdu_desc->msdu_len)); in ath10k_htt_rx_pop_paddr64_list()
1438 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_raw() argument
1458 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap_raw()
1460 (u8 *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap_raw()
1497 skb_trim(msdu, msdu->len - FCS_LEN); in ath10k_htt_rx_h_undecap_raw()
1515 memcpy(skb_push(msdu, crypto_len), in ath10k_htt_rx_h_undecap_raw()
1523 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_raw()
1540 hdr = (void *)msdu->data; in ath10k_htt_rx_h_undecap_raw()
1544 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1547 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1552 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1557 skb_trim(msdu, msdu->len - in ath10k_htt_rx_h_undecap_raw()
1565 skb_trim(msdu, msdu->len - MICHAEL_MIC_LEN); in ath10k_htt_rx_h_undecap_raw()
1573 memmove((void *)msdu->data + crypto_len, in ath10k_htt_rx_h_undecap_raw()
1575 memmove((u8 *)msdu->data + crypto_len, in ath10k_htt_rx_h_undecap_raw()
1577 (void *)msdu->data, hdr_len); in ath10k_htt_rx_h_undecap_raw()
1578 skb_pull(msdu, crypto_len); in ath10k_htt_rx_h_undecap_raw()
1583 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_nwifi() argument
1615 rxd = HTT_RX_BUF_TO_RX_DESC(hw, (void *)msdu->data - in ath10k_htt_rx_h_undecap_nwifi()
1617 rxd = HTT_RX_BUF_TO_RX_DESC(hw, (u8 *)msdu->data - in ath10k_htt_rx_h_undecap_nwifi()
1622 skb_put(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_nwifi()
1625 hdr = (struct ieee80211_hdr *)(msdu->data + l3_pad_bytes); in ath10k_htt_rx_h_undecap_nwifi()
1631 hdr2 = (struct ieee80211_hdr *)(msdu->data + l3_pad_bytes); in ath10k_htt_rx_h_undecap_nwifi()
1637 skb_pull(msdu, hdr_len); in ath10k_htt_rx_h_undecap_nwifi()
1648 memcpy(skb_push(msdu, in ath10k_htt_rx_h_undecap_nwifi()
1658 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_nwifi()
1664 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_nwifi()
1668 hdr2 = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_nwifi()
1675 struct sk_buff *msdu, in ath10k_htt_rx_h_find_rfc1042() argument
1694 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_find_rfc1042()
1696 (u8 *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_find_rfc1042()
1730 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_eth() argument
1756 rfc1042 = ath10k_htt_rx_h_find_rfc1042(ar, msdu, enctype); in ath10k_htt_rx_h_undecap_eth()
1762 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap_eth()
1764 (u8 *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap_eth()
1768 skb_put(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_eth()
1769 skb_pull(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_eth()
1772 eth = (struct ethhdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1775 skb_pull(msdu, sizeof(struct ethhdr)); in ath10k_htt_rx_h_undecap_eth()
1778 memcpy(skb_push(msdu, sizeof(struct rfc1042_hdr)), rfc1042, in ath10k_htt_rx_h_undecap_eth()
1790 memcpy(skb_push(msdu, in ath10k_htt_rx_h_undecap_eth()
1800 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_eth()
1806 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1810 hdr2 = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1817 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap_snap() argument
1841 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap_snap()
1843 (u8 *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap_snap()
1848 skb_put(msdu, l3_pad_bytes); in ath10k_htt_rx_h_undecap_snap()
1849 skb_pull(msdu, sizeof(struct amsdu_subframe_hdr) + l3_pad_bytes); in ath10k_htt_rx_h_undecap_snap()
1859 memcpy(skb_push(msdu, in ath10k_htt_rx_h_undecap_snap()
1869 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_snap()
1873 struct sk_buff *msdu, in ath10k_htt_rx_h_undecap() argument
1897 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap()
1899 (u8 *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_h_undecap()
1908 ath10k_htt_rx_h_undecap_raw(ar, msdu, status, enctype, in ath10k_htt_rx_h_undecap()
1912 ath10k_htt_rx_h_undecap_nwifi(ar, msdu, status, first_hdr, in ath10k_htt_rx_h_undecap()
1916 ath10k_htt_rx_h_undecap_eth(ar, msdu, status, first_hdr, enctype); in ath10k_htt_rx_h_undecap()
1919 ath10k_htt_rx_h_undecap_snap(ar, msdu, status, first_hdr, in ath10k_htt_rx_h_undecap()
1967 struct sk_buff *msdu) in ath10k_htt_rx_h_csum_offload() argument
1969 msdu->ip_summed = ath10k_htt_rx_get_csum_state(hw, msdu); in ath10k_htt_rx_h_csum_offload()
2057 struct sk_buff *msdu, *temp; in ath10k_htt_rx_h_mpdu() local
2187 skb_queue_walk(amsdu, msdu) { in ath10k_htt_rx_h_mpdu()
2191 msdu, in ath10k_htt_rx_h_mpdu()
2197 msdu); in ath10k_htt_rx_h_mpdu()
2202 temp = msdu->prev; in ath10k_htt_rx_h_mpdu()
2203 __skb_unlink(msdu, amsdu); in ath10k_htt_rx_h_mpdu()
2204 dev_kfree_skb_any(msdu); in ath10k_htt_rx_h_mpdu()
2205 msdu = temp; in ath10k_htt_rx_h_mpdu()
2211 ath10k_htt_rx_h_csum_offload(&ar->hw_params, msdu); in ath10k_htt_rx_h_mpdu()
2217 ath10k_htt_rx_h_undecap(ar, msdu, status, first_hdr, enctype, in ath10k_htt_rx_h_mpdu()
2232 hdr = (void *)msdu->data; in ath10k_htt_rx_h_mpdu()
2246 struct sk_buff *msdu; in ath10k_htt_rx_h_enqueue() local
2251 while ((msdu = __skb_dequeue(amsdu))) { in ath10k_htt_rx_h_enqueue()
2258 if (msdu == first_subframe) { in ath10k_htt_rx_h_enqueue()
2265 ath10k_htt_rx_h_queue_msdu(ar, status, msdu); in ath10k_htt_rx_h_enqueue()
3294 struct sk_buff *msdu; in ath10k_htt_rx_extract_amsdu() local
3304 while ((msdu = __skb_dequeue(list))) { in ath10k_htt_rx_extract_amsdu()
3305 __skb_queue_tail(amsdu, msdu); in ath10k_htt_rx_extract_amsdu()
3309 (void *)msdu->data - in ath10k_htt_rx_extract_amsdu()
3311 (u8 *)msdu->data - in ath10k_htt_rx_extract_amsdu()
3321 msdu = skb_peek_tail(amsdu); in ath10k_htt_rx_extract_amsdu()
3324 (void *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_extract_amsdu()
3326 (u8 *)msdu->data - hw->rx_desc_ops->rx_desc_size); in ath10k_htt_rx_extract_amsdu()
3364 struct sk_buff *msdu; in ath10k_htt_rx_h_rx_offload() local
3367 while ((msdu = __skb_dequeue(list))) { in ath10k_htt_rx_h_rx_offload()
3372 rx = (void *)msdu->data; in ath10k_htt_rx_h_rx_offload()
3374 skb_put(msdu, sizeof(*rx)); in ath10k_htt_rx_h_rx_offload()
3375 skb_pull(msdu, sizeof(*rx)); in ath10k_htt_rx_h_rx_offload()
3377 if (skb_tailroom(msdu) < __le16_to_cpu(rx->msdu_len)) { in ath10k_htt_rx_h_rx_offload()
3379 dev_kfree_skb_any(msdu); in ath10k_htt_rx_h_rx_offload()
3383 skb_put(msdu, __le16_to_cpu(rx->msdu_len)); in ath10k_htt_rx_h_rx_offload()
3390 offset = 4 - ((unsigned long)msdu->data & 3); in ath10k_htt_rx_h_rx_offload()
3391 skb_put(msdu, offset); in ath10k_htt_rx_h_rx_offload()
3392 memmove(msdu->data + offset, msdu->data, msdu->len); in ath10k_htt_rx_h_rx_offload()
3393 skb_pull(msdu, offset); in ath10k_htt_rx_h_rx_offload()
3402 ath10k_htt_rx_h_rx_offload_prot(status, msdu); in ath10k_htt_rx_h_rx_offload()
3404 ath10k_htt_rx_h_queue_msdu(ar, status, msdu); in ath10k_htt_rx_h_rx_offload()