Home
last modified time | relevance | path

Searched refs:AU1300_GPIO_BASE (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/arch/mips/include/asm/mach-au1x00/
Dgpio-au1300.h22 #define AU1300_GPIO_BASE 0 macro
24 #define AU1300_GPIO_MAX (AU1300_GPIO_BASE + AU1300_GPIO_NUM - 1)
34 gpio -= AU1300_GPIO_BASE; in au1300_gpio_get_value()
45 gpio -= AU1300_GPIO_BASE; in au1300_gpio_direction_input()
60 gpio -= AU1300_GPIO_BASE; in au1300_gpio_set_value()
79 return AU1300_FIRST_INT + (gpio - AU1300_GPIO_BASE); in au1300_gpio_to_irq()
84 return (irq - AU1300_FIRST_INT) + AU1300_GPIO_BASE; in au1300_irq_to_gpio()
93 ret = ((gpio >= AU1300_GPIO_BASE) && (gpio <= AU1300_GPIO_MAX)); in au1300_gpio_is_valid()
/Linux-v5.10/arch/mips/alchemy/common/
Dgpiolib.c121 return !!au1300_gpio_get_value(off + AU1300_GPIO_BASE); in alchemy_gpic_get()
126 au1300_gpio_set_value(off + AU1300_GPIO_BASE, v); in alchemy_gpic_set()
131 return au1300_gpio_direction_input(off + AU1300_GPIO_BASE); in alchemy_gpic_dir_input()
137 return au1300_gpio_direction_output(off + AU1300_GPIO_BASE, v); in alchemy_gpic_dir_output()
142 return au1300_gpio_to_irq(off + AU1300_GPIO_BASE); in alchemy_gpic_gpio_to_irq()
152 .base = AU1300_GPIO_BASE,
Dirq.c538 au1300_gpio_direction_input(gpio + AU1300_GPIO_BASE); in au1300_pinfunc_to_gpio()