Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
A Dloop6.c47 sgp++; in __sg_next()
51 sgp = sg_chain_ptr(&sg); in __sg_next()
53 return sgp; in __sg_next()
58 struct scatterlist *sgp; in get_sgp() local
60 bpf_probe_read_kernel(&sgp, sizeof(sgp), sgs + i); in get_sgp()
61 return sgp; in get_sgp()
71 struct scatterlist *sgp = NULL; in BPF_KPROBE() local
79 for (n = 0, sgp = get_sgp(sgs, i); sgp && (n < SG_MAX); in BPF_KPROBE()
80 sgp = __sg_next(sgp)) { in BPF_KPROBE()
88 for (n = 0, sgp = get_sgp(sgs, i); sgp && (n < SG_MAX); in BPF_KPROBE()
[all …]
/linux/lib/
A Dsg_pool.c56 struct sg_pool *sgp; in sg_pool_free() local
59 mempool_free(sgl, sgp->pool); in sg_pool_free()
64 struct sg_pool *sgp; in sg_pool_alloc() local
150 sgp->slab = kmem_cache_create(sgp->name, size, 0, in sg_pool_init()
152 if (!sgp->slab) { in sg_pool_init()
154 sgp->name); in sg_pool_init()
159 sgp->slab); in sg_pool_init()
160 if (!sgp->pool) { in sg_pool_init()
162 sgp->name); in sg_pool_init()
173 mempool_destroy(sgp->pool); in sg_pool_init()
[all …]
/linux/drivers/gpu/drm/i915/
A Di915_scatterlist.h23 struct scatterlist *sgp; member
31 struct sgt_iter s = { .sgp = sgl }; in __sgt_iter()
33 if (dma && s.sgp && sg_dma_len(s.sgp) == 0) { in __sgt_iter()
34 s.sgp = NULL; in __sgt_iter()
35 } else if (s.sgp) { in __sgt_iter()
36 s.max = s.curr = s.sgp->offset; in __sgt_iter()
38 s.dma = sg_dma_address(s.sgp); in __sgt_iter()
39 s.max += sg_dma_len(s.sgp); in __sgt_iter()
41 s.pfn = page_to_pfn(sg_page(s.sgp)); in __sgt_iter()
42 s.max += s.sgp->length; in __sgt_iter()
[all …]
A Di915_mm.c65 if (GEM_WARN_ON(!r->sgt.sgp)) in remap_sg()
75 r->sgt = __sgt_iter(__sg_next(r->sgt.sgp), use_dma(r->iobase)); in remap_sg()
/linux/drivers/mmc/host/
A Dmoxart-mmc.c308 u32 *sgp, len = 0, remain, status; in moxart_transfer_pio() local
313 sgp = sg_virt(host->cur_sg); in moxart_transfer_pio()
325 iowrite32(*sgp, host->base + REG_DATA_WINDOW); in moxart_transfer_pio()
326 sgp++; in moxart_transfer_pio()
343 *sgp = ioread32be(host->base + in moxart_transfer_pio()
346 *sgp = ioread32(host->base + in moxart_transfer_pio()
348 sgp++; in moxart_transfer_pio()
/linux/net/rds/
A 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/drivers/net/ethernet/chelsio/cxgb3/
A Dsge.c239 const struct sg_ent *sgp; in unmap_skb() local
261 sgp++; in unmap_skb()
1010 struct sg_ent *sgp, unsigned char *start, in write_sgl() argument
1016 sgp->len[0] = cpu_to_be32(len); in write_sgl()
1017 sgp->addr[j++] = cpu_to_be64(addr[k++]); in write_sgl()
1024 sgp->len[j] = cpu_to_be32(skb_frag_size(frag)); in write_sgl()
1025 sgp->addr[j] = cpu_to_be64(addr[k++]); in write_sgl()
1028 ++sgp; in write_sgl()
1031 sgp->len[j] = 0; in write_sgl()
1185 struct sg_ent *sgp, sgl[MAX_SKB_FRAGS / 2 + 1]; in write_tx_pkt_wr() local
[all …]
/linux/mm/
A Dshmem.c1779 if (sgp == SGP_WRITE) in shmem_swapin_page()
1829 if (sgp <= SGP_CACHE && in shmem_getpage_gfp()
1861 if (sgp == SGP_WRITE) in shmem_getpage_gfp()
1866 if (sgp != SGP_READ) in shmem_getpage_gfp()
1877 if (sgp == SGP_READ) in shmem_getpage_gfp()
1879 if (sgp == SGP_NOALLOC) in shmem_getpage_gfp()
1933 if (sgp == SGP_WRITE) in shmem_getpage_gfp()
1973 if (sgp == SGP_FALLOC) in shmem_getpage_gfp()
1974 sgp = SGP_WRITE; in shmem_getpage_gfp()
1992 if (sgp <= SGP_CACHE && in shmem_getpage_gfp()
[all …]
/linux/block/
A Dgenhd.c813 struct gendisk *sgp = v; in show_partition() local
818 if (!get_capacity(sgp) || (!disk_max_parts(sgp) && in show_partition()
819 (sgp->flags & GENHD_FL_REMOVABLE))) in show_partition()
821 if (sgp->flags & GENHD_FL_SUPPRESS_PARTITION_INFO) in show_partition()
825 xa_for_each(&sgp->part_tbl, idx, part) { in show_partition()
/linux/include/linux/
A Dshmem_fs.h109 struct page **pagep, enum sgp_type sgp);
/linux/drivers/scsi/
A Dinitio.c1562 struct sg_entry *sgp; in initio_state_5() local
1565 sgp = &scb->sglist[scb->sgidx]; in initio_state_5()
1566 for (i = scb->sgidx; i < scb->sgmax; sgp++, i++) { in initio_state_5()
1567 xcnt -= (long) sgp->len; in initio_state_5()
1569 xcnt += (long) sgp->len; /* xcnt == bytes xferred in this sgp */ in initio_state_5()
1570 sgp->data += (u32) xcnt; /* new ptr to be xfer */ in initio_state_5()
1571 sgp->len -= (u32) xcnt; /* new len to be xfer */ in initio_state_5()
A Ddc395x.c899 struct SGentry *sgp = srb->segment_x; in build_srb() local
911 sgp[i].address = busaddr; in build_srb()
912 sgp[i].length = seglen; in build_srb()
915 sgp += srb->sg_count - 1; in build_srb()
922 sgp->length -= (srb->total_xfer_length - reqlen); in build_srb()
930 sgp->length++; in build_srb()
A Dadvansys.c2478 ASC_SG_HEAD *sgp; in asc_prt_asc_scsi_q() local
2499 sgp = q->sg_head; in asc_prt_asc_scsi_q()
2500 printk("ASC_SG_HEAD at addr 0x%lx\n", (ulong)sgp); in asc_prt_asc_scsi_q()
2501 printk(" entry_cnt %u, queue_cnt %u\n", sgp->entry_cnt, in asc_prt_asc_scsi_q()
2502 sgp->queue_cnt); in asc_prt_asc_scsi_q()
2503 for (i = 0; i < sgp->entry_cnt; i++) { in asc_prt_asc_scsi_q()
2505 i, (ulong)le32_to_cpu(sgp->sg_list[i].addr), in asc_prt_asc_scsi_q()
2506 (ulong)le32_to_cpu(sgp->sg_list[i].bytes)); in asc_prt_asc_scsi_q()
/linux/drivers/scsi/ibmvscsi_tgt/
A Dibmvscsi_tgt.c3198 struct scatterlist *sgp; in ibmvscsis_rdma() local
3209 sgp = sg; in ibmvscsis_rdma()
3226 if (!sgp) { in ibmvscsis_rdma()
3231 server_ioba = sg_dma_address(sgp); in ibmvscsis_rdma()
3232 server_len = sg_dma_len(sgp); in ibmvscsis_rdma()
3301 sgp = sg_next(sgp); in ibmvscsis_rdma()
/linux/drivers/scsi/cxgbi/
A Dlibcxgbi.c1744 struct scatterlist **sgp) in sgl_seek_offset() argument
1752 *sgp = sg; in sgl_seek_offset()
/linux/arch/m68k/fpsp040/
A Dres_func.S1430 .long sgp

Completed in 74 milliseconds