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

/linux-master/tools/testing/selftests/bpf/progs/
H A Dloop6.c40 static inline struct scatterlist *__sg_next(struct scatterlist *sgp) argument
44 bpf_probe_read_kernel(&sg, sizeof(sg), sgp);
48 sgp++;
50 bpf_probe_read_kernel(&sg, sizeof(sg), sgp);
52 sgp = sg_chain_ptr(&sg);
54 return sgp;
59 struct scatterlist *sgp; local
61 bpf_probe_read_kernel(&sgp, sizeof(sgp), sgs + i);
62 return sgp;
72 struct scatterlist *sgp = NULL; local
[all...]
/linux-master/lib/
H A Dsg_pool.c56 struct sg_pool *sgp; local
58 sgp = sg_pools + sg_pool_index(nents);
59 mempool_free(sgl, sgp->pool);
64 struct sg_pool *sgp; local
66 sgp = sg_pools + sg_pool_index(nents);
67 return mempool_alloc(sgp->pool, gfp_mask);
147 struct sg_pool *sgp = sg_pools + i; local
148 int size = sgp->size * sizeof(struct scatterlist);
150 sgp->slab = kmem_cache_create(sgp
171 struct sg_pool *sgp = sg_pools + i; local
[all...]
/linux-master/drivers/gpu/drm/i915/
H A Di915_scatterlist.h24 struct scatterlist *sgp; member in struct:sgt_iter
32 struct sgt_iter s = { .sgp = sgl };
34 if (dma && s.sgp && sg_dma_len(s.sgp) == 0) {
35 s.sgp = NULL;
36 } else if (s.sgp) {
37 s.max = s.curr = s.sgp->offset;
39 s.dma = sg_dma_address(s.sgp);
40 s.max += sg_dma_len(s.sgp);
42 s.pfn = page_to_pfn(sg_page(s.sgp));
[all...]
H A Di915_mm.c55 if (GEM_WARN_ON(!r->sgt.sgp))
65 r->sgt = __sgt_iter(__sg_next(r->sgt.sgp), use_dma(r->iobase));
/linux-master/net/rds/
H A Dloop.c79 struct scatterlist *sgp = &rm->data.op_sg[sg]; local
86 ret = min_t(int, ret, sgp->length - conn->c_xmit_data_off);
/linux-master/include/linux/
H A Dshmem_fs.h145 enum sgp_type sgp);
/linux-master/drivers/mmc/host/
H A Dmoxart-mmc.c283 u32 *sgp, len = 0, remain, status; local
299 sgp = sgm->addr;
314 iowrite32(*sgp, host->base + REG_DATA_WINDOW);
315 sgp++;
331 *sgp = ioread32(host->base + REG_DATA_WINDOW);
332 sgp++;
/linux-master/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c236 const struct sg_ent *sgp; local
240 sgp = (struct sg_ent *)&q->desc[cidx].flit[d->sflit];
244 dma_unmap_single(&pdev->dev, be64_to_cpu(sgp->addr[0]),
253 dma_unmap_page(&pdev->dev, be64_to_cpu(sgp->addr[j]),
258 sgp++;
998 * @sgp: the SGL to populate
1008 struct sg_ent *sgp, unsigned char *start,
1014 sgp->len[0] = cpu_to_be32(len);
1015 sgp->addr[j++] = cpu_to_be64(addr[k++]);
1022 sgp
1007 write_sgl(const struct sk_buff *skb, struct sg_ent *sgp, unsigned char *start, unsigned int len, const dma_addr_t *addr) argument
1183 struct sg_ent *sgp, sgl[MAX_SKB_FRAGS / 2 + 1]; local
1636 struct sg_ent *sgp, sgl[MAX_SKB_FRAGS / 2 + 1]; local
[all...]
/linux-master/mm/
H A Dshmem.c150 struct folio **foliop, enum sgp_type sgp, gfp_t gfp,
1849 struct folio **foliop, enum sgp_type sgp,
1925 if (sgp == SGP_WRITE)
1960 struct folio **foliop, enum sgp_type sgp, gfp_t gfp,
1975 if (sgp <= SGP_CACHE &&
1992 sgp, gfp, fault_mm, fault_type);
2009 if (sgp == SGP_WRITE)
2014 if (sgp != SGP_READ)
2025 if (sgp == SGP_READ)
2027 if (sgp
1848 shmem_swapin_folio(struct inode *inode, pgoff_t index, struct folio **foliop, enum sgp_type sgp, gfp_t gfp, struct mm_struct *fault_mm, vm_fault_t *fault_type) argument
1959 shmem_get_folio_gfp(struct inode *inode, pgoff_t index, struct folio **foliop, enum sgp_type sgp, gfp_t gfp, struct vm_fault *vmf, vm_fault_t *fault_type) argument
2157 shmem_get_folio(struct inode *inode, pgoff_t index, struct folio **foliop, enum sgp_type sgp) argument
[all...]
/linux-master/block/
H A Dgenhd.c857 struct gendisk *sgp = v; local
861 if (!get_capacity(sgp) || (sgp->flags & GENHD_FL_HIDDEN))
865 xa_for_each(&sgp->part_tbl, idx, part) {
/linux-master/drivers/scsi/
H A Dinitio.c1561 struct sg_entry *sgp; local
1564 sgp = &scb->sglist[scb->sgidx];
1565 for (i = scb->sgidx; i < scb->sgmax; sgp++, i++) {
1566 xcnt -= (long) sgp->len;
1567 if (xcnt < 0) { /* this sgp xfer half done */
1568 xcnt += (long) sgp->len; /* xcnt == bytes xferred in this sgp */
1569 sgp->data += (u32) xcnt; /* new ptr to be xfer */
1570 sgp->len -= (u32) xcnt; /* new len to be xfer */
1579 /* else (xcnt >= 0 , i.e. this sgp alread
[all...]
H A Ddc395x.c899 struct SGentry *sgp = srb->segment_x; local
911 sgp[i].address = busaddr;
912 sgp[i].length = seglen;
915 sgp += srb->sg_count - 1;
922 sgp->length -= (srb->total_xfer_length - reqlen);
930 sgp->length++;
H A Dadvansys.c2487 ASC_SG_HEAD *sgp; local
2508 sgp = q->sg_head;
2509 printk("ASC_SG_HEAD at addr 0x%lx\n", (ulong)sgp);
2510 printk(" entry_cnt %u, queue_cnt %u\n", sgp->entry_cnt,
2511 sgp->queue_cnt);
2512 for (i = 0; i < sgp->entry_cnt; i++) {
2514 i, (ulong)le32_to_cpu(sgp->sg_list[i].addr),
2515 (ulong)le32_to_cpu(sgp->sg_list[i].bytes));
/linux-master/drivers/scsi/ibmvscsi_tgt/
H A Dibmvscsi_tgt.c3195 struct scatterlist *sgp; local
3206 sgp = sg;
3223 if (!sgp) {
3228 server_ioba = sg_dma_address(sgp);
3229 server_len = sg_dma_len(sgp);
3298 sgp = sg_next(sgp);
/linux-master/drivers/scsi/cxgbi/
H A Dlibcxgbi.c1744 struct scatterlist **sgp)
1752 *sgp = sg;
1742 sgl_seek_offset(struct scatterlist *sgl, unsigned int sgcnt, unsigned int offset, unsigned int *off, struct scatterlist **sgp) argument
/linux-master/arch/m68k/fpsp040/
H A Dres_func.S1430 .long sgp
1691 sgp: label

Completed in 416 milliseconds