Lines Matching refs:sgp
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
81 for (n = 0, sgp = get_sgp(sgs, i); sgp && (n < SG_MAX); in BPF_KPROBE()
82 sgp = __sg_next(sgp)) { in BPF_KPROBE()
83 bpf_probe_read_kernel(&len, sizeof(len), &sgp->length); in BPF_KPROBE()
91 for (n = 0, sgp = get_sgp(sgs, i); sgp && (n < SG_MAX); in BPF_KPROBE()
92 sgp = __sg_next(sgp)) { in BPF_KPROBE()
93 bpf_probe_read_kernel(&len, sizeof(len), &sgp->length); in BPF_KPROBE()