Lines Matching refs:pin
154 int pin, maxpin;
211 for (pin = 0; pin < maxpin; ++pin) {
213 sc->sc_gpio_pins[pin].pin_num = pin;
214 func = pxa2x0_gpio_get_function(pin);
217 sc->sc_gpio_pins[pin].pin_caps = GPIO_PIN_INPUT |
219 sc->sc_gpio_pins[pin].pin_state =
220 pxa2x0_gpio_pin_read(sc, pin);
222 sc->sc_gpio_pins[pin].pin_caps = 0;
223 sc->sc_gpio_pins[pin].pin_state = 0;
260 panic("pxa2x0_gpio_intr_establish: bad pin number: %d", gpio);
263 panic("pxa2x0_gpio_intr_establish: bad pin number: %d", gpio);
528 * The pin's function is not changing.
546 * the correct procedure for changing GPIO pin functions.
552 * 1. Configure the correct set/clear state of the pin
560 * 2. Configure the pin as an input or output as appropriate
568 * 3. Configure the pin's function
579 * Quick function to read pin value
595 * Quick function to set pin to 1
608 * Quick function to set pin to 0
621 * Quick function to change pin direction
639 * Quick function to clear interrupt status on a pin
726 pxa2x0_gpio_pin_read(void *arg, int pin)
728 return pxa2x0_gpio_get_bit(pin);
732 pxa2x0_gpio_pin_write(void *arg, int pin, int value)
735 pxa2x0_gpio_set_bit(pin);
737 pxa2x0_gpio_clear_bit(pin);
742 pxa2x0_gpio_pin_ctl(void *arg, int pin, int flags)
745 pxa2x0_gpio_set_function(pin, GPIO_OUT);
747 pxa2x0_gpio_set_function(pin, GPIO_IN);
1028 for (j = 0; conflist[i][j].pin != -1; j++)
1029 pxa2x0_gpio_set_function(conflist[i][j].pin,