Lines Matching refs:blocks
77 u32 blocks, round, sector; in do_test_storage() local
130 blocks = part.size > 0x10000 ? 0x10000 : part.size; in do_test_storage()
134 if (blocks % 2) in do_test_storage()
135 blocks += 1; in do_test_storage()
139 sector, sector + blocks, in do_test_storage()
140 (blocks * dev_desc->blksz) >> 20, round); in do_test_storage()
144 w_buf = sysmem_alloc_by_name("storage_w", blocks * dev_desc->blksz); in do_test_storage()
146 w_buf = memalign(CONFIG_SYS_CACHELINE_SIZE, blocks * dev_desc->blksz); in do_test_storage()
154 r_buf = sysmem_alloc_by_name("storage_r", blocks * dev_desc->blksz); in do_test_storage()
156 r_buf = memalign(CONFIG_SYS_CACHELINE_SIZE, blocks * dev_desc->blksz); in do_test_storage()
164 for (i = 0; i < blocks * dev_desc->blksz; i++) { in do_test_storage()
173 devtype, (u32)(ulong)w_buf, sector, blocks); in do_test_storage()
183 ret = blk_dwrite(dev_desc, sector, blocks, w_buf); in do_test_storage()
184 if (ret != blocks) { in do_test_storage()
194 label, blocks * round / 2048, ts, (blocks * round >> 1) / ts); in do_test_storage()
200 devtype, (u32)(ulong)r_buf, sector, blocks); in do_test_storage()
211 ret = blk_dread(dev_desc, sector, blocks, r_buf); in do_test_storage()
212 if (ret != blocks) { in do_test_storage()
222 label, blocks * round / 2048, ts, (blocks * round >> 1) / ts); in do_test_storage()
225 for (i = 0; i < blocks * dev_desc->blksz; i++) { in do_test_storage()