Lines Matching refs:i
247 int i; in arch_init_irq() local
250 for (i = 0; i < 256; i++) { in arch_init_irq()
251 if (i & 0x80) { in arch_init_irq()
252 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 7; in arch_init_irq()
253 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 7; in arch_init_irq()
254 lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 7; in arch_init_irq()
255 lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 7; in arch_init_irq()
256 } else if (i & 0x40) { in arch_init_irq()
257 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 6; in arch_init_irq()
258 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 6; in arch_init_irq()
259 lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 6; in arch_init_irq()
260 lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 6; in arch_init_irq()
261 } else if (i & 0x20) { in arch_init_irq()
262 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 5; in arch_init_irq()
263 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 5; in arch_init_irq()
264 lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 5; in arch_init_irq()
265 lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 5; in arch_init_irq()
266 } else if (i & 0x10) { in arch_init_irq()
267 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 4; in arch_init_irq()
268 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 4; in arch_init_irq()
269 lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 4; in arch_init_irq()
270 lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 4; in arch_init_irq()
271 } else if (i & 0x08) { in arch_init_irq()
272 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 3; in arch_init_irq()
273 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 3; in arch_init_irq()
274 lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 3; in arch_init_irq()
275 lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 3; in arch_init_irq()
276 } else if (i & 0x04) { in arch_init_irq()
277 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 2; in arch_init_irq()
278 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 2; in arch_init_irq()
279 lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 2; in arch_init_irq()
280 lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 2; in arch_init_irq()
281 } else if (i & 0x02) { in arch_init_irq()
282 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 1; in arch_init_irq()
283 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 1; in arch_init_irq()
284 lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 1; in arch_init_irq()
285 lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 1; in arch_init_irq()
286 } else if (i & 0x01) { in arch_init_irq()
287 lc0msk_to_irqnr[i] = SGINT_LOCAL0 + 0; in arch_init_irq()
288 lc1msk_to_irqnr[i] = SGINT_LOCAL1 + 0; in arch_init_irq()
289 lc2msk_to_irqnr[i] = SGINT_LOCAL2 + 0; in arch_init_irq()
290 lc3msk_to_irqnr[i] = SGINT_LOCAL3 + 0; in arch_init_irq()
292 lc0msk_to_irqnr[i] = 0; in arch_init_irq()
293 lc1msk_to_irqnr[i] = 0; in arch_init_irq()
294 lc2msk_to_irqnr[i] = 0; in arch_init_irq()
295 lc3msk_to_irqnr[i] = 0; in arch_init_irq()
308 for (i = SGINT_LOCAL0; i < SGI_INTERRUPTS; i++) { in arch_init_irq()
311 if (i < SGINT_LOCAL1) in arch_init_irq()
313 else if (i < SGINT_LOCAL2) in arch_init_irq()
315 else if (i < SGINT_LOCAL3) in arch_init_irq()
320 irq_set_chip_and_handler(i, handler, handle_level_irq); in arch_init_irq()