Lines Matching refs:syscon
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,
86 simple_mfd_syscon_read_4(struct syscon *syscon, bus_size_t offset) in simple_mfd_syscon_read_4() argument
91 sc = device_get_softc(syscon->pdev); in simple_mfd_syscon_read_4()
100 simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset, in simple_mfd_syscon_write_4() argument
105 sc = device_get_softc(syscon->pdev); in simple_mfd_syscon_write_4()
114 simple_mfd_syscon_modify_4(struct syscon *syscon, bus_size_t offset, in simple_mfd_syscon_modify_4() argument
120 sc = device_get_softc(syscon->pdev); in simple_mfd_syscon_modify_4()
131 simple_mfd_syscon_get_handle(device_t dev, struct syscon **syscon) in simple_mfd_syscon_get_handle() argument
136 *syscon = sc->syscon; in simple_mfd_syscon_get_handle()
137 if (*syscon == NULL) in simple_mfd_syscon_get_handle()
211 sc->syscon = syscon_create_ofw_node(dev, in simple_mfd_attach()
213 if (sc->syscon == NULL) { in simple_mfd_attach()
229 if (sc->syscon != NULL) { in simple_mfd_detach()
230 syscon_unregister(sc->syscon); in simple_mfd_detach()
231 free(sc->syscon, M_SYSCON); in simple_mfd_detach()