Lines Matching defs:size
577 size_t sdmmc_read_blocks(int lba, uintptr_t buf, size_t size)
584 (size != 0U) &&
585 ((size & MMC_BLOCK_MASK) == 0U));
587 ret = ops->prepare(lba, buf, size);
594 ret = sdmmc_send_cmd(MMC_CMD(23), size / MMC_BLOCK_SIZE,
602 if (size > MMC_BLOCK_SIZE) {
621 ret = ops->read(lba, buf, size);
634 if (!is_cmd23_enabled() && (size > MMC_BLOCK_SIZE)) {
641 return size;
644 size_t sdmmc_write_blocks(int lba, const uintptr_t buf, size_t size)
651 (size != 0U) &&
653 ((size & MMC_BLOCK_MASK) == 0U));
655 ret = ops->prepare(lba, buf, size);
662 ret = sdmmc_send_cmd(MMC_CMD(23), size / MMC_BLOCK_SIZE,
670 if (size > MMC_BLOCK_SIZE) {
688 ret = ops->write(lba, buf, size);
701 if (!is_cmd23_enabled() && (size > MMC_BLOCK_SIZE)) {
708 return size;