Lines Matching refs:sc_busdev
62 device_t sc_busdev; member
105 sc->sc_busdev = device_get_parent(dev); in gpioiic_attach()
147 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->sda_pin, in gpioiic_reset_bus()
149 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->scl_pin, in gpioiic_reset_bus()
165 error = GPIOBUS_ACQUIRE_BUS(sc->sc_busdev, sc->sc_dev, how); in gpioiic_callback()
168 GPIOBUS_RELEASE_BUS(sc->sc_busdev, sc->sc_dev); in gpioiic_callback()
183 GPIOBUS_PIN_SET(sc->sc_busdev, sc->sc_dev, sc->sda_pin, 0); in gpioiic_setsda()
184 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->sda_pin, in gpioiic_setsda()
187 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->sda_pin, in gpioiic_setsda()
198 GPIOBUS_PIN_SET(sc->sc_busdev, sc->sc_dev, sc->scl_pin, 0); in gpioiic_setscl()
199 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->scl_pin, in gpioiic_setscl()
202 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->scl_pin, in gpioiic_setscl()
213 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->scl_pin, in gpioiic_getscl()
215 GPIOBUS_PIN_GET(sc->sc_busdev, sc->sc_dev, sc->scl_pin, &val); in gpioiic_getscl()
226 GPIOBUS_PIN_SETFLAGS(sc->sc_busdev, sc->sc_dev, sc->sda_pin, in gpioiic_getsda()
228 GPIOBUS_PIN_GET(sc->sc_busdev, sc->sc_dev, sc->sda_pin, &val); in gpioiic_getsda()