Home
last modified time | relevance | path

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

/Linux-v4.19/lib/
Dsg_pool.c55 struct sg_pool *sgp; in sg_pool_free() local
57 sgp = sg_pools + sg_pool_index(nents); in sg_pool_free()
58 mempool_free(sgl, sgp->pool); in sg_pool_free()
63 struct sg_pool *sgp; in sg_pool_alloc() local
65 sgp = sg_pools + sg_pool_index(nents); in sg_pool_alloc()
66 return mempool_alloc(sgp->pool, gfp_mask); in sg_pool_alloc()
126 struct sg_pool *sgp = sg_pools + i; in sg_pool_init() local
127 int size = sgp->size * sizeof(struct scatterlist); in sg_pool_init()
129 sgp->slab = kmem_cache_create(sgp->name, size, 0, in sg_pool_init()
131 if (!sgp->slab) { in sg_pool_init()
[all …]
/Linux-v4.19/drivers/mmc/host/
Dmoxart-mmc.c309 u32 *sgp, len = 0, remain, status; in moxart_transfer_pio() local
314 sgp = sg_virt(host->cur_sg); in moxart_transfer_pio()
326 iowrite32(*sgp, host->base + REG_DATA_WINDOW); in moxart_transfer_pio()
327 sgp++; in moxart_transfer_pio()
344 *sgp = ioread32be(host->base + in moxart_transfer_pio()
347 *sgp = ioread32(host->base + in moxart_transfer_pio()
349 sgp++; in moxart_transfer_pio()
/Linux-v4.19/mm/
Dshmem.c125 struct page **pagep, enum sgp_type sgp,
130 struct page **pagep, enum sgp_type sgp) in shmem_getpage() argument
132 return shmem_getpage_gfp(inode, index, pagep, sgp, in shmem_getpage()
1622 struct page **pagep, enum sgp_type sgp, gfp_t gfp, in shmem_getpage_gfp() argument
1633 enum sgp_type sgp_huge = sgp; in shmem_getpage_gfp()
1641 if (sgp == SGP_NOHUGE || sgp == SGP_HUGE) in shmem_getpage_gfp()
1642 sgp = SGP_CACHE; in shmem_getpage_gfp()
1651 if (sgp <= SGP_CACHE && in shmem_getpage_gfp()
1657 if (page && sgp == SGP_WRITE) in shmem_getpage_gfp()
1662 if (sgp != SGP_READ) in shmem_getpage_gfp()
[all …]
/Linux-v4.19/net/rds/
Dloop.c79 struct scatterlist *sgp = &rm->data.op_sg[sg]; in rds_loop_xmit() local
86 ret = min_t(int, ret, sgp->length - conn->c_xmit_data_off); in rds_loop_xmit()
/Linux-v4.19/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()
1012 struct sg_ent *sgp, unsigned char *start, in write_sgl() argument
1018 sgp->len[0] = cpu_to_be32(len); in write_sgl()
1019 sgp->addr[j++] = cpu_to_be64(addr[k++]); in write_sgl()
1026 sgp->len[j] = cpu_to_be32(skb_frag_size(frag)); in write_sgl()
1027 sgp->addr[j] = cpu_to_be64(addr[k++]); in write_sgl()
[all …]
/Linux-v4.19/block/
Dgenhd.c1000 struct gendisk *sgp = v; in show_partition() local
1006 if (!get_capacity(sgp) || (!disk_max_parts(sgp) && in show_partition()
1007 (sgp->flags & GENHD_FL_REMOVABLE))) in show_partition()
1009 if (sgp->flags & GENHD_FL_SUPPRESS_PARTITION_INFO) in show_partition()
1013 disk_part_iter_init(&piter, sgp, DISK_PITER_INCL_PART0); in show_partition()
1018 disk_name(sgp, part->partno, buf)); in show_partition()
/Linux-v4.19/include/linux/
Dshmem_fs.h92 struct page **pagep, enum sgp_type sgp);
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_drv.h2198 struct scatterlist *sgp; member
2206 struct sgt_iter s = { .sgp = sgl }; in __sgt_iter()
2208 if (s.sgp) { in __sgt_iter()
2209 s.max = s.curr = s.sgp->offset; in __sgt_iter()
2210 s.max += s.sgp->length; in __sgt_iter()
2212 s.dma = sg_dma_address(s.sgp); in __sgt_iter()
2214 s.pfn = page_to_pfn(sg_page(s.sgp)); in __sgt_iter()
2252 (__iter) = __sgt_iter(__sg_next((__iter).sgp), true), 0 : 0)
2265 (__iter) = __sgt_iter(__sg_next((__iter).sgp), false), 0 : 0)
/Linux-v4.19/drivers/scsi/
Dinitio.c1578 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()
Ddc395x.c1014 struct SGentry *sgp = srb->segment_x; in build_srb() local
1026 sgp[i].address = busaddr; in build_srb()
1027 sgp[i].length = seglen; in build_srb()
1030 sgp += srb->sg_count - 1; in build_srb()
1037 sgp->length -= (srb->total_xfer_length - reqlen); in build_srb()
1045 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-v4.19/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c3217 struct scatterlist *sgp; in ibmvscsis_rdma() local
3228 sgp = sg; in ibmvscsis_rdma()
3245 if (!sgp) { in ibmvscsis_rdma()
3250 server_ioba = sg_dma_address(sgp); in ibmvscsis_rdma()
3251 server_len = sg_dma_len(sgp); in ibmvscsis_rdma()
3320 sgp = sg_next(sgp); in ibmvscsis_rdma()
/Linux-v4.19/drivers/scsi/cxgbi/
Dlibcxgbi.c1815 struct scatterlist **sgp) in sgl_seek_offset() argument
1823 *sgp = sg; in sgl_seek_offset()
/Linux-v4.19/arch/m68k/fpsp040/
Dres_func.S1430 .long sgp