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()