Lines Matching refs:syscon
58 static uint32_t syscon_generic_unlocked_read_4(struct syscon *syscon,
60 static int syscon_generic_unlocked_write_4(struct syscon *syscon,
62 static int syscon_generic_unlocked_modify_4(struct syscon *syscon,
92 syscon_generic_unlocked_read_4(struct syscon *syscon, bus_size_t offset) in syscon_generic_unlocked_read_4() argument
97 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_read_4()
104 syscon_generic_unlocked_write_4(struct syscon *syscon, bus_size_t offset, uint32_t val) in syscon_generic_unlocked_write_4() argument
108 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_write_4()
115 syscon_generic_unlocked_modify_4(struct syscon *syscon, bus_size_t offset, in syscon_generic_unlocked_modify_4() argument
121 sc = device_get_softc(syscon->pdev); in syscon_generic_unlocked_modify_4()
182 sc->syscon = syscon_create_ofw_node(dev, &syscon_generic_class, in syscon_generic_attach()
184 if (sc->syscon == NULL) { in syscon_generic_attach()
208 if (sc->syscon != NULL) { in syscon_generic_detach()
209 syscon_unregister(sc->syscon); in syscon_generic_detach()
210 free(sc->syscon, M_SYSCON); in syscon_generic_detach()