Searched refs:gpio (Results 51 - 75 of 130) sorted by relevance

123456

/freebsd-11.0-release/sys/dev/ath/ath_hal/ar5210/
H A Dar5210.h220 extern HAL_BOOL ar5210GpioCfgInput(struct ath_hal *, uint32_t gpio);
221 extern HAL_BOOL ar5210GpioCfgOutput(struct ath_hal *, uint32_t gpio,
223 extern uint32_t ar5210GpioGet(struct ath_hal *, uint32_t gpio);
224 extern HAL_BOOL ar5210GpioSet(struct ath_hal *, uint32_t gpio, uint32_t);
/freebsd-11.0-release/sys/dev/ath/ath_hal/ar5211/
H A Dar5211.h243 extern uint32_t ar5211GpioGet(struct ath_hal *, uint32_t gpio);
245 extern HAL_BOOL ar5211GpioCfgOutput(struct ath_hal *, uint32_t gpio,
247 extern HAL_BOOL ar5211GpioCfgInput(struct ath_hal *, uint32_t gpio);
248 extern HAL_BOOL ar5211GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val);
/freebsd-11.0-release/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_stub_funcs.h48 extern HAL_BOOL ar9300_Stub_GpioCfgOutput(struct ath_hal *, uint32_t gpio,
50 extern HAL_BOOL ar9300_Stub_GpioCfgInput(struct ath_hal *, uint32_t gpio);
51 extern HAL_BOOL ar9300_Stub_GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val);
52 extern uint32_t ar9300_Stub_GpioGet(struct ath_hal *ah, uint32_t gpio);
/freebsd-11.0-release/sys/arm/broadcom/bcm2835/
H A Dbcm2835_spi.c248 device_t gpio; local
260 gpio = devclass_get_device(devclass_find("gpio"), 0);
261 if (!gpio) {
266 bcm_gpio_set_alternate(gpio, bcm_spi_pins[i], BCM_GPIO_ALT0);
H A Dbcm2835_gpio.c36 #include <sys/gpio.h>
49 #include <dev/gpio/gpiobusvar.h>
672 phandle_t gpio, node, reserved; local
676 gpio = ofw_bus_get_node(sc->sc_dev);
677 if (bcm_gpio_get_ro_pins(sc, gpio, "broadcom,read-only",
682 node = OF_child(gpio);
745 if (!ofw_bus_is_compatible(dev, "broadcom,bcm2835-gpio"))
833 phandle_t gpio; local
842 mtx_init(&sc->sc_mtx, "bcm gpio", "gpio", MTX_SPI
[all...]
/freebsd-11.0-release/sys/dev/drm2/radeon/
H A Drs600.c170 if ((voltage->type == VOLTAGE_GPIO) && (voltage->gpio.valid)) {
172 tmp = RREG32(voltage->gpio.reg);
174 tmp |= voltage->gpio.mask;
176 tmp &= ~(voltage->gpio.mask);
177 WREG32(voltage->gpio.reg, tmp);
181 tmp = RREG32(voltage->gpio.reg);
183 tmp &= ~voltage->gpio.mask;
185 tmp |= voltage->gpio.mask;
186 WREG32(voltage->gpio.reg, tmp);
/freebsd-11.0-release/sys/dev/ow/
H A Dowc_gpiobus.c35 #include <sys/gpio.h>
48 #include <dev/gpio/gpiobusvar.h>
91 if (!fdt_is_compatible_strict(w1, "w1-gpio"))
107 if (ofw_bus_is_compatible(dev, "w1-gpio")) {
/freebsd-11.0-release/sys/dev/gpio/
H A Dgpioiic.c29 __FBSDID("$FreeBSD: releng/11.0/sys/dev/gpio/gpioiic.c 300393 2016-05-22 04:02:34Z loos $");
36 #include <sys/gpio.h>
45 #include <dev/gpio/gpiobusvar.h>
146 * Must always be called with gpio bus locked.
H A Dgpiopps.c28 __FBSDID("$FreeBSD: releng/11.0/sys/dev/gpio/gpiopps.c 300811 2016-05-26 23:56:12Z ian $");
31 #include <sys/gpio.h>
39 #include <dev/gpio/gpiobusvar.h>
47 {"pps-gpio", 1},
204 * Look up the configured gpio pin and ensure it can be configured for
209 device_printf(dev, "Cannot obtain gpio pin\n");
216 device_printf(dev, "Cannot query capabilities of gpio pin\n");
/freebsd-11.0-release/sys/dev/sound/pci/hda/
H A Dhdaa.h199 uint32_t gpio; member in struct:hdaa_devinfo
269 uint32_t hdaa_gpio_patch(uint32_t gpio, const char *str);
H A Dhdaa_patches.c52 uint32_t gpio; member in struct:__anon11675
500 devinfo->gpio = hdac_quirks[i].gpio;
/freebsd-11.0-release/sys/arm/amlogic/aml8726/
H A Daml8726_gpio.c48 #include <sys/gpio.h>
56 #include <dev/gpio/gpiobusvar.h>
80 "gpio", MTX_DEF)
97 if (!ofw_bus_is_compatible(dev, "amlogic,aml8726-gpio"))
364 "gpio",
/freebsd-11.0-release/sys/powerpc/mpc85xx/
H A Dmpc85xx_gpio.c43 #include <sys/gpio.h>
50 #include <dev/gpio/gpiobusvar.h>
64 "gpio", MTX_DEF)
188 if (!ofw_bus_is_compatible(dev, "gpio"))
299 "gpio",
H A Dqoriq_gpio.c40 #include <sys/gpio.h>
46 #include <dev/gpio/gpiobusvar.h>
60 "gpio", MTX_DEF)
222 if (!ofw_bus_is_compatible(dev, "fsl,qoriq-gpio") &&
223 !ofw_bus_is_compatible(dev, "fsl,mpc8572-gpio"))
302 "gpio",
/freebsd-11.0-release/sys/arm/rockchip/
H A Drk30xx_gpio.c41 #include <sys/gpio.h>
50 #include <dev/gpio/gpiobusvar.h>
60 * RK3188 has 4 banks of gpio.
104 { "rockchip,rk30xx-gpio", &rk30_gpios_prop_handle },
105 { "rockchip,rk30xx-gpio", &rk30_gpios_prop_handle },
106 { "rockchip,rk30xx-gpio", &rk30_gpios_prop_handle },
107 { "rockchip,rk30xx-gpio", &rk30_gpios_prop_handle },
395 if (!ofw_bus_is_compatible(dev, "rockchip,rk30xx-gpio"))
407 phandle_t gpio; local
413 mtx_init(&sc->sc_mtx, "rk30 gpio", "gpi
[all...]
/freebsd-11.0-release/sys/arm/allwinner/
H A Da10_gpio.c41 #include <sys/gpio.h>
51 #include <dev/gpio/gpiobusvar.h>
562 phandle_t gpio; local
570 mtx_init(&sc->sc_mtx, "a10 gpio", "gpio", MTX_SPIN);
592 gpio = ofw_bus_get_node(sc->sc_dev);
593 if (!OF_hasprop(gpio, "gpio-controller"))
663 /* The GPIO pins are mapped as: <gpio-phandle bank pin flags>. */
705 "gpio",
[all...]
/freebsd-11.0-release/sys/mips/cavium/
H A Docteon_gpio.c44 #include <sys/gpio.h>
50 #include <contrib/octeon-sdk/cvmx-gpio.h>
54 #include <dev/gpio/gpiobusvar.h>
367 BUS_ADD_CHILD(parent, 0, "gpio", 0);
388 ("octeon_gpio: Only one gpio module supported"));
464 KASSERT(mtx_initialized(&sc->gpio_mtx), ("gpio mutex not initialized"));
500 "gpio",
/freebsd-11.0-release/sys/dev/ath/ath_hal/ar5416/
H A Dar5416.h229 extern HAL_BOOL ar5416GpioCfgOutput(struct ath_hal *, uint32_t gpio,
231 extern HAL_BOOL ar5416GpioCfgInput(struct ath_hal *, uint32_t gpio);
232 extern HAL_BOOL ar5416GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val);
233 extern uint32_t ar5416GpioGet(struct ath_hal *ah, uint32_t gpio);
/freebsd-11.0-release/sys/arm/samsung/exynos/
H A Dchrome_ec_spi.c44 #include <sys/gpio.h>
75 sc->dev_gpio = devclass_get_device(devclass_find("gpio"), 0);
/freebsd-11.0-release/sys/dev/dwc/
H A Dif_dwc.c45 #include <sys/gpio.h>
1043 device_t gpio; local
1048 if (OF_getencprop(node, "snps,reset-gpio",
1060 if ((gpio = OF_device_from_xref(gpio_prop[0])) == NULL) {
1062 "Can't find gpio controller for phy reset\n");
1066 if (GPIO_MAP_GPIOS(gpio, node, gpio_node,
1069 device_printf(dev, "Can't map gpio for phy reset\n");
1080 GPIO_PIN_SETFLAGS(gpio, pin, GPIO_PIN_OUTPUT);
1081 GPIO_PIN_SET(gpio, pin, pin_value);
1083 GPIO_PIN_SET(gpio, pi
[all...]
/freebsd-11.0-release/sys/dev/extres/regulator/
H A Dregulator_fixed.c33 #include <sys/gpio.h>
45 #include <dev/gpio/gpiobusvar.h>
318 device_printf(sc->dev, "Cannot map the gpio property.\n");
348 if (OF_hasprop(node, "gpio-open-drain"))
351 if (!OF_hasprop(node, "gpio"))
353 rv = ofw_bus_parse_xref_list_alloc(node, "gpio", "#gpio-cells", 0,
357 device_printf(sc->dev, "Malformed gpio property\n");
/freebsd-11.0-release/sys/dev/rccgpio/
H A Drccgpio.c36 #include <sys/gpio.h>
43 #include <dev/gpio/gpiobusvar.h>
295 mtx_init(&sc->sc_mtx, "rcc-gpio", "gpio", MTX_DEF);
368 "gpio",
/freebsd-11.0-release/sys/arm/xilinx/
H A Dzy7_gpio.c39 * gpio framework doesn't seem to have hooks for this.
59 #include <sys/gpio.h>
66 #include <dev/gpio/gpiobusvar.h>
87 "gpio", MTX_DEF)
391 "gpio",
/freebsd-11.0-release/sys/arm/xscale/ixp425/
H A Davila_gpio.c46 #include <sys/gpio.h>
52 #include <dev/gpio/gpiobusvar.h>
362 "gpio",
/freebsd-11.0-release/sys/arm/freescale/vybrid/
H A Dvf_gpio.c46 #include <sys/gpio.h>
49 #include <dev/gpio/gpiobusvar.h>
112 if (!ofw_bus_is_compatible(dev, "fsl,mvf600-gpio"))
380 "gpio",

Completed in 310 milliseconds

123456