Home
last modified time | relevance | path

Searched refs:skb_headlen (Results 1 – 25 of 208) sorted by relevance

123456789

/linux-6.6.21/tools/testing/selftests/bpf/progs/
Ddecap_sanity.c16 static unsigned int skb_headlen(const struct sk_buff *skb) in skb_headlen() function
62 (unsigned int)skb_checksum_start_offset(kskb) >= skb_headlen(kskb)) in decap_sanity()
/linux-6.6.21/net/caif/
Dcfpkt_skbuff.c111 if (skb_headlen(skb) >= len) { in cfpkt_peek_head()
131 if (unlikely(len > skb_headlen(skb))) { in cfpkt_extr_head()
300 u16 addlen = skb_headlen(add); in cfpkt_append()
316 dstlen = skb_headlen(dst); in cfpkt_append()
326 skb_put_data(dst, add->data, skb_headlen(add)); in cfpkt_append()
/linux-6.6.21/net/core/
Dskbuff.c1189 level, skb->len, headroom, skb_headlen(skb), tailroom, in skb_dump()
1213 seg_len = min_t(int, skb_headlen(skb), len); in skb_dump()
2014 unsigned int size = skb_headlen(skb) + headroom; in __pskb_copy_fclone()
2024 skb_put(n, skb_headlen(skb)); in __pskb_copy_fclone()
2514 int offset = skb_headlen(skb); in ___pskb_trim()
2580 if (len > skb_headlen(skb)) { in ___pskb_trim()
2606 int hdlen = (len > skb_headlen(skb)) ? skb_headlen(skb) : len; in pskb_trim_rcsum_slow()
2655 BUG_ON(skb_copy_bits(skb, skb_headlen(skb), in __pskb_pull_tail()
2695 skb_headlen(list)) in __pskb_pull_tail()
2784 int start = skb_headlen(skb); in skb_copy_bits()
[all …]
Dgro.c100 unsigned int headlen = skb_headlen(skb); in skb_gro_receive()
379 if (!skb_headlen(skb) && pinfo->nr_frags && in skb_gro_reset_offset()
412 int grow = skb_gro_offset(skb) - skb_headlen(skb); in gro_try_pull_from_frag0()
622 __skb_pull(skb, skb_headlen(skb)); in napi_reuse_skb()
Ddatagram.c411 int start = skb_headlen(skb); in __skb_datagram_iter()
545 int start = skb_headlen(skb); in skb_copy_datagram_from_iter()
709 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); in zerocopy_sg_from_iter()
Dtso.c76 tso->size = skb_headlen(skb) - hdr_len; in tso_start()
Dgso.c236 if (seg_len + skb_headlen(iter) > max_len) in skb_gso_size_check()
/linux-6.6.21/drivers/net/ethernet/sfc/
Dtx_tso.c163 skb_headlen(skb)); in efx_tso_check_protocol()
180 in_len = skb_headlen(skb) - header_len; in tso_start()
199 skb_headlen(skb), DMA_TO_DEVICE); in tso_start()
201 st->header_unmap_len = skb_headlen(skb); in tso_start()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfdk/
Ddp.c127 n_descs = nfp_nfdk_headlen_to_segs(skb_headlen(skb)); in nfp_nfdk_tx_maybe_close_block()
302 dma_len = skb_headlen(skb); in nfp_nfdk_tx()
430 wr_idx, skb_headlen(skb), nr_frags, cnt); in nfp_nfdk_tx()
440 skb_headlen(skb), DMA_TO_DEVICE); in nfp_nfdk_tx()
509 size = skb_headlen(skb); in nfp_nfdk_tx_complete()
1368 dma_len = skb_headlen(skb); in nfp_nfdk_ctrl_tx_one()
1434 wr_idx, skb_headlen(skb), 0, cnt); in nfp_nfdk_ctrl_tx_one()
1437 skb_headlen(skb), DMA_TO_DEVICE); in nfp_nfdk_ctrl_tx_one()
Drings.c36 size = skb_headlen(skb); in nfp_nfdk_tx_ring_reset()
/linux-6.6.21/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c282 if (skb_headlen(skb)) { in ipoib_dma_map_tx()
283 mapping[0] = ib_dma_map_single(ca, skb->data, skb_headlen(skb), in ipoib_dma_map_tx()
312 ib_dma_unmap_single(ca, mapping[0], skb_headlen(skb), DMA_TO_DEVICE); in ipoib_dma_map_tx()
325 if (skb_headlen(skb)) { in ipoib_dma_unmap_tx()
326 ib_dma_unmap_single(priv->ca, mapping[0], skb_headlen(skb), in ipoib_dma_unmap_tx()
573 unsigned int usable_sge = priv->max_send_sge - !!skb_headlen(skb); in ipoib_send()
Dipoib.h550 if (skb_headlen(skb)) { in ipoib_build_sge()
552 priv->tx_sge[0].length = skb_headlen(skb); in ipoib_build_sge()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfd3/
Ddp.c299 dma_addr = dma_map_single(dp->dev, skb->data, skb_headlen(skb), in nfp_nfd3_tx()
317 txd->dma_len = cpu_to_le16(skb_headlen(skb)); in nfp_nfd3_tx()
397 skb_headlen(skb), DMA_TO_DEVICE); in nfp_nfd3_tx()
458 skb_headlen(skb), DMA_TO_DEVICE); in nfp_nfd3_tx_complete()
1245 dma_addr = dma_map_single(dp->dev, skb->data, skb_headlen(skb), in nfp_nfd3_ctrl_tx_one()
1263 txd->dma_len = cpu_to_le16(skb_headlen(skb)); in nfp_nfd3_ctrl_tx_one()
/linux-6.6.21/drivers/net/wwan/t7xx/
Dt7xx_port_wwan.c77 cloned->len = skb_headlen(cur); in t7xx_port_ctrl_tx()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c664 if (unlikely(*lso_header_size != skb_headlen(skb))) { in get_real_size()
667 if (*lso_header_size < skb_headlen(skb)) in get_real_size()
697 unsigned int hlen = skb_headlen(skb); in build_inline_wqe()
843 byte_count = skb_headlen(skb) - lso_header_size; in mlx4_en_build_dma_wqe()
973 tx_info->linear = lso_header_size < skb_headlen(skb) && !inline_ok; in mlx4_en_xmit()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
Dsdio_txrx.c277 memcpy(sdio->xmit_buf + len, e->skb->data, skb_headlen(e->skb)); in mt76s_tx_run_queue()
278 len += skb_headlen(e->skb); in mt76s_tx_run_queue()
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/
Dchain_mode.c20 unsigned int nopaged_len = skb_headlen(skb); in jumbo_frm()
Dring_mode.c20 unsigned int nopaged_len = skb_headlen(skb); in jumbo_frm()
/linux-6.6.21/drivers/block/aoe/
Daoenet.c149 sn -= skb_headlen(skb); in aoenet_rcv()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/
Dhns3_trace.h33 __entry->headlen = skb_headlen(skb);
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c82 hlen = eth_get_headlen(skb->dev, skb->data, skb_headlen(skb)); in mlx5e_calc_min_inline()
93 return min_t(u16, hlen, skb_headlen(skb)); in mlx5e_calc_min_inline()
277 .headlen = skb_headlen(skb) - ihs - hopbyhop, in mlx5e_sq_xmit_prepare()
291 .headlen = skb_headlen(skb) - ihs, in mlx5e_sq_xmit_prepare()
/linux-6.6.21/drivers/net/wireless/ath/wil6210/
Dtxrx.c510 skb->data, skb_headlen(skb), false); in wil_vring_reap_rx()
560 skb->data, skb_headlen(skb), false); in wil_vring_reap_rx()
1836 headlen = skb_headlen(skb) - hdrlen; in __wil_tx_vring_tso()
1872 skb_headlen(skb) - headlen, in __wil_tx_vring_tso()
2042 uint len = skb_headlen(skb); in __wil_tx_ring()
2058 pa = dma_map_single(dev, skb->data, skb_headlen(skb), DMA_TO_DEVICE); in __wil_tx_ring()
2061 skb_headlen(skb), skb->data, &pa); in __wil_tx_ring()
2063 skb->data, skb_headlen(skb), false); in __wil_tx_ring()
/linux-6.6.21/drivers/net/ethernet/aeroflex/
Dgreth.c104 length = skb_headlen(skb); in greth_print_tx_packet()
194 skb_headlen(skb), in greth_clean_rings()
501 status |= skb_headlen(skb) & GRETH_BD_LEN; in greth_start_xmit_gbit()
508 dma_addr = dma_map_single(greth->dev, skb->data, skb_headlen(skb), DMA_TO_DEVICE); in greth_start_xmit_gbit()
711 skb_headlen(skb), in greth_clean_tx_gbit()
/linux-6.6.21/include/linux/
Dvirtio_net.h207 skb_headlen(skb)); in virtio_net_hdr_from_skb()
/linux-6.6.21/drivers/net/ethernet/faraday/
Dftmac100.c640 dma_unmap_single(priv->dev, map, skb_headlen(skb), DMA_TO_DEVICE); in ftmac100_tx_complete_packet()
749 dma_unmap_single(priv->dev, map, skb_headlen(skb), DMA_TO_DEVICE); in ftmac100_free_buffers()
1055 map = dma_map_single(priv->dev, skb->data, skb_headlen(skb), DMA_TO_DEVICE); in ftmac100_hard_start_xmit()

123456789