Searched refs:flash_device (Results 1 – 8 of 8) sorted by relevance
/device/google/dragon/recovery/updater/ |
D | flash_device.h | 40 struct flash_device; 42 struct flash_device *flash_open(const char *name, const void *params); 43 void flash_close(struct flash_device *dev); 44 int flash_read(struct flash_device *dev, off_t off, void *buff, size_t len); 45 int flash_write(struct flash_device *dev, off_t off, void *buff, size_t len); 46 int flash_erase(struct flash_device *dev, off_t off, size_t len); 47 size_t flash_get_size(struct flash_device *dev); 48 int flash_cmd(struct flash_device *dev, int cmd, int ver, 51 struct fmap *flash_get_fmap(struct flash_device *dev); 52 uint8_t *flash_get_gbb(struct flash_device *dev, size_t *size);
|
D | vboot_interface.h | 30 off_t fmap_scan_offset(struct flash_device *dev, off_t end); 31 struct fmap *fmap_load(struct flash_device *dev, off_t offset); 32 void *fmap_read_section(struct flash_device *dev, 34 int fmap_get_section_offset(struct flash_device *dev, const char *name, 37 uint8_t *gbb_get_rootkey(struct flash_device *dev, size_t *size); 54 int vbnv_set_flag(struct flash_device *spi, const char *param, uint8_t value); 55 int vbnv_get_flag(struct flash_device *spi, const char *param, uint8_t *value);
|
D | flash_device.c | 37 struct flash_device { struct 48 struct flash_device *flash_open(const char *name, const void *params) in flash_open() argument 51 struct flash_device *dev; in flash_open() 63 dev = calloc(1, sizeof(struct flash_device)); in flash_open() 87 void flash_close(struct flash_device *dev) in flash_close() 97 int flash_read(struct flash_device *dev, off_t off, void *buff, size_t len) in flash_read() 102 int flash_write(struct flash_device *dev, off_t off, void *buff, size_t len) in flash_write() 112 int flash_erase(struct flash_device *dev, off_t off, size_t len) in flash_erase() 123 size_t flash_get_size(struct flash_device *dev) in flash_get_size() 128 struct fmap *flash_get_fmap(struct flash_device *dev) in flash_get_fmap() [all …]
|
D | update_fw.cpp | 31 int check_compatible_keys(struct flash_device *img, struct flash_device *spi) in check_compatible_keys() 52 static int update_partition(struct flash_device *src, struct flash_device *dst, in update_partition() 83 static int update_recovery_fw(struct flash_device *spi, struct flash_device *ec, in update_recovery_fw() 84 struct flash_device *img, const Value *ec_file) in update_recovery_fw() 115 static int update_rw_fw(struct flash_device *spi, struct flash_device *img, in update_rw_fw() 142 static int update_ap_fw(struct flash_device *spi, struct flash_device *img) in update_ap_fw() 172 struct flash_device *img, *spi, *ec; in update_fw()
|
D | fwtool.cpp | 53 static void dump_fmap(struct flash_device *dev) in dump_fmap() 74 static void dump_section(struct flash_device *dev, const char *name) in dump_section() 92 struct flash_device* dev = reinterpret_cast<struct flash_device*>(spi); in cmd_flash_fmap() 150 if (vbnv_get_flag(reinterpret_cast<struct flash_device*>(spi), argv[1], &val) == 0) in cmd_vbnv_read() 169 vbnv_set_flag(reinterpret_cast<struct flash_device*>(spi), argv[1], val); in cmd_vbnv_write() 205 struct flash_device* dev = reinterpret_cast<struct flash_device*>(spi); in sync_slots() 285 vbnv_set_flag(reinterpret_cast<struct flash_device*>(spi), "boot_result", in cmd_mark_boot() 287 vbnv_set_flag(reinterpret_cast<struct flash_device*>(spi), "try_count", 0); in cmd_mark_boot() 371 flash_close(reinterpret_cast<struct flash_device*>(spi)); in main() 373 flash_close(reinterpret_cast<struct flash_device*>(ec)); in main()
|
D | Android.mk | 11 flash_device.c \ 29 flash_device.c \ 44 LOCAL_SRC_FILES := flash_ec.c flash_mtd.c flash_device.c vboot_interface.c debug_ec.c flash_file.cp…
|
D | vboot_interface.c | 132 off_t fmap_scan_offset(struct flash_device *dev, off_t end) in fmap_scan_offset() 154 struct fmap *fmap_load(struct flash_device *dev, off_t offset) in fmap_load() 186 int fmap_get_section_offset(struct flash_device *dev, const char *name, in fmap_get_section_offset() 212 void *fmap_read_section(struct flash_device *dev, in fmap_read_section() 256 uint8_t *gbb_get_rootkey(struct flash_device *dev, size_t *size) in gbb_get_rootkey() 413 int vbnv_readwrite(struct flash_device *spi, const vbnv_param_t *param, in vbnv_readwrite() 502 int vbnv_set_flag(struct flash_device *spi, const char *param, uint8_t value) in vbnv_set_flag() 519 int vbnv_get_flag(struct flash_device *spi, const char *param, uint8_t *value) in vbnv_get_flag()
|
D | recovery_ui.cpp | 32 struct flash_device *spi = flash_open("spi", NULL); in PostWipeData()
|