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

/linux-4.4.14/drivers/mmc/host/
H A Dmoxart-mmc.c311 u32 *sgp, len = 0, remain, status; moxart_transfer_pio() local
316 sgp = sg_virt(host->cur_sg); moxart_transfer_pio()
328 iowrite32(*sgp, host->base + REG_DATA_WINDOW); moxart_transfer_pio()
329 sgp++; moxart_transfer_pio()
346 *sgp = ioread32be(host->base + moxart_transfer_pio()
349 *sgp = ioread32(host->base + moxart_transfer_pio()
351 sgp++; moxart_transfer_pio()
/linux-4.4.14/drivers/block/
H A Dskd_main.c1361 struct sg_io_hdr *sgp = &sksgio->sg; skd_sg_io_get_and_check_args() local
1370 if (__copy_from_user(sgp, sksgio->argp, sizeof(sg_io_hdr_t))) { skd_sg_io_get_and_check_args()
1376 if (sgp->interface_id != SG_INTERFACE_ID_ORIG) { skd_sg_io_get_and_check_args()
1378 skdev->name, __func__, __LINE__, sgp->interface_id); skd_sg_io_get_and_check_args()
1382 if (sgp->cmd_len > sizeof(sksgio->cdb)) { skd_sg_io_get_and_check_args()
1384 skdev->name, __func__, __LINE__, sgp->cmd_len); skd_sg_io_get_and_check_args()
1388 if (sgp->iovec_count > 256) { skd_sg_io_get_and_check_args()
1390 skdev->name, __func__, __LINE__, sgp->iovec_count); skd_sg_io_get_and_check_args()
1394 if (sgp->dxfer_len > (PAGE_SIZE * SKD_N_SG_PER_SPECIAL)) { skd_sg_io_get_and_check_args()
1396 skdev->name, __func__, __LINE__, sgp->dxfer_len); skd_sg_io_get_and_check_args()
1400 switch (sgp->dxfer_direction) { skd_sg_io_get_and_check_args()
1416 skdev->name, __func__, __LINE__, sgp->dxfer_direction); skd_sg_io_get_and_check_args()
1420 if (copy_from_user(sksgio->cdb, sgp->cmdp, sgp->cmd_len)) { skd_sg_io_get_and_check_args()
1422 skdev->name, __func__, __LINE__, sgp->cmdp); skd_sg_io_get_and_check_args()
1426 if (sgp->mx_sb_len != 0) { skd_sg_io_get_and_check_args()
1427 if (!access_ok(VERIFY_WRITE, sgp->sbp, sgp->mx_sb_len)) { skd_sg_io_get_and_check_args()
1429 skdev->name, __func__, __LINE__, sgp->sbp); skd_sg_io_get_and_check_args()
1434 if (sgp->iovec_count == 0) { skd_sg_io_get_and_check_args()
1435 sksgio->iov[0].iov_base = sgp->dxferp; skd_sg_io_get_and_check_args()
1436 sksgio->iov[0].iov_len = sgp->dxfer_len; skd_sg_io_get_and_check_args()
1438 sksgio->dxfer_len = sgp->dxfer_len; skd_sg_io_get_and_check_args()
1441 uint nbytes = sizeof(*iov) * sgp->iovec_count; skd_sg_io_get_and_check_args()
1448 sgp->iovec_count); skd_sg_io_get_and_check_args()
1452 sksgio->iovcnt = sgp->iovec_count; skd_sg_io_get_and_check_args()
1454 if (copy_from_user(iov, sgp->dxferp, nbytes)) { skd_sg_io_get_and_check_args()
1456 skdev->name, __func__, __LINE__, sgp->dxferp); skd_sg_io_get_and_check_args()
1464 for (i = 0; i < sgp->iovec_count; i++) { skd_sg_io_get_and_check_args()
1471 if (sgp->dxfer_len < iov_data_len) { skd_sg_io_get_and_check_args()
1473 sgp->iovec_count, skd_sg_io_get_and_check_args()
1474 sgp->dxfer_len); skd_sg_io_get_and_check_args()
1475 sksgio->dxfer_len = sgp->dxfer_len; skd_sg_io_get_and_check_args()
1480 if (sgp->dxfer_direction != SG_DXFER_NONE) { skd_sg_io_get_and_check_args()
1784 struct sg_io_hdr *sgp = &sksgio->sg; skd_sg_io_put_status() local
1790 sgp->status = skspcl->req.completion.status; skd_sg_io_put_status()
1793 sgp->masked_status = sgp->status & STATUS_MASK; skd_sg_io_put_status()
1794 sgp->msg_status = 0; skd_sg_io_put_status()
1795 sgp->host_status = 0; skd_sg_io_put_status()
1796 sgp->driver_status = 0; skd_sg_io_put_status()
1797 sgp->resid = resid; skd_sg_io_put_status()
1798 if (sgp->masked_status || sgp->host_status || sgp->driver_status) skd_sg_io_put_status()
1799 sgp->info |= SG_INFO_CHECK; skd_sg_io_put_status()
1803 sgp->status, sgp->masked_status, sgp->resid); skd_sg_io_put_status()
1805 if (sgp->masked_status == SAM_STAT_CHECK_CONDITION) { skd_sg_io_put_status()
1806 if (sgp->mx_sb_len > 0) { skd_sg_io_put_status()
1810 nbytes = min_t(u32, nbytes, sgp->mx_sb_len); skd_sg_io_put_status()
1812 sgp->sb_len_wr = nbytes; skd_sg_io_put_status()
1814 if (__copy_to_user(sgp->sbp, ei, nbytes)) { skd_sg_io_put_status()
1817 sgp->sbp); skd_sg_io_put_status()
1823 if (__copy_to_user(sksgio->argp, sgp, sizeof(sg_io_hdr_t))) { skd_sg_io_put_status()
/linux-4.4.14/drivers/scsi/
H A Dscsi_lib.c571 struct scsi_host_sg_pool *sgp; scsi_sg_free() local
573 sgp = scsi_sg_pools + scsi_sgtable_index(nents); scsi_sg_free()
574 mempool_free(sgl, sgp->pool); scsi_sg_free()
579 struct scsi_host_sg_pool *sgp; scsi_sg_alloc() local
581 sgp = scsi_sg_pools + scsi_sgtable_index(nents); scsi_sg_alloc()
582 return mempool_alloc(sgp->pool, gfp_mask); scsi_sg_alloc()
2279 struct scsi_host_sg_pool *sgp = scsi_sg_pools + i; scsi_init_queue() local
2280 int size = sgp->size * sizeof(struct scatterlist); scsi_init_queue()
2282 sgp->slab = kmem_cache_create(sgp->name, size, 0, scsi_init_queue()
2284 if (!sgp->slab) { scsi_init_queue()
2286 sgp->name); scsi_init_queue()
2290 sgp->pool = mempool_create_slab_pool(SG_MEMPOOL_SIZE, scsi_init_queue()
2291 sgp->slab); scsi_init_queue()
2292 if (!sgp->pool) { scsi_init_queue()
2294 sgp->name); scsi_init_queue()
2303 struct scsi_host_sg_pool *sgp = scsi_sg_pools + i; scsi_init_queue() local
2304 if (sgp->pool) scsi_init_queue()
2305 mempool_destroy(sgp->pool); scsi_init_queue()
2306 if (sgp->slab) scsi_init_queue()
2307 kmem_cache_destroy(sgp->slab); scsi_init_queue()
2321 struct scsi_host_sg_pool *sgp = scsi_sg_pools + i; scsi_exit_queue() local
2322 mempool_destroy(sgp->pool); scsi_exit_queue()
2323 kmem_cache_destroy(sgp->slab); scsi_exit_queue()
H A Dinitio.c1594 struct sg_entry *sgp; initio_state_5() local
1597 sgp = &scb->sglist[scb->sgidx]; initio_state_5()
1598 for (i = scb->sgidx; i < scb->sgmax; sgp++, i++) { initio_state_5()
1599 xcnt -= (long) sgp->len; initio_state_5()
1600 if (xcnt < 0) { /* this sgp xfer half done */ initio_state_5()
1601 xcnt += (long) sgp->len; /* xcnt == bytes xferred in this sgp */ initio_state_5()
1602 sgp->data += (u32) xcnt; /* new ptr to be xfer */ initio_state_5()
1603 sgp->len -= (u32) xcnt; /* new len to be xfer */ initio_state_5()
1612 /* else (xcnt >= 0 , i.e. this sgp already xferred */ initio_state_5()
H A Ddc395x.c1017 struct SGentry *sgp = srb->segment_x; build_srb() local
1029 sgp[i].address = busaddr; build_srb()
1030 sgp[i].length = seglen; build_srb()
1033 sgp += srb->sg_count - 1; build_srb()
1040 sgp->length -= (srb->total_xfer_length - reqlen); build_srb()
1048 sgp->length++; build_srb()
H A Dadvansys.c2502 ASC_SG_HEAD *sgp; asc_prt_asc_scsi_q() local
2523 sgp = q->sg_head; asc_prt_asc_scsi_q()
2524 printk("ASC_SG_HEAD at addr 0x%lx\n", (ulong)sgp); asc_prt_asc_scsi_q()
2525 printk(" entry_cnt %u, queue_cnt %u\n", sgp->entry_cnt, asc_prt_asc_scsi_q()
2526 sgp->queue_cnt); asc_prt_asc_scsi_q()
2527 for (i = 0; i < sgp->entry_cnt; i++) { asc_prt_asc_scsi_q()
2529 i, (ulong)le32_to_cpu(sgp->sg_list[i].addr), asc_prt_asc_scsi_q()
2530 (ulong)le32_to_cpu(sgp->sg_list[i].bytes)); asc_prt_asc_scsi_q()
/linux-4.4.14/net/rds/
H A Dloop.c64 struct scatterlist *sgp = &rm->data.op_sg[sg]; rds_loop_xmit() local
71 ret = min_t(int, ret, sgp->length - conn->c_xmit_data_off); rds_loop_xmit()
/linux-4.4.14/mm/
H A 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) shmem_getpage()
130 return shmem_getpage_gfp(inode, index, pagep, sgp, shmem_getpage()
1055 struct page **pagep, enum sgp_type sgp, gfp_t gfp, int *fault_type) shmem_getpage_gfp()
1077 if (sgp != SGP_WRITE && sgp != SGP_FALLOC && shmem_getpage_gfp()
1083 if (page && sgp == SGP_WRITE) shmem_getpage_gfp()
1088 if (sgp != SGP_READ) shmem_getpage_gfp()
1094 if (page || (sgp == SGP_READ && !swap.val)) { shmem_getpage_gfp()
1170 if (sgp == SGP_WRITE) shmem_getpage_gfp()
1199 if (sgp == SGP_WRITE) shmem_getpage_gfp()
1228 if (sgp == SGP_FALLOC) shmem_getpage_gfp()
1229 sgp = SGP_WRITE; shmem_getpage_gfp()
1236 if (sgp != SGP_WRITE) { shmem_getpage_gfp()
1241 if (sgp == SGP_DIRTY) shmem_getpage_gfp()
1246 if (sgp != SGP_WRITE && sgp != SGP_FALLOC && shmem_getpage_gfp()
1542 enum sgp_type sgp = SGP_READ; shmem_file_read_iter() local
1553 sgp = SGP_DIRTY; shmem_file_read_iter()
1573 error = shmem_getpage(inode, index, &page, sgp, NULL); shmem_file_read_iter()
127 shmem_getpage(struct inode *inode, pgoff_t index, struct page **pagep, enum sgp_type sgp, int *fault_type) shmem_getpage() argument
1054 shmem_getpage_gfp(struct inode *inode, pgoff_t index, struct page **pagep, enum sgp_type sgp, gfp_t gfp, int *fault_type) shmem_getpage_gfp() argument
/linux-4.4.14/block/
H A Dgenhd.c849 struct gendisk *sgp = v; show_partition() local
855 if (!get_capacity(sgp) || (!disk_max_parts(sgp) && show_partition()
856 (sgp->flags & GENHD_FL_REMOVABLE))) show_partition()
858 if (sgp->flags & GENHD_FL_SUPPRESS_PARTITION_INFO) show_partition()
862 disk_part_iter_init(&piter, sgp, DISK_PITER_INCL_PART0); show_partition()
867 disk_name(sgp, part->partno, buf)); show_partition()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c239 const struct sg_ent *sgp; unmap_skb() local
243 sgp = (struct sg_ent *)&q->desc[cidx].flit[d->sflit]; unmap_skb()
247 pci_unmap_single(pdev, be64_to_cpu(sgp->addr[0]), unmap_skb()
256 pci_unmap_page(pdev, be64_to_cpu(sgp->addr[j]), unmap_skb()
261 sgp++; unmap_skb()
955 * @sgp: the SGL to populate
965 struct sg_ent *sgp, unsigned char *start, make_sgl()
973 sgp->len[0] = cpu_to_be32(len); make_sgl()
974 sgp->addr[0] = cpu_to_be64(mapping); make_sgl()
984 sgp->len[j] = cpu_to_be32(skb_frag_size(frag)); make_sgl()
985 sgp->addr[j] = cpu_to_be64(mapping); make_sgl()
988 ++sgp; make_sgl()
991 sgp->len[j] = 0; make_sgl()
1144 struct sg_ent *sgp, sgl[MAX_SKB_FRAGS / 2 + 1]; write_tx_pkt_wr() local
1198 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; write_tx_pkt_wr()
1199 sgl_flits = make_sgl(skb, sgp, skb->data, skb_headlen(skb), adap->pdev); write_tx_pkt_wr()
1584 struct sg_ent *sgp, sgl[MAX_SKB_FRAGS / 2 + 1]; write_ofld_wr() local
1600 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; write_ofld_wr()
1601 sgl_flits = make_sgl(skb, sgp, skb_transport_header(skb), write_ofld_wr()
1606 setup_deferred_unmapping(skb, adap->pdev, sgp, sgl_flits); write_ofld_wr()
964 make_sgl(const struct sk_buff *skb, struct sg_ent *sgp, unsigned char *start, unsigned int len, struct pci_dev *pdev) make_sgl() argument
/linux-4.4.14/drivers/scsi/qla2xxx/
H A Dqla_target.c4318 struct scatterlist *sg, *sgp, *sg_srr, *sg_srr_start = NULL; qlt_set_data_offset()
4364 "Unable to allocate sgp\n"); qlt_set_data_offset()
4368 sgp = &sg_srr[0]; qlt_set_data_offset()
4375 sg_set_page(sgp, sg_page(sg), qlt_set_data_offset()
4379 sg_set_page(sgp, sg_page(sg), sg->length, 0); qlt_set_data_offset()
4381 bufflen += sgp->length; qlt_set_data_offset()
4383 sgp = sg_next(sgp); qlt_set_data_offset()
4384 if (!sgp) qlt_set_data_offset()
/linux-4.4.14/drivers/scsi/cxgbi/
H A Dlibcxgbi.c2026 struct scatterlist **sgp) sgl_seek_offset()
2034 *sgp = sg; for_each_sg()
2024 sgl_seek_offset(struct scatterlist *sgl, unsigned int sgcnt, unsigned int offset, unsigned int *off, struct scatterlist **sgp) sgl_seek_offset() argument
/linux-4.4.14/arch/m68k/fpsp040/
H A Dres_func.S1430 .long sgp
1691 sgp: label

Completed in 724 milliseconds