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

Function region_num

util/ifdtool/ifdtool.c:398–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398static int region_num(const char *name)
399{
400 unsigned int i;
401
402 for (i = 0; i < max_regions; i++) {
403 if (strcasecmp(name, region_names[i].pretty) == 0)
404 return i;
405 if (strcasecmp(name, region_names[i].terse) == 0)
406 return i;
407 }
408
409 return -1;
410}
411
412static void dump_region(unsigned int num, const struct frba *frba)
413{

Callers 1

new_layoutFunction · 0.85

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected