Home
last modified time | relevance | path

Searched refs:fmap (Results 1 – 6 of 6) sorted by relevance

/device/google/dragon/recovery/updater/
Dvboot_interface.c125 struct fmap h; in fmap_scan_offset()
145 struct fmap *fmap_load(struct flash_device *dev, off_t offset) in fmap_load()
147 struct fmap hdr; in fmap_load()
148 struct fmap *fmap; in fmap_load() local
164 size = sizeof(struct fmap) + hdr.nareas * sizeof(struct fmap_area); in fmap_load()
165 fmap = malloc(size); in fmap_load()
167 res = flash_read(dev, offset, fmap, size); in fmap_load()
170 free(fmap); in fmap_load()
174 return fmap; in fmap_load()
181 struct fmap *fmap = flash_get_fmap(dev); in fmap_get_section_offset() local
[all …]
Dflash_device.c40 struct fmap *fmap; member
72 dev->fmap = NULL; in flash_open()
92 if (dev->fmap) in flash_close()
93 free(dev->fmap); in flash_close()
128 struct fmap *flash_get_fmap(struct flash_device *dev) in flash_get_fmap()
130 if (!dev->fmap) { in flash_get_fmap()
133 dev->fmap = fmap_load(dev, off); in flash_get_fmap()
136 if (!dev->fmap) in flash_get_fmap()
139 return dev->fmap; in flash_get_fmap()
Dfwtool.cpp56 struct fmap *fmap; in dump_fmap() local
58 fmap = flash_get_fmap(dev); in dump_fmap()
59 if (!fmap) in dump_fmap()
63 fmap->name, fmap->ver_major, fmap->ver_minor, in dump_fmap()
64 fmap->base, fmap->size); in dump_fmap()
65 for (i = 0; i < fmap->nareas; i++) { in dump_fmap()
66 struct fmap_area *a = fmap->areas+i; in dump_fmap()
Dfmap.h40 struct fmap { struct
Dvboot_interface.h31 struct fmap *fmap_load(struct flash_device *dev, off_t offset);
Dflash_device.h51 struct fmap *flash_get_fmap(struct flash_device *dev);