Home
last modified time | relevance | path

Searched refs:sgp (Results 1 – 9 of 9) sorted by relevance

/drivers/gpu/drm/i915/
Di915_scatterlist.h24 struct scatterlist *sgp; member
32 struct sgt_iter s = { .sgp = sgl }; in __sgt_iter()
34 if (dma && s.sgp && sg_dma_len(s.sgp) == 0) { in __sgt_iter()
35 s.sgp = NULL; in __sgt_iter()
36 } else if (s.sgp) { in __sgt_iter()
37 s.max = s.curr = s.sgp->offset; in __sgt_iter()
39 s.dma = sg_dma_address(s.sgp); in __sgt_iter()
40 s.max += sg_dma_len(s.sgp); in __sgt_iter()
42 s.pfn = page_to_pfn(sg_page(s.sgp)); in __sgt_iter()
43 s.max += s.sgp->length; in __sgt_iter()
[all …]
Di915_mm.c55 if (GEM_WARN_ON(!r->sgt.sgp)) in remap_sg()
65 r->sgt = __sgt_iter(__sg_next(r->sgt.sgp), use_dma(r->iobase)); in remap_sg()
/drivers/mmc/host/
Dmoxart-mmc.c308 u32 *sgp, len = 0, remain, status; in moxart_transfer_pio() local
313 sgp = sg_virt(host->cur_sg); in moxart_transfer_pio()
325 iowrite32(*sgp, host->base + REG_DATA_WINDOW); in moxart_transfer_pio()
326 sgp++; in moxart_transfer_pio()
341 *sgp = ioread32(host->base + REG_DATA_WINDOW); in moxart_transfer_pio()
342 sgp++; in moxart_transfer_pio()
/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c241 const struct sg_ent *sgp; in unmap_skb() local
245 sgp = (struct sg_ent *)&q->desc[cidx].flit[d->sflit]; in unmap_skb()
249 dma_unmap_single(&pdev->dev, be64_to_cpu(sgp->addr[0]), in unmap_skb()
258 dma_unmap_page(&pdev->dev, be64_to_cpu(sgp->addr[j]), in unmap_skb()
263 sgp++; in unmap_skb()
1013 struct sg_ent *sgp, unsigned char *start, in write_sgl() argument
1019 sgp->len[0] = cpu_to_be32(len); in write_sgl()
1020 sgp->addr[j++] = cpu_to_be64(addr[k++]); in write_sgl()
1027 sgp->len[j] = cpu_to_be32(skb_frag_size(frag)); in write_sgl()
1028 sgp->addr[j] = cpu_to_be64(addr[k++]); in write_sgl()
[all …]
/drivers/scsi/
Dinitio.c1562 struct sg_entry *sgp; in initio_state_5() local
1565 sgp = &scb->sglist[scb->sgidx]; in initio_state_5()
1566 for (i = scb->sgidx; i < scb->sgmax; sgp++, i++) { in initio_state_5()
1567 xcnt -= (long) sgp->len; in initio_state_5()
1569 xcnt += (long) sgp->len; /* xcnt == bytes xferred in this sgp */ in initio_state_5()
1570 sgp->data += (u32) xcnt; /* new ptr to be xfer */ in initio_state_5()
1571 sgp->len -= (u32) xcnt; /* new len to be xfer */ in initio_state_5()
Ddc395x.c899 struct SGentry *sgp = srb->segment_x; in build_srb() local
911 sgp[i].address = busaddr; in build_srb()
912 sgp[i].length = seglen; in build_srb()
915 sgp += srb->sg_count - 1; in build_srb()
922 sgp->length -= (srb->total_xfer_length - reqlen); in build_srb()
930 sgp->length++; in build_srb()
Dadvansys.c2487 ASC_SG_HEAD *sgp; in asc_prt_asc_scsi_q() local
2508 sgp = q->sg_head; in asc_prt_asc_scsi_q()
2509 printk("ASC_SG_HEAD at addr 0x%lx\n", (ulong)sgp); in asc_prt_asc_scsi_q()
2510 printk(" entry_cnt %u, queue_cnt %u\n", sgp->entry_cnt, in asc_prt_asc_scsi_q()
2511 sgp->queue_cnt); in asc_prt_asc_scsi_q()
2512 for (i = 0; i < sgp->entry_cnt; i++) { in asc_prt_asc_scsi_q()
2514 i, (ulong)le32_to_cpu(sgp->sg_list[i].addr), in asc_prt_asc_scsi_q()
2515 (ulong)le32_to_cpu(sgp->sg_list[i].bytes)); in asc_prt_asc_scsi_q()
/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c3195 struct scatterlist *sgp; in ibmvscsis_rdma() local
3206 sgp = sg; in ibmvscsis_rdma()
3223 if (!sgp) { in ibmvscsis_rdma()
3228 server_ioba = sg_dma_address(sgp); in ibmvscsis_rdma()
3229 server_len = sg_dma_len(sgp); in ibmvscsis_rdma()
3298 sgp = sg_next(sgp); in ibmvscsis_rdma()
/drivers/scsi/cxgbi/
Dlibcxgbi.c1744 struct scatterlist **sgp) in sgl_seek_offset() argument
1752 *sgp = sg; in sgl_seek_offset()