Lines Matching refs:gpio_num
101 static int sch_gpio_direction_in(struct gpio_chip *gc, unsigned int gpio_num) in sch_gpio_direction_in() argument
107 sch_gpio_reg_set(sch, gpio_num, GIO, 1); in sch_gpio_direction_in()
112 static int sch_gpio_get(struct gpio_chip *gc, unsigned int gpio_num) in sch_gpio_get() argument
116 return sch_gpio_reg_get(sch, gpio_num, GLV); in sch_gpio_get()
119 static void sch_gpio_set(struct gpio_chip *gc, unsigned int gpio_num, int val) in sch_gpio_set() argument
125 sch_gpio_reg_set(sch, gpio_num, GLV, val); in sch_gpio_set()
129 static int sch_gpio_direction_out(struct gpio_chip *gc, unsigned int gpio_num, in sch_gpio_direction_out() argument
136 sch_gpio_reg_set(sch, gpio_num, GIO, 0); in sch_gpio_direction_out()
148 sch_gpio_set(gc, gpio_num, val); in sch_gpio_direction_out()
152 static int sch_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio_num) in sch_gpio_get_direction() argument
156 if (sch_gpio_reg_get(sch, gpio_num, GIO)) in sch_gpio_get_direction()
176 irq_hw_number_t gpio_num = irqd_to_hwirq(d); in sch_irq_type() local
199 sch_gpio_reg_set(sch, gpio_num, GTPE, rising); in sch_irq_type()
200 sch_gpio_reg_set(sch, gpio_num, GTNE, falling); in sch_irq_type()
213 irq_hw_number_t gpio_num = irqd_to_hwirq(d); in sch_irq_ack() local
217 sch_gpio_reg_set(sch, gpio_num, GTS, 1); in sch_irq_ack()
225 irq_hw_number_t gpio_num = irqd_to_hwirq(d); in sch_irq_mask_unmask() local
229 sch_gpio_reg_set(sch, gpio_num, GGPE, val); in sch_irq_mask_unmask()