Searched refs:max_ents (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/lib/
H A Dscatterlist.c195 * @max_ents: The maximum number of entries per single scatterlist
201 * __sg_alloc_table(). The @max_ents value must be identical to
205 void __sg_free_table(struct sg_table *table, unsigned int max_ents, __sg_free_table() argument
219 * If we have more than max_ents segments left, __sg_free_table()
224 if (alloc_size > max_ents) { __sg_free_table()
225 next = sg_chain_ptr(&sgl[max_ents - 1]); __sg_free_table()
226 alloc_size = max_ents; __sg_free_table()
260 * @max_ents: The maximum number of entries the allocator returns per call
266 * defined to return scatterlist chunks of maximum size @max_ents.
267 * Thus if @nents is bigger than @max_ents, the scatterlists will be
268 * chained in units of @max_ents.
276 unsigned int max_ents, struct scatterlist *first_chunk, __sg_alloc_table()
287 if (WARN_ON_ONCE(nents > max_ents)) __sg_alloc_table()
296 if (alloc_size > max_ents) { __sg_alloc_table()
297 alloc_size = max_ents; __sg_alloc_table()
331 sg_chain(prv, max_ents, sg); __sg_alloc_table()
275 __sg_alloc_table(struct sg_table *table, unsigned int nents, unsigned int max_ents, struct scatterlist *first_chunk, gfp_t gfp_mask, sg_alloc_fn *alloc_fn) __sg_alloc_table() argument

Completed in 186 milliseconds