Lines Matching refs:line

76 	unsigned int (*line_imr_pos)(unsigned int line);
125 static unsigned int realtek_gpio_line_imr_pos_swapped(unsigned int line) in realtek_gpio_line_imr_pos_swapped() argument
127 unsigned int port_pin = line % 8; in realtek_gpio_line_imr_pos_swapped()
128 unsigned int port = line / 8; in realtek_gpio_line_imr_pos_swapped()
151 static unsigned int realtek_gpio_line_imr_pos(unsigned int line) in realtek_gpio_line_imr_pos() argument
153 return 2 * line; in realtek_gpio_line_imr_pos()
167 static void realtek_gpio_update_line_imr(struct realtek_gpio_ctrl *ctrl, unsigned int line) in realtek_gpio_update_line_imr() argument
170 unsigned int line_shift = ctrl->line_imr_pos(line); in realtek_gpio_update_line_imr()
172 u32 irq_type = ctrl->intr_type[line]; in realtek_gpio_update_line_imr()
173 u32 irq_mask = ctrl->intr_mask[line]; in realtek_gpio_update_line_imr()
186 irq_hw_number_t line = irqd_to_hwirq(data); in realtek_gpio_irq_ack() local
188 realtek_gpio_clear_isr(ctrl, BIT(line)); in realtek_gpio_irq_ack()
194 unsigned int line = irqd_to_hwirq(data); in realtek_gpio_irq_unmask() local
197 gpiochip_enable_irq(&ctrl->gc, line); in realtek_gpio_irq_unmask()
200 ctrl->intr_mask[line] = REALTEK_GPIO_IMR_LINE_MASK; in realtek_gpio_irq_unmask()
201 realtek_gpio_update_line_imr(ctrl, line); in realtek_gpio_irq_unmask()
208 unsigned int line = irqd_to_hwirq(data); in realtek_gpio_irq_mask() local
212 ctrl->intr_mask[line] = 0; in realtek_gpio_irq_mask()
213 realtek_gpio_update_line_imr(ctrl, line); in realtek_gpio_irq_mask()
216 gpiochip_disable_irq(&ctrl->gc, line); in realtek_gpio_irq_mask()
222 unsigned int line = irqd_to_hwirq(data); in realtek_gpio_irq_set_type() local
243 ctrl->intr_type[line] = type; in realtek_gpio_irq_set_type()
244 realtek_gpio_update_line_imr(ctrl, line); in realtek_gpio_irq_set_type()
276 unsigned int line = irqd_to_hwirq(data); in realtek_gpio_irq_set_affinity() local
292 v |= BIT(line); in realtek_gpio_irq_set_affinity()
294 v &= ~BIT(line); in realtek_gpio_irq_set_affinity()
310 unsigned int line; in realtek_gpio_irq_init() local
313 for (line = 0; line < gc->ngpio; line++) in realtek_gpio_irq_init()
314 realtek_gpio_update_line_imr(ctrl, line); in realtek_gpio_irq_init()