Lines Matching defs:size
590 size_t mmc_read_blocks(int lba, uintptr_t buf, size_t size)
597 (size != 0U) &&
598 ((size & MMC_BLOCK_MASK) == 0U));
600 ret = ops->prepare(lba, buf, size);
607 ret = mmc_send_cmd(MMC_CMD(23), size / MMC_BLOCK_SIZE,
615 if (size > MMC_BLOCK_SIZE) {
634 ret = ops->read(lba, buf, size);
647 if (!is_cmd23_enabled() && (size > MMC_BLOCK_SIZE)) {
654 return size;
657 size_t mmc_write_blocks(int lba, const uintptr_t buf, size_t size)
664 (size != 0U) &&
666 ((size & MMC_BLOCK_MASK) == 0U));
668 ret = ops->prepare(lba, buf, size);
675 ret = mmc_send_cmd(MMC_CMD(23), size / MMC_BLOCK_SIZE,
683 if (size > MMC_BLOCK_SIZE) {
701 ret = ops->write(lba, buf, size);
714 if (!is_cmd23_enabled() && (size > MMC_BLOCK_SIZE)) {
721 return size;
724 size_t mmc_erase_blocks(int lba, size_t size)
729 assert((size != 0U) && ((size & MMC_BLOCK_MASK) == 0U));
736 ret = mmc_send_cmd(MMC_CMD(36), lba + (size / MMC_BLOCK_SIZE) - 1U,
754 return size;
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);