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

Function find_fmba

util/ifdtool/ifdtool.c:175–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175static struct fmba *find_fmba(char *image, int size)
176{
177 struct fdbar *fdb = find_fd(image, size);
178 if (!fdb)
179 return NULL;
180 struct fmba *fmba = (struct fmba *)(image + ((fdb->flmap1 & 0xff) << 4));
181 return PTR_IN_RANGE(fmba, image, size) ? fmba : NULL;
182}
183
184static struct frba *find_frba(char *image, int size)
185{

Callers 4

dump_fdFunction · 0.85
lock_descriptorFunction · 0.85
enable_cpu_read_meFunction · 0.85
unlock_descriptorFunction · 0.85

Calls 1

find_fdFunction · 0.85

Tested by

no test coverage detected