Home | History | Annotate | Download | only in updater

Lines Matching defs:flash_device

26 #include "flash_device.h"
37 struct flash_device {
48 struct flash_device *flash_open(const char *name, const void *params)
51 struct flash_device *dev;
63 dev = calloc(1, sizeof(struct flash_device));
87 void flash_close(struct flash_device *dev)
97 int flash_read(struct flash_device *dev, off_t off, void *buff, size_t len)
102 int flash_write(struct flash_device *dev, off_t off, void *buff, size_t len)
112 int flash_erase(struct flash_device *dev, off_t off, size_t len)
123 size_t flash_get_size(struct flash_device *dev)
128 struct fmap *flash_get_fmap(struct flash_device *dev)
142 uint8_t *flash_get_gbb(struct flash_device *dev, size_t *size)
155 int flash_cmd(struct flash_device *dev, int cmd, int ver,