Lines Matching +full:32 +full:k

36  * SENSE is read-write 32-bit with 2-bits or 4-bits per IRQ (*)
37 * PRIO is read-write 32-bit with 4-bits per IRQ (**)
38 * SOURCE is read-only 32-bit or 8-bit with 1-bit per IRQ (***)
39 * MASK is write-only 32-bit or 8-bit with 1-bit per IRQ (***)
40 * CLEAR is write-only 32-bit or 8-bit with 1-bit per IRQ (***)
147 /* The PRIO register is assumed to be 32-bit with fixed 4-bit fields. */ in intc_irqpin_mask_unmask_prio()
149 int shift = 32 - (irq + 1) * bitfield_width; in intc_irqpin_mask_unmask_prio()
158 /* The SENSE register is assumed to be 32-bit. */ in intc_irqpin_set_sense()
160 int shift = 32 - (irq + 1) * bitfield_width; in intc_irqpin_set_sense()
305 int k; in intc_irqpin_shared_irq_handler() local
307 for (k = 0; k < 8; k++) { in intc_irqpin_shared_irq_handler()
308 if (reg_source & BIT(7 - k)) { in intc_irqpin_shared_irq_handler()
309 if (BIT(k) & p->shared_irq_mask) in intc_irqpin_shared_irq_handler()
312 status |= intc_irqpin_irq_handler(irq, &p->irq[k]); in intc_irqpin_shared_irq_handler()
386 int k; in intc_irqpin_probe() local
409 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe()
410 io[k] = platform_get_resource(pdev, IORESOURCE_MEM, k); in intc_irqpin_probe()
411 if (!io[k] && k < INTC_IRQPIN_REG_NR_MANDATORY) { in intc_irqpin_probe()
419 for (k = 0; k < INTC_IRQPIN_MAX; k++) { in intc_irqpin_probe()
420 ret = platform_get_irq_optional(pdev, k); in intc_irqpin_probe()
426 p->irq[k].p = p; in intc_irqpin_probe()
427 p->irq[k].requested_irq = ret; in intc_irqpin_probe()
430 nirqs = k; in intc_irqpin_probe()
438 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe()
439 i = &p->iomem[k]; in intc_irqpin_probe()
442 if (!io[k]) in intc_irqpin_probe()
445 switch (resource_size(io[k])) { in intc_irqpin_probe()
452 i->width = 32; in intc_irqpin_probe()
462 i->iomem = devm_ioremap(dev, io[k]->start, in intc_irqpin_probe()
463 resource_size(io[k])); in intc_irqpin_probe()
481 for (k = 0; k < nirqs; k++) in intc_irqpin_probe()
482 intc_irqpin_mask_unmask_prio(p, k, 1); in intc_irqpin_probe()
490 for (k = 1; k < nirqs; k++) { in intc_irqpin_probe()
491 if (ref_irq != p->irq[k].requested_irq) { in intc_irqpin_probe()
538 for (k = 0; k < nirqs; k++) { in intc_irqpin_probe()
539 if (devm_request_irq(dev, p->irq[k].requested_irq, in intc_irqpin_probe()
541 &p->irq[k])) { in intc_irqpin_probe()
550 for (k = 0; k < nirqs; k++) in intc_irqpin_probe()
551 intc_irqpin_mask_unmask_prio(p, k, 0); in intc_irqpin_probe()