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

Function fmap_find_area

util/cbfstool/flashmap/fmap.c:311–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311const struct fmap_area *fmap_find_area(const struct fmap *fmap,
312 const char *name)
313{
314 int i;
315 const struct fmap_area *area = NULL;
316
317 if (!fmap || !name)
318 return NULL;
319
320 for (i = 0; i < le16toh(fmap->nareas); i++) {
321 if (!strcmp((const char *)fmap->areas[i].name, name)) {
322 area = &fmap->areas[i];
323 break;
324 }
325 }
326
327 return area;
328}

Callers 10

validate_layoutFunction · 0.50
rom_set_pd_fw_ptrFunction · 0.50
storage_openFunction · 0.50
get_mh_cacheFunction · 0.50
fmap_find_area_testFunction · 0.50
partitioned_file_createFunction · 0.50
partitioned_file_reopenFunction · 0.50
rom_set_ec_fw_ptrFunction · 0.50

Calls 1

strcmpFunction · 0.50

Tested by 1

fmap_find_area_testFunction · 0.40