Lines Matching refs:alloc_size
203 unsigned int alloc_size = table->orig_nents; in __sg_free_table() local
212 if (alloc_size > max_ents) { in __sg_free_table()
214 alloc_size = 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()
282 unsigned int sg_size, alloc_size = left; in __sg_alloc_table() local
284 if (alloc_size > max_ents) { in __sg_alloc_table()
285 alloc_size = max_ents; in __sg_alloc_table()
286 sg_size = alloc_size - 1; in __sg_alloc_table()
288 sg_size = alloc_size; in __sg_alloc_table()
296 sg = alloc_fn(alloc_size, gfp_mask); in __sg_alloc_table()
311 sg_init_table(sg, alloc_size); in __sg_alloc_table()