Home
last modified time | relevance | path

Searched refs:gpio_dev (Results 1 – 6 of 6) sorted by relevance

/freebsd-12.1/sys/arm/samsung/exynos/
H A Dchrome_ec.c79 device_t gpio_dev; in bus_claim() local
87 gpio_dev = devclass_get_device(devclass_find("gpio"), 0); in bus_claim()
88 if (gpio_dev == NULL) { in bus_claim()
94 GPIO_PIN_SET(gpio_dev, sc->our_gpio, GPIO_PIN_LOW); in bus_claim()
99 GPIO_PIN_GET(gpio_dev, sc->ec_gpio, &status); in bus_claim()
113 device_t gpio_dev; in bus_release() local
120 gpio_dev = devclass_get_device(devclass_find("gpio"), 0); in bus_release()
121 if (gpio_dev == NULL) { in bus_release()
126 GPIO_PIN_SET(gpio_dev, sc->our_gpio, GPIO_PIN_HIGH); in bus_release()
H A Dexynos5_ehci.c157 device_t gpio_dev; in gpio_ctrl() local
160 gpio_dev = devclass_get_device(devclass_find("gpio"), 0); in gpio_ctrl()
161 if (gpio_dev == NULL) { in gpio_ctrl()
167 GPIO_PIN_SET(gpio_dev, PIN_USB, GPIO_PIN_HIGH); in gpio_ctrl()
169 GPIO_PIN_SET(gpio_dev, PIN_USB, GPIO_PIN_LOW); in gpio_ctrl()
172 GPIO_PIN_SETFLAGS(gpio_dev, PIN_USB, GPIO_PIN_OUTPUT); in gpio_ctrl()
174 GPIO_PIN_SETFLAGS(gpio_dev, PIN_USB, GPIO_PIN_INPUT); in gpio_ctrl()
182 device_t gpio_dev; in reset_hsic_hub() local
198 if (gpio_dev == NULL) { in reset_hsic_hub()
203 GPIO_PIN_SET(gpio_dev, pin, GPIO_PIN_LOW); in reset_hsic_hub()
[all …]
H A Dexynos5_usb_phy.c148 device_t gpio_dev; in vbus_on() local
162 gpio_dev = devclass_get_device(devclass_find("gpio"), 0); in vbus_on()
163 if (gpio_dev == NULL) { in vbus_on()
168 GPIO_PIN_SETFLAGS(gpio_dev, pin, GPIO_PIN_OUTPUT); in vbus_on()
169 GPIO_PIN_SET(gpio_dev, pin, GPIO_PIN_HIGH); in vbus_on()
H A Dexynos5_fimd.c314 device_t gpio_dev; in fimd_attach() local
345 gpio_dev = devclass_get_device(devclass_find("gpio"), 0); in fimd_attach()
346 if (gpio_dev == NULL) { in fimd_attach()
H A Dchrome_kb.c130 device_t gpio_dev; member
363 GPIO_PIN_GET(sc->gpio_dev, sc->gpio, &status); in ckb_read_char_locked()
822 sc->gpio_dev = devclass_get_device(devclass_find("gpio"), 0); in chrome_kb_attach()
823 if (sc->gpio_dev == NULL) { in chrome_kb_attach()
/freebsd-12.1/sys/arm/freescale/vybrid/
H A Dvf_dcu4.c368 device_t gpio_dev; in dcu_attach() local
402 gpio_dev = devclass_get_device(devclass_find("gpio"), 0); in dcu_attach()
403 if (gpio_dev == NULL) { in dcu_attach()
410 GPIO_PIN_SETFLAGS(gpio_dev, panel.backlight_pin, GPIO_PIN_OUTPUT); in dcu_attach()
411 GPIO_PIN_SET(gpio_dev, panel.backlight_pin, GPIO_PIN_HIGH); in dcu_attach()