Lines Matching defs:line

51  * @imr_line_pos: Bit shift of an IRQ line's IMR value.
57 * bit shift of the 2-bit field for a line's IMR settings. Shifts larger than
62 * mask/unmask the interrupts for a GPIO line, and @intr_type is used to store
76 unsigned int (*line_imr_pos)(unsigned int line);
84 * An interrupt would appear to come from a different line than the
85 * line the IRQ handler was assigned to, causing uncaught interrupts.
125 static unsigned int realtek_gpio_line_imr_pos_swapped(unsigned int line)
127 unsigned int port_pin = line % 8;
128 unsigned int port = line / 8;
151 static unsigned int realtek_gpio_line_imr_pos(unsigned int line)
153 return 2 * line;
167 static void realtek_gpio_update_line_imr(struct realtek_gpio_ctrl *ctrl, unsigned int line)
170 unsigned int line_shift = ctrl->line_imr_pos(line);
172 u32 irq_type = ctrl->intr_type[line];
173 u32 irq_mask = ctrl->intr_mask[line];
186 irq_hw_number_t line = irqd_to_hwirq(data);
188 realtek_gpio_clear_isr(ctrl, BIT(line));
194 unsigned int line = irqd_to_hwirq(data);
197 gpiochip_enable_irq(&ctrl->gc, line);
200 ctrl->intr_mask[line] = REALTEK_GPIO_IMR_LINE_MASK;
201 realtek_gpio_update_line_imr(ctrl, line);
208 unsigned int line = irqd_to_hwirq(data);
212 ctrl->intr_mask[line] = 0;
213 realtek_gpio_update_line_imr(ctrl, line);
216 gpiochip_disable_irq(&ctrl->gc, line);
222 unsigned int line = irqd_to_hwirq(data);
243 ctrl->intr_type[line] = type;
244 realtek_gpio_update_line_imr(ctrl, line);
276 unsigned int line = irqd_to_hwirq(data);
292 v |= BIT(line);
294 v &= ~BIT(line);
310 unsigned int line;
313 for (line = 0; line < gc->ngpio; line++)
314 realtek_gpio_update_line_imr(ctrl, line);