Lines Matching refs:ops
26 static const struct mmc_ops *ops; variable
66 ret = ops->send_cmd(&cmd); in mmc_send_cmd()
172 ret = ops->prepare(0, (uintptr_t)&scr, sizeof(scr)); in mmc_sd_switch()
196 ret = ops->read(0, (uintptr_t)&scr, sizeof(scr)); in mmc_sd_switch()
253 return ops->set_ios(clk, width); in mmc_set_ios()
269 ret = ops->prepare(0, (uintptr_t)&mmc_ext_csd, in mmc_fill_device_info()
281 ret = ops->read(0, (uintptr_t)&mmc_ext_csd, in mmc_fill_device_info()
374 ret = ops->prepare(0, (uintptr_t)&sd_switch_func_status, in sd_switch()
389 return ops->read(0, (uintptr_t)&sd_switch_func_status, in sd_switch()
481 ops->init(); in mmc_enumerate()
584 ret = ops->set_ios(clk, bus_width); in mmc_enumerate()
595 assert((ops != NULL) && in mmc_read_blocks()
596 (ops->read != NULL) && in mmc_read_blocks()
600 ret = ops->prepare(lba, buf, size); in mmc_read_blocks()
634 ret = ops->read(lba, buf, size); in mmc_read_blocks()
662 assert((ops != NULL) && in mmc_write_blocks()
663 (ops->write != NULL) && in mmc_write_blocks()
668 ret = ops->prepare(lba, buf, size); in mmc_write_blocks()
701 ret = ops->write(lba, buf, size); in mmc_write_blocks()
728 assert(ops != NULL); in mmc_erase_blocks()
846 ops = ops_ptr; in mmc_init()