Lines Matching refs:i
200 int i; in alloc_descs() local
202 for (i = 0; i < cnt; i++) { in alloc_descs()
203 desc = alloc_desc(start + i, node, owner); in alloc_descs()
207 irq_insert_desc(start + i, desc); in alloc_descs()
213 for (i--; i >= 0; i--) in alloc_descs()
214 free_desc(start + i); in alloc_descs()
232 int i, initcnt, node = first_online_node; in early_irq_init() local
250 for (i = 0; i < initcnt; i++) { in early_irq_init()
251 desc = alloc_desc(i, node, NULL); in early_irq_init()
252 set_bit(i, allocated_irqs); in early_irq_init()
253 irq_insert_desc(i, desc); in early_irq_init()
270 int count, i, node = first_online_node; in early_irq_init() local
280 for (i = 0; i < count; i++) { in early_irq_init()
281 desc[i].kstat_irqs = alloc_percpu(unsigned int); in early_irq_init()
282 alloc_masks(&desc[i], GFP_KERNEL, node); in early_irq_init()
283 raw_spin_lock_init(&desc[i].lock); in early_irq_init()
284 lockdep_set_class(&desc[i].lock, &irq_desc_lock_class); in early_irq_init()
285 desc_set_defaults(i, &desc[i], node, NULL); in early_irq_init()
309 u32 i; in alloc_descs() local
311 for (i = 0; i < cnt; i++) { in alloc_descs()
312 struct irq_desc *desc = irq_to_desc(start + i); in alloc_descs()
406 int i; in irq_free_descs() local
411 for (i = 0; i < cnt; i++) in irq_free_descs()
412 free_desc(from + i); in irq_free_descs()
486 int i, irq = __irq_alloc_descs(-1, 0, cnt, node, NULL); in irq_alloc_hwirqs() local
491 for (i = irq; cnt > 0; i++, cnt--) { in irq_alloc_hwirqs()
492 if (arch_setup_hwirq(i, node)) in irq_alloc_hwirqs()
494 irq_clear_status_flags(i, _IRQ_NOREQUEST); in irq_alloc_hwirqs()
499 for (i--; i >= irq; i--) { in irq_alloc_hwirqs()
500 irq_set_status_flags(i, _IRQ_NOREQUEST | _IRQ_NOPROBE); in irq_alloc_hwirqs()
501 arch_teardown_hwirq(i); in irq_alloc_hwirqs()
516 int i, j; in irq_free_hwirqs() local
518 for (i = from, j = cnt; j > 0; i++, j--) { in irq_free_hwirqs()
519 irq_set_status_flags(i, _IRQ_NOREQUEST | _IRQ_NOPROBE); in irq_free_hwirqs()
520 arch_teardown_hwirq(i); in irq_free_hwirqs()