Lines Matching refs:alloc_size
203 unsigned int alloc_size = table->orig_nents; in __sg_free_table() local
212 if (alloc_size > curr_max_ents) { in __sg_free_table()
214 alloc_size = curr_max_ents; in __sg_free_table()
215 sg_size = alloc_size - 1; in __sg_free_table()
217 sg_size = alloc_size; in __sg_free_table()
225 free_fn(sgl, alloc_size); in __sg_free_table()
288 unsigned int sg_size, alloc_size = left; in __sg_alloc_table() local
290 if (alloc_size > curr_max_ents) { in __sg_alloc_table()
291 alloc_size = curr_max_ents; in __sg_alloc_table()
292 sg_size = alloc_size - 1; in __sg_alloc_table()
294 sg_size = alloc_size; in __sg_alloc_table()
302 sg = alloc_fn(alloc_size, gfp_mask); in __sg_alloc_table()
317 sg_init_table(sg, alloc_size); in __sg_alloc_table()
374 unsigned int alloc_size; in get_next_sg() local
383 alloc_size = min_t(unsigned long, needed_sges, SG_MAX_SINGLE_ALLOC); in get_next_sg()
384 new_sg = sg_kmalloc(alloc_size, gfp_mask); in get_next_sg()
387 sg_init_table(new_sg, alloc_size); in get_next_sg()
390 table->orig_nents += alloc_size - 1; in get_next_sg()
393 table->orig_nents = alloc_size; in get_next_sg()