Lines Matching refs:max_segs
79 unsigned int max_segs; member
321 unsigned int max_segs, in mmc_test_alloc_mem() argument
339 if (max_segs > max_page_cnt) in mmc_test_alloc_mem()
340 max_segs = max_page_cnt; in mmc_test_alloc_mem()
346 mem->arr = kzalloc(sizeof(struct mmc_test_pages) * max_segs, in mmc_test_alloc_mem()
376 if (mem->cnt >= max_segs) { in mmc_test_alloc_mem()
396 unsigned int max_segs, unsigned int max_seg_sz, in mmc_test_map_sg() argument
403 sg_init_table(sglist, max_segs); in mmc_test_map_sg()
404 if (min_sg_len > max_segs) in mmc_test_map_sg()
405 min_sg_len = max_segs; in mmc_test_map_sg()
448 unsigned int max_segs, in mmc_test_map_sg_max_scatter() argument
457 sg_init_table(sglist, max_segs); in mmc_test_map_sg_max_scatter()
1434 t->max_segs, t->max_seg_sz, in mmc_test_area_map()
1437 err = mmc_test_map_sg(t->mem, sz, t->sg, 1, t->max_segs, in mmc_test_area_map()
1480 max_tfr = t->max_segs * PAGE_SIZE; in mmc_test_area_io_seq()
1482 max_tfr = t->max_segs * t->max_seg_sz; in mmc_test_area_io_seq()
1584 t->max_segs = test->card->host->max_segs; in mmc_test_area_init()
1593 if (t->max_tfr / t->max_seg_sz > t->max_segs) in mmc_test_area_init()
1594 t->max_tfr = t->max_segs * t->max_seg_sz; in mmc_test_area_init()
1602 t->mem = mmc_test_alloc_mem(min_sz, t->max_tfr, t->max_segs, in mmc_test_area_init()
1607 t->sg = kmalloc(sizeof(struct scatterlist) * t->max_segs, GFP_KERNEL); in mmc_test_area_init()
2028 max_tfr = t->max_segs * PAGE_SIZE; in mmc_test_seq_perf()
2030 max_tfr = t->max_segs * t->max_seg_sz; in mmc_test_seq_perf()