Lines Matching refs:cnt
173 u16 blk, cnt; in do_mmcrpmb_read() local
184 cnt = simple_strtoul(argv[3], NULL, 16); in do_mmcrpmb_read()
190 curr_device, blk, cnt); in do_mmcrpmb_read()
191 n = mmc_rpmb_read(mmc, addr, blk, cnt, key_addr); in do_mmcrpmb_read()
193 printf("%d RPMB blocks read: %s\n", n, (n == cnt) ? "OK" : "ERROR"); in do_mmcrpmb_read()
194 if (n != cnt) in do_mmcrpmb_read()
201 u16 blk, cnt; in do_mmcrpmb_write() local
212 cnt = simple_strtoul(argv[3], NULL, 16); in do_mmcrpmb_write()
216 curr_device, blk, cnt); in do_mmcrpmb_write()
217 n = mmc_rpmb_write(mmc, addr, blk, cnt, key_addr); in do_mmcrpmb_write()
219 printf("%d RPMB blocks written: %s\n", n, (n == cnt) ? "OK" : "ERROR"); in do_mmcrpmb_write()
220 if (n != cnt) in do_mmcrpmb_write()
297 u32 blk, cnt, n; in do_mmc_read() local
305 cnt = simple_strtoul(argv[3], NULL, 16); in do_mmc_read()
312 curr_device, blk, cnt); in do_mmc_read()
314 n = blk_dread(mmc_get_blk_desc(mmc), blk, cnt, addr); in do_mmc_read()
315 printf("%d blocks read: %s\n", n, (n == cnt) ? "OK" : "ERROR"); in do_mmc_read()
317 return (n == cnt) ? CMD_RET_SUCCESS : CMD_RET_FAILURE; in do_mmc_read()
390 u32 blk, cnt, n; in do_mmc_write() local
398 cnt = simple_strtoul(argv[3], NULL, 16); in do_mmc_write()
405 curr_device, blk, cnt); in do_mmc_write()
411 n = blk_dwrite(mmc_get_blk_desc(mmc), blk, cnt, addr); in do_mmc_write()
412 printf("%d blocks written: %s\n", n, (n == cnt) ? "OK" : "ERROR"); in do_mmc_write()
414 return (n == cnt) ? CMD_RET_SUCCESS : CMD_RET_FAILURE; in do_mmc_write()
420 u32 blk, cnt, n; in do_mmc_erase() local
426 cnt = simple_strtoul(argv[2], NULL, 16); in do_mmc_erase()
433 curr_device, blk, cnt); in do_mmc_erase()
439 n = blk_derase(mmc_get_blk_desc(mmc), blk, cnt); in do_mmc_erase()
440 printf("%d blocks erased: %s\n", n, (n == cnt) ? "OK" : "ERROR"); in do_mmc_erase()
442 return (n == cnt) ? CMD_RET_SUCCESS : CMD_RET_FAILURE; in do_mmc_erase()