/linux-4.1.27/drivers/block/ |
D | skd_main.c | 1361 struct sg_io_hdr *sgp = &sksgio->sg; in skd_sg_io_get_and_check_args() local 1370 if (__copy_from_user(sgp, sksgio->argp, sizeof(sg_io_hdr_t))) { in skd_sg_io_get_and_check_args() 1376 if (sgp->interface_id != SG_INTERFACE_ID_ORIG) { in skd_sg_io_get_and_check_args() 1378 skdev->name, __func__, __LINE__, sgp->interface_id); in skd_sg_io_get_and_check_args() 1382 if (sgp->cmd_len > sizeof(sksgio->cdb)) { in skd_sg_io_get_and_check_args() 1384 skdev->name, __func__, __LINE__, sgp->cmd_len); in skd_sg_io_get_and_check_args() 1388 if (sgp->iovec_count > 256) { in skd_sg_io_get_and_check_args() 1390 skdev->name, __func__, __LINE__, sgp->iovec_count); in skd_sg_io_get_and_check_args() 1394 if (sgp->dxfer_len > (PAGE_SIZE * SKD_N_SG_PER_SPECIAL)) { in skd_sg_io_get_and_check_args() 1396 skdev->name, __func__, __LINE__, sgp->dxfer_len); in skd_sg_io_get_and_check_args() [all …]
|
/linux-4.1.27/drivers/scsi/ |
D | scsi_lib.c | 570 struct scsi_host_sg_pool *sgp; in scsi_sg_free() local 572 sgp = scsi_sg_pools + scsi_sgtable_index(nents); in scsi_sg_free() 573 mempool_free(sgl, sgp->pool); in scsi_sg_free() 578 struct scsi_host_sg_pool *sgp; in scsi_sg_alloc() local 580 sgp = scsi_sg_pools + scsi_sgtable_index(nents); in scsi_sg_alloc() 581 return mempool_alloc(sgp->pool, gfp_mask); in scsi_sg_alloc() 2279 struct scsi_host_sg_pool *sgp = scsi_sg_pools + i; in scsi_init_queue() local 2280 int size = sgp->size * sizeof(struct scatterlist); in scsi_init_queue() 2282 sgp->slab = kmem_cache_create(sgp->name, size, 0, in scsi_init_queue() 2284 if (!sgp->slab) { in scsi_init_queue() [all …]
|
D | initio.c | 1594 struct sg_entry *sgp; in initio_state_5() local 1597 sgp = &scb->sglist[scb->sgidx]; in initio_state_5() 1598 for (i = scb->sgidx; i < scb->sgmax; sgp++, i++) { in initio_state_5() 1599 xcnt -= (long) sgp->len; in initio_state_5() 1601 xcnt += (long) sgp->len; /* xcnt == bytes xferred in this sgp */ in initio_state_5() 1602 sgp->data += (u32) xcnt; /* new ptr to be xfer */ in initio_state_5() 1603 sgp->len -= (u32) xcnt; /* new len to be xfer */ in initio_state_5()
|
D | advansys.c | 2597 ASC_SG_HEAD *sgp; in asc_prt_asc_scsi_q() local 2618 sgp = q->sg_head; in asc_prt_asc_scsi_q() 2619 printk("ASC_SG_HEAD at addr 0x%lx\n", (ulong)sgp); in asc_prt_asc_scsi_q() 2620 printk(" entry_cnt %u, queue_cnt %u\n", sgp->entry_cnt, in asc_prt_asc_scsi_q() 2621 sgp->queue_cnt); in asc_prt_asc_scsi_q() 2622 for (i = 0; i < sgp->entry_cnt; i++) { in asc_prt_asc_scsi_q() 2624 i, (ulong)le32_to_cpu(sgp->sg_list[i].addr), in asc_prt_asc_scsi_q() 2625 (ulong)le32_to_cpu(sgp->sg_list[i].bytes)); in asc_prt_asc_scsi_q() 11261 adv_sgblk_t *sgp; in advansys_wide_init_chip() local 11300 sgp = kmalloc(sizeof(adv_sgblk_t), GFP_KERNEL); in advansys_wide_init_chip() [all …]
|
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()
|
/linux-4.1.27/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()
|
/linux-4.1.27/net/rds/ |
D | loop.c | 64 struct scatterlist *sgp = &rm->data.op_sg[sg]; in rds_loop_xmit() local 71 ret = min_t(int, ret, sgp->length - conn->c_xmit_data_off); in rds_loop_xmit()
|
/linux-4.1.27/mm/ |
D | shmem.c | 123 struct page **pagep, enum sgp_type sgp, gfp_t gfp, int *fault_type); 126 struct page **pagep, enum sgp_type sgp, int *fault_type) in shmem_getpage() argument 128 return shmem_getpage_gfp(inode, index, pagep, sgp, in shmem_getpage() 1033 struct page **pagep, enum sgp_type sgp, gfp_t gfp, int *fault_type) in shmem_getpage_gfp() argument 1055 if (sgp != SGP_WRITE && sgp != SGP_FALLOC && in shmem_getpage_gfp() 1061 if (page && sgp == SGP_WRITE) in shmem_getpage_gfp() 1066 if (sgp != SGP_READ) in shmem_getpage_gfp() 1072 if (page || (sgp == SGP_READ && !swap.val)) { in shmem_getpage_gfp() 1148 if (sgp == SGP_WRITE) in shmem_getpage_gfp() 1177 if (sgp == SGP_WRITE) in shmem_getpage_gfp() [all …]
|
/linux-4.1.27/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 …]
|
/linux-4.1.27/block/ |
D | genhd.c | 846 struct gendisk *sgp = v; in show_partition() local 852 if (!get_capacity(sgp) || (!disk_max_parts(sgp) && in show_partition() 853 (sgp->flags & GENHD_FL_REMOVABLE))) in show_partition() 855 if (sgp->flags & GENHD_FL_SUPPRESS_PARTITION_INFO) in show_partition() 859 disk_part_iter_init(&piter, sgp, DISK_PITER_INCL_PART0); in show_partition() 864 disk_name(sgp, part->partno, buf)); in show_partition()
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
D | qla_target.c | 4323 struct scatterlist *sg, *sgp, *sg_srr, *sg_srr_start = NULL; in qlt_set_data_offset() local 4380 sgp = &sg_srr[0]; in qlt_set_data_offset() 4387 sg_set_page(sgp, sg_page(sg), in qlt_set_data_offset() 4391 sg_set_page(sgp, sg_page(sg), sg->length, 0); in qlt_set_data_offset() 4393 bufflen += sgp->length; in qlt_set_data_offset() 4395 sgp = sg_next(sgp); in qlt_set_data_offset() 4396 if (!sgp) in qlt_set_data_offset()
|
/linux-4.1.27/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 2022 struct scatterlist **sgp) in sgl_seek_offset() argument 2030 *sgp = sg; in sgl_seek_offset()
|
/linux-4.1.27/arch/m68k/fpsp040/ |
D | res_func.S | 1430 .long sgp
|