Lines Matching refs:g_boot_ops
47 static const struct flash_boot_ops *g_boot_ops; variable
91 if (g_boot_ops->read(0, 4, g_part) == 0) { in rk_partition_init()
94 desity = g_boot_ops->get_capacity(); in rk_partition_init()
170 if (g_boot_ops->discard) in rkflash_blk_discard()
171 ret = g_boot_ops->discard(sec, n_sec); in rkflash_blk_discard()
200 ret = g_boot_ops->read(start, nsector, buf); in rkflash_blk_xfer()
210 ret = g_boot_ops->write(start, nsector, buf); in rkflash_blk_xfer()
420 ret = g_boot_ops->gc(); in nand_gc_do_work()
661 part.size = g_boot_ops->get_capacity(); in rkflash_blk_register()
697 if (g_boot_ops->vendor_read) { in rkflash_dev_vendor_read()
699 ret = g_boot_ops->vendor_read(sec, n_sec, p_data); in rkflash_dev_vendor_read()
712 if (g_boot_ops->vendor_write) { in rkflash_dev_vendor_write()
714 ret = g_boot_ops->vendor_write(sec, in rkflash_dev_vendor_write()
746 g_boot_ops = ops; in rkflash_dev_init()
830 g_boot_ops->resume(reg_addr); in rkflash_dev_resume()
843 g_boot_ops->deinit(); in rkflash_dev_shutdown()