Lines Matching defs:lba
590 size_t mmc_read_blocks(int lba, uintptr_t buf, size_t size)
600 ret = ops->prepare(lba, buf, size);
624 cmd_arg = lba * MMC_BLOCK_SIZE;
626 cmd_arg = lba;
634 ret = ops->read(lba, buf, size);
657 size_t mmc_write_blocks(int lba, const uintptr_t buf, size_t size)
668 ret = ops->prepare(lba, buf, size);
691 cmd_arg = lba * MMC_BLOCK_SIZE;
693 cmd_arg = lba;
701 ret = ops->write(lba, buf, size);
724 size_t mmc_erase_blocks(int lba, size_t size)
731 ret = mmc_send_cmd(MMC_CMD(35), lba, MMC_RESPONSE_R1, NULL);
736 ret = mmc_send_cmd(MMC_CMD(36), lba + (size / MMC_BLOCK_SIZE) - 1U,
742 ret = mmc_send_cmd(MMC_CMD(38), lba, MMC_RESPONSE_R1B, NULL);
807 size_t mmc_boot_part_read_blocks(int lba, uintptr_t buf, size_t size)
817 size_read = mmc_read_blocks(lba, buf, size);