Lines Matching defs:xdp

65 	return pool->heads[0].xdp.rxq->napi_id;
85 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp)
87 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);
92 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp)
94 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);
110 static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max)
112 return xp_alloc_batch(pool, xdp, max);
120 static inline void xsk_buff_free(struct xdp_buff *xdp)
122 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);
126 if (likely(!xdp_buff_has_frags(xdp)))
134 xdp_get_shared_info_from_buff(xdp)->nr_frags = 0;
139 static inline void xsk_buff_add_frag(struct xdp_buff *xdp)
141 struct xdp_buff_xsk *frag = container_of(xdp, struct xdp_buff_xsk, xdp);
148 struct xdp_buff_xsk *xskb = container_of(first, struct xdp_buff_xsk, xdp);
156 ret = &frag->xdp;
164 struct xdp_buff_xsk *xskb = container_of(tail, struct xdp_buff_xsk, xdp);
171 struct xdp_buff_xsk *xskb = container_of(first, struct xdp_buff_xsk, xdp);
176 return &frag->xdp;
179 static inline void xsk_buff_set_size(struct xdp_buff *xdp, u32 size)
181 xdp->data = xdp->data_hard_start + XDP_PACKET_HEADROOM;
182 xdp->data_meta = xdp->data;
183 xdp->data_end = xdp->data + size;
184 xdp->flags = 0;
222 static inline void xsk_buff_dma_sync_for_cpu(struct xdp_buff *xdp)
224 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);
325 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp)
330 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp)
345 static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max)
355 static inline void xsk_buff_free(struct xdp_buff *xdp)
359 static inline void xsk_buff_add_frag(struct xdp_buff *xdp)
377 static inline void xsk_buff_set_size(struct xdp_buff *xdp, u32 size)
402 static inline void xsk_buff_dma_sync_for_cpu(struct xdp_buff *xdp)