Lines Matching refs:max_segs

77 	unsigned int max_segs;  member
319 unsigned int max_segs, in mmc_test_alloc_mem() argument
337 if (max_segs > max_page_cnt) in mmc_test_alloc_mem()
338 max_segs = max_page_cnt; in mmc_test_alloc_mem()
344 mem->arr = kzalloc(sizeof(struct mmc_test_pages) * max_segs, in mmc_test_alloc_mem()
374 if (mem->cnt >= max_segs) { in mmc_test_alloc_mem()
394 unsigned int max_segs, unsigned int max_seg_sz, in mmc_test_map_sg() argument
401 sg_init_table(sglist, max_segs); in mmc_test_map_sg()
402 if (min_sg_len > max_segs) in mmc_test_map_sg()
403 min_sg_len = max_segs; in mmc_test_map_sg()
446 unsigned int max_segs, in mmc_test_map_sg_max_scatter() argument
455 sg_init_table(sglist, max_segs); in mmc_test_map_sg_max_scatter()
1432 t->max_segs, t->max_seg_sz, in mmc_test_area_map()
1435 err = mmc_test_map_sg(t->mem, sz, t->sg, 1, t->max_segs, in mmc_test_area_map()
1478 max_tfr = t->max_segs * PAGE_SIZE; in mmc_test_area_io_seq()
1480 max_tfr = t->max_segs * t->max_seg_sz; in mmc_test_area_io_seq()
1582 t->max_segs = test->card->host->max_segs; in mmc_test_area_init()
1591 if (t->max_tfr / t->max_seg_sz > t->max_segs) in mmc_test_area_init()
1592 t->max_tfr = t->max_segs * t->max_seg_sz; in mmc_test_area_init()
1600 t->mem = mmc_test_alloc_mem(min_sz, t->max_tfr, t->max_segs, in mmc_test_area_init()
1605 t->sg = kmalloc(sizeof(struct scatterlist) * t->max_segs, GFP_KERNEL); in mmc_test_area_init()
2026 max_tfr = t->max_segs * PAGE_SIZE; in mmc_test_seq_perf()
2028 max_tfr = t->max_segs * t->max_seg_sz; in mmc_test_seq_perf()