MCPcopy Create free account
hub / github.com/coreboot/coreboot / fmap_find

Function fmap_find

util/cbfstool/flashmap/fmap.c:145–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145long fmap_find(const uint8_t *image, unsigned int image_len)
146{
147 long ret = -1;
148
149 if ((image == NULL) || (image_len == 0))
150 return -1;
151
152 if (popcnt(image_len) == 1)
153 ret = fmap_bsearch(image, image_len);
154 else
155 ret = fmap_lsearch(image, image_len);
156
157 return ret;
158}
159
160int fmap_print(const struct fmap *fmap)
161{

Callers 7

validate_layoutFunction · 0.85
rom_set_pd_fw_ptrFunction · 0.85
storage_openFunction · 0.85
fmap_find_testFunction · 0.85
partitioned_file_createFunction · 0.85
partitioned_file_reopenFunction · 0.85
rom_set_ec_fw_ptrFunction · 0.85

Calls 3

fmap_bsearchFunction · 0.85
fmap_lsearchFunction · 0.85
popcntFunction · 0.70

Tested by 1

fmap_find_testFunction · 0.68