Lines Matching refs:syscon
56 #include <dev/extres/syscon/syscon.h>
60 static uint32_t simple_mfd_syscon_read_4(struct syscon *syscon,
62 static int simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset,
64 static int simple_mfd_syscon_modify_4(struct syscon *syscon, bus_size_t offset,
70 device_get_nameunit((_sc)->dev), "syscon", MTX_SPIN)
86 simple_mfd_syscon_read_4(struct syscon *syscon, bus_size_t offset)
91 sc = device_get_softc(syscon->pdev);
100 simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset,
105 sc = device_get_softc(syscon->pdev);
114 simple_mfd_syscon_modify_4(struct syscon *syscon, bus_size_t offset,
120 sc = device_get_softc(syscon->pdev);
131 simple_mfd_syscon_get_handle(device_t dev, struct syscon **syscon)
136 *syscon = sc->syscon;
137 if (*syscon == NULL)
201 if (ofw_bus_is_compatible(dev, "syscon")) {
211 sc->syscon = syscon_create_ofw_node(dev,
213 if (sc->syscon == NULL) {
215 "Failed to create/register syscon\n");
228 if (ofw_bus_is_compatible(dev, "syscon")) {
229 if (sc->syscon != NULL) {
230 syscon_unregister(sc->syscon);
231 free(sc->syscon, M_SYSCON);
294 /* syscon interface */