Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dloop6.c33 static inline struct scatterlist *__sg_next(struct scatterlist *sgp)
37 bpf_probe_read_kernel(&sg, sizeof(sg), sgp);
41 sgp++; in __sg_next()
43 bpf_probe_read_kernel(&sg, sizeof(sg), sgp); in __sg_next()
45 sgp = sg_chain_ptr(&sg); in __sg_next()
47 return sgp; in __sg_next()
52 struct scatterlist *sgp; in __sg_next()
54 bpf_probe_read_kernel(&sgp, sizeof(sgp), sgs + i); in __sg_next()
55 return sgp; in __sg_next()
40 __sg_next(struct scatterlist * sgp) __sg_next() argument
59 struct scatterlist *sgp; get_sgp() local
72 struct scatterlist *sgp = NULL; BPF_KPROBE() local
[all...]
/linux/lib/
H A Dsg_pool.c56 struct sg_pool *sgp; in sg_pool_free() local
58 sgp = sg_pools + sg_pool_index(nents); in sg_pool_free()
59 mempool_free(sgl, sgp->pool); in sg_pool_free()
64 struct sg_pool *sgp; in sg_pool_alloc() local
66 sgp = sg_pools + sg_pool_index(nents); in sg_pool_alloc()
67 return mempool_alloc(sgp->pool, gfp_mask); in sg_pool_alloc()
147 struct sg_pool *sgp = sg_pools + i; in sg_pool_init() local
148 int size = sgp->size * sizeof(struct scatterlist); in sg_pool_init()
150 sgp->slab = kmem_cache_create(sgp->name, size, 0, in sg_pool_init()
152 if (!sgp->slab) { in sg_pool_init()
[all …]
/linux/drivers/gpu/drm/i915/
H A Di915_scatterlist.h24 struct scatterlist *sgp; member
32 struct sgt_iter s = { .sgp = sgl }; in __sgt_iter()
34 if (dma && s.sgp && sg_dma_len(s.sgp) == 0) { in __sgt_iter()
35 s.sgp = NULL; in __sgt_iter()
36 } else if (s.sgp) { in __sgt_iter()
37 s.max = s.curr = s.sgp->offset; in __sgt_iter()
39 s.dma = sg_dma_address(s.sgp); in __sgt_iter()
40 s.max += sg_dma_len(s.sgp); in __sgt_iter()
42 s.pfn = page_to_pfn(sg_page(s.sgp)); in __sgt_iter()
43 s.max += s.sgp->length; in __sgt_iter()
[all …]
H A Di915_mm.c55 if (GEM_WARN_ON(!r->sgt.sgp)) in remap_sg()
65 r->sgt = __sgt_iter(__sg_next(r->sgt.sgp), use_dma(r->iobase)); in remap_sg()
148 r.sgt = __sgt_iter(__sg_next(r.sgt.sgp), use_dma(iobase)); in remap_io_sg()
149 if (!r.sgt.sgp) in remap_io_sg()
/linux/drivers/mmc/host/
H A Dmoxart-mmc.c313 u32 *sgp, len = 0, remain, status; in moxart_transfer_pio() local
318 sgp = sg_virt(host->cur_sg); in moxart_transfer_pio()
330 iowrite32(*sgp, host->base + REG_DATA_WINDOW); in moxart_transfer_pio()
331 sgp++; in moxart_transfer_pio()
346 *sgp = ioread32(host->base + REG_DATA_WINDOW); in moxart_transfer_pio()
347 sgp++; in moxart_transfer_pio()
/linux/net/rds/
H 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/
H A Dsge.c236 const struct sg_ent *sgp; in unmap_skb() local
240 sgp = (struct sg_ent *)&q->desc[cidx].flit[d->sflit]; in unmap_skb()
244 dma_unmap_single(&pdev->dev, be64_to_cpu(sgp->addr[0]), in unmap_skb()
253 dma_unmap_page(&pdev->dev, be64_to_cpu(sgp->addr[j]), in unmap_skb()
258 sgp++; in unmap_skb()
1008 struct sg_ent *sgp, unsigned char *start, in write_sgl() argument
1014 sgp->len[0] = cpu_to_be32(len); in write_sgl()
1015 sgp->addr[j++] = cpu_to_be64(addr[k++]); in write_sgl()
1022 sgp->len[j] = cpu_to_be32(skb_frag_size(frag)); in write_sgl()
1023 sgp->addr[j] = cpu_to_be64(addr[k++]); in write_sgl()
[all …]
/linux/mm/
H A Dshmem.c161 struct folio **foliop, enum sgp_type sgp, gfp_t gfp,
2272 struct folio **foliop, enum sgp_type sgp, in shmem_swapin_folio() argument
2413 if (sgp == SGP_WRITE) in shmem_swapin_folio()
2457 loff_t write_end, struct folio **foliop, enum sgp_type sgp, in shmem_get_folio_gfp() argument
2473 if (sgp <= SGP_CACHE && in shmem_get_folio_gfp()
2490 sgp, gfp, vma, fault_type); in shmem_get_folio_gfp()
2507 if (sgp == SGP_WRITE) in shmem_get_folio_gfp()
2512 if (sgp != SGP_READ) in shmem_get_folio_gfp()
2523 if (sgp == SGP_READ) in shmem_get_folio_gfp()
2525 if (sgp in shmem_get_folio_gfp()
2660 shmem_get_folio(struct inode * inode,pgoff_t index,loff_t write_end,struct folio ** foliop,enum sgp_type sgp) shmem_get_folio() argument
[all...]
/linux/include/linux/
H A Dshmem_fs.h177 struct folio **foliop, enum sgp_type sgp);
/linux/drivers/scsi/ibmvscsi_tgt/
H A Dibmvscsi_tgt.c3193 struct scatterlist *sgp; in ibmvscsis_rdma() local
3204 sgp = sg; in ibmvscsis_rdma()
3221 if (!sgp) { in ibmvscsis_rdma()
3226 server_ioba = sg_dma_address(sgp); in ibmvscsis_rdma()
3227 server_len = sg_dma_len(sgp); in ibmvscsis_rdma()
3296 sgp = sg_next(sgp); in ibmvscsis_rdma()
/linux/drivers/scsi/
H A Ddc395x.c820 struct SGentry *sgp = srb->segment_x; in build_srb() local
827 sgp[i].address = busaddr; in build_srb()
828 sgp[i].length = seglen; in build_srb()
831 sgp += srb->sg_count - 1; in build_srb()
838 sgp->length -= (srb->total_xfer_length - reqlen); in build_srb()
846 sgp->length++; in build_srb()
H A Dadvansys.c2486 ASC_SG_HEAD *sgp; in asc_prt_asc_scsi_q() local
2507 sgp = q->sg_head; in asc_prt_asc_scsi_q()
2508 printk("ASC_SG_HEAD at addr 0x%lx\n", (ulong)sgp); in asc_prt_asc_scsi_q()
2509 printk(" entry_cnt %u, queue_cnt %u\n", sgp->entry_cnt, in asc_prt_asc_scsi_q()
2510 sgp->queue_cnt); in asc_prt_asc_scsi_q()
2511 for (i = 0; i < sgp->entry_cnt; i++) { in asc_prt_asc_scsi_q()
2513 i, (ulong)le32_to_cpu(sgp->sg_list[i].addr), in asc_prt_asc_scsi_q()
2514 (ulong)le32_to_cpu(sgp->sg_list[i].bytes)); in asc_prt_asc_scsi_q()
/linux/drivers/scsi/cxgbi/
H A Dlibcxgbi.c1744 struct scatterlist **sgp) in sgl_seek_offset() argument
1752 *sgp = sg; in sgl_seek_offset()
/linux/arch/m68k/fpsp040/
H A Dres_func.S1430 .long sgp