Lines Matching refs:iic
49 struct iic { struct
57 static DEFINE_PER_CPU(struct iic, cpu_iic); argument
85 struct iic *iic = &__get_cpu_var(cpu_iic); in iic_eoi() local
86 out_be64(&iic->regs->prio, iic->eoi_stack[--iic->eoi_ptr]); in iic_eoi()
87 BUG_ON(iic->eoi_ptr < 0); in iic_eoi()
148 struct iic *iic; in iic_get_irq() local
151 iic = &__get_cpu_var(cpu_iic); in iic_get_irq()
153 in_be64((u64 __iomem *) &iic->regs->pending_destr); in iic_get_irq()
159 iic->eoi_stack[++iic->eoi_ptr] = pending.prio; in iic_get_irq()
160 BUG_ON(iic->eoi_ptr > 15); in iic_get_irq()
300 struct iic *iic = &per_cpu(cpu_iic, hw_cpu); in init_one_iic() local
302 iic->regs = ioremap(addr, sizeof(struct cbe_iic_thread_regs)); in init_one_iic()
303 BUG_ON(iic->regs == NULL); in init_one_iic()
305 iic->target_id = ((hw_cpu & 2) << 3) | ((hw_cpu & 1) ? 0xf : 0xe); in init_one_iic()
306 iic->eoi_stack[0] = 0xff; in init_one_iic()
307 iic->node = of_node_get(node); in init_one_iic()
308 out_be64(&iic->regs->prio, 0); in init_one_iic()
311 hw_cpu, iic->target_id, node->full_name); in init_one_iic()