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

Function rdev_relative_offset

src/commonlib/region.c:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35ssize_t rdev_relative_offset(const struct region_device *p,
36 const struct region_device *c)
37{
38 if (rdev_root(p) != rdev_root(c))
39 return -1;
40
41 if (!region_is_subregion(&p->region, &c->region))
42 return -1;
43
44 return region_device_offset(c) - region_device_offset(p);
45}
46
47void *rdev_mmap(const struct region_device *rd, size_t offset, size_t size)
48{

Callers 2

test_rdev_chainFunction · 0.85
test_rdev_double_chainFunction · 0.85

Calls 3

rdev_rootFunction · 0.85
region_is_subregionFunction · 0.85
region_device_offsetFunction · 0.85

Tested by 2

test_rdev_chainFunction · 0.68
test_rdev_double_chainFunction · 0.68