Lines Matching full:syscon
53 #include <dev/syscon/syscon.h>
57 static uint32_t simple_mfd_syscon_read_4(struct syscon *syscon,
59 static int simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset,
61 static int simple_mfd_syscon_modify_4(struct syscon *syscon, bus_size_t offset,
67 device_get_nameunit((_sc)->dev), "syscon", MTX_SPIN)
83 simple_mfd_syscon_read_4(struct syscon *syscon, bus_size_t offset)
88 sc = device_get_softc(syscon->pdev);
95 simple_mfd_syscon_write_4(struct syscon *syscon, bus_size_t offset,
100 sc = device_get_softc(syscon->pdev);
107 simple_mfd_syscon_modify_4(struct syscon *syscon, bus_size_t offset,
113 sc = device_get_softc(syscon->pdev);
123 simple_mfd_syscon_get_handle(device_t dev, struct syscon **syscon)
128 *syscon = sc->syscon;
129 if (*syscon == NULL)
208 if (ofw_bus_is_compatible(dev, "syscon")) {
218 sc->syscon = syscon_create_ofw_node(dev,
220 if (sc->syscon == NULL) {
222 "Failed to create/register syscon\n");
236 if (ofw_bus_is_compatible(dev, "syscon")) {
237 if (sc->syscon != NULL) {
238 syscon_unregister(sc->syscon);
239 free(sc->syscon, M_SYSCON);
302 /* syscon interface */