• Home
  • Raw
  • Download

Lines Matching refs:sz

416 	unsigned long sz = size;  in mmc_test_map_sg()  local
429 if (len > sz) in mmc_test_map_sg()
430 len = sz; in mmc_test_map_sg()
440 sz -= len; in mmc_test_map_sg()
442 if (!sz) in mmc_test_map_sg()
445 } while (sz && repeat); in mmc_test_map_sg()
447 if (sz) in mmc_test_map_sg()
461 unsigned long sz, in mmc_test_map_sg_max_scatter() argument
475 while (sz) { in mmc_test_map_sg_max_scatter()
478 while (sz && cnt) { in mmc_test_map_sg_max_scatter()
486 if (len > sz) in mmc_test_map_sg_max_scatter()
487 len = sz; in mmc_test_map_sg_max_scatter()
495 sz -= len; in mmc_test_map_sg_max_scatter()
1389 static int mmc_test_area_map(struct mmc_test_card *test, unsigned long sz, in mmc_test_area_map() argument
1396 t->blocks = sz >> 9; in mmc_test_area_map()
1399 err = mmc_test_map_sg_max_scatter(t->mem, sz, t->sg, in mmc_test_area_map()
1403 err = mmc_test_map_sg(t->mem, sz, t->sg, 1, t->max_segs, in mmc_test_area_map()
1411 err = mmc_test_map_sg_max_scatter(t->mem, sz, t->sg_areq, in mmc_test_area_map()
1415 err = mmc_test_map_sg(t->mem, sz, t->sg_areq, 1, t->max_segs, in mmc_test_area_map()
1443 static int mmc_test_area_io_seq(struct mmc_test_card *test, unsigned long sz, in mmc_test_area_io_seq() argument
1464 if (sz > max_tfr) in mmc_test_area_io_seq()
1465 sz = max_tfr; in mmc_test_area_io_seq()
1468 ret = mmc_test_area_map(test, sz, max_scatter, min_sg_len, nonblock); in mmc_test_area_io_seq()
1479 dev_addr += sz >> 9; in mmc_test_area_io_seq()
1489 mmc_test_print_avg_rate(test, sz, count, &ts1, &ts2); in mmc_test_area_io_seq()
1494 static int mmc_test_area_io(struct mmc_test_card *test, unsigned long sz, in mmc_test_area_io() argument
1498 return mmc_test_area_io_seq(test, sz, dev_addr, write, max_scatter, in mmc_test_area_io()
1550 unsigned long min_sz = 64 * 1024, sz; in mmc_test_area_init() local
1558 sz = (unsigned long)test->card->pref_erase << 9; in mmc_test_area_init()
1559 t->max_sz = sz; in mmc_test_area_init()
1561 t->max_sz += sz; in mmc_test_area_init()
1562 while (t->max_sz > TEST_AREA_MAX_SIZE && t->max_sz > sz) in mmc_test_area_init()
1563 t->max_sz -= sz; in mmc_test_area_init()
1702 unsigned long sz; in mmc_test_profile_read_perf() local
1706 for (sz = 512; sz < t->max_tfr; sz <<= 1) { in mmc_test_profile_read_perf()
1707 dev_addr = t->dev_addr + (sz >> 9); in mmc_test_profile_read_perf()
1708 ret = mmc_test_area_io(test, sz, dev_addr, 0, 0, 1); in mmc_test_profile_read_perf()
1712 sz = t->max_tfr; in mmc_test_profile_read_perf()
1714 return mmc_test_area_io(test, sz, dev_addr, 0, 0, 1); in mmc_test_profile_read_perf()
1723 unsigned long sz; in mmc_test_profile_write_perf() local
1730 for (sz = 512; sz < t->max_tfr; sz <<= 1) { in mmc_test_profile_write_perf()
1731 dev_addr = t->dev_addr + (sz >> 9); in mmc_test_profile_write_perf()
1732 ret = mmc_test_area_io(test, sz, dev_addr, 1, 0, 1); in mmc_test_profile_write_perf()
1739 sz = t->max_tfr; in mmc_test_profile_write_perf()
1741 return mmc_test_area_io(test, sz, dev_addr, 1, 0, 1); in mmc_test_profile_write_perf()
1750 unsigned long sz; in mmc_test_profile_trim_perf() local
1761 for (sz = 512; sz < t->max_sz; sz <<= 1) { in mmc_test_profile_trim_perf()
1762 dev_addr = t->dev_addr + (sz >> 9); in mmc_test_profile_trim_perf()
1764 ret = mmc_erase(test->card, dev_addr, sz >> 9, MMC_TRIM_ARG); in mmc_test_profile_trim_perf()
1768 mmc_test_print_rate(test, sz, &ts1, &ts2); in mmc_test_profile_trim_perf()
1772 ret = mmc_erase(test->card, dev_addr, sz >> 9, MMC_TRIM_ARG); in mmc_test_profile_trim_perf()
1776 mmc_test_print_rate(test, sz, &ts1, &ts2); in mmc_test_profile_trim_perf()
1780 static int mmc_test_seq_read_perf(struct mmc_test_card *test, unsigned long sz) in mmc_test_seq_read_perf() argument
1787 cnt = t->max_sz / sz; in mmc_test_seq_read_perf()
1791 ret = mmc_test_area_io(test, sz, dev_addr, 0, 0, 0); in mmc_test_seq_read_perf()
1794 dev_addr += (sz >> 9); in mmc_test_seq_read_perf()
1797 mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2); in mmc_test_seq_read_perf()
1807 unsigned long sz; in mmc_test_profile_seq_read_perf() local
1810 for (sz = 512; sz < t->max_tfr; sz <<= 1) { in mmc_test_profile_seq_read_perf()
1811 ret = mmc_test_seq_read_perf(test, sz); in mmc_test_profile_seq_read_perf()
1815 sz = t->max_tfr; in mmc_test_profile_seq_read_perf()
1816 return mmc_test_seq_read_perf(test, sz); in mmc_test_profile_seq_read_perf()
1819 static int mmc_test_seq_write_perf(struct mmc_test_card *test, unsigned long sz) in mmc_test_seq_write_perf() argument
1829 cnt = t->max_sz / sz; in mmc_test_seq_write_perf()
1833 ret = mmc_test_area_io(test, sz, dev_addr, 1, 0, 0); in mmc_test_seq_write_perf()
1836 dev_addr += (sz >> 9); in mmc_test_seq_write_perf()
1839 mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2); in mmc_test_seq_write_perf()
1849 unsigned long sz; in mmc_test_profile_seq_write_perf() local
1852 for (sz = 512; sz < t->max_tfr; sz <<= 1) { in mmc_test_profile_seq_write_perf()
1853 ret = mmc_test_seq_write_perf(test, sz); in mmc_test_profile_seq_write_perf()
1857 sz = t->max_tfr; in mmc_test_profile_seq_write_perf()
1858 return mmc_test_seq_write_perf(test, sz); in mmc_test_profile_seq_write_perf()
1867 unsigned long sz; in mmc_test_profile_seq_trim_perf() local
1878 for (sz = 512; sz <= t->max_sz; sz <<= 1) { in mmc_test_profile_seq_trim_perf()
1885 cnt = t->max_sz / sz; in mmc_test_profile_seq_trim_perf()
1889 ret = mmc_erase(test->card, dev_addr, sz >> 9, in mmc_test_profile_seq_trim_perf()
1893 dev_addr += (sz >> 9); in mmc_test_profile_seq_trim_perf()
1896 mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2); in mmc_test_profile_seq_trim_perf()
1913 unsigned long sz) in mmc_test_rnd_perf() argument
1920 ssz = sz >> 9; in mmc_test_rnd_perf()
1938 ret = mmc_test_area_io(test, sz, dev_addr, write, 0, 0); in mmc_test_rnd_perf()
1943 mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2); in mmc_test_rnd_perf()
1951 unsigned long sz; in mmc_test_random_perf() local
1954 for (sz = 512; sz < t->max_tfr; sz <<= 1) { in mmc_test_random_perf()
1962 ret = mmc_test_rnd_perf(test, write, 0, sz); in mmc_test_random_perf()
1967 ret = mmc_test_rnd_perf(test, write, 1, sz); in mmc_test_random_perf()
1971 sz = t->max_tfr; in mmc_test_random_perf()
1974 ret = mmc_test_rnd_perf(test, write, 0, sz); in mmc_test_random_perf()
1979 return mmc_test_rnd_perf(test, write, 1, sz); in mmc_test_random_perf()
2002 unsigned int dev_addr, i, cnt, sz, ssz; in mmc_test_seq_perf() local
2006 sz = t->max_tfr; in mmc_test_seq_perf()
2019 if (sz > max_tfr) in mmc_test_seq_perf()
2020 sz = max_tfr; in mmc_test_seq_perf()
2023 ssz = sz >> 9; in mmc_test_seq_perf()
2027 cnt = tot_sz / sz; in mmc_test_seq_perf()
2032 ret = mmc_test_area_io(test, sz, dev_addr, write, in mmc_test_seq_perf()
2040 mmc_test_print_avg_rate(test, sz, cnt, &ts1, &ts2); in mmc_test_seq_perf()
2476 unsigned long sz, int use_sbc, int write, in __mmc_test_cmds_during_tfr() argument
2485 ret = mmc_test_area_map(test, sz, 0, 0, use_areq); in __mmc_test_cmds_during_tfr()
2502 unsigned long sz; in mmc_test_cmds_during_tfr() local
2505 for (sz = 512; sz <= t->max_tfr; sz += 512) { in mmc_test_cmds_during_tfr()
2506 ret = __mmc_test_cmds_during_tfr(test, sz, use_sbc, write, in mmc_test_cmds_during_tfr()