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

Function findmsrdef

util/msrtool/msrutils.c:155–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155const struct msrdef *findmsrdef(const uint32_t addr) {
156 uint8_t t;
157 const struct msrdef *m;
158 if (!targets)
159 return NULL;
160 for (t = 0; t < targets_found; t++)
161 for (m = targets[t]->msrs; !MSR_ISEOT(*m); m++)
162 if (addr == m->addr)
163 return m;
164 return NULL;
165}
166
167uint32_t msraddrbyname(const char *name) {
168 uint8_t t;

Callers 2

decodemsrFunction · 0.85
diff_msrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected