Lines Matching refs:ic
34 static inline u32 lpc32xx_ic_read(struct lpc32xx_irq_chip *ic, u32 reg) in lpc32xx_ic_read() argument
36 return readl_relaxed(ic->base + reg); in lpc32xx_ic_read()
39 static inline void lpc32xx_ic_write(struct lpc32xx_irq_chip *ic, in lpc32xx_ic_write() argument
42 writel_relaxed(val, ic->base + reg); in lpc32xx_ic_write()
47 struct lpc32xx_irq_chip *ic = irq_data_get_irq_chip_data(d); in lpc32xx_irq_mask() local
50 val = lpc32xx_ic_read(ic, LPC32XX_INTC_MASK) & ~mask; in lpc32xx_irq_mask()
51 lpc32xx_ic_write(ic, LPC32XX_INTC_MASK, val); in lpc32xx_irq_mask()
56 struct lpc32xx_irq_chip *ic = irq_data_get_irq_chip_data(d); in lpc32xx_irq_unmask() local
59 val = lpc32xx_ic_read(ic, LPC32XX_INTC_MASK) | mask; in lpc32xx_irq_unmask()
60 lpc32xx_ic_write(ic, LPC32XX_INTC_MASK, val); in lpc32xx_irq_unmask()
65 struct lpc32xx_irq_chip *ic = irq_data_get_irq_chip_data(d); in lpc32xx_irq_ack() local
68 lpc32xx_ic_write(ic, LPC32XX_INTC_RAW, mask); in lpc32xx_irq_ack()
73 struct lpc32xx_irq_chip *ic = irq_data_get_irq_chip_data(d); in lpc32xx_irq_set_type() local
101 val = lpc32xx_ic_read(ic, LPC32XX_INTC_POL); in lpc32xx_irq_set_type()
106 lpc32xx_ic_write(ic, LPC32XX_INTC_POL, val); in lpc32xx_irq_set_type()
108 val = lpc32xx_ic_read(ic, LPC32XX_INTC_TYPE); in lpc32xx_irq_set_type()
116 lpc32xx_ic_write(ic, LPC32XX_INTC_TYPE, val); in lpc32xx_irq_set_type()
123 struct lpc32xx_irq_chip *ic = lpc32xx_mic_irqc; in lpc32xx_handle_irq() local
124 u32 hwirq = lpc32xx_ic_read(ic, LPC32XX_INTC_STAT), irq; in lpc32xx_handle_irq()
135 struct lpc32xx_irq_chip *ic = irq_desc_get_handler_data(desc); in lpc32xx_sic_handler() local
137 u32 hwirq = lpc32xx_ic_read(ic, LPC32XX_INTC_STAT), irq; in lpc32xx_sic_handler()
144 generic_handle_domain_irq(ic->domain, irq); in lpc32xx_sic_handler()
153 struct lpc32xx_irq_chip *ic = id->host_data; in lpc32xx_irq_domain_map() local
155 irq_set_chip_data(virq, ic); in lpc32xx_irq_domain_map()
156 irq_set_chip_and_handler(virq, &ic->chip, handle_level_irq); in lpc32xx_irq_domain_map()