Lines Matching refs:scatterlist

25 struct scatterlist *sg_next(struct scatterlist *sg)  in sg_next()
47 int sg_nents(struct scatterlist *sg) in sg_nents()
70 int sg_nents_for_len(struct scatterlist *sg, u64 len) in sg_nents_for_len()
103 struct scatterlist *sg_last(struct scatterlist *sgl, unsigned int nents) in sg_last()
105 struct scatterlist *sg, *ret = NULL; in sg_last()
126 void sg_init_table(struct scatterlist *sgl, unsigned int nents) in sg_init_table()
140 void sg_init_one(struct scatterlist *sg, const void *buf, unsigned int buflen) in sg_init_one()
151 static struct scatterlist *sg_kmalloc(unsigned int nents, gfp_t gfp_mask) in sg_kmalloc()
167 return kmalloc_array(nents, sizeof(struct scatterlist), in sg_kmalloc()
171 static void sg_kfree(struct scatterlist *sg, unsigned int nents) in sg_kfree()
196 struct scatterlist *sgl, *next; in __sg_free_table()
264 unsigned int max_ents, struct scatterlist *first_chunk, in __sg_alloc_table()
267 struct scatterlist *sg, *prv; in __sg_alloc_table()
388 struct scatterlist *s; in __sg_alloc_table_from_pages()
478 struct scatterlist *sgl_alloc_order(unsigned long long length, in sgl_alloc_order()
482 struct scatterlist *sgl, *sg; in sgl_alloc_order()
498 sgl = kmalloc_array(nalloc, sizeof(struct scatterlist), in sgl_alloc_order()
532 struct scatterlist *sgl_alloc(unsigned long long length, gfp_t gfp, in sgl_alloc()
552 void sgl_free_n_order(struct scatterlist *sgl, int nents, int order) in sgl_free_n_order()
554 struct scatterlist *sg; in sgl_free_n_order()
574 void sgl_free_order(struct scatterlist *sgl, int order) in sgl_free_order()
584 void sgl_free(struct scatterlist *sgl) in sgl_free()
593 struct scatterlist *sglist, unsigned int nents, in __sg_page_iter_start()
604 static int sg_page_count(struct scatterlist *sg) in sg_page_count()
640 void sg_miter_start(struct sg_mapping_iter *miter, struct scatterlist *sgl, in sg_miter_start()
654 struct scatterlist *sg; in sg_miter_get_next_page()
805 size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, in sg_copy_buffer()
851 size_t sg_copy_from_buffer(struct scatterlist *sgl, unsigned int nents, in sg_copy_from_buffer()
868 size_t sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents, in sg_copy_to_buffer()
886 size_t sg_pcopy_from_buffer(struct scatterlist *sgl, unsigned int nents, in sg_pcopy_from_buffer()
904 size_t sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents, in sg_pcopy_to_buffer()
920 size_t sg_zero_buffer(struct scatterlist *sgl, unsigned int nents, in sg_zero_buffer()