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()
199 struct scatterlist *sgl, *next; in __sg_free_table()
286 unsigned int max_ents, struct scatterlist *first_chunk, in __sg_alloc_table()
290 struct scatterlist *sg, *prv; in __sg_alloc_table()
386 static struct scatterlist *get_next_sg(struct sg_append_table *table, in get_next_sg()
387 struct scatterlist *cur, in get_next_sg()
391 struct scatterlist *new_sg, *next_sg; in get_next_sg()
461 struct scatterlist *s = sgt_append->prv; in sg_alloc_append_table_from_pages()
611 struct scatterlist *sgl_alloc_order(unsigned long long length, in sgl_alloc_order()
615 struct scatterlist *sgl, *sg; in sgl_alloc_order()
631 sgl = kmalloc_array(nalloc, sizeof(struct scatterlist), in sgl_alloc_order()
665 struct scatterlist *sgl_alloc(unsigned long long length, gfp_t gfp, in sgl_alloc()
685 void sgl_free_n_order(struct scatterlist *sgl, int nents, int order) in sgl_free_n_order()
687 struct scatterlist *sg; in sgl_free_n_order()
707 void sgl_free_order(struct scatterlist *sgl, int order) in sgl_free_order()
717 void sgl_free(struct scatterlist *sgl) in sgl_free()
726 struct scatterlist *sglist, unsigned int nents, in __sg_page_iter_start()
737 static int sg_page_count(struct scatterlist *sg) in sg_page_count()
761 static int sg_dma_page_count(struct scatterlist *sg) in sg_dma_page_count()
800 void sg_miter_start(struct sg_mapping_iter *miter, struct scatterlist *sgl, in sg_miter_start()
814 struct scatterlist *sg; in sg_miter_get_next_page()
962 size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, in sg_copy_buffer()
1008 size_t sg_copy_from_buffer(struct scatterlist *sgl, unsigned int nents, in sg_copy_from_buffer()
1025 size_t sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents, in sg_copy_to_buffer()
1043 size_t sg_pcopy_from_buffer(struct scatterlist *sgl, unsigned int nents, in sg_pcopy_from_buffer()
1061 size_t sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents, in sg_pcopy_to_buffer()
1077 size_t sg_zero_buffer(struct scatterlist *sgl, unsigned int nents, in sg_zero_buffer()
1113 struct scatterlist *sg = sgtable->sgl + sgtable->nents; in extract_user_to_sg()
1121 array_size(sg_max, sizeof(struct scatterlist)); in extract_user_to_sg()
1168 struct scatterlist *sg = sgtable->sgl + sgtable->nents; in extract_bvec_to_sg()
1214 struct scatterlist *sg = sgtable->sgl + sgtable->nents; in extract_kvec_to_sg()
1274 struct scatterlist *sg = sgtable->sgl + sgtable->nents; in extract_xarray_to_sg()