Lines Matching +full:40 +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0-only */
12 #include <asm-generic/gpio.h>
28 return -EINVAL; in __gpio_get_value()
42 return -EINVAL; in __gpio_cansleep()
47 return -EINVAL; in __gpio_to_irq()
55 return -EINVAL; in gpio_direction_input()
63 return -EINVAL; in gpio_direction_output()
71 return -EINVAL; in gpio_request()
85 * Some parts have 8 bit ports, some have 16bit and some have 32bit; some have
88 * input; some require a read-modify-write access to change an output, others
102 /* These parts have GPIO organized by 8 bit ports */
111 /* These parts have GPIO organized by 16 bit ports */
120 /* These parts have GPIO organized by 32 bit ports */
138 * read-modify-write to change an output and a GPIO module which has separate
144 * read-modify-write as well as those controlled by the EPORT and GPIO modules.
146 #define MCFGPIO_SCR_START 40
155 mcfgpio_port(gpio - MCFGPIO_SCR_START))
158 mcfgpio_port(gpio - MCFGPIO_SCR_START))
203 else if (gpio < 40) in __mcfgpio_ppdr()
208 return MCFGPIO_PPDR + mcfgpio_port(gpio - MCFGPIO_SCR_START); in __mcfgpio_ppdr()
246 else if (gpio < 40) in __mcfgpio_podr()
251 return MCFGPIO_PODR + mcfgpio_port(gpio - MCFGPIO_SCR_START); in __mcfgpio_podr()
289 else if (gpio < 40) in __mcfgpio_pddr()
294 return MCFGPIO_PDDR + mcfgpio_port(gpio - MCFGPIO_SCR_START); in __mcfgpio_pddr()