Lines Matching refs:scatterlist
23 struct scatterlist *sg_next(struct scatterlist *sg) in sg_next()
45 int sg_nents(struct scatterlist *sg) in sg_nents()
68 int sg_nents_for_len(struct scatterlist *sg, u64 len) in sg_nents_for_len()
101 struct scatterlist *sg_last(struct scatterlist *sgl, unsigned int nents) in sg_last()
103 struct scatterlist *sg, *ret = NULL; in sg_last()
124 void sg_init_table(struct scatterlist *sgl, unsigned int nents) in sg_init_table()
138 void sg_init_one(struct scatterlist *sg, const void *buf, unsigned int buflen) in sg_init_one()
149 static struct scatterlist *sg_kmalloc(unsigned int nents, gfp_t gfp_mask) in sg_kmalloc()
165 return kmalloc_array(nents, sizeof(struct scatterlist), in sg_kmalloc()
169 static void sg_kfree(struct scatterlist *sg, unsigned int nents) in sg_kfree()
197 struct scatterlist *sgl, *next; in __sg_free_table()
283 unsigned int max_ents, struct scatterlist *first_chunk, in __sg_alloc_table()
287 struct scatterlist *sg, *prv; in __sg_alloc_table()
383 static struct scatterlist *get_next_sg(struct sg_append_table *table, in get_next_sg()
384 struct scatterlist *cur, in get_next_sg()
388 struct scatterlist *new_sg, *next_sg; in get_next_sg()
449 struct scatterlist *s = sgt_append->prv; in sg_alloc_append_table_from_pages()
598 struct scatterlist *sgl_alloc_order(unsigned long long length, in sgl_alloc_order()
602 struct scatterlist *sgl, *sg; in sgl_alloc_order()
618 sgl = kmalloc_array(nalloc, sizeof(struct scatterlist), in sgl_alloc_order()
652 struct scatterlist *sgl_alloc(unsigned long long length, gfp_t gfp, in sgl_alloc()
672 void sgl_free_n_order(struct scatterlist *sgl, int nents, int order) in sgl_free_n_order()
674 struct scatterlist *sg; in sgl_free_n_order()
694 void sgl_free_order(struct scatterlist *sgl, int order) in sgl_free_order()
704 void sgl_free(struct scatterlist *sgl) in sgl_free()
713 struct scatterlist *sglist, unsigned int nents, in __sg_page_iter_start()
724 static int sg_page_count(struct scatterlist *sg) in sg_page_count()
748 static int sg_dma_page_count(struct scatterlist *sg) in sg_dma_page_count()
786 void sg_miter_start(struct sg_mapping_iter *miter, struct scatterlist *sgl, in sg_miter_start()
800 struct scatterlist *sg; in sg_miter_get_next_page()
951 size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, in sg_copy_buffer()
997 size_t sg_copy_from_buffer(struct scatterlist *sgl, unsigned int nents, in sg_copy_from_buffer()
1014 size_t sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents, in sg_copy_to_buffer()
1032 size_t sg_pcopy_from_buffer(struct scatterlist *sgl, unsigned int nents, in sg_pcopy_from_buffer()
1050 size_t sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents, in sg_pcopy_to_buffer()
1066 size_t sg_zero_buffer(struct scatterlist *sgl, unsigned int nents, in sg_zero_buffer()