Home
last modified time | relevance | path

Searched refs:skb_len (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.1.9/net/nfc/hci/ !
Dhcp.c47 int skb_len, data_link_len; in nfc_hci_hcp_message_tx() local
57 skb_len = ndev->tx_headroom + NFC_HCI_HCP_PACKET_HEADER_LEN + in nfc_hci_hcp_message_tx()
61 skb = alloc_skb(skb_len, GFP_KERNEL); in nfc_hci_hcp_message_tx()
/linux-6.1.9/include/net/ !
Dcodel_impl.h115 u32 skb_len; in codel_should_drop() local
122 skb_len = skb_len_func(skb); in codel_should_drop()
125 if (unlikely(skb_len > stats->maxpacket)) in codel_should_drop()
126 stats->maxpacket = skb_len; in codel_should_drop()
/linux-6.1.9/tools/testing/selftests/bpf/progs/ !
Dtest_check_mtu.c180 __u32 skb_len = ctx->len; in tc_exceed_mtu() local
186 delta = GLOBAL_USER_MTU - (skb_len - ETH_HLEN) + 1; in tc_exceed_mtu()
231 __u32 skb_len = ctx->len; in tc_minus_delta() local
236 delta = -((skb_len - ETH_HLEN) + 1); in tc_minus_delta()
Dtest_misc_tcp_hdr_options.c140 if (tcp_hdrlen(th) < skops->skb_len) in check_active_hdr_in()
146 if (th->ack && !th->fin && tcp_hdrlen(th) == skops->skb_len) in check_active_hdr_in()
Dtest_tcp_hdr_options.c368 if (skops->skb_len) in handle_hdr_opt_len()
392 if (skops->skb_len > tcp_hdrlen(th)) in handle_write_hdr_opt()
/linux-6.1.9/drivers/staging/rtl8723bs/hal/ !
Drtl8723bs_recv.c230 u32 pkt_offset, skb_len, alloc_sz; in rtl8723bs_recv_tasklet() local
280 skb_len = pattrib->pkt_len; in rtl8723bs_recv_tasklet()
285 if (skb_len <= 1650) in rtl8723bs_recv_tasklet()
288 alloc_sz = skb_len + 14; in rtl8723bs_recv_tasklet()
290 alloc_sz = skb_len; in rtl8723bs_recv_tasklet()
306 memcpy(pkt_copy->data, (ptr + rx_report_sz + pattrib->shift_sz), skb_len); in rtl8723bs_recv_tasklet()
311 recvframe_put(precvframe, skb_len); in rtl8723bs_recv_tasklet()
/linux-6.1.9/drivers/staging/r8188eu/hal/ !
Dusb_ops_linux.c211 u32 pkt_offset, skb_len, alloc_sz; in recvbuf2recvframe() local
265 skb_len = pattrib->pkt_len; in recvbuf2recvframe()
270 if (skb_len <= 1650) in recvbuf2recvframe()
273 alloc_sz = skb_len + 14; in recvbuf2recvframe()
275 alloc_sz = skb_len; in recvbuf2recvframe()
288 memcpy(pkt_copy->data, (pbuf + pattrib->drvinfo_sz + RXDESC_SIZE), skb_len); in recvbuf2recvframe()
308 recvframe_put(precvframe, skb_len); in recvbuf2recvframe()
/linux-6.1.9/drivers/bluetooth/ !
Dbtrsi.c75 int skb_len = skb->len; in rsi_hci_send_pkt() local
80 memmove(skb->data, skb_data, skb_len); in rsi_hci_send_pkt()
81 skb_trim(skb, skb_len); in rsi_hci_send_pkt()
/linux-6.1.9/drivers/net/wwan/t7xx/ !
Dt7xx_netdev.c80 int skb_len = skb->len; in t7xx_ccmni_start_xmit() local
93 dev->stats.tx_bytes += skb_len; in t7xx_ccmni_start_xmit()
319 int pkt_type, skb_len; in t7xx_ccmni_recv_skb() local
339 skb_len = skb->len; in t7xx_ccmni_recv_skb()
342 net_dev->stats.rx_bytes += skb_len; in t7xx_ccmni_recv_skb()
/linux-6.1.9/drivers/net/ethernet/sfc/siena/ !
Dtx.c146 unsigned int skb_len; in __efx_siena_enqueue_skb() local
149 skb_len = skb->len; in __efx_siena_enqueue_skb()
164 } else if (skb->data_len && skb_len <= EFX_TX_CB_SIZE) { in __efx_siena_enqueue_skb()
181 if (__netdev_tx_sent_queue(tx_queue->core_txq, skb_len, xmit_more)) in __efx_siena_enqueue_skb()
/linux-6.1.9/drivers/net/ethernet/sfc/ !
Dtx.c328 unsigned int skb_len; in __efx_enqueue_skb() local
331 skb_len = skb->len; in __efx_enqueue_skb()
362 } else if (skb_len <= efx_piobuf_size && !xmit_more && in __efx_enqueue_skb()
370 } else if (skb->data_len && skb_len <= EFX_TX_CB_SIZE) { in __efx_enqueue_skb()
387 if (__netdev_tx_sent_queue(tx_queue->core_txq, skb_len, xmit_more)) in __efx_enqueue_skb()
/linux-6.1.9/drivers/nfc/pn533/ !
Dpn533.c1032 unsigned int skb_len = 36 + /* in pn533_alloc_poll_tg_frame() local
1039 skb = pn533_alloc_skb(dev, skb_len); in pn533_alloc_poll_tg_frame()
1345 int rc, skb_len; in pn533_poll_dep() local
1358 skb_len = 3 + dev->gb_len; /* ActPass + BR + Next */ in pn533_poll_dep()
1359 skb_len += PASSIVE_DATA_LEN; in pn533_poll_dep()
1362 skb_len += NFC_NFCID3_MAXSIZE; in pn533_poll_dep()
1367 skb = pn533_alloc_skb(dev, skb_len); in pn533_poll_dep()
1965 int rc, skb_len; in pn533_dep_link_up() local
1981 skb_len = 3 + gb_len; /* ActPass + BR + Next */ in pn533_dep_link_up()
1982 skb_len += PASSIVE_DATA_LEN; in pn533_dep_link_up()
[all …]
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/ !
Dtx.c300 unsigned int skb_len; in ef4_enqueue_skb() local
302 skb_len = skb->len; in ef4_enqueue_skb()
305 if (skb_len < tx_queue->tx_min_size || in ef4_enqueue_skb()
306 (skb->data_len && skb_len <= EF4_TX_CB_SIZE)) { in ef4_enqueue_skb()
319 netdev_tx_sent_queue(tx_queue->core_txq, skb_len); in ef4_enqueue_skb()
/linux-6.1.9/include/trace/events/ !
Dnet.h76 unsigned int skb_len),
78 TP_ARGS(skb, rc, dev, skb_len),
89 __entry->len = skb_len;
/linux-6.1.9/drivers/net/wireless/ath/ath10k/ !
Dhtc.c172 unsigned int skb_len; in ath10k_htc_send() local
184 skb_len = skb->len; in ath10k_htc_send()
185 ret = ath10k_htc_consume_credit(ep, skb_len, true); in ath10k_htc_send()
218 ath10k_htc_release_credit(ep, skb_len); in ath10k_htc_send()
647 unsigned int skb_len; in ath10k_htc_send_bundle() local
650 skb_len = bundle_skb->len; in ath10k_htc_send_bundle()
651 ret = ath10k_htc_consume_credit(ep, skb_len, true); in ath10k_htc_send_bundle()
661 ath10k_htc_release_credit(ep, skb_len); in ath10k_htc_send_bundle()
681 ret, ep->eid, skb_queue_len(&ep->tx_req_head), cn, skb_len); in ath10k_htc_send_bundle()
/linux-6.1.9/drivers/net/ipa/ !
Dipa_modem.c124 u32 skb_len = skb->len; in ipa_start_xmit() local
128 if (!skb_len) in ipa_start_xmit()
171 stats->tx_bytes += skb_len; in ipa_start_xmit()
/linux-6.1.9/net/bluetooth/ !
Daf_bluetooth.c392 int skb_len = skb_headlen(skb); in bt_sock_stream_recvmsg() local
394 if (chunk <= skb_len) { in bt_sock_stream_recvmsg()
399 __skb_pull(skb, skb_len); in bt_sock_stream_recvmsg()
400 chunk -= skb_len; in bt_sock_stream_recvmsg()
/linux-6.1.9/drivers/nfc/st95hf/ !
Dcore.c699 int skb_len; in st95hf_response_handler() local
713 skb_len = skb_resp->len; in st95hf_response_handler()
740 skb_trim(skb_resp, (skb_len - 5)); in st95hf_response_handler()
742 skb_trim(skb_resp, (skb_len - 3)); in st95hf_response_handler()
746 skb_trim(skb_resp, (skb_len - 3)); in st95hf_response_handler()
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/ !
Dtdls.c636 u16 skb_len; in mwifiex_send_tdls_data_frame() local
638 skb_len = MWIFIEX_MIN_DATA_HEADER_LEN + in mwifiex_send_tdls_data_frame()
656 skb_len += sizeof(struct ieee_types_vht_cap) + in mwifiex_send_tdls_data_frame()
660 skb = dev_alloc_skb(skb_len); in mwifiex_send_tdls_data_frame()
819 u16 pkt_len, skb_len; in mwifiex_send_tdls_action_frame() local
821 skb_len = MWIFIEX_MIN_DATA_HEADER_LEN + in mwifiex_send_tdls_action_frame()
836 skb_len += sizeof(struct ieee_types_vht_cap) + in mwifiex_send_tdls_action_frame()
840 skb = dev_alloc_skb(skb_len); in mwifiex_send_tdls_action_frame()
/linux-6.1.9/drivers/atm/ !
Dfore200e.c1479 int skb_len; in fore200e_send() local
1506 skb_len = tx_len = skb->len - 4; in fore200e_send()
1514 skb_len = skb->len; in fore200e_send()
1521 tx_len = skb_len; in fore200e_send()
1524 if ((vcc->qos.aal == ATM_AAL0) && (skb_len % ATM_CELL_PAYLOAD)) { in fore200e_send()
1529 tx_len = ((skb_len / ATM_CELL_PAYLOAD) + 1) * ATM_CELL_PAYLOAD; in fore200e_send()
1544 memcpy(data, skb_data, skb_len); in fore200e_send()
1545 if (skb_len < tx_len) in fore200e_send()
1546 memset(data + skb_len, 0x00, tx_len - skb_len); in fore200e_send()
1620 tpd->tsd[0].length, skb_len); in fore200e_send()
[all …]
/linux-6.1.9/drivers/staging/most/net/ !
Dnet.c436 unsigned int skb_len; in comp_rx_data() local
494 skb_len = skb->len; in comp_rx_data()
497 dev->stats.rx_bytes += skb_len; in comp_rx_data()
/linux-6.1.9/drivers/staging/ks7010/ !
Dks_hostif.c1052 unsigned int skb_len = 0; in hostif_data_request() local
1066 skb_len = skb->len; in hostif_data_request()
1067 if (skb_len > ETH_FRAME_LEN) { in hostif_data_request()
1068 netdev_err(priv->net_dev, "bad length skb_len=%d\n", skb_len); in hostif_data_request()
1090 size = sizeof(*pp) + 6 + skb_len + 8; in hostif_data_request()
1129 skb_len += 6; in hostif_data_request()
1134 skb_len -= 2; in hostif_data_request()
1168 &pp->data[0], skb_len, in hostif_data_request()
1175 skb_len += sizeof(mic); in hostif_data_request()
1194 cpu_to_le16((sizeof(*pp) - sizeof(pp->header.size) + skb_len)); in hostif_data_request()
[all …]
/linux-6.1.9/drivers/net/caif/ !
Dcaif_virtio.c258 unsigned int skb_len; in cfv_rx_poll() local
294 skb_len = skb->len; in cfv_rx_poll()
303 cfv->ndev->stats.rx_bytes += skb_len; in cfv_rx_poll()
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ !
Dtrx.c341 u32 skb_len, pkt_len, drvinfo_len; in _rtl_rx_process() local
355 skb_len = skb->len; in _rtl_rx_process()
359 WARN_ON(skb_len < (pkt_len + RTL_RX_DESC_SIZE + drvinfo_len)); in _rtl_rx_process()
/linux-6.1.9/drivers/net/wireguard/ !
Dsocket.c170 size_t skb_len = skb->len; in wg_socket_send_skb_to_peer() local
183 peer->tx_bytes += skb_len; in wg_socket_send_skb_to_peer()

123