/linux/drivers/net/ethernet/qualcomm/rmnet/ |
A D | rmnet_vnd.c | 64 u32 headroom; in rmnet_vnd_headroom() local 71 return headroom; in rmnet_vnd_headroom() 78 u32 headroom; in rmnet_vnd_change_mtu() local 82 headroom = rmnet_vnd_headroom(port); in rmnet_vnd_change_mtu() 256 u32 headroom; in rmnet_vnd_newlink() local 270 headroom = rmnet_vnd_headroom(port); in rmnet_vnd_newlink() 325 u32 headroom; in rmnet_vnd_validate_real_dev_mtu() local 329 headroom = rmnet_vnd_headroom(port); in rmnet_vnd_validate_real_dev_mtu() 345 u32 headroom; in rmnet_vnd_update_dev_mtu() local 347 headroom = rmnet_vnd_headroom(port); in rmnet_vnd_update_dev_mtu() [all …]
|
/linux/include/net/ |
A D | xdp.h | 88 int headroom, int data_len, const bool meta_valid) in xdp_prepare_buff() argument 90 unsigned char *data = hard_start + headroom; in xdp_prepare_buff() 117 u16 headroom; member 143 void *data_hard_start = frame->data - frame->headroom - sizeof(*frame); in xdp_get_shared_info_from_frame() 178 xdp->data_hard_start = frame->data - frame->headroom - sizeof(*frame); in xdp_convert_frame_to_buff() 189 int metasize, headroom; in xdp_update_frame_from_buff() local 192 headroom = xdp->data - xdp->data_hard_start; in xdp_update_frame_from_buff() 195 if (unlikely((headroom - metasize) < sizeof(*xdp_frame))) in xdp_update_frame_from_buff() 206 xdp_frame->headroom = headroom - sizeof(*xdp_frame); in xdp_update_frame_from_buff()
|
A D | xsk_buff_pool.h | 68 u32 headroom; member 113 xskb->xdp.data_hard_start = pool->addrs + addr + pool->headroom; in xp_init_xskb_addr() 121 xskb->dma = xskb->frame_dma + pool->headroom + XDP_PACKET_HEADROOM; in xp_init_xskb_dma() 221 offset += xskb->pool->headroom; in xp_get_handle()
|
A D | lwtunnel.h | 28 __u16 headroom; member 105 lwtunnel_output_redirect(lwtstate)) && lwtstate->headroom < mtu) in lwtunnel_headroom() 106 return lwtstate->headroom; in lwtunnel_headroom()
|
/linux/net/core/ |
A D | xdp.c | 500 xdpf->headroom = 0; in xdp_convert_zc_to_xdp_frame() 532 unsigned int headroom, frame_size; in __xdp_build_skb_from_frame() local 536 headroom = sizeof(*xdpf) + xdpf->headroom; in __xdp_build_skb_from_frame() 543 hard_start = xdpf->data - headroom; in __xdp_build_skb_from_frame() 548 skb_reserve(skb, headroom); in __xdp_build_skb_from_frame() 589 unsigned int headroom, totalsize; in xdpf_clone() local 594 headroom = xdpf->headroom + sizeof(*xdpf); in xdpf_clone() 595 totalsize = headroom + xdpf->len; in xdpf_clone() 607 nxdpf->data = addr + headroom; in xdpf_clone()
|
/linux/samples/bpf/ |
A D | xdp_adjust_tail_kern.c | 72 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()
|
/linux/drivers/net/wireless/quantenna/qtnfmac/ |
A D | shm_ipc.c | 14 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()
|
A D | shm_ipc_defs.h | 25 u8 headroom[QTN_IPC_REG_HDR_SZ]; member 29 union qtnf_shm_ipc_region_headroom headroom; member
|
/linux/net/xdp/ |
A D | xdp_umem.c | 155 u32 npgs_rem, chunk_size = mr->chunk_size, headroom = mr->headroom; in xdp_umem_reg() local 200 if (headroom >= chunk_size - XDP_PACKET_HEADROOM) in xdp_umem_reg() 204 umem->headroom = headroom; in xdp_umem_reg()
|
/linux/drivers/nfc/nfcmrvl/ |
A D | main.c | 100 int headroom; in nfcmrvl_nci_register_dev() local 126 headroom = NCI_SPI_HDR_LEN; in nfcmrvl_nci_register_dev() 129 headroom = tailroom = 0; in nfcmrvl_nci_register_dev() 132 headroom += NFCMRVL_HCI_EVENT_HEADER_SIZE; in nfcmrvl_nci_register_dev() 143 headroom, tailroom); in nfcmrvl_nci_register_dev()
|
/linux/net/decnet/ |
A D | dn_neigh.c | 214 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()
|
/linux/net/ax25/ |
A D | ax25_out.c | 329 int headroom; in ax25_transmit_buffer() local 336 headroom = ax25_addr_size(ax25->digipeat); in ax25_transmit_buffer() 338 if (unlikely(skb_headroom(skb) < headroom)) { in ax25_transmit_buffer() 339 skb = skb_expand_head(skb, headroom); in ax25_transmit_buffer() 346 ptr = skb_push(skb, headroom); in ax25_transmit_buffer()
|
/linux/include/net/bluetooth/ |
A D | bluetooth.h | 451 size_t headroom, size_t tailroom) in bt_skb_sendmsg() argument 457 skb = bt_skb_send_alloc(sk, size + headroom + tailroom, in bt_skb_sendmsg() 462 skb_reserve(skb, headroom); in bt_skb_sendmsg() 481 size_t headroom, size_t tailroom) in bt_skb_sendmmsg() argument 485 skb = bt_skb_sendmsg(sk, msg, len, mtu, headroom, tailroom); in bt_skb_sendmmsg() 498 tmp = bt_skb_sendmsg(sk, msg, len, mtu, headroom, tailroom); in bt_skb_sendmmsg()
|
/linux/drivers/net/usb/ |
A D | gl620a.c | 140 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()
|
A D | int51x1.c | 59 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()
|
A D | cdc_eem.c | 107 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()
|
A D | kalmia.c | 167 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()
|
A D | lg-vl600.c | 249 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()
|
/linux/net/bpf/ |
A D | test_run.c | 253 u32 headroom, u32 tailroom) in bpf_test_init() argument 259 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom) in bpf_test_init() 265 data = kzalloc(size + headroom + tailroom, GFP_USER); in bpf_test_init() 269 if (copy_from_user(data + headroom, data_in, user_size)) { in bpf_test_init() 761 u32 headroom = XDP_PACKET_HEADROOM; in bpf_prog_test_run_xdp() local 787 headroom -= ctx->data; in bpf_prog_test_run_xdp() 791 max_data_sz = 4096 - headroom - tailroom; in bpf_prog_test_run_xdp() 793 data = bpf_test_init(kattr, max_data_sz, headroom, tailroom); in bpf_prog_test_run_xdp() 800 xdp_init_buff(&xdp, headroom + max_data_sz + tailroom, in bpf_prog_test_run_xdp() 802 xdp_prepare_buff(&xdp, data, headroom, size, true); in bpf_prog_test_run_xdp() [all …]
|
/linux/net/caif/ |
A D | caif_socket.c | 53 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()
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
A D | 11n_aggr.c | 167 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()
|
/linux/drivers/net/wwan/iosm/ |
A D | iosm_ipc_pcie.c | 529 int direction, size_t headroom) in ipc_pcie_alloc_skb() argument 532 size + headroom); in ipc_pcie_alloc_skb() 536 if (headroom) in ipc_pcie_alloc_skb() 537 skb_reserve(skb, headroom); in ipc_pcie_alloc_skb()
|
/linux/drivers/net/ |
A D | virtio_net.c | 364 unsigned int headroom) in mergeable_len_to_ctx() argument 385 unsigned int headroom) in page_to_skb() argument 410 truesize = headroom ? PAGE_SIZE : truesize; in page_to_skb() 411 tailroom = truesize - headroom; in page_to_skb() 412 buf = p - headroom; in page_to_skb() 509 if (unlikely(xdpf->headroom < vi->hdr_len)) in __virtnet_xdp_xmit_one() 763 headroom = vi->hdr_len + header_offset; in receive_small() 830 skb_reserve(skb, headroom - delta); in receive_small() 930 frame_sz = headroom ? PAGE_SIZE : truesize; in receive_mergeable() 1040 metasize, headroom); in receive_mergeable() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/ |
A D | mcu.c | 13 int length = ops->headroom + data_len + ops->tailroom; in mt76_mcu_msg_alloc() 21 skb_reserve(skb, ops->headroom); in mt76_mcu_msg_alloc()
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-eth.h | 677 unsigned int headroom = DPAA2_ETH_SWA_SIZE; in dpaa2_eth_needed_headroom() local 683 return headroom; in dpaa2_eth_needed_headroom() 693 headroom += DPAA2_ETH_TX_HWA_SIZE; in dpaa2_eth_needed_headroom() 695 return headroom; in dpaa2_eth_needed_headroom()
|