Lines Matching refs:sgp
39 static inline struct scatterlist *__sg_next(struct scatterlist *sgp) in __sg_next() argument
43 bpf_probe_read_kernel(&sg, sizeof(sg), sgp); in __sg_next()
47 sgp++; in __sg_next()
49 bpf_probe_read_kernel(&sg, sizeof(sg), 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()
81 bpf_probe_read_kernel(&len, sizeof(len), &sgp->length); in BPF_KPROBE()
88 for (n = 0, sgp = get_sgp(sgs, i); sgp && (n < SG_MAX); in BPF_KPROBE()
89 sgp = __sg_next(sgp)) { in BPF_KPROBE()
90 bpf_probe_read_kernel(&len, sizeof(len), &sgp->length); in BPF_KPROBE()