Lines Matching refs:max_segs
79 unsigned int max_segs; member
315 unsigned int max_segs, in mmc_test_alloc_mem() argument
333 if (max_segs > max_page_cnt) in mmc_test_alloc_mem()
334 max_segs = max_page_cnt; in mmc_test_alloc_mem()
340 mem->arr = kzalloc(sizeof(struct mmc_test_pages) * max_segs, in mmc_test_alloc_mem()
370 if (mem->cnt >= max_segs) { in mmc_test_alloc_mem()
390 unsigned int max_segs, unsigned int max_seg_sz, in mmc_test_map_sg() argument
397 sg_init_table(sglist, max_segs); in mmc_test_map_sg()
398 if (min_sg_len > max_segs) in mmc_test_map_sg()
399 min_sg_len = max_segs; in mmc_test_map_sg()
442 unsigned int max_segs, in mmc_test_map_sg_max_scatter() argument
451 sg_init_table(sglist, max_segs); in mmc_test_map_sg_max_scatter()
1362 t->max_segs, t->max_seg_sz, in mmc_test_area_map()
1365 err = mmc_test_map_sg(t->mem, sz, t->sg, 1, t->max_segs, in mmc_test_area_map()
1408 max_tfr = t->max_segs * PAGE_SIZE; in mmc_test_area_io_seq()
1410 max_tfr = t->max_segs * t->max_seg_sz; in mmc_test_area_io_seq()
1512 t->max_segs = test->card->host->max_segs; in mmc_test_area_init()
1521 if (t->max_tfr / t->max_seg_sz > t->max_segs) in mmc_test_area_init()
1522 t->max_tfr = t->max_segs * t->max_seg_sz; in mmc_test_area_init()
1530 t->mem = mmc_test_alloc_mem(min_sz, t->max_tfr, t->max_segs, in mmc_test_area_init()
1535 t->sg = kmalloc(sizeof(struct scatterlist) * t->max_segs, GFP_KERNEL); in mmc_test_area_init()
1956 max_tfr = t->max_segs * PAGE_SIZE; in mmc_test_seq_perf()
1958 max_tfr = t->max_segs * t->max_seg_sz; in mmc_test_seq_perf()