Home
last modified time | relevance | path

Searched refs:nents (Results 1 – 5 of 5) sorted by relevance

/lib/
A Dsg_pool.c40 static inline unsigned int sg_pool_index(unsigned short nents) in sg_pool_index() argument
44 BUG_ON(nents > SG_CHUNK_SIZE); in sg_pool_index()
46 if (nents <= 8) in sg_pool_index()
49 index = get_count_order(nents) - 3; in sg_pool_index()
58 sgp = sg_pools + sg_pool_index(nents); in sg_pool_free()
66 sgp = sg_pools + sg_pool_index(nents); in sg_pool_alloc()
117 BUG_ON(!nents); in sg_alloc_table_chained()
120 if (nents <= nents_first_chunk) { in sg_alloc_table_chained()
121 table->nents = table->orig_nents = nents; in sg_alloc_table_chained()
122 sg_init_table(table->sgl, nents); in sg_alloc_table_chained()
[all …]
A Dscatterlist.c27 int nents; in sg_nents() local
29 nents++; in sg_nents()
30 return nents; in sg_nents()
50 int nents; in sg_nents_for_len() local
57 nents++; in sg_nents_for_len()
60 return nents; in sg_nents_for_len()
275 if (nents == 0) in __sg_alloc_table()
282 left = nents; in __sg_alloc_table()
1124 sgtable->nents++; in extract_user_to_sg()
1168 sgtable->nents++; in extract_bvec_to_sg()
[all …]
A Dsg_split.c13 int nents; member
20 static int sg_calculate_split(struct scatterlist *in, int nents, int nb_splits, in sg_calculate_split() argument
32 splitters[i].nents = 0; in sg_calculate_split()
35 for_each_sg(in, sg, nents, i) { in sg_calculate_split()
48 curr->nents++; in sg_calculate_split()
59 curr->nents = 1; in sg_calculate_split()
86 for (j = 0; j < split->nents; j++, out_sg++) { in sg_split_phys()
110 for (j = 0; j < split->nents; j++, out_sg++) { in sg_split_mapped()
166 splitters[i].out_sg = kmalloc_array(splitters[i].nents, in sg_split()
188 out_mapped_nents[i] = splitters[i].nents; in sg_split()
A Dkfifo.c310 unsigned int data_offset, int nents, in setup_sgl_buf() argument
315 if (!nents || !len) in setup_sgl_buf()
329 int nents, unsigned int len, unsigned int off, dma_addr_t dma) in setup_sgl() argument
344 n = setup_sgl_buf(fifo, sgl, off, nents, len_to_end, dma); in setup_sgl()
351 struct scatterlist *sgl, int nents, unsigned int len, in __kfifo_dma_in_prepare() argument
360 return setup_sgl(fifo, sgl, nents, len, fifo->in, dma); in __kfifo_dma_in_prepare()
365 struct scatterlist *sgl, int nents, unsigned int len, in __kfifo_dma_out_prepare() argument
374 return setup_sgl(fifo, sgl, nents, len, fifo->out, dma); in __kfifo_dma_out_prepare()
561 BUG_ON(!nents); in __kfifo_dma_in_prepare_r()
568 return setup_sgl(fifo, sgl, nents, len, fifo->in + recsize, dma); in __kfifo_dma_in_prepare_r()
[all …]
/lib/crypto/mpi/
A Dmpicoder.c262 int nents; in mpi_write_to_sgl() local
270 nents = sg_nents_for_len(sgl, nbytes); in mpi_write_to_sgl()
271 if (nents < 0) in mpi_write_to_sgl()
274 sg_miter_start(&miter, sgl, nents, SG_MITER_ATOMIC | SG_MITER_TO_SG); in mpi_write_to_sgl()

Completed in 12 milliseconds