/linux-6.6.21/include/net/ |
D | xdp.h | 87 u32 frame_sz; /* frame size to deduce data_hard_end/reserved tailroom*/ member 117 xdp_init_buff(struct xdp_buff *xdp, u32 frame_sz, struct xdp_rxq_info *rxq) in xdp_init_buff() argument 119 xdp->frame_sz = frame_sz; in xdp_init_buff() 143 ((xdp)->data_hard_start + (xdp)->frame_sz - \ 176 u32 frame_sz; member 208 return (struct skb_shared_info *)(data_hard_start + frame->frame_sz - in xdp_get_shared_info_from_frame() 258 xdp->frame_sz = frame->frame_sz; in xdp_convert_frame_to_buff() 285 xdp_frame->frame_sz = xdp->frame_sz; in xdp_update_frame_from_buff()
|
/linux-6.6.21/drivers/media/usb/gspca/ |
D | vicam.c | 171 int ret, frame_sz; in vicam_dostream() local 174 frame_sz = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].sizeimage + in vicam_dostream() 176 buffer = kmalloc(frame_sz, GFP_KERNEL); in vicam_dostream() 187 ret = vicam_read_frame(gspca_dev, buffer, frame_sz); in vicam_dostream() 198 frame_sz - HEADER_SIZE); in vicam_dostream()
|
D | sq905.c | 206 int frame_sz; in sq905_dostream() local 217 frame_sz = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].sizeimage in sq905_dostream() 227 bytes_left = frame_sz; in sq905_dostream()
|
/linux-6.6.21/drivers/media/platform/qcom/venus/ |
D | hfi_msgs.c | 28 struct hfi_framesize *frame_sz; in event_seq_changed() local 64 frame_sz = (struct hfi_framesize *)data_ptr; in event_seq_changed() 65 event.width = frame_sz->width; in event_seq_changed() 66 event.height = frame_sz->height; in event_seq_changed() 67 data_ptr += sizeof(*frame_sz); in event_seq_changed()
|
/linux-6.6.21/net/core/ |
D | xdp.c | 575 xdpf->frame_sz = PAGE_SIZE; in xdp_convert_zc_to_xdp_frame() 619 frame_size = xdpf->frame_sz; in __xdp_build_skb_from_frame() 634 nr_frags * xdpf->frame_sz, in __xdp_build_skb_from_frame() 692 nxdpf->frame_sz = PAGE_SIZE; in xdpf_clone()
|
D | dev.c | 4862 u32 mac_len, frame_sz; in bpf_prog_run_generic_xdp() local 4875 frame_sz = (void *)skb_end_pointer(skb) - hard_start; in bpf_prog_run_generic_xdp() 4876 frame_sz += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in bpf_prog_run_generic_xdp() 4879 xdp_init_buff(xdp, frame_sz, &rxqueue->xdp_rxq); in bpf_prog_run_generic_xdp()
|
D | filter.c | 4074 if (!rxq->frag_size || rxq->frag_size > xdp->frame_sz) in bpf_xdp_frags_increase_tail()
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.c | 614 xdp.frame_sz = xdpf->frame_sz; in ice_xmit_xdp_ring() 999 skb = napi_build_skb(xdp->data_hard_start, xdp->frame_sz); in ice_build_skb() 1017 nr_frags * xdp->frame_sz, in ice_build_skb() 1080 xdp->frame_sz); in ice_construct_skb() 1098 nr_frags * xdp->frame_sz, in ice_construct_skb() 1163 xdp->frame_sz = ice_rx_frame_truesize(rx_ring, 0); in ice_clean_rx_irq() 1227 xdp->frame_sz = ice_rx_frame_truesize(rx_ring, size); in ice_clean_rx_irq() 1306 ice_rx_buf_adjust_pg_offset(buf, xdp->frame_sz); in ice_clean_rx_irq() 1311 ice_rx_buf_adjust_pg_offset(buf, xdp->frame_sz); in ice_clean_rx_irq()
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 2109 i40e_rx_buffer_flip(rx_buffer, xdp->frame_sz); in i40e_process_rx_buffs() 2190 size, xdp->frame_sz); in i40e_construct_skb() 2192 i40e_rx_buffer_flip(rx_buffer, xdp->frame_sz); in i40e_construct_skb() 2206 nr_frags * xdp->frame_sz, in i40e_construct_skb() 2248 skb = napi_build_skb(xdp->data_hard_start, xdp->frame_sz); in i40e_build_skb() 2261 nr_frags * xdp->frame_sz, in i40e_build_skb() 2270 i40e_rx_buffer_flip(rx_buffer, xdp->frame_sz); in i40e_build_skb() 2575 xdp->frame_sz = i40e_rx_frame_truesize(rx_ring, size); in i40e_clean_rx_irq() 2596 i40e_rx_buffer_flip(rx_buffer, xdp->frame_sz); in i40e_clean_rx_irq()
|
/linux-6.6.21/drivers/net/ |
D | veth.c | 727 u32 frame_sz; in veth_convert_skb_to_xdp_buff() local 801 frame_sz = skb_end_pointer(skb) - skb->head; in veth_convert_skb_to_xdp_buff() 802 frame_sz += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in veth_convert_skb_to_xdp_buff() 803 xdp_init_buff(xdp, frame_sz, &rq->xdp_rxq); in veth_convert_skb_to_xdp_buff()
|
D | virtio_net.c | 1374 skb = build_skb(xdp->data_hard_start, xdp->frame_sz); in build_skb_from_xdp_buff() 1404 unsigned int frame_sz, in virtnet_build_xdp_buff_mrg() argument 1419 xdp_init_buff(xdp, frame_sz, &rq->xdp_rxq); in virtnet_build_xdp_buff_mrg() 1491 unsigned int *frame_sz, in mergeable_xdp_get_buf() argument 1515 *frame_sz = truesize; in mergeable_xdp_get_buf() 1552 *frame_sz = PAGE_SIZE; in mergeable_xdp_get_buf() 1577 unsigned int frame_sz; in receive_mergeable_xdp() local 1583 data = mergeable_xdp_get_buf(vi, rq, xdp_prog, ctx, &frame_sz, &num_buf, &page, in receive_mergeable_xdp() 1588 err = virtnet_build_xdp_buff_mrg(dev, vi, rq, &xdp, data, len, frame_sz, in receive_mergeable_xdp()
|
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ring.c | 702 int frame_sz = rx_ring->page_offset + rx_ring->frame_max + in __aq_ring_xdp_clean() local 793 xdp_init_buff(&xdp, frame_sz, &rx_ring->xdp_rxq); in __aq_ring_xdp_clean()
|
/linux-6.6.21/drivers/scsi/mpt3sas/ |
D | mpt3sas_base.c | 993 u16 frame_sz; in _base_sas_ioc_info() local 1173 frame_sz = sizeof(Mpi2ConfigRequest_t) + ioc->sge_size; in _base_sas_ioc_info() 1177 frame_sz = sizeof(Mpi2SCSITaskManagementRequest_t); in _base_sas_ioc_info() 1181 frame_sz = sizeof(Mpi2SasIoUnitControlRequest_t); in _base_sas_ioc_info() 1185 frame_sz = sizeof(Mpi2SepRequest_t); in _base_sas_ioc_info() 1189 frame_sz = sizeof(Mpi2IOCInitRequest_t); in _base_sas_ioc_info() 1193 frame_sz = sizeof(Mpi2PortEnableRequest_t); in _base_sas_ioc_info() 1197 frame_sz = sizeof(Mpi2SmpPassthroughRequest_t) + ioc->sge_size; in _base_sas_ioc_info() 1201 frame_sz = sizeof(Mpi26NVMeEncapsulatedRequest_t) + in _base_sas_ioc_info() 1206 frame_sz = 32; in _base_sas_ioc_info() [all …]
|
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_eth.c | 2265 new_xdpf->frame_sz = DPAA_BP_RAW_SIZE; in dpaa_a050385_wa_xdpf() 2596 xdp.frame_sz = DPAA_BP_RAW_SIZE; in dpaa_run_xdp() 2619 xdp.frame_sz = DPAA_BP_RAW_SIZE; in dpaa_run_xdp() 2633 xdp.frame_sz = DPAA_BP_RAW_SIZE; in dpaa_run_xdp()
|
/linux-6.6.21/net/xdp/ |
D | xsk_buff_pool.c | 101 xskb->xdp.frame_sz = umem->chunk_size - umem->headroom; in xp_create_and_assign_umem()
|
/linux-6.6.21/drivers/net/ethernet/marvell/ |
D | mvneta.c | 2259 u32 frame_sz, struct mvneta_stats *stats) in mvneta_run_xdp() argument 2307 stats->rx_bytes += frame_sz + xdp->data_end - xdp->data - data_len; in mvneta_run_xdp() 2418 num_frags * xdp->frame_sz, in mvneta_swbm_build_skb() 2433 u32 desc_status, frame_sz; in mvneta_rx_swbm() local 2466 frame_sz = size - ETH_FCS_LEN; in mvneta_rx_swbm() 2493 mvneta_run_xdp(pp, rxq, xdp_prog, &xdp_buf, frame_sz, &ps)) in mvneta_rx_swbm()
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 1120 unsigned int total_rx_bytes = 0, total_rx_packets = 0, frame_sz = 0; in ixgbevf_clean_rx_irq() local 1129 frame_sz = ixgbevf_rx_frame_truesize(rx_ring, 0); in ixgbevf_clean_rx_irq() 1131 xdp_init_buff(&xdp, frame_sz, &rx_ring->xdp_rxq); in ixgbevf_clean_rx_irq() 1167 xdp.frame_sz = ixgbevf_rx_frame_truesize(rx_ring, size); in ixgbevf_clean_rx_irq()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rx.c | 1662 void *va, u16 headroom, u32 frame_sz, u32 len, in mlx5e_fill_mxbuf() argument 1665 xdp_init_buff(&mxbuf->xdp, frame_sz, &rq->xdp_rxq); in mlx5e_fill_mxbuf()
|
/linux-6.6.21/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 8901 u32 frame_sz = 0; in igb_clean_rx_irq() local 8906 frame_sz = igb_rx_frame_truesize(rx_ring, 0); in igb_clean_rx_irq() 8908 xdp_init_buff(&xdp, frame_sz, &rx_ring->xdp_rxq); in igb_clean_rx_irq() 8958 xdp.frame_sz = igb_rx_frame_truesize(rx_ring, size); in igb_clean_rx_irq()
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 2289 unsigned int total_rx_bytes = 0, total_rx_packets = 0, frame_sz = 0; in ixgbe_clean_rx_irq() local 2302 frame_sz = ixgbe_rx_frame_truesize(rx_ring, 0); in ixgbe_clean_rx_irq() 2304 xdp_init_buff(&xdp, frame_sz, &rx_ring->xdp_rxq); in ixgbe_clean_rx_irq() 2342 xdp.frame_sz = ixgbe_rx_frame_truesize(rx_ring, size); in ixgbe_clean_rx_irq()
|
/linux-6.6.21/drivers/net/hyperv/ |
D | netvsc_drv.c | 802 unsigned int frag_size = xdp->frame_sz; in netvsc_alloc_recv_skb()
|
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth.c | 474 xdp.frame_sz = DPAA2_ETH_RX_BUF_RAW_SIZE; in dpaa2_eth_run_xdp()
|