Lines Matching defs:max_segs
66 * @max_segs: maximum segments allowed by driver in scatterlist @sg
77 unsigned int max_segs;
319 unsigned int max_segs,
337 if (max_segs > max_page_cnt)
338 max_segs = max_page_cnt;
344 mem->arr = kzalloc(sizeof(struct mmc_test_pages) * max_segs,
374 if (mem->cnt >= max_segs) {
394 unsigned int max_segs, unsigned int max_seg_sz,
401 sg_init_table(sglist, max_segs);
402 if (min_sg_len > max_segs)
403 min_sg_len = max_segs;
446 unsigned int max_segs,
455 sg_init_table(sglist, max_segs);
1432 t->max_segs, t->max_seg_sz,
1435 err = mmc_test_map_sg(t->mem, sz, t->sg, 1, t->max_segs,
1478 max_tfr = t->max_segs * PAGE_SIZE;
1480 max_tfr = t->max_segs * t->max_seg_sz;
1582 t->max_segs = test->card->host->max_segs;
1591 if (t->max_tfr / t->max_seg_sz > t->max_segs)
1592 t->max_tfr = t->max_segs * t->max_seg_sz;
1600 t->mem = mmc_test_alloc_mem(min_sz, t->max_tfr, t->max_segs,
1605 t->sg = kmalloc(sizeof(struct scatterlist) * t->max_segs, GFP_KERNEL);
2026 max_tfr = t->max_segs * PAGE_SIZE;
2028 max_tfr = t->max_segs * t->max_seg_sz;