Lines Matching refs:orion_gpio_chip
40 struct orion_gpio_chip { struct
51 static void __iomem *GPIO_OUT(struct orion_gpio_chip *ochip) in GPIO_OUT() argument
56 static void __iomem *GPIO_IO_CONF(struct orion_gpio_chip *ochip) in GPIO_IO_CONF()
61 static void __iomem *GPIO_BLINK_EN(struct orion_gpio_chip *ochip) in GPIO_BLINK_EN()
66 static void __iomem *GPIO_IN_POL(struct orion_gpio_chip *ochip) in GPIO_IN_POL()
71 static void __iomem *GPIO_DATA_IN(struct orion_gpio_chip *ochip) in GPIO_DATA_IN()
76 static void __iomem *GPIO_EDGE_CAUSE(struct orion_gpio_chip *ochip) in GPIO_EDGE_CAUSE()
81 static void __iomem *GPIO_EDGE_MASK(struct orion_gpio_chip *ochip) in GPIO_EDGE_MASK()
86 static void __iomem *GPIO_LEVEL_MASK(struct orion_gpio_chip *ochip) in GPIO_LEVEL_MASK()
92 static struct orion_gpio_chip orion_gpio_chips[2];
96 __set_direction(struct orion_gpio_chip *ochip, unsigned pin, int input) in __set_direction()
108 static void __set_level(struct orion_gpio_chip *ochip, unsigned pin, int high) in __set_level()
121 __set_blinking(struct orion_gpio_chip *ochip, unsigned pin, int blink) in __set_blinking()
134 orion_gpio_is_valid(struct orion_gpio_chip *ochip, unsigned pin, int mode) in orion_gpio_is_valid()
157 struct orion_gpio_chip *ochip = in orion_gpio_request()
158 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_request()
169 struct orion_gpio_chip *ochip = in orion_gpio_direction_input()
170 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_direction_input()
185 struct orion_gpio_chip *ochip = in orion_gpio_get()
186 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_get()
201 struct orion_gpio_chip *ochip = in orion_gpio_direction_output()
202 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_direction_output()
219 struct orion_gpio_chip *ochip = in orion_gpio_set()
220 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_set()
230 struct orion_gpio_chip *ochip = in orion_gpio_to_irq()
231 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_to_irq()
240 static struct orion_gpio_chip *orion_gpio_chip_find(int pin) in orion_gpio_chip_find()
245 struct orion_gpio_chip *ochip = orion_gpio_chips + i; in orion_gpio_chip_find()
257 struct orion_gpio_chip *ochip = orion_gpio_chip_find(pin); in orion_gpio_set_unused()
271 struct orion_gpio_chip *ochip = orion_gpio_chip_find(pin); in orion_gpio_set_valid()
294 struct orion_gpio_chip *ochip = orion_gpio_chip_find(pin); in orion_gpio_set_blink()
361 struct orion_gpio_chip *ochip = gc->private; in gpio_irq_set_type()
412 struct orion_gpio_chip *ochip = irq_desc_get_handler_data(desc); in gpio_irq_handler()
448 struct orion_gpio_chip *ochip = in orion_gpio_dbg_show()
449 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_dbg_show()
535 struct orion_gpio_chip *ochip; in orion_gpio_init()