Lines Matching refs:gle
130 struct fun_dataop_gl *gle; in write_pkt_desc() local
225 req->len8 = (sizeof(*req) + ngle * sizeof(*gle)) / 8; in write_pkt_desc()
228 for (i = 0, gle = (struct fun_dataop_gl *)req->dataop.imm; in write_pkt_desc()
229 i < ngle && txq_to_end(q, gle); i++, gle++) in write_pkt_desc()
230 fun_dataop_gl_init(gle, 0, 0, lens[i], addrs[i]); in write_pkt_desc()
232 if (txq_to_end(q, gle) == 0) { in write_pkt_desc()
233 gle = (struct fun_dataop_gl *)q->desc; in write_pkt_desc()
234 for ( ; i < ngle; i++, gle++) in write_pkt_desc()
235 fun_dataop_gl_init(gle, 0, 0, lens[i], addrs[i]); in write_pkt_desc()
239 struct fun_eth_tls *tls = (struct fun_eth_tls *)gle; in write_pkt_desc()
357 struct fun_dataop_gl *gle; in unmap_skb() local
360 gle = (struct fun_dataop_gl *)req->dataop.imm; in unmap_skb()
361 dma_unmap_single(q->dma_dev, be64_to_cpu(gle->sgl_data), in unmap_skb()
362 be32_to_cpu(gle->sgl_len), DMA_TO_DEVICE); in unmap_skb()
364 for (gle++; --ngle && txq_to_end(q, gle); gle++) in unmap_skb()
365 dma_unmap_page(q->dma_dev, be64_to_cpu(gle->sgl_data), in unmap_skb()
366 be32_to_cpu(gle->sgl_len), in unmap_skb()
369 for (gle = (struct fun_dataop_gl *)q->desc; ngle; ngle--, gle++) in unmap_skb()
370 dma_unmap_page(q->dma_dev, be64_to_cpu(gle->sgl_data), in unmap_skb()
371 be32_to_cpu(gle->sgl_len), in unmap_skb()
446 const struct fun_dataop_gl *gle; in fun_xdp_unmap() local
448 gle = (const struct fun_dataop_gl *)req->dataop.imm; in fun_xdp_unmap()
449 dma_unmap_single(q->dma_dev, be64_to_cpu(gle->sgl_data), in fun_xdp_unmap()
450 be32_to_cpu(gle->sgl_len), DMA_TO_DEVICE); in fun_xdp_unmap()
485 struct fun_dataop_gl *gle; in fun_xdp_tx() local
507 req->len8 = (sizeof(*req) + sizeof(*gle)) / 8; in fun_xdp_tx()
515 gle = (struct fun_dataop_gl *)req->dataop.imm; in fun_xdp_tx()
516 fun_dataop_gl_init(gle, 0, 0, len, dma); in fun_xdp_tx()