Searched refs:sg (Results 1 – 5 of 5) sorted by relevance
/tools/virtio/linux/ |
D | scatterlist.h | 15 #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 …]
|
D | virtio.h | 38 struct scatterlist sg[], unsigned int num, 43 struct scatterlist sg[], unsigned int num,
|
/tools/virtio/ |
D | vringh_test.c | 330 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/scatterlist/ |
D | main.c | 82 struct scatterlist *sg; in main() local 86 sg = __sg_alloc_table_from_pages(&st, pages, test->num_pages, 0, in main() 88 assert(PTR_ERR_OR_ZERO(sg) == test->alloc_ret); in main()
|
/tools/testing/selftests/tc-testing/ |
D | tdc.py | 467 sg = parser.add_argument_group( 473 sg.add_argument( 477 sg.add_argument( 480 sg.add_argument( 484 sg.add_argument(
|