MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ti_prm_modify_4

Function ti_prm_modify_4

freebsd/arm/ti/ti_prm.c:177–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177int
178ti_prm_modify_4(device_t dev, bus_addr_t addr, uint32_t clr, uint32_t set)
179{
180 struct ti_prm_softc *sc;
181 device_t parent;
182
183 parent = device_get_parent(dev);
184 sc = device_get_softc(dev);
185
186 ti_prcm_device_lock(parent);
187 ti_prcm_modify_4(parent, addr, clr, set);
188 ti_prcm_device_unlock(parent);
189 DPRINTF(sc->dev, "offset=%lx (clr %x set %x)\n", addr, clr, set);
190
191 return (0);
192}
193
194static device_method_t ti_prm_methods[] = {
195 DEVMETHOD(device_probe, ti_prm_probe),

Callers 1

ti_prm_resetFunction · 0.85

Calls 5

device_get_parentFunction · 0.85
device_get_softcFunction · 0.85
ti_prcm_device_lockFunction · 0.85
ti_prcm_modify_4Function · 0.85
ti_prcm_device_unlockFunction · 0.85

Tested by

no test coverage detected