Lines Matching refs:max_ents
181 * @max_ents: The maximum number of entries per single scatterlist
188 * __sg_alloc_table(). The @max_ents value must be identical to
192 void __sg_free_table(struct sg_table *table, unsigned int max_ents,
196 unsigned curr_max_ents = nents_first_chunk ?: max_ents;
207 * If we have more than max_ents segments left,
227 curr_max_ents = max_ents;
249 * @max_ents: The maximum number of entries the allocator returns per call
257 * defined to return scatterlist chunks of maximum size @max_ents.
258 * Thus if @nents is bigger than @max_ents, the scatterlists will be
259 * chained in units of @max_ents.
267 unsigned int max_ents, struct scatterlist *first_chunk,
273 unsigned curr_max_ents = nents_first_chunk ?: max_ents;
281 if (WARN_ON_ONCE(nents > max_ents))
337 curr_max_ents = max_ents;