/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | loop6.c | 47 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-6.3-rc2/lib/ |
A D | sg_pool.c | 56 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-6.3-rc2/drivers/gpu/drm/i915/ |
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 …]
|
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()
|
/linux-6.3-rc2/drivers/mmc/host/ |
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() 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-6.3-rc2/net/rds/ |
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()
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb3/ |
A D | sge.c | 241 const struct sg_ent *sgp; in unmap_skb() local 263 sgp++; in unmap_skb() 1013 struct sg_ent *sgp, unsigned char *start, in write_sgl() argument 1019 sgp->len[0] = cpu_to_be32(len); in write_sgl() 1020 sgp->addr[j++] = cpu_to_be64(addr[k++]); in write_sgl() 1027 sgp->len[j] = cpu_to_be32(skb_frag_size(frag)); in write_sgl() 1028 sgp->addr[j] = cpu_to_be64(addr[k++]); in write_sgl() 1031 ++sgp; in write_sgl() 1034 sgp->len[j] = 0; in write_sgl() 1188 struct sg_ent *sgp, sgl[MAX_SKB_FRAGS / 2 + 1]; in write_tx_pkt_wr() local [all …]
|
/linux-6.3-rc2/mm/ |
A D | shmem.c | 1815 if (sgp == SGP_WRITE) in shmem_swapin_folio() 1869 if (sgp <= SGP_CACHE && in shmem_get_folio_gfp() 1898 if (sgp == SGP_WRITE) in shmem_get_folio_gfp() 1903 if (sgp != SGP_READ) in shmem_get_folio_gfp() 1914 if (sgp == SGP_READ) in shmem_get_folio_gfp() 1916 if (sgp == SGP_NOALLOC) in shmem_get_folio_gfp() 1964 if (sgp == SGP_WRITE) in shmem_get_folio_gfp() 2004 if (sgp == SGP_FALLOC) in shmem_get_folio_gfp() 2005 sgp = SGP_WRITE; in shmem_get_folio_gfp() 2022 if (sgp <= SGP_CACHE && in shmem_get_folio_gfp() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | shmem_fs.h | 111 enum sgp_type sgp);
|
/linux-6.3-rc2/block/ |
A D | genhd.c | 875 struct gendisk *sgp = v; in show_partition() local 879 if (!get_capacity(sgp) || (sgp->flags & GENHD_FL_HIDDEN)) in show_partition() 883 xa_for_each(&sgp->part_tbl, idx, part) { in show_partition()
|
/linux-6.3-rc2/drivers/scsi/ |
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()
|
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()
|
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()
|
/linux-6.3-rc2/drivers/scsi/ibmvscsi_tgt/ |
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()
|
/linux-6.3-rc2/drivers/scsi/cxgbi/ |
A D | libcxgbi.c | 1744 struct scatterlist **sgp) in sgl_seek_offset() argument 1752 *sgp = sg; in sgl_seek_offset()
|
/linux-6.3-rc2/arch/m68k/fpsp040/ |
A D | res_func.S | 1430 .long sgp
|