Lines Matching refs:pin
37 gpio_pin_t pin, in gpio_rpi_configure() argument
42 gpio_set_pulls(pin, in gpio_rpi_configure()
47 gpio_set_function(pin, GPIO_FUNC_SIO); in gpio_rpi_configure()
51 data->single_ended_mask |= BIT(pin); in gpio_rpi_configure()
59 data->open_drain_mask |= BIT(pin); in gpio_rpi_configure()
60 gpio_put(pin, 0); in gpio_rpi_configure()
61 gpio_set_dir(pin, flags & GPIO_OUTPUT_INIT_LOW); in gpio_rpi_configure()
63 data->open_drain_mask &= ~(BIT(pin)); in gpio_rpi_configure()
64 gpio_put(pin, 1); in gpio_rpi_configure()
65 gpio_set_dir(pin, flags & GPIO_OUTPUT_INIT_HIGH); in gpio_rpi_configure()
68 data->single_ended_mask &= ~(BIT(pin)); in gpio_rpi_configure()
70 gpio_put(pin, 1); in gpio_rpi_configure()
72 gpio_put(pin, 0); in gpio_rpi_configure()
74 gpio_set_dir(pin, GPIO_OUT); in gpio_rpi_configure()
77 gpio_set_dir(pin, GPIO_IN); in gpio_rpi_configure()
143 gpio_pin_t pin, in gpio_rpi_pin_interrupt_configure() argument
150 gpio_set_irq_enabled(pin, ALL_EVENTS, false); in gpio_rpi_pin_interrupt_configure()
167 gpio_set_irq_enabled(pin, events, true); in gpio_rpi_pin_interrupt_configure()
169 WRITE_BIT(data->int_enabled_mask, pin, mode != GPIO_INT_DISABLE); in gpio_rpi_pin_interrupt_configure()
198 uint32_t pin; in gpio_rpi_isr() local
201 for (pin = 0; pin < NUM_BANK0_GPIOS; pin++) { in gpio_rpi_isr()
202 status_reg = &irq_ctrl_base->ints[pin / 8]; in gpio_rpi_isr()
203 events = (*status_reg >> 4 * (pin % 8)) & ALL_EVENTS; in gpio_rpi_isr()
205 gpio_acknowledge_irq(pin, ALL_EVENTS); in gpio_rpi_isr()
206 gpio_fire_callbacks(&data->callbacks, dev, BIT(pin)); in gpio_rpi_isr()