Lines Matching refs:syscon
56 static uint32_t syscon_generic_unlocked_read_4(struct syscon *syscon,
58 static int syscon_generic_unlocked_write_4(struct syscon *syscon,
60 static int syscon_generic_unlocked_modify_4(struct syscon *syscon,
90 syscon_generic_unlocked_read_4(struct syscon *syscon, bus_size_t offset) in syscon_generic_unlocked_read_4() argument
95 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_read_4()
102 syscon_generic_unlocked_write_4(struct syscon *syscon, bus_size_t offset, uint32_t val) in syscon_generic_unlocked_write_4() argument
106 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_write_4()
113 syscon_generic_unlocked_modify_4(struct syscon *syscon, bus_size_t offset, in syscon_generic_unlocked_modify_4() argument
119 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_modify_4()
180 sc->syscon = syscon_create_ofw_node(dev, &syscon_generic_class, in syscon_generic_attach()
182 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()