Home
last modified time | relevance | path

Searched refs:skb (Results 1 – 25 of 253) sorted by relevance

1234567891011

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dskbuff.h220 struct sk_buff *skb; in alloc_skb() local
222 skb = linuxkpi_alloc_skb(size, gfp); in alloc_skb()
223 SKB_TRACE(skb); in alloc_skb()
224 return (skb); in alloc_skb()
230 struct sk_buff *skb; in __dev_alloc_skb() local
232 skb = linuxkpi_dev_alloc_skb(len, gfp); in __dev_alloc_skb()
234 SKB_TRACE(skb); in __dev_alloc_skb()
235 return (skb); in __dev_alloc_skb()
241 struct sk_buff *skb; in dev_alloc_skb() local
243 skb = __dev_alloc_skb(len, GFP_NOWAIT); in dev_alloc_skb()
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_skbuff.c61 SYSCTL_NODE(_compat_linuxkpi, OID_AUTO, skb, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
96 struct sk_buff *skb; in linuxkpi_alloc_skb() local
100 skb = uma_zalloc(skbzone, linux_check_m_flags(gfp) | M_ZERO); in linuxkpi_alloc_skb()
101 if (skb == NULL) in linuxkpi_alloc_skb()
104 skb->prev = skb->next = skb; in linuxkpi_alloc_skb()
105 skb->truesize = size; in linuxkpi_alloc_skb()
106 skb->shinfo = (struct skb_shared_info *)(skb + 1); in linuxkpi_alloc_skb()
109 return (skb); in linuxkpi_alloc_skb()
138 uma_zfree(skbzone, skb); in linuxkpi_alloc_skb()
142 skb->head = skb->data = (uint8_t *)p; in linuxkpi_alloc_skb()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dwmi-ops.h15 void (*rx)(struct ath10k *ar, struct sk_buff *skb);
19 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb,
21 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb,
23 int (*pull_mgmt_tx_compl)(struct ath10k *ar, struct sk_buff *skb,
26 struct ath10k *ar, struct sk_buff *skb,
28 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb,
30 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb,
32 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb,
34 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb,
36 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb,
[all …]
H A Dhtc.c23 struct sk_buff *skb) in ath10k_htc_control_tx_complete() argument
25 kfree_skb(skb); in ath10k_htc_control_tx_complete()
30 struct sk_buff *skb; in ath10k_htc_build_tx_ctrl_skb() local
33 skb = dev_alloc_skb(ATH10K_HTC_CONTROL_BUFFER_SIZE); in ath10k_htc_build_tx_ctrl_skb()
34 if (!skb) in ath10k_htc_build_tx_ctrl_skb()
37 skb_reserve(skb, 20); /* FIXME: why 20 bytes? */ in ath10k_htc_build_tx_ctrl_skb()
38 WARN_ONCE((unsigned long)skb->data & 3, "unaligned skb"); in ath10k_htc_build_tx_ctrl_skb()
40 skb_cb = ATH10K_SKB_CB(skb); in ath10k_htc_build_tx_ctrl_skb()
43 ath10k_dbg(ar, ATH10K_DBG_HTC, "%s: skb %p\n", __func__, skb); in ath10k_htc_build_tx_ctrl_skb()
44 return skb; in ath10k_htc_build_tx_ctrl_skb()
[all …]
H A Dwmi-tlv.c182 struct sk_buff *skb) in ath10k_wmi_tlv_event_bcn_tx_status() argument
190 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_bcn_tx_status()
229 struct sk_buff *skb) in ath10k_wmi_tlv_event_vdev_delete_resp() argument
275 struct sk_buff *skb) in ath10k_wmi_tlv_op_pull_peer_stats_info() argument
283 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_peer_stats_info()
316 struct sk_buff *skb) in ath10k_wmi_tlv_event_peer_stats_info() argument
319 ath10k_wmi_tlv_op_pull_peer_stats_info(ar, skb); in ath10k_wmi_tlv_event_peer_stats_info()
324 struct sk_buff *skb) in ath10k_wmi_tlv_event_diag_data() argument
336 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_diag_data()
395 struct sk_buff *skb) in ath10k_wmi_tlv_event_diag() argument
[all …]
H A Dwmi.c1816 struct sk_buff *skb; in ath10k_wmi_alloc_skb() local
1819 skb = ath10k_htc_alloc_skb(ar, WMI_SKB_HEADROOM + round_len); in ath10k_wmi_alloc_skb()
1820 if (!skb) in ath10k_wmi_alloc_skb()
1823 skb_reserve(skb, WMI_SKB_HEADROOM); in ath10k_wmi_alloc_skb()
1824 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath10k_wmi_alloc_skb()
1827 skb_put(skb, round_len); in ath10k_wmi_alloc_skb()
1828 memset(skb->data, 0, round_len); in ath10k_wmi_alloc_skb()
1830 return skb; in ath10k_wmi_alloc_skb()
1833 static void ath10k_wmi_htc_tx_complete(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_htc_tx_complete() argument
1835 dev_kfree_skb(skb); in ath10k_wmi_htc_tx_complete()
[all …]
/freebsd/sys/contrib/dev/athk/ath12k/
H A Ddp_tx.c16 ath12k_dp_tx_get_encap_type(struct ath12k_base *ab, struct sk_buff *skb) in ath12k_dp_tx_get_encap_type() argument
18 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); in ath12k_dp_tx_get_encap_type()
30 void ath12k_dp_tx_encap_nwifi(struct sk_buff *skb) in ath12k_dp_tx_encap_nwifi() argument
32 struct ieee80211_hdr *hdr = (void *)skb->data; in ath12k_dp_tx_encap_nwifi()
39 memmove(skb->data + IEEE80211_QOS_CTL_LEN, in ath12k_dp_tx_encap_nwifi()
41 skb->data, (void *)qos_ctl - (void *)skb->data); in ath12k_dp_tx_encap_nwifi()
43 skb->data, qos_ctl - skb->data); in ath12k_dp_tx_encap_nwifi()
45 skb_pull(skb, IEEE80211_QOS_CTL_LEN); in ath12k_dp_tx_encap_nwifi()
47 hdr = (void *)skb->data; in ath12k_dp_tx_encap_nwifi()
52 u8 ath12k_dp_tx_get_tid(struct sk_buff *skb) in ath12k_dp_tx_get_tid() argument
[all …]
H A Dhtc.c14 struct sk_buff *skb; in ath12k_htc_alloc_skb() local
16 skb = dev_alloc_skb(size + sizeof(struct ath12k_htc_hdr)); in ath12k_htc_alloc_skb()
17 if (!skb) in ath12k_htc_alloc_skb()
20 skb_reserve(skb, sizeof(struct ath12k_htc_hdr)); in ath12k_htc_alloc_skb()
23 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath12k_htc_alloc_skb()
26 return skb; in ath12k_htc_alloc_skb()
30 struct sk_buff *skb) in ath12k_htc_control_tx_complete() argument
32 kfree_skb(skb); in ath12k_htc_control_tx_complete()
37 struct sk_buff *skb; in ath12k_htc_build_tx_ctrl_skb() local
40 skb = dev_alloc_skb(ATH12K_HTC_CONTROL_BUFFER_SIZE); in ath12k_htc_build_tx_ctrl_skb()
[all …]
H A Dce.c12 struct sk_buff *skb, dma_addr_t paddr) in ath12k_ce_rx_buf_enqueue_pipe() argument
45 ring->skb[write_index] = skb; in ath12k_ce_rx_buf_enqueue_pipe()
63 struct sk_buff *skb; in ath12k_ce_rx_post_pipe() local
72 skb = dev_alloc_skb(pipe->buf_sz); in ath12k_ce_rx_post_pipe()
73 if (!skb) { in ath12k_ce_rx_post_pipe()
78 WARN_ON_ONCE(!IS_ALIGNED((unsigned long)skb->data, 4)); in ath12k_ce_rx_post_pipe()
80 paddr = dma_map_single(ab->dev, skb->data, in ath12k_ce_rx_post_pipe()
81 skb->len + skb_tailroom(skb), in ath12k_ce_rx_post_pipe()
85 dev_kfree_skb_any(skb); in ath12k_ce_rx_post_pipe()
90 ATH12K_SKB_RXCB(skb)->paddr = paddr; in ath12k_ce_rx_post_pipe()
[all …]
H A Dwmi.c313 struct sk_buff *skb, gfp_t gfp) in ath12k_wmi_tlv_parse_alloc() argument
322 ret = ath12k_wmi_tlv_parse(ab, tb, skb->data, skb->len); in ath12k_wmi_tlv_parse_alloc()
331 static int ath12k_wmi_cmd_send_nowait(struct ath12k_wmi_pdev *wmi, struct sk_buff *skb, in ath12k_wmi_cmd_send_nowait() argument
334 struct ath12k_skb_cb *skb_cb = ATH12K_SKB_CB(skb); in ath12k_wmi_cmd_send_nowait()
339 if (!skb_push(skb, sizeof(struct wmi_cmd_hdr))) in ath12k_wmi_cmd_send_nowait()
342 cmd_hdr = (struct wmi_cmd_hdr *)skb->data; in ath12k_wmi_cmd_send_nowait()
346 ret = ath12k_htc_send(&ab->htc, wmi->eid, skb); in ath12k_wmi_cmd_send_nowait()
354 skb_pull(skb, sizeof(struct wmi_cmd_hdr)); in ath12k_wmi_cmd_send_nowait()
358 int ath12k_wmi_cmd_send(struct ath12k_wmi_pdev *wmi, struct sk_buff *skb, in ath12k_wmi_cmd_send() argument
367 ret = ath12k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath12k_wmi_cmd_send()
[all …]
/freebsd/sys/contrib/dev/rtw89/
H A Dfw.c68 struct sk_buff *skb);
69 static int rtw89_h2c_tx_and_wait(struct rtw89_dev *rtwdev, struct sk_buff *skb,
84 struct sk_buff *skb; in rtw89_fw_h2c_alloc_skb() local
91 skb = dev_alloc_skb(len + header_len + h2c_desc_size); in rtw89_fw_h2c_alloc_skb()
92 if (!skb) in rtw89_fw_h2c_alloc_skb()
94 skb_reserve(skb, header_len + h2c_desc_size); in rtw89_fw_h2c_alloc_skb()
95 memset(skb->data, 0, len); in rtw89_fw_h2c_alloc_skb()
97 return skb; in rtw89_fw_h2c_alloc_skb()
1606 void rtw89_h2c_pkt_set_hdr(struct rtw89_dev *rtwdev, struct sk_buff *skb, argument
1613 hdr = (struct fwcmd_hdr *)skb_push(skb, 8);
[all …]
/freebsd/sys/contrib/dev/rtw88/
H A Dtx.c13 struct sk_buff *skb) in rtw_tx_stats() argument
18 hdr = (struct ieee80211_hdr *)skb->data; in rtw_tx_stats()
25 rtwdev->stats.tx_unicast += skb->len; in rtw_tx_stats()
29 rtwvif->stats.tx_unicast += skb->len; in rtw_tx_stats()
36 struct rtw_tx_pkt_info *pkt_info, struct sk_buff *skb) in rtw_tx_fill_tx_desc() argument
38 struct rtw_tx_desc *tx_desc = (struct rtw_tx_desc *)skb->data; in rtw_tx_fill_tx_desc()
216 void rtw_tx_report_enqueue(struct rtw_dev *rtwdev, struct sk_buff *skb, u8 sn) in rtw_tx_report_enqueue() argument
223 drv_data = (u8 *)IEEE80211_SKB_CB(skb)->status.status_driver_data; in rtw_tx_report_enqueue()
227 __skb_queue_tail(&tx_report->queue, skb); in rtw_tx_report_enqueue()
235 struct sk_buff *skb, bool acked) in rtw_tx_report_tx_status() argument
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dtx.c18 mt76_tx_check_agg_ssn(struct ieee80211_sta *sta, struct sk_buff *skb) in mt76_tx_check_agg_ssn() argument
20 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in mt76_tx_check_agg_ssn()
29 tid = skb->priority & IEEE80211_QOS_CTL_TAG1D_MASK; in mt76_tx_check_agg_ssn()
53 struct sk_buff *skb; in mt76_tx_status_unlock() local
58 while ((skb = __skb_dequeue(list)) != NULL) { in mt76_tx_status_unlock()
60 .skb = skb, in mt76_tx_status_unlock()
61 .info = IEEE80211_SKB_CB(skb), in mt76_tx_status_unlock()
64 struct mt76_tx_cb *cb = mt76_tx_skb_cb(skb); in mt76_tx_status_unlock()
79 hw = mt76_tx_status_get_hw(dev, skb); in mt76_tx_status_unlock()
89 __mt76_tx_status_skb_done(struct mt76_dev *dev, struct sk_buff *skb, u8 flags, in __mt76_tx_status_skb_done() argument
[all …]
H A Dmcu.c13 struct sk_buff *skb; in __mt76_mcu_msg_alloc() local
18 skb = alloc_skb(len, gfp); in __mt76_mcu_msg_alloc()
19 if (!skb) in __mt76_mcu_msg_alloc()
22 memset(skb->head, 0, len); in __mt76_mcu_msg_alloc()
23 skb_reserve(skb, ops->headroom); in __mt76_mcu_msg_alloc()
26 skb_put_data(skb, data, data_len); in __mt76_mcu_msg_alloc()
28 return skb; in __mt76_mcu_msg_alloc()
49 void mt76_mcu_rx_event(struct mt76_dev *dev, struct sk_buff *skb) in mt76_mcu_rx_event() argument
51 skb_queue_tail(&dev->mcu.res_q, skb); in mt76_mcu_rx_event()
59 struct sk_buff *skb; in mt76_mcu_send_and_get_msg() local
[all …]
H A Dmt76x02_beacon.c26 mt76x02_write_beacon(struct mt76x02_dev *dev, int offset, struct sk_buff *skb) in mt76x02_write_beacon() argument
30 if (WARN_ON_ONCE(beacon_len < skb->len + sizeof(struct mt76x02_txwi))) in mt76x02_write_beacon()
39 txwi = (struct mt76x02_txwi *)(skb->data - sizeof(*txwi)); in mt76x02_write_beacon()
40 mt76x02_mac_write_txwi(dev, txwi, skb, NULL, NULL, skb->len); in mt76x02_write_beacon()
41 skb_push(skb, sizeof(*txwi)); in mt76x02_write_beacon()
45 mt76x02_mac_write_txwi(dev, &txwi, skb, NULL, NULL, skb->len); in mt76x02_write_beacon()
50 mt76_wr_copy(dev, offset, skb->data, skb->len); in mt76x02_write_beacon()
55 struct sk_buff *skb) in mt76x02_mac_set_beacon() argument
60 if (!mt76x02_write_beacon(dev, bcn_addr, skb)) { in mt76x02_mac_set_beacon()
65 dev_kfree_skb(skb); in mt76x02_mac_set_beacon()
[all …]
H A Dmt76x02_usb_core.c8 static void mt76x02u_remove_dma_hdr(struct sk_buff *skb) in mt76x02u_remove_dma_hdr() argument
12 skb_pull(skb, sizeof(struct mt76x02_txwi) + MT_DMA_HDR_LEN); in mt76x02u_remove_dma_hdr()
13 hdr_len = ieee80211_get_hdrlen_from_skb(skb); in mt76x02u_remove_dma_hdr()
15 mt76x02_remove_hdr_pad(skb, 2); in mt76x02u_remove_dma_hdr()
20 mt76x02u_remove_dma_hdr(e->skb); in mt76x02u_tx_complete_skb()
21 mt76_tx_complete_skb(mdev, e->wcid, e->skb); in mt76x02u_tx_complete_skb()
46 int mt76x02u_skb_dma_info(struct sk_buff *skb, int port, u32 flags) in mt76x02u_skb_dma_info() argument
56 info = FIELD_PREP(MT_TXD_INFO_LEN, round_up(skb->len, 4)) | in mt76x02u_skb_dma_info()
58 put_unaligned_le32(info, skb_push(skb, sizeof(info))); in mt76x02u_skb_dma_info()
60 pad = round_up(skb->len, 4) + 4 - skb->len; in mt76x02u_skb_dma_info()
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dhtc.c14 struct sk_buff *skb; in ath11k_htc_alloc_skb() local
16 skb = dev_alloc_skb(size + sizeof(struct ath11k_htc_hdr)); in ath11k_htc_alloc_skb()
17 if (!skb) in ath11k_htc_alloc_skb()
20 skb_reserve(skb, sizeof(struct ath11k_htc_hdr)); in ath11k_htc_alloc_skb()
23 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath11k_htc_alloc_skb()
26 return skb; in ath11k_htc_alloc_skb()
30 struct sk_buff *skb) in ath11k_htc_control_tx_complete() argument
32 kfree_skb(skb); in ath11k_htc_control_tx_complete()
37 struct sk_buff *skb; in ath11k_htc_build_tx_ctrl_skb() local
40 skb = dev_alloc_skb(ATH11K_HTC_CONTROL_BUFFER_SIZE); in ath11k_htc_build_tx_ctrl_skb()
[all …]
H A Dwmi.c283 struct sk_buff *skb, gfp_t gfp) in ath11k_wmi_tlv_parse_alloc() argument
292 ret = ath11k_wmi_tlv_parse(ab, tb, skb->data, skb->len); in ath11k_wmi_tlv_parse_alloc()
301 static int ath11k_wmi_cmd_send_nowait(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send_nowait() argument
304 struct ath11k_skb_cb *skb_cb = ATH11K_SKB_CB(skb); in ath11k_wmi_cmd_send_nowait()
310 if (skb_push(skb, sizeof(struct wmi_cmd_hdr)) == NULL) in ath11k_wmi_cmd_send_nowait()
315 cmd_hdr = (struct wmi_cmd_hdr *)skb->data; in ath11k_wmi_cmd_send_nowait()
318 trace_ath11k_wmi_cmd(ab, cmd_id, skb->data, skb->len); in ath11k_wmi_cmd_send_nowait()
321 ret = ath11k_htc_send(&ab->htc, wmi->eid, skb); in ath11k_wmi_cmd_send_nowait()
329 skb_pull(skb, sizeof(struct wmi_cmd_hdr)); in ath11k_wmi_cmd_send_nowait()
333 int ath11k_wmi_cmd_send(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send() argument
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7925/
H A Dmac.c169 static int mt7925_reverse_frag0_hdr_trans(struct sk_buff *skb, u16 hdr_gap) in mt7925_reverse_frag0_hdr_trans() argument
171 struct mt76_rx_status *status = (struct mt76_rx_status *)skb->cb; in mt7925_reverse_frag0_hdr_trans()
172 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_gap); in mt7925_reverse_frag0_hdr_trans()
174 __le32 *rxd = (__le32 *)skb->data; in mt7925_reverse_frag0_hdr_trans()
220 skb_pull(skb, hdr_gap + sizeof(struct ethhdr) - 2); in mt7925_reverse_frag0_hdr_trans()
223 ether_addr_copy(skb_push(skb, ETH_ALEN), bridge_tunnel_header); in mt7925_reverse_frag0_hdr_trans()
225 ether_addr_copy(skb_push(skb, ETH_ALEN), rfc1042_header); in mt7925_reverse_frag0_hdr_trans()
227 skb_pull(skb, 2); in mt7925_reverse_frag0_hdr_trans()
230 memcpy(skb_push(skb, IEEE80211_HT_CTL_LEN), &rxd[11], in mt7925_reverse_frag0_hdr_trans()
236 memcpy(skb_push(skb, IEEE80211_QOS_CTL_LEN), &qos_ctrl, in mt7925_reverse_frag0_hdr_trans()
[all …]
H A Dmcu.c19 struct sk_buff *skb, int seq) in mt7925_mcu_parse_response() argument
25 if (!skb) { in mt7925_mcu_parse_response()
32 rxd = (struct mt7925_mcu_rxd *)skb->data; in mt7925_mcu_parse_response()
38 skb_pull(skb, sizeof(*rxd) - 4); in mt7925_mcu_parse_response()
39 ret = *skb->data; in mt7925_mcu_parse_response()
47 skb_pull(skb, sizeof(*rxd)); in mt7925_mcu_parse_response()
48 event = (struct mt7925_mcu_uni_event *)skb->data; in mt7925_mcu_parse_response()
54 skb_pull(skb, sizeof(*rxd)); in mt7925_mcu_parse_response()
85 struct sk_buff *skb; in mt7925_mcu_regval() local
107 &req, sizeof(req), true, &skb); in mt7925_mcu_regval()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mld/
H A Dtx.c205 #define OPT_HDR(type, skb, off) \ argument
206 (type *)(skb_network_header(skb) + (off))
209 iwl_mld_get_offload_assist(struct sk_buff *skb, bool amsdu) in iwl_mld_get_offload_assist() argument
211 struct ieee80211_hdr *hdr = (void *)skb->data; in iwl_mld_get_offload_assist()
218 if (skb->ip_summed != CHECKSUM_PARTIAL) in iwl_mld_get_offload_assist()
227 if (WARN_ONCE(skb->protocol != htons(ETH_P_IP) && in iwl_mld_get_offload_assist()
228 skb->protocol != htons(ETH_P_IPV6), in iwl_mld_get_offload_assist()
230 skb_checksum_help(skb); in iwl_mld_get_offload_assist()
234 if (skb->protocol == htons(ETH_P_IP)) { in iwl_mld_get_offload_assist()
235 protocol = ip_hdr(skb)->protocol; in iwl_mld_get_offload_assist()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/
H A Dmac.c175 mt7921_mac_fill_rx(struct mt792x_dev *dev, struct sk_buff *skb) in mt7921_mac_fill_rx() argument
178 struct mt76_rx_status *status = (struct mt76_rx_status *)skb->cb; in mt7921_mac_fill_rx()
182 __le32 *rxv = NULL, *rxd = (__le32 *)skb->data; in mt7921_mac_fill_rx()
186 u32 csum_status = *(u32 *)skb->cb; in mt7921_mac_fill_rx()
248 skb->ip_summed = CHECKSUM_UNNECESSARY; in mt7921_mac_fill_rx()
278 if ((u8 *)rxd - skb->data >= skb->len) in mt7921_mac_fill_rx()
309 if ((u8 *)rxd - skb->data >= skb->len) in mt7921_mac_fill_rx()
331 if ((u8 *)rxd - skb->data >= skb->len) in mt7921_mac_fill_rx()
342 if ((u8 *)rxd - skb->data >= skb->len) in mt7921_mac_fill_rx()
358 if ((u8 *)rxd - skb->data >= skb->len) in mt7921_mac_fill_rx()
[all …]
H A Dmcu.c23 struct sk_buff *skb, int seq) in mt7921_mcu_parse_response() argument
29 if (!skb) { in mt7921_mcu_parse_response()
37 rxd = (struct mt76_connac2_mcu_rxd *)skb->data; in mt7921_mcu_parse_response()
43 skb_pull(skb, sizeof(*rxd) - 4); in mt7921_mcu_parse_response()
44 ret = *skb->data; in mt7921_mcu_parse_response()
46 skb_pull(skb, sizeof(*rxd) + 4); in mt7921_mcu_parse_response()
47 ret = le32_to_cpu(*(__le32 *)skb->data); in mt7921_mcu_parse_response()
56 skb_pull(skb, sizeof(*rxd)); in mt7921_mcu_parse_response()
57 event = (struct mt76_connac_mcu_uni_event *)skb->data; in mt7921_mcu_parse_response()
65 skb_pull(skb, sizeof(*rxd)); in mt7921_mcu_parse_response()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/
H A Ddma.c15 mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb) in mt7603_rx_loopback_skb() argument
27 __le32 *txd = (__le32 *)skb->data; in mt7603_rx_loopback_skb()
37 if (skb->len < MT_TXD_SIZE + sizeof(struct ieee80211_hdr)) in mt7603_rx_loopback_skb()
42 skb->priority = FIELD_GET(MT_TXD1_TID, val); in mt7603_rx_loopback_skb()
54 hdr = (struct ieee80211_hdr *)&skb->data[MT_TXD_SIZE]; in mt7603_rx_loopback_skb()
62 skb_set_queue_mapping(skb, qid); in mt7603_rx_loopback_skb()
64 skb_set_queue_mapping(skb, IEEE80211_AC_BE); in mt7603_rx_loopback_skb()
67 skb_pull(skb, MT_TXD_SIZE); in mt7603_rx_loopback_skb()
68 if (!ieee80211_is_bufferable_mmpdu(skb)) in mt7603_rx_loopback_skb()
70 skb_push(skb, MT_TXD_SIZE); in mt7603_rx_loopback_skb()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dmcu.c214 struct sk_buff *skb, int seq) in mt7996_mcu_parse_response() argument
221 if (!skb) { in mt7996_mcu_parse_response()
227 rxd = (struct mt7996_mcu_rxd *)skb->data; in mt7996_mcu_parse_response()
232 skb_pull(skb, sizeof(*rxd) - 4); in mt7996_mcu_parse_response()
233 ret = *skb->data; in mt7996_mcu_parse_response()
236 skb_pull(skb, sizeof(*rxd)); in mt7996_mcu_parse_response()
237 event = (struct mt7996_mcu_uni_event *)skb->data; in mt7996_mcu_parse_response()
243 skb_pull(skb, sizeof(struct mt7996_mcu_rxd)); in mt7996_mcu_parse_response()
274 mt7996_mcu_send_message(struct mt76_dev *mdev, struct sk_buff *skb, in mt7996_mcu_send_message() argument
298 txd = (__le32 *)skb_push(skb, txd_len); in mt7996_mcu_send_message()
[all …]

1234567891011