Searched refs:gpios (Results 1 - 4 of 4) sorted by relevance

/freebsd-10.3-release/sys/dev/gpio/
H A Dofw_gpiobus.c104 pcell_t *gpios; local
107 /* Retrieve the gpios property. */
108 if ((len = OF_getproplen(child, "gpios")) < 0)
110 gpios = malloc(len, M_DEVBUF, M_NOWAIT | M_ZERO);
111 if (gpios == NULL)
113 if (OF_getencprop(child, "gpios", gpios, len) < 0) {
114 free(gpios, M_DEVBUF);
127 if (gpios[i] == 0) {
132 gpio = OF_node_from_xref(gpios[
[all...]
H A Dgpiobusvar.h90 pcell_t *gpios, uint32_t *pin, uint32_t *flags)
92 return (GPIO_MAP_GPIOS(bus, dev, gparent, gcells, gpios, pin, flags));
89 gpio_map_gpios(device_t bus, phandle_t dev, phandle_t gparent, int gcells, pcell_t *gpios, uint32_t *pin, uint32_t *flags) argument
/freebsd-10.3-release/sys/arm/mv/
H A Dgpio.c116 int mv_handle_gpios_prop(phandle_t ctrl, pcell_t *gpios, int len);
544 mv_handle_gpios_prop(phandle_t ctrl, pcell_t *gpios, int len) argument
579 gpios += inc;
582 pin = fdt32_to_cpu(gpios[0]);
583 dir = fdt32_to_cpu(gpios[1]);
584 flags = fdt32_to_cpu(gpios[2]);
599 gpios += gpio_cells + inc;
611 pcell_t gpios[MAX_PINS_PER_NODE * GPIOS_PROP_CELLS]; local
619 /* Traverse through entire tree to find nodes with 'gpios' prop */
627 if ((len = OF_getproplen(child, "gpios")) >
[all...]
/freebsd-10.3-release/sys/arm/rockchip/
H A Drk30xx_gpio.c98 int rk30_gpios_prop_handle(phandle_t ctrl, pcell_t *gpios, int len);
547 rk30_gpios_prop_handle(phandle_t ctrl, pcell_t *gpios, int len) argument
577 gpios += inc;
579 pin = fdt32_to_cpu(gpios[0]);
580 dir = fdt32_to_cpu(gpios[1]);
581 flags = fdt32_to_cpu(gpios[2]);
599 gpios += gpio_cells + inc;
612 pcell_t gpios[MAX_PINS_PER_NODE * GPIOS_PROP_CELLS]; local
620 /* Traverse through entire tree to find nodes with 'gpios' prop */
628 if ((len = OF_getproplen(child, "gpios")) >
[all...]

Completed in 59 milliseconds