Lines Matching refs:f
55 struct ft010_irq_data *f = irq_data_get_irq_chip_data(d); in ft010_irq_mask() local
58 mask = readl(FT010_IRQ_MASK(f->base)); in ft010_irq_mask()
60 writel(mask, FT010_IRQ_MASK(f->base)); in ft010_irq_mask()
65 struct ft010_irq_data *f = irq_data_get_irq_chip_data(d); in ft010_irq_unmask() local
68 mask = readl(FT010_IRQ_MASK(f->base)); in ft010_irq_unmask()
70 writel(mask, FT010_IRQ_MASK(f->base)); in ft010_irq_unmask()
75 struct ft010_irq_data *f = irq_data_get_irq_chip_data(d); in ft010_irq_ack() local
77 writel(BIT(irqd_to_hwirq(d)), FT010_IRQ_CLEAR(f->base)); in ft010_irq_ack()
82 struct ft010_irq_data *f = irq_data_get_irq_chip_data(d); in ft010_irq_set_type() local
86 mode = readl(FT010_IRQ_MODE(f->base)); in ft010_irq_set_type()
87 polarity = readl(FT010_IRQ_POLARITY(f->base)); in ft010_irq_set_type()
111 writel(mode, FT010_IRQ_MODE(f->base)); in ft010_irq_set_type()
112 writel(polarity, FT010_IRQ_POLARITY(f->base)); in ft010_irq_set_type()
130 struct ft010_irq_data *f = &firq; in ft010_irqchip_handle_irq() local
134 while ((status = readl(FT010_IRQ_STATUS(f->base)))) { in ft010_irqchip_handle_irq()
136 generic_handle_domain_irq(f->domain, irq); in ft010_irqchip_handle_irq()
143 struct ft010_irq_data *f = d->host_data; in ft010_irqdomain_map() local
145 irq_set_chip_data(irq, f); in ft010_irqdomain_map()
168 struct ft010_irq_data *f = &firq; in ft010_of_init_irq() local
176 f->base = of_iomap(node, 0); in ft010_of_init_irq()
177 WARN(!f->base, "unable to map gemini irq registers\n"); in ft010_of_init_irq()
180 writel(0, FT010_IRQ_MASK(f->base)); in ft010_of_init_irq()
181 writel(0, FT010_FIQ_MASK(f->base)); in ft010_of_init_irq()
183 f->domain = irq_domain_add_simple(node, FT010_NUM_IRQS, 0, in ft010_of_init_irq()
184 &ft010_irqdomain_ops, f); in ft010_of_init_irq()