Searched refs:priv_data (Results 1 – 1 of 1) sorted by relevance
39 void *priv_data; member68 dev->priv_data = dev->ops->open(params); in flash_open()69 if (!dev->priv_data) in flash_open()75 dev->total_size = dev->ops->get_size(dev->priv_data); in flash_open()76 dev->write_size = dev->ops->get_write_size(dev->priv_data); in flash_open()77 dev->erase_size = dev->ops->get_erase_size(dev->priv_data); in flash_open()89 dev->ops->close(dev->priv_data); in flash_close()99 return dev->ops->read(dev->priv_data, off, buff, len); in flash_read()109 return dev->ops->write(dev->priv_data, off, buff, len); in flash_write()120 return dev->ops->erase(dev->priv_data, off, len); in flash_erase()[all …]