Lines Matching refs:orion_gpio_chip
41 struct orion_gpio_chip { struct
52 static void __iomem *GPIO_OUT(struct orion_gpio_chip *ochip) in GPIO_OUT() argument
57 static void __iomem *GPIO_IO_CONF(struct orion_gpio_chip *ochip) in GPIO_IO_CONF()
62 static void __iomem *GPIO_BLINK_EN(struct orion_gpio_chip *ochip) in GPIO_BLINK_EN()
67 static void __iomem *GPIO_IN_POL(struct orion_gpio_chip *ochip) in GPIO_IN_POL()
72 static void __iomem *GPIO_DATA_IN(struct orion_gpio_chip *ochip) in GPIO_DATA_IN()
77 static void __iomem *GPIO_EDGE_CAUSE(struct orion_gpio_chip *ochip) in GPIO_EDGE_CAUSE()
82 static void __iomem *GPIO_EDGE_MASK(struct orion_gpio_chip *ochip) in GPIO_EDGE_MASK()
87 static void __iomem *GPIO_LEVEL_MASK(struct orion_gpio_chip *ochip) in GPIO_LEVEL_MASK()
93 static struct orion_gpio_chip orion_gpio_chips[2];
97 __set_direction(struct orion_gpio_chip *ochip, unsigned pin, int input) in __set_direction()
109 static void __set_level(struct orion_gpio_chip *ochip, unsigned pin, int high) in __set_level()
122 __set_blinking(struct orion_gpio_chip *ochip, unsigned pin, int blink) in __set_blinking()
135 orion_gpio_is_valid(struct orion_gpio_chip *ochip, unsigned pin, int mode) in orion_gpio_is_valid()
158 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_request()
169 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_direction_input()
184 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_get()
199 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_direction_output()
216 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_set()
226 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_to_irq()
235 static struct orion_gpio_chip *orion_gpio_chip_find(int pin) in orion_gpio_chip_find()
240 struct orion_gpio_chip *ochip = orion_gpio_chips + i; in orion_gpio_chip_find()
252 struct orion_gpio_chip *ochip = orion_gpio_chip_find(pin); in orion_gpio_set_unused()
266 struct orion_gpio_chip *ochip = orion_gpio_chip_find(pin); in orion_gpio_set_valid()
289 struct orion_gpio_chip *ochip = orion_gpio_chip_find(pin); in orion_gpio_set_blink()
356 struct orion_gpio_chip *ochip = gc->private; in gpio_irq_set_type()
407 struct orion_gpio_chip *ochip = irq_desc_get_handler_data(desc); in gpio_irq_handler()
444 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_dbg_show()
525 struct orion_gpio_chip *ochip; in orion_gpio_init()