Lines Matching refs:io_base

49 	void __iomem *io_base = irq_data_get_irq_chip_data(d);  in flipper_pic_mask_and_ack()  local
52 clrbits32(io_base + FLIPPER_IMR, mask); in flipper_pic_mask_and_ack()
54 out_be32(io_base + FLIPPER_ICR, mask); in flipper_pic_mask_and_ack()
60 void __iomem *io_base = irq_data_get_irq_chip_data(d); in flipper_pic_ack() local
63 out_be32(io_base + FLIPPER_ICR, 1 << irq); in flipper_pic_ack()
69 void __iomem *io_base = irq_data_get_irq_chip_data(d); in flipper_pic_mask() local
71 clrbits32(io_base + FLIPPER_IMR, 1 << irq); in flipper_pic_mask()
77 void __iomem *io_base = irq_data_get_irq_chip_data(d); in flipper_pic_unmask() local
79 setbits32(io_base + FLIPPER_IMR, 1 << irq); in flipper_pic_unmask()
116 static void __flipper_quiesce(void __iomem *io_base) in __flipper_quiesce() argument
119 out_be32(io_base + FLIPPER_IMR, 0x00000000); in __flipper_quiesce()
120 out_be32(io_base + FLIPPER_ICR, 0xffffffff); in __flipper_quiesce()
128 void __iomem *io_base; in flipper_pic_init() local
146 io_base = ioremap(res.start, resource_size(&res)); in flipper_pic_init()
148 pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base); in flipper_pic_init()
150 __flipper_quiesce(io_base); in flipper_pic_init()
153 &flipper_irq_domain_ops, io_base); in flipper_pic_init()
165 void __iomem *io_base = flipper_irq_host->host_data; in flipper_pic_get_irq() local
169 irq_status = in_be32(io_base + FLIPPER_ICR) & in flipper_pic_get_irq()
170 in_be32(io_base + FLIPPER_IMR); in flipper_pic_get_irq()
211 void __iomem *io_base = flipper_irq_host->host_data; in flipper_quiesce() local
213 __flipper_quiesce(io_base); in flipper_quiesce()
221 void __iomem *io_base; in flipper_platform_reset() local
224 io_base = flipper_irq_host->host_data; in flipper_platform_reset()
225 out_8(io_base + FLIPPER_RESET, 0x00); in flipper_platform_reset()
234 void __iomem *io_base; in flipper_is_reset_button_pressed() local
238 io_base = flipper_irq_host->host_data; in flipper_is_reset_button_pressed()
239 icr = in_be32(io_base + FLIPPER_ICR); in flipper_is_reset_button_pressed()