Lines Matching refs:alloc_size
207 unsigned int alloc_size = num_ents;
216 if (alloc_size > curr_max_ents) {
218 alloc_size = curr_max_ents;
219 sg_size = alloc_size - 1;
221 sg_size = alloc_size;
229 free_fn(sgl, alloc_size);
307 unsigned int sg_size, alloc_size = left;
309 if (alloc_size > curr_max_ents) {
310 alloc_size = curr_max_ents;
311 sg_size = alloc_size - 1;
313 sg_size = alloc_size;
321 sg = alloc_fn(alloc_size, gfp_mask);
336 sg_init_table(sg, alloc_size);
392 unsigned int alloc_size;
401 alloc_size = min_t(unsigned long, needed_sges, SG_MAX_SINGLE_ALLOC);
402 new_sg = sg_kmalloc(alloc_size, gfp_mask);
405 sg_init_table(new_sg, alloc_size);
407 table->total_nents += alloc_size - 1;
411 table->total_nents = alloc_size;