Lines Matching refs:syscon
57 static uint32_t syscon_generic_unlocked_read_4(struct syscon *syscon,
59 static int syscon_generic_unlocked_write_4(struct syscon *syscon,
61 static int syscon_generic_unlocked_modify_4(struct syscon *syscon,
91 syscon_generic_unlocked_read_4(struct syscon *syscon, bus_size_t offset) in syscon_generic_unlocked_read_4() argument
96 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_read_4()
103 syscon_generic_unlocked_write_4(struct syscon *syscon, bus_size_t offset, uint32_t val) in syscon_generic_unlocked_write_4() argument
107 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_write_4()
114 syscon_generic_unlocked_modify_4(struct syscon *syscon, bus_size_t offset, in syscon_generic_unlocked_modify_4() argument
120 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_modify_4()
181 sc->syscon = syscon_create_ofw_node(dev, &syscon_generic_class, in syscon_generic_attach()
183 if (sc->syscon == NULL) { in syscon_generic_attach()
207 if (sc->syscon != NULL) { in syscon_generic_detach()
208 syscon_unregister(sc->syscon); in syscon_generic_detach()
209 free(sc->syscon, M_SYSCON); in syscon_generic_detach()