Searched refs:GPIO_NPINS (Results 1 - 11 of 11) sorted by relevance

/netbsd-6-1-5-RELEASE/sys/arch/powerpc/ibm4xx/dev/
H A Dgpioreg.h56 #define GPIO_NPINS (24) macro
H A Dgpio_opb.c53 gpio_pin_t sc_gpio_pins[GPIO_NPINS];
126 for (u_int i = 0 ; i < GPIO_NPINS ; i++, pin++) {
152 gba.gba_npins = GPIO_NPINS;
162 const u_int p = (pin % GPIO_NPINS) + 1;
172 const u_int p = (pin % GPIO_NPINS) + 1;
186 const u_int p = (pin % GPIO_NPINS) + 1;
/netbsd-6-1-5-RELEASE/sys/arch/arm/omap/
H A Domap_gpioreg.h54 #define GPIO_NPINS 16 macro
56 #define GPIO_MODULE(pin) ((pin) / GPIO_NPINS)
57 #define GPIO_RELNUM(pin) ((pin) & (GPIO_NPINS - 1))
H A Domap_gpio.c74 struct gpio_irq_handler *sc_handlers[GPIO_NPINS];
166 KDASSERT(gpio < NOMAPGPIO * GPIO_NPINS);
190 KDASSERT(gpio < NOMAPGPIO * GPIO_NPINS);
259 KDASSERT(gpio < NOMAPGPIO * GPIO_NPINS);
475 for (idx = 0; idx < GPIO_NPINS; idx++, irqs >>= 1) {
/netbsd-6-1-5-RELEASE/sys/arch/arm/imx/
H A Dimxgpiovar.h35 #include <arm/imx/imxgpioreg.h> /* for GPIO_NPINS */
45 #define GPIO_NO(group, pin) (((group) - 1) * GPIO_NPINS + (pin))
46 #define GPIO_MODULE(pin) ((pin) / GPIO_NPINS)
H A Dimxgpioreg.h48 #define GPIO_NPINS 32 macro
H A Dimx31reg.h61 #define GPIO_NPINS 32 macro
H A Dimxgpio.c342 irqbase, irqbase + GPIO_NPINS - 1);
370 int index = gpio / GPIO_NPINS;
371 int bit = gpio % GPIO_NPINS;
393 int index = gpio / GPIO_NPINS;
394 int bit = gpio % GPIO_NPINS;
413 int index = gpio / GPIO_NPINS;
414 int bit = gpio % GPIO_NPINS;
/netbsd-6-1-5-RELEASE/sys/arch/arm/xscale/
H A Dpxa2x0cpu.h81 #define GPIO_NPINS PXA270_GPIO_NPINS macro
88 #define GPIO_NPINS PXA250_GPIO_NPINS macro
H A Dpxa2x0_gpio.c74 struct gpio_irq_handler *sc_handlers[GPIO_NPINS];
206 if (gpio >= GPIO_NPINS)
446 KDASSERT(gpio < GPIO_NPINS);
469 KDASSERT(gpio < GPIO_NPINS);
/netbsd-6-1-5-RELEASE/sys/arch/emips/ebus/
H A Dgpio_ebus.c49 #define GPIO_NPINS 32 macro
55 gpio_pin_t sc_gpio_pins[GPIO_NPINS];
102 for (i = 0 ; i < GPIO_NPINS ; i++) {
124 gba.gba_npins = GPIO_NPINS;
137 p = pin % GPIO_NPINS;
148 p = pin % GPIO_NPINS;
163 p = pin % GPIO_NPINS;

Completed in 82 milliseconds