/drivers/block/ |
D | skd_main.c | 1310 struct sg_io_hdr *sgp = &sksgio->sg; in skd_sg_io_get_and_check_args() local 1319 if (__copy_from_user(sgp, sksgio->argp, sizeof(sg_io_hdr_t))) { in skd_sg_io_get_and_check_args() 1325 if (sgp->interface_id != SG_INTERFACE_ID_ORIG) { in skd_sg_io_get_and_check_args() 1327 skdev->name, __func__, __LINE__, sgp->interface_id); in skd_sg_io_get_and_check_args() 1331 if (sgp->cmd_len > sizeof(sksgio->cdb)) { in skd_sg_io_get_and_check_args() 1333 skdev->name, __func__, __LINE__, sgp->cmd_len); in skd_sg_io_get_and_check_args() 1337 if (sgp->iovec_count > 256) { in skd_sg_io_get_and_check_args() 1339 skdev->name, __func__, __LINE__, sgp->iovec_count); in skd_sg_io_get_and_check_args() 1343 if (sgp->dxfer_len > (PAGE_SIZE * SKD_N_SG_PER_SPECIAL)) { in skd_sg_io_get_and_check_args() 1345 skdev->name, __func__, __LINE__, sgp->dxfer_len); in skd_sg_io_get_and_check_args() [all …]
|
/drivers/mmc/host/ |
D | moxart-mmc.c | 311 u32 *sgp, len = 0, remain, status; in moxart_transfer_pio() local 316 sgp = sg_virt(host->cur_sg); in moxart_transfer_pio() 328 iowrite32(*sgp, host->base + REG_DATA_WINDOW); in moxart_transfer_pio() 329 sgp++; in moxart_transfer_pio() 346 *sgp = ioread32be(host->base + in moxart_transfer_pio() 349 *sgp = ioread32(host->base + in moxart_transfer_pio() 351 sgp++; in moxart_transfer_pio()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 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() [all …]
|
/drivers/gpu/drm/i915/ |
D | i915_drv.h | 2413 struct scatterlist *sgp; member 2421 struct sgt_iter s = { .sgp = sgl }; in __sgt_iter() 2423 if (s.sgp) { in __sgt_iter() 2424 s.max = s.curr = s.sgp->offset; in __sgt_iter() 2425 s.max += s.sgp->length; in __sgt_iter() 2427 s.dma = sg_dma_address(s.sgp); in __sgt_iter() 2429 s.pfn = page_to_pfn(sg_page(s.sgp)); in __sgt_iter() 2464 ((__iter) = __sgt_iter(__sg_next((__iter).sgp), true), 0)) 2477 ((__iter) = __sgt_iter(__sg_next((__iter).sgp), false), 0))
|
/drivers/scsi/ |
D | initio.c | 1578 struct sg_entry *sgp; in initio_state_5() local 1581 sgp = &scb->sglist[scb->sgidx]; in initio_state_5() 1582 for (i = scb->sgidx; i < scb->sgmax; sgp++, i++) { in initio_state_5() 1583 xcnt -= (long) sgp->len; in initio_state_5() 1585 xcnt += (long) sgp->len; /* xcnt == bytes xferred in this sgp */ in initio_state_5() 1586 sgp->data += (u32) xcnt; /* new ptr to be xfer */ in initio_state_5() 1587 sgp->len -= (u32) xcnt; /* new len to be xfer */ in initio_state_5()
|
D | dc395x.c | 1017 struct SGentry *sgp = srb->segment_x; in build_srb() local 1029 sgp[i].address = busaddr; in build_srb() 1030 sgp[i].length = seglen; in build_srb() 1033 sgp += srb->sg_count - 1; in build_srb() 1040 sgp->length -= (srb->total_xfer_length - reqlen); in build_srb() 1048 sgp->length++; in build_srb()
|
D | advansys.c | 2502 ASC_SG_HEAD *sgp; in asc_prt_asc_scsi_q() local 2523 sgp = q->sg_head; in asc_prt_asc_scsi_q() 2524 printk("ASC_SG_HEAD at addr 0x%lx\n", (ulong)sgp); in asc_prt_asc_scsi_q() 2525 printk(" entry_cnt %u, queue_cnt %u\n", sgp->entry_cnt, in asc_prt_asc_scsi_q() 2526 sgp->queue_cnt); in asc_prt_asc_scsi_q() 2527 for (i = 0; i < sgp->entry_cnt; i++) { in asc_prt_asc_scsi_q() 2529 i, (ulong)le32_to_cpu(sgp->sg_list[i].addr), in asc_prt_asc_scsi_q() 2530 (ulong)le32_to_cpu(sgp->sg_list[i].bytes)); in asc_prt_asc_scsi_q()
|
/drivers/scsi/ibmvscsi_tgt/ |
D | ibmvscsi_tgt.c | 3085 struct scatterlist *sgp; in ibmvscsis_rdma() local 3096 sgp = sg; in ibmvscsis_rdma() 3113 if (!sgp) { in ibmvscsis_rdma() 3118 server_ioba = sg_dma_address(sgp); in ibmvscsis_rdma() 3119 server_len = sg_dma_len(sgp); in ibmvscsis_rdma() 3188 sgp = sg_next(sgp); in ibmvscsis_rdma()
|
/drivers/scsi/qla2xxx/ |
D | qla_target.c | 4570 struct scatterlist *sg, *sgp, *sg_srr, *sg_srr_start = NULL; in qlt_set_data_offset() 4620 sgp = &sg_srr[0]; in qlt_set_data_offset() 4627 sg_set_page(sgp, sg_page(sg), in qlt_set_data_offset() 4631 sg_set_page(sgp, sg_page(sg), sg->length, 0); in qlt_set_data_offset() 4633 bufflen += sgp->length; in qlt_set_data_offset() 4635 sgp = sg_next(sgp); in qlt_set_data_offset() 4636 if (!sgp) in qlt_set_data_offset()
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 1762 struct scatterlist **sgp) in sgl_seek_offset() argument 1770 *sgp = sg; in sgl_seek_offset()
|