Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/block/
Dskd_main.c1361 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.4.14/drivers/scsi/
Dscsi_lib.c571 struct scsi_host_sg_pool *sgp; in scsi_sg_free() local
573 sgp = scsi_sg_pools + scsi_sgtable_index(nents); in scsi_sg_free()
574 mempool_free(sgl, sgp->pool); in scsi_sg_free()
579 struct scsi_host_sg_pool *sgp; in scsi_sg_alloc() local
581 sgp = scsi_sg_pools + scsi_sgtable_index(nents); in scsi_sg_alloc()
582 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 …]
Dinitio.c1594 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()
Ddc395x.c1017 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()
Dadvansys.c2502 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()
/linux-4.4.14/drivers/mmc/host/
Dmoxart-mmc.c311 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.4.14/net/rds/
Dloop.c64 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.4.14/mm/
Dshmem.c125 struct page **pagep, enum sgp_type sgp, gfp_t gfp, int *fault_type);
128 struct page **pagep, enum sgp_type sgp, int *fault_type) in shmem_getpage() argument
130 return shmem_getpage_gfp(inode, index, pagep, sgp, in shmem_getpage()
1055 struct page **pagep, enum sgp_type sgp, gfp_t gfp, int *fault_type) in shmem_getpage_gfp() argument
1077 if (sgp != SGP_WRITE && sgp != SGP_FALLOC && in shmem_getpage_gfp()
1083 if (page && sgp == SGP_WRITE) in shmem_getpage_gfp()
1088 if (sgp != SGP_READ) in shmem_getpage_gfp()
1094 if (page || (sgp == SGP_READ && !swap.val)) { in shmem_getpage_gfp()
1170 if (sgp == SGP_WRITE) in shmem_getpage_gfp()
1199 if (sgp == SGP_WRITE) in shmem_getpage_gfp()
[all …]
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c239 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.4.14/block/
Dgenhd.c849 struct gendisk *sgp = v; in show_partition() local
855 if (!get_capacity(sgp) || (!disk_max_parts(sgp) && in show_partition()
856 (sgp->flags & GENHD_FL_REMOVABLE))) in show_partition()
858 if (sgp->flags & GENHD_FL_SUPPRESS_PARTITION_INFO) in show_partition()
862 disk_part_iter_init(&piter, sgp, DISK_PITER_INCL_PART0); in show_partition()
867 disk_name(sgp, part->partno, buf)); in show_partition()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_target.c4318 struct scatterlist *sg, *sgp, *sg_srr, *sg_srr_start = NULL; in qlt_set_data_offset()
4368 sgp = &sg_srr[0]; in qlt_set_data_offset()
4375 sg_set_page(sgp, sg_page(sg), in qlt_set_data_offset()
4379 sg_set_page(sgp, sg_page(sg), sg->length, 0); in qlt_set_data_offset()
4381 bufflen += sgp->length; in qlt_set_data_offset()
4383 sgp = sg_next(sgp); in qlt_set_data_offset()
4384 if (!sgp) in qlt_set_data_offset()
/linux-4.4.14/drivers/scsi/cxgbi/
Dlibcxgbi.c2026 struct scatterlist **sgp) in sgl_seek_offset() argument
2034 *sgp = sg; in sgl_seek_offset()
/linux-4.4.14/arch/m68k/fpsp040/
Dres_func.S1430 .long sgp