Lines Matching refs:hdr

873 static char *ath10k_get_tid(struct ieee80211_hdr *hdr, char *out, size_t size)  in ath10k_get_tid()  argument
878 if (!ieee80211_is_data_qos(hdr->frame_control)) in ath10k_get_tid()
881 qc = ieee80211_get_qos_ctl(hdr); in ath10k_get_tid()
896 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ath10k_process_rx() local
906 ieee80211_get_SA(hdr), in ath10k_process_rx()
907 ath10k_get_tid(hdr, tid, sizeof(tid)), in ath10k_process_rx()
908 is_multicast_ether_addr(ieee80211_get_DA(hdr)) ? in ath10k_process_rx()
910 (__le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4, in ath10k_process_rx()
932 static int ath10k_htt_rx_nwifi_hdrlen(struct ieee80211_hdr *hdr) in ath10k_htt_rx_nwifi_hdrlen() argument
935 return round_up(ieee80211_hdrlen(hdr->frame_control), 4); in ath10k_htt_rx_nwifi_hdrlen()
944 struct ieee80211_hdr *hdr; in ath10k_htt_rx_h_undecap_raw() local
992 hdr = (void *)msdu->data; in ath10k_htt_rx_h_undecap_raw()
998 if (!ieee80211_has_morefrags(hdr->frame_control) && in ath10k_htt_rx_h_undecap_raw()
1003 hdr_len = ieee80211_hdrlen(hdr->frame_control); in ath10k_htt_rx_h_undecap_raw()
1016 struct ieee80211_hdr *hdr; in ath10k_htt_rx_h_undecap_nwifi() local
1033 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_nwifi()
1034 hdr_len = ath10k_htt_rx_nwifi_hdrlen(hdr); in ath10k_htt_rx_h_undecap_nwifi()
1035 ether_addr_copy(da, ieee80211_get_DA(hdr)); in ath10k_htt_rx_h_undecap_nwifi()
1036 ether_addr_copy(sa, ieee80211_get_SA(hdr)); in ath10k_htt_rx_h_undecap_nwifi()
1040 hdr = (struct ieee80211_hdr *)first_hdr; in ath10k_htt_rx_h_undecap_nwifi()
1041 hdr_len = ieee80211_hdrlen(hdr->frame_control); in ath10k_htt_rx_h_undecap_nwifi()
1042 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_nwifi()
1047 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_nwifi()
1048 ether_addr_copy(ieee80211_get_DA(hdr), da); in ath10k_htt_rx_h_undecap_nwifi()
1049 ether_addr_copy(ieee80211_get_SA(hdr), sa); in ath10k_htt_rx_h_undecap_nwifi()
1056 struct ieee80211_hdr *hdr; in ath10k_htt_rx_h_find_rfc1042() local
1063 hdr = (void *)rxd->rx_hdr_status; in ath10k_htt_rx_h_find_rfc1042()
1071 rfc1042 = hdr; in ath10k_htt_rx_h_find_rfc1042()
1074 hdr_len = ieee80211_hdrlen(hdr->frame_control); in ath10k_htt_rx_h_find_rfc1042()
1093 struct ieee80211_hdr *hdr; in ath10k_htt_rx_h_undecap_eth() local
1120 hdr = (struct ieee80211_hdr *)first_hdr; in ath10k_htt_rx_h_undecap_eth()
1121 hdr_len = ieee80211_hdrlen(hdr->frame_control); in ath10k_htt_rx_h_undecap_eth()
1122 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_eth()
1127 hdr = (struct ieee80211_hdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1128 ether_addr_copy(ieee80211_get_DA(hdr), da); in ath10k_htt_rx_h_undecap_eth()
1129 ether_addr_copy(ieee80211_get_SA(hdr), sa); in ath10k_htt_rx_h_undecap_eth()
1137 struct ieee80211_hdr *hdr; in ath10k_htt_rx_h_undecap_snap() local
1148 hdr = (struct ieee80211_hdr *)first_hdr; in ath10k_htt_rx_h_undecap_snap()
1149 hdr_len = ieee80211_hdrlen(hdr->frame_control); in ath10k_htt_rx_h_undecap_snap()
1150 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_snap()
1162 struct ieee80211_hdr *hdr; in ath10k_htt_rx_h_undecap() local
1176 hdr = (void *)rxd->rx_hdr_status; in ath10k_htt_rx_h_undecap()
1241 struct ieee80211_hdr *hdr; in ath10k_htt_rx_h_mpdu() local
1265 hdr = (void *)rxd->rx_hdr_status; in ath10k_htt_rx_h_mpdu()
1266 hdr_len = ieee80211_hdrlen(hdr->frame_control); in ath10k_htt_rx_h_mpdu()
1267 memcpy(first_hdr, hdr, hdr_len); in ath10k_htt_rx_h_mpdu()
1272 hdr = (void *)first_hdr; in ath10k_htt_rx_h_mpdu()
1273 qos = ieee80211_get_qos_ctl(hdr); in ath10k_htt_rx_h_mpdu()
1325 hdr = (void *)msdu->data; in ath10k_htt_rx_h_mpdu()
1326 hdr->frame_control &= ~__cpu_to_le16(IEEE80211_FCTL_PROTECTED); in ath10k_htt_rx_h_mpdu()
1499 num_mpdu_ranges = MS(__le32_to_cpu(rx->hdr.info1), in ath10k_htt_rx_handler()
1738 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ath10k_htt_rx_h_rx_offload_prot() local
1740 if (!ieee80211_has_protected(hdr->frame_control)) in ath10k_htt_rx_h_rx_offload_prot()
1748 hdr->frame_control &= ~__cpu_to_le16(IEEE80211_FCTL_PROTECTED); in ath10k_htt_rx_h_rx_offload_prot()
1824 skb_pull(skb, sizeof(resp->hdr)); in ath10k_htt_rx_in_ord_ind()
1901 resp->hdr.msg_type); in ath10k_htt_t2h_msg_handler()
1902 switch (resp->hdr.msg_type) { in ath10k_htt_t2h_msg_handler()
1999 struct ath10k_pktlog_hdr *hdr = in ath10k_htt_t2h_msg_handler() local
2003 sizeof(*hdr) + in ath10k_htt_t2h_msg_handler()
2004 __le16_to_cpu(hdr->size)); in ath10k_htt_t2h_msg_handler()
2029 resp->hdr.msg_type); in ath10k_htt_t2h_msg_handler()