Lines Matching full:sg
27 struct scatterlist sg[10]; in example_init() local
59 * We need two different SG entries: one for the free space area at the in example_init()
63 sg_init_table(sg, ARRAY_SIZE(sg)); in example_init()
64 nents = kfifo_dma_in_prepare(&fifo, sg, ARRAY_SIZE(sg), FIFO_SIZE); in example_init()
76 "sg[%d] -> " in example_init()
78 i, sg_page(&sg[i]), sg[i].offset, sg[i].length); in example_init()
80 if (sg_is_last(&sg[i])) in example_init()
94 nents = kfifo_dma_out_prepare(&fifo, sg, ARRAY_SIZE(sg), 8); in example_init()
105 "sg[%d] -> " in example_init()
107 i, sg_page(&sg[i]), sg[i].offset, sg[i].length); in example_init()
109 if (sg_is_last(&sg[i])) in example_init()