/lib/ |
H A D | kfifo.c | 308 static int setup_sgl_buf(struct scatterlist *sgl, void *buf, argument 334 sg_set_page(sgl, page, l - off, off); 335 sgl = sg_next(sgl); 336 if (++n == nents || sgl == NULL) 343 sg_set_page(sgl, page, len, off); 347 static unsigned int setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl, argument 363 n = setup_sgl_buf(sgl, fifo->data + off, nents, l); 364 n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - l); 370 struct scatterlist *sgl, in 369 __kfifo_dma_in_prepare(struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len) argument 382 __kfifo_dma_out_prepare(struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len) argument 561 __kfifo_dma_in_prepare_r(struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len, size_t recsize) argument 584 __kfifo_dma_out_prepare_r(struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len, size_t recsize) argument [all...] |
H A D | scatterlist.c | 62 * @sgl: First entry in the scatterlist 69 * Note that the @sgl@ pointer passed in need not be the first one, 71 * exist from @sgl@. 74 struct scatterlist *sg_last(struct scatterlist *sgl, unsigned int nents) argument 77 struct scatterlist *ret = &sgl[nents - 1]; 82 for_each_sg(sgl, sg, nents, i) 87 BUG_ON(sgl[0].sg_magic != SG_MAGIC); 96 * @sgl: The SG table 104 void sg_init_table(struct scatterlist *sgl, unsigned int nents) argument 106 memset(sgl, 180 struct scatterlist *sgl, *next; local 456 sg_miter_start(struct sg_mapping_iter *miter, struct scatterlist *sgl, unsigned int nents, unsigned int flags) argument 621 sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip, bool to_buffer) argument 671 sg_copy_from_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen) argument 688 sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen) argument 706 sg_pcopy_from_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip) argument 724 sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip) argument [all...] |
H A D | swiotlb.c | 871 swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, argument 879 for_each_sg(sgl, sg, nelems, i) { 891 swiotlb_unmap_sg_attrs(hwdev, sgl, i, dir, 893 sg_dma_len(sgl) = 0; 906 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, argument 909 return swiotlb_map_sg_attrs(hwdev, sgl, nelems, dir, NULL); 918 swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl, argument 926 for_each_sg(sgl, sg, nelems, i) 933 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, argument 936 return swiotlb_unmap_sg_attrs(hwdev, sgl, nelem 948 swiotlb_sync_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, enum dma_sync_target target) argument [all...] |