Lines Matching refs:sgp
239 const struct sg_ent *sgp; in unmap_skb() local
243 sgp = (struct sg_ent *)&q->desc[cidx].flit[d->sflit]; in unmap_skb()
247 pci_unmap_single(pdev, be64_to_cpu(sgp->addr[0]), in unmap_skb()
256 pci_unmap_page(pdev, be64_to_cpu(sgp->addr[j]), in unmap_skb()
261 sgp++; in unmap_skb()
965 struct sg_ent *sgp, unsigned char *start, in make_sgl() argument
973 sgp->len[0] = cpu_to_be32(len); in make_sgl()
974 sgp->addr[0] = cpu_to_be64(mapping); in make_sgl()
984 sgp->len[j] = cpu_to_be32(skb_frag_size(frag)); in make_sgl()
985 sgp->addr[j] = cpu_to_be64(mapping); in make_sgl()
988 ++sgp; in make_sgl()
991 sgp->len[j] = 0; in make_sgl()
1144 struct sg_ent *sgp, sgl[MAX_SKB_FRAGS / 2 + 1]; in write_tx_pkt_wr() local
1198 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_tx_pkt_wr()
1199 sgl_flits = make_sgl(skb, sgp, skb->data, skb_headlen(skb), adap->pdev); in write_tx_pkt_wr()
1585 struct sg_ent *sgp, sgl[MAX_SKB_FRAGS / 2 + 1]; in write_ofld_wr() local
1601 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_ofld_wr()
1602 sgl_flits = make_sgl(skb, sgp, skb_transport_header(skb), in write_ofld_wr()
1606 setup_deferred_unmapping(skb, adap->pdev, sgp, sgl_flits); in write_ofld_wr()