Lines Matching refs:max_ents
148 * @max_ents: The maximum number of entries per single scatterlist
153 * __sg_alloc_table(). The @max_ents value must be identical to
157 void __sg_free_table(struct sg_table *table, unsigned int max_ents,
171 * If we have more than max_ents segments left,
176 if (alloc_size > max_ents) {
177 next = sg_chain_ptr(&sgl[max_ents - 1]);
178 alloc_size = max_ents;
209 * @max_ents: The maximum number of entries the allocator returns per call
215 * defined to return scatterlist chunks of maximum size @max_ents.
216 * Thus if @nents is bigger than @max_ents, the scatterlists will be
217 * chained in units of @max_ents.
225 unsigned int max_ents, gfp_t gfp_mask,
232 BUG_ON(nents > max_ents);
242 if (alloc_size > max_ents) {
243 alloc_size = max_ents;
272 sg_chain(prv, max_ents, sg);