Searched refs:sgl (Results 1 – 4 of 4) sorted by relevance
/lib/ |
D | scatterlist.c | 101 struct scatterlist *sg_last(struct scatterlist *sgl, unsigned int nents) in sg_last() argument 106 for_each_sg(sgl, sg, nents, i) in sg_last() 124 void sg_init_table(struct scatterlist *sgl, unsigned int nents) in sg_init_table() argument 126 memset(sgl, 0, sizeof(*sgl) * nents); in sg_init_table() 127 sg_init_marker(sgl, nents); in sg_init_table() 195 struct scatterlist *sgl, *next; in __sg_free_table() local 198 if (unlikely(!table->sgl)) in __sg_free_table() 201 sgl = table->sgl; in __sg_free_table() 213 next = sg_chain_ptr(&sgl[curr_max_ents - 1]); in __sg_free_table() 225 free_fn(sgl, alloc_size); in __sg_free_table() [all …]
|
D | kfifo.c | 295 static int setup_sgl_buf(struct scatterlist *sgl, void *buf, in setup_sgl_buf() argument 321 sg_set_page(sgl, page, l - off, off); in setup_sgl_buf() 322 sgl = sg_next(sgl); in setup_sgl_buf() 323 if (++n == nents || sgl == NULL) in setup_sgl_buf() 330 sg_set_page(sgl, page, len, off); in setup_sgl_buf() 334 static unsigned int setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl, in setup_sgl() argument 350 n = setup_sgl_buf(sgl, fifo->data + off, nents, l); in setup_sgl() 351 n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - l); in setup_sgl() 357 struct scatterlist *sgl, int nents, unsigned int len) in __kfifo_dma_in_prepare() argument 365 return setup_sgl(fifo, sgl, nents, len, fifo->in); in __kfifo_dma_in_prepare() [all …]
|
D | sg_pool.c | 54 static void sg_pool_free(struct scatterlist *sgl, unsigned int nents) in sg_pool_free() argument 59 mempool_free(sgl, sgp->pool); in sg_pool_free() 121 sg_init_table(table->sgl, nents); in sg_alloc_table_chained()
|
/lib/mpi/ |
D | mpicoder.c | 247 int mpi_write_to_sgl(MPI a, struct scatterlist *sgl, unsigned nbytes, in mpi_write_to_sgl() argument 269 nents = sg_nents_for_len(sgl, nbytes); in mpi_write_to_sgl() 273 sg_miter_start(&miter, sgl, nents, SG_MITER_ATOMIC | SG_MITER_TO_SG); in mpi_write_to_sgl() 330 MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int nbytes) in mpi_read_raw_from_sgl() argument 340 ents = sg_nents_for_len(sgl, nbytes); in mpi_read_raw_from_sgl() 344 sg_miter_start(&miter, sgl, ents, SG_MITER_ATOMIC | SG_MITER_FROM_SG); in mpi_read_raw_from_sgl()
|