Lines Matching refs:xdpf
54 struct xdp_frame *xdpf; in cpsw_tx_handler() local
61 xdpf = cpsw_handle_to_xdpf(token); in cpsw_tx_handler()
62 xmeta = (void *)xdpf + CPSW_XMETA_OFFSET; in cpsw_tx_handler()
65 xdp_return_frame(xdpf); in cpsw_tx_handler()
1290 int cpsw_xdp_tx_frame(struct cpsw_priv *priv, struct xdp_frame *xdpf, in cpsw_xdp_tx_frame() argument
1299 xmeta = (void *)xdpf + CPSW_XMETA_OFFSET; in cpsw_xdp_tx_frame()
1306 dma += xdpf->headroom + sizeof(struct xdp_frame); in cpsw_xdp_tx_frame()
1307 ret = cpdma_chan_submit_mapped(txch, cpsw_xdpf_to_handle(xdpf), in cpsw_xdp_tx_frame()
1308 dma, xdpf->len, port); in cpsw_xdp_tx_frame()
1310 if (sizeof(*xmeta) > xdpf->headroom) in cpsw_xdp_tx_frame()
1313 ret = cpdma_chan_submit(txch, cpsw_xdpf_to_handle(xdpf), in cpsw_xdp_tx_frame()
1314 xdpf->data, xdpf->len, port); in cpsw_xdp_tx_frame()
1329 struct xdp_frame *xdpf; in cpsw_run_xdp() local
1346 xdpf = xdp_convert_buff_to_frame(xdp); in cpsw_run_xdp()
1347 if (unlikely(!xdpf)) in cpsw_run_xdp()
1350 if (cpsw_xdp_tx_frame(priv, xdpf, page, port)) in cpsw_run_xdp()
1351 xdp_return_frame_rx_napi(xdpf); in cpsw_run_xdp()