Home
last modified time | relevance | path

Searched refs:headroom (Results 1 – 25 of 117) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_vnd.c63 u32 headroom; in rmnet_vnd_headroom() local
65 headroom = sizeof(struct rmnet_map_header); in rmnet_vnd_headroom()
68 headroom += sizeof(struct rmnet_map_ul_csum_header); in rmnet_vnd_headroom()
70 return headroom; in rmnet_vnd_headroom()
77 u32 headroom; in rmnet_vnd_change_mtu() local
81 headroom = rmnet_vnd_headroom(port); in rmnet_vnd_change_mtu()
84 new_mtu > (priv->real_dev->mtu - headroom)) in rmnet_vnd_change_mtu()
253 u32 headroom; in rmnet_vnd_newlink() local
267 headroom = rmnet_vnd_headroom(port); in rmnet_vnd_newlink()
269 if (rmnet_vnd_change_mtu(rmnet_dev, real_dev->mtu - headroom)) { in rmnet_vnd_newlink()
[all …]
/kernel/linux/linux-5.10/include/net/
Dxdp.h97 u16 headroom; member
111 void *data_hard_start = frame->data - frame->headroom - sizeof(*frame); in xdp_get_shared_info_from_frame()
139 xdp->data_hard_start = frame->data - frame->headroom - sizeof(*frame); in xdp_convert_frame_to_buff()
150 int metasize, headroom; in xdp_update_frame_from_buff() local
153 headroom = xdp->data - xdp->data_hard_start; in xdp_update_frame_from_buff()
156 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in xdp_update_frame_from_buff()
167 xdp_frame->headroom = headroom - sizeof(*xdp_frame); in xdp_update_frame_from_buff()
Dlwtunnel.h28 __u16 headroom; member
102 lwtunnel_output_redirect(lwtstate)) && lwtstate->headroom < mtu) in lwtunnel_headroom()
103 return lwtstate->headroom; in lwtunnel_headroom()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.c15 u16 headroom; in mlx5e_get_linear_rq_headroom() local
18 return xsk->headroom; in mlx5e_get_linear_rq_headroom()
20 headroom = NET_IP_ALIGN; in mlx5e_get_linear_rq_headroom()
22 headroom += XDP_PACKET_HEADROOM; in mlx5e_get_linear_rq_headroom()
24 headroom += MLX5_RX_HEADROOM; in mlx5e_get_linear_rq_headroom()
26 return headroom; in mlx5e_get_linear_rq_headroom()
/kernel/linux/linux-5.10/samples/bpf/
Dxdp_adjust_tail_kern.c72 int headroom = (int)sizeof(struct iphdr) + (int)sizeof(struct icmphdr); in send_icmp4_too_big() local
74 if (bpf_xdp_adjust_head(xdp, 0 - headroom)) in send_icmp4_too_big()
79 if (data + (ICMP_TOOBIG_SIZE + headroom) > data_end) in send_icmp4_too_big()
88 orig_eth = data + headroom; in send_icmp4_too_big()
110 ICMP_TOOBIG_SIZE + headroom - sizeof(struct ethhdr)); in send_icmp4_too_big()
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/
Dshm_ipc.c14 const u32 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_has_new_data()
25 shm_reg_hdr = &ipc->shm_region->headroom.hdr; in qtnf_shm_handle_new_data()
59 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_irq_inbound_handler()
72 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_irq_outbound_handler()
128 shm_reg_hdr = &ipc->shm_region->headroom.hdr; in qtnf_shm_ipc_send()
Dshm_ipc_defs.h25 u8 headroom[QTN_IPC_REG_HDR_SZ]; member
29 union qtnf_shm_ipc_region_headroom headroom; member
/kernel/linux/linux-5.10/net/xdp/
Dxdp_umem.c156 u32 npgs_rem, chunk_size = mr->chunk_size, headroom = mr->headroom; in xdp_umem_reg() local
201 if (headroom >= chunk_size - XDP_PACKET_HEADROOM) in xdp_umem_reg()
205 umem->headroom = headroom; in xdp_umem_reg()
Dxsk_buff_pool.c64 pool->headroom = umem->headroom; in xp_create_and_assign_umem()
67 pool->frame_len = umem->chunk_size - umem->headroom - in xp_create_and_assign_umem()
83 xskb->xdp.frame_sz = umem->chunk_size - umem->headroom; in xp_create_and_assign_umem()
479 xskb->xdp.data_hard_start = pool->addrs + addr + pool->headroom; in __xp_alloc()
484 xskb->dma = xskb->frame_dma + pool->headroom + in __xp_alloc()
/kernel/linux/linux-5.10/drivers/nfc/nfcmrvl/
Dmain.c111 int headroom; in nfcmrvl_nci_register_dev() local
137 headroom = NCI_SPI_HDR_LEN; in nfcmrvl_nci_register_dev()
140 headroom = tailroom = 0; in nfcmrvl_nci_register_dev()
143 headroom += NFCMRVL_HCI_EVENT_HEADER_SIZE; in nfcmrvl_nci_register_dev()
154 headroom, tailroom); in nfcmrvl_nci_register_dev()
/kernel/linux/linux-5.10/net/decnet/
Ddn_neigh.c214 int headroom = dev->hard_header_len + sizeof(struct dn_long_packet) + 3; in dn_long_output() local
220 if (skb_headroom(skb) < headroom) { in dn_long_output()
221 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_long_output()
262 int headroom = dev->hard_header_len + sizeof(struct dn_short_packet) + 2; in dn_short_output() local
268 if (skb_headroom(skb) < headroom) { in dn_short_output()
269 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_short_output()
305 int headroom = dev->hard_header_len + sizeof(struct dn_short_packet) + 2; in dn_phase3_output() local
310 if (skb_headroom(skb) < headroom) { in dn_phase3_output()
311 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_phase3_output()
/kernel/linux/linux-5.10/net/ax25/
Dax25_out.c330 int headroom; in ax25_transmit_buffer() local
337 headroom = ax25_addr_size(ax25->digipeat); in ax25_transmit_buffer()
339 if (skb_headroom(skb) < headroom) { in ax25_transmit_buffer()
340 if ((skbn = skb_realloc_headroom(skb, headroom)) == NULL) { in ax25_transmit_buffer()
353 ptr = skb_push(skb, headroom); in ax25_transmit_buffer()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmcu.c13 int length = ops->headroom + data_len + ops->tailroom; in mt76_mcu_msg_alloc()
21 skb_reserve(skb, ops->headroom); in mt76_mcu_msg_alloc()
/kernel/linux/linux-5.10/net/bpf/
Dtest_run.c179 u32 headroom, u32 tailroom) in bpf_test_init() argument
185 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom) in bpf_test_init()
191 data = kzalloc(size + headroom + tailroom, GFP_USER); in bpf_test_init()
195 if (copy_from_user(data + headroom, data_in, user_size)) { in bpf_test_init()
628 u32 headroom = XDP_PACKET_HEADROOM; in bpf_prog_test_run_xdp() local
645 max_data_sz = 4096 - headroom - tailroom; in bpf_prog_test_run_xdp()
647 data = bpf_test_init(kattr, max_data_sz, headroom, tailroom); in bpf_prog_test_run_xdp()
652 xdp.data = data + headroom; in bpf_prog_test_run_xdp()
655 xdp.frame_sz = headroom + max_data_sz + tailroom; in bpf_prog_test_run_xdp()
663 if (xdp.data != data + headroom || xdp.data_end != xdp.data + size) in bpf_prog_test_run_xdp()
/kernel/linux/linux-5.10/drivers/net/usb/
Dint51x1.c59 int headroom = skb_headroom(skb); in int51x1_tx_fixup() local
76 (headroom + tailroom >= need_tail + INT51X1_HEADER_SIZE)) { in int51x1_tx_fixup()
77 if (headroom < INT51X1_HEADER_SIZE || tailroom < need_tail) { in int51x1_tx_fixup()
Dgl620a.c140 int headroom = skb_headroom(skb); in genelink_tx_fixup() local
149 && ((headroom + tailroom) >= (padlen + (4 + 4*1)))) { in genelink_tx_fixup()
150 if ((headroom < (4 + 4*1)) || (tailroom < padlen)) { in genelink_tx_fixup()
Dcdc_eem.c107 int headroom = skb_headroom(skb); in eem_tx_fixup() local
111 (headroom >= EEM_HEAD)) in eem_tx_fixup()
114 if ((headroom + tailroom) in eem_tx_fixup()
Dkalmia.c167 int headroom = skb_headroom(skb); in kalmia_tx_fixup() local
170 if ((tailroom >= KALMIA_ALIGN_SIZE) && (headroom in kalmia_tx_fixup()
174 if ((headroom + tailroom) > (KALMIA_HEADER_LENGTH in kalmia_tx_fixup()
Dlg-vl600.c249 int headroom = skb_headroom(skb); in vl600_tx_fixup() local
253 headroom >= sizeof(*frame)) in vl600_tx_fixup()
257 if (headroom + tailroom + skb->len >= full_len) { in vl600_tx_fixup()
/kernel/linux/linux-5.10/net/caif/
Dcaif_socket.c53 int headroom, tailroom, maxframe; member
564 buffer_size = len + cf_sk->headroom + cf_sk->tailroom; in caif_seqpkt_sendmsg()
572 skb_reserve(skb, cf_sk->headroom); in caif_seqpkt_sendmsg()
632 size + cf_sk->headroom + in caif_stream_sendmsg()
639 skb_reserve(skb, cf_sk->headroom); in caif_stream_sendmsg()
752 int ifindex, headroom, tailroom; in caif_connect() local
834 &cf_sk->layer, &ifindex, &headroom, &tailroom); in caif_connect()
849 cf_sk->headroom = LL_RESERVED_SPACE_EXTRA(dev, headroom); in caif_connect()
854 cf_sk->maxframe = mtu - (headroom + tailroom); in caif_connect()
Dchnl_net.c250 int llifindex, headroom, tailroom, mtu; in chnl_net_open() local
263 &headroom, &tailroom); in chnl_net_open()
281 dev->hard_header_len = headroom + lldev->hard_header_len + in chnl_net_open()
291 mtu = min_t(int, dev->mtu, lldev->mtu - (headroom + tailroom)); in chnl_net_open()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
D11n_aggr.c167 int headroom = adapter->intf_hdr_len; in mwifiex_11n_aggregate_pkt() local
186 skb_reserve(skb_aggr, headroom + sizeof(struct txpd)); in mwifiex_11n_aggregate_pkt()
241 skb_push(skb_aggr, headroom); in mwifiex_11n_aggregate_pkt()
/kernel/linux/linux-5.10/include/linux/
Dvirtio_caif.h14 __virtio16 headroom; member
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth.h667 unsigned int headroom = DPAA2_ETH_SWA_SIZE; in dpaa2_eth_needed_headroom() local
673 return headroom; in dpaa2_eth_needed_headroom()
683 headroom += DPAA2_ETH_TX_HWA_SIZE; in dpaa2_eth_needed_headroom()
685 return headroom; in dpaa2_eth_needed_headroom()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dwmi.c301 u16 headroom = sizeof(struct htc_frame_hdr) + in ath9k_wmi_cmd() local
310 skb = alloc_skb(headroom + cmd_len, GFP_ATOMIC); in ath9k_wmi_cmd()
314 skb_reserve(skb, headroom); in ath9k_wmi_cmd()

12345