/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | loop6.c | 40 static inline struct scatterlist *__sg_next(struct scatterlist *sgp) in __sg_next() argument 44 bpf_probe_read_kernel(&sg, sizeof(sg), sgp); in __sg_next() 48 sgp++; in __sg_next() 50 bpf_probe_read_kernel(&sg, sizeof(sg), sgp); in __sg_next() 52 sgp = sg_chain_ptr(&sg); in __sg_next() 54 return sgp; in __sg_next() 59 struct scatterlist *sgp; in get_sgp() local 61 bpf_probe_read_kernel(&sgp, sizeof(sgp), sgs + i); in get_sgp() 62 return sgp; in get_sgp() 72 struct scatterlist *sgp = NULL; in BPF_KPROBE() local [all …]
|
/openbmc/linux/lib/ |
H A D | sg_pool.c | 56 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 …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_scatterlist.h | 24 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 D | i915_mm.c | 55 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()
|
/openbmc/linux/net/rds/ |
H A D | loop.c | 79 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()
|
/openbmc/linux/drivers/mmc/host/ |
H A D | moxart-mmc.c | 308 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() 341 *sgp = ioread32(host->base + REG_DATA_WINDOW); in moxart_transfer_pio() 342 sgp++; in moxart_transfer_pio()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 236 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 …]
|
/openbmc/linux/mm/ |
H A D | shmem.c | 149 struct folio **foliop, enum sgp_type sgp, 1836 struct folio **foliop, enum sgp_type sgp, in shmem_swapin_folio() argument 1914 if (sgp == SGP_WRITE) in shmem_swapin_folio() 1950 struct folio **foliop, enum sgp_type sgp, gfp_t gfp, in shmem_get_folio_gfp() argument 1968 if (sgp <= SGP_CACHE && in shmem_get_folio_gfp() 1986 sgp, gfp, vma, fault_type); in shmem_get_folio_gfp() 2003 if (sgp == SGP_WRITE) in shmem_get_folio_gfp() 2008 if (sgp != SGP_READ) in shmem_get_folio_gfp() 2019 if (sgp == SGP_READ) in shmem_get_folio_gfp() 2021 if (sgp == SGP_NOALLOC) in shmem_get_folio_gfp() [all …]
|
/openbmc/linux/include/linux/ |
H A D | shmem_fs.h | 145 enum sgp_type sgp);
|
/openbmc/linux/block/ |
H A D | genhd.c | 849 struct gendisk *sgp = v; in show_partition() local 853 if (!get_capacity(sgp) || (sgp->flags & GENHD_FL_HIDDEN)) in show_partition() 857 xa_for_each(&sgp->part_tbl, idx, part) { in show_partition()
|
/openbmc/linux/drivers/scsi/ |
H A D | initio.c | 1562 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()
|
H A D | dc395x.c | 899 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()
|
H A D | advansys.c | 2487 ASC_SG_HEAD *sgp; in asc_prt_asc_scsi_q() local 2508 sgp = q->sg_head; in asc_prt_asc_scsi_q() 2509 printk("ASC_SG_HEAD at addr 0x%lx\n", (ulong)sgp); in asc_prt_asc_scsi_q() 2510 printk(" entry_cnt %u, queue_cnt %u\n", sgp->entry_cnt, in asc_prt_asc_scsi_q() 2511 sgp->queue_cnt); in asc_prt_asc_scsi_q() 2512 for (i = 0; i < sgp->entry_cnt; i++) { in asc_prt_asc_scsi_q() 2514 i, (ulong)le32_to_cpu(sgp->sg_list[i].addr), in asc_prt_asc_scsi_q() 2515 (ulong)le32_to_cpu(sgp->sg_list[i].bytes)); in asc_prt_asc_scsi_q()
|
/openbmc/linux/drivers/scsi/ibmvscsi_tgt/ |
H A D | ibmvscsi_tgt.c | 3195 struct scatterlist *sgp; in ibmvscsis_rdma() local 3206 sgp = sg; in ibmvscsis_rdma() 3223 if (!sgp) { in ibmvscsis_rdma() 3228 server_ioba = sg_dma_address(sgp); in ibmvscsis_rdma() 3229 server_len = sg_dma_len(sgp); in ibmvscsis_rdma() 3298 sgp = sg_next(sgp); in ibmvscsis_rdma()
|
/openbmc/linux/drivers/scsi/cxgbi/ |
H A D | libcxgbi.c | 1744 struct scatterlist **sgp) in sgl_seek_offset() argument 1752 *sgp = sg; in sgl_seek_offset()
|
/openbmc/linux/arch/m68k/fpsp040/ |
H A D | res_func.S | 1430 .long sgp
|