Home
last modified time | relevance | path

Searched refs:sg (Results 1 – 6 of 6) sorted by relevance

/tools/virtio/linux/
Dscatterlist.h15 #define sg_is_chain(sg) ((sg)->page_link & 0x01) argument
16 #define sg_is_last(sg) ((sg)->page_link & 0x02) argument
17 #define sg_chain_ptr(sg) \ argument
18 ((struct scatterlist *) ((sg)->page_link & ~0x03))
30 static inline void sg_assign_page(struct scatterlist *sg, struct page *page) in sg_assign_page() argument
32 unsigned long page_link = sg->page_link & 0x3; in sg_assign_page()
40 BUG_ON(sg_is_chain(sg)); in sg_assign_page()
42 sg->page_link = page_link | (unsigned long) page; in sg_assign_page()
59 static inline void sg_set_page(struct scatterlist *sg, struct page *page, in sg_set_page() argument
62 sg_assign_page(sg, page); in sg_set_page()
[all …]
Dvirtio.h41 struct scatterlist sg[], unsigned int num,
46 struct scatterlist sg[], unsigned int num,
Ddma-mapping.h33 #define sg_dma_address(sg) (0) argument
/tools/testing/selftests/bpf/progs/
Dloop6.c35 #define sg_is_chain(sg) ((sg)->page_link & SG_CHAIN) argument
36 #define sg_is_last(sg) ((sg)->page_link & SG_END) argument
37 #define sg_chain_ptr(sg) \ argument
38 ((struct scatterlist *) ((sg)->page_link & ~(SG_CHAIN | SG_END)))
42 struct scatterlist sg; in __sg_next() local
44 bpf_probe_read_kernel(&sg, sizeof(sg), sgp); in __sg_next()
45 if (sg_is_last(&sg)) in __sg_next()
50 bpf_probe_read_kernel(&sg, sizeof(sg), sgp); in __sg_next()
51 if (sg_is_chain(&sg)) in __sg_next()
52 sgp = sg_chain_ptr(&sg); in __sg_next()
/tools/virtio/
Dvringh_test.c330 struct scatterlist sg[4]; in parallel_test() local
355 sg_init_table(sg, num_sg = 3); in parallel_test()
356 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
357 sg_set_buf(&sg[1], (void *)dbuf + 1, 2); in parallel_test()
358 sg_set_buf(&sg[2], (void *)dbuf + 3, 1); in parallel_test()
361 sg_init_table(sg, num_sg = 2); in parallel_test()
362 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
363 sg_set_buf(&sg[1], (void *)dbuf + 1, 3); in parallel_test()
366 sg_init_table(sg, num_sg = 1); in parallel_test()
367 sg_set_buf(&sg[0], (void *)dbuf, 4); in parallel_test()
[all …]
/tools/testing/selftests/tc-testing/
Dtdc.py590 sg = parser.add_argument_group(
596 sg.add_argument(
600 sg.add_argument(
603 sg.add_argument(
607 sg.add_argument(