Lines Matching refs:syscon
58 static uint32_t simple_mfd_syscon_read_4(struct syscon *syscon,
60 static int simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset,
62 static int simple_mfd_syscon_modify_4(struct syscon *syscon, bus_size_t offset,
84 simple_mfd_syscon_read_4(struct syscon *syscon, bus_size_t offset) in simple_mfd_syscon_read_4() argument
89 sc = device_get_softc(syscon->pdev); in simple_mfd_syscon_read_4()
96 simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset, in simple_mfd_syscon_write_4() argument
101 sc = device_get_softc(syscon->pdev); in simple_mfd_syscon_write_4()
108 simple_mfd_syscon_modify_4(struct syscon *syscon, bus_size_t offset, in simple_mfd_syscon_modify_4() argument
114 sc = device_get_softc(syscon->pdev); in simple_mfd_syscon_modify_4()
124 simple_mfd_syscon_get_handle(device_t dev, struct syscon **syscon) in simple_mfd_syscon_get_handle() argument
129 *syscon = sc->syscon; in simple_mfd_syscon_get_handle()
130 if (*syscon == NULL) in simple_mfd_syscon_get_handle()
219 sc->syscon = syscon_create_ofw_node(dev, in simple_mfd_attach()
221 if (sc->syscon == NULL) { in simple_mfd_attach()
237 if (sc->syscon != NULL) { in simple_mfd_detach()
238 syscon_unregister(sc->syscon); in simple_mfd_detach()
239 free(sc->syscon, M_SYSCON); in simple_mfd_detach()