Lines Matching refs:lba
596 size_t mmc_read_blocks(int lba, uintptr_t buf, size_t size) in mmc_read_blocks() argument
606 ret = ops->prepare(lba, buf, size); in mmc_read_blocks()
630 cmd_arg = lba * MMC_BLOCK_SIZE; in mmc_read_blocks()
632 cmd_arg = lba; in mmc_read_blocks()
640 ret = ops->read(lba, buf, size); in mmc_read_blocks()
663 size_t mmc_write_blocks(int lba, const uintptr_t buf, size_t size) in mmc_write_blocks() argument
674 ret = ops->prepare(lba, buf, size); in mmc_write_blocks()
697 cmd_arg = lba * MMC_BLOCK_SIZE; in mmc_write_blocks()
699 cmd_arg = lba; in mmc_write_blocks()
707 ret = ops->write(lba, buf, size); in mmc_write_blocks()
730 size_t mmc_erase_blocks(int lba, size_t size) in mmc_erase_blocks() argument
737 ret = mmc_send_cmd(MMC_CMD(35), lba, MMC_RESPONSE_R1, NULL); in mmc_erase_blocks()
742 ret = mmc_send_cmd(MMC_CMD(36), lba + (size / MMC_BLOCK_SIZE) - 1U, in mmc_erase_blocks()
748 ret = mmc_send_cmd(MMC_CMD(38), lba, MMC_RESPONSE_R1B, NULL); in mmc_erase_blocks()
814 size_t mmc_boot_part_read_blocks(int lba, uintptr_t buf, size_t size) in mmc_boot_part_read_blocks() argument
824 size_read = mmc_read_blocks(lba, buf, size); in mmc_boot_part_read_blocks()