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()
387 int k; in intc_irqpin_probe() local
410 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe()
411 io[k] = platform_get_resource(pdev, IORESOURCE_MEM, k); in intc_irqpin_probe()
412 if (!io[k] && k < INTC_IRQPIN_REG_NR_MANDATORY) { in intc_irqpin_probe()
420 for (k = 0; k < INTC_IRQPIN_MAX; k++) { in intc_irqpin_probe()
421 irq = platform_get_resource(pdev, IORESOURCE_IRQ, k); in intc_irqpin_probe()
425 p->irq[k].p = p; in intc_irqpin_probe()
426 p->irq[k].requested_irq = irq->start; in intc_irqpin_probe()
429 nirqs = k; in intc_irqpin_probe()
437 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe()
438 i = &p->iomem[k]; in intc_irqpin_probe()
441 if (!io[k]) in intc_irqpin_probe()
444 switch (resource_size(io[k])) { in intc_irqpin_probe()
451 i->width = 32; in intc_irqpin_probe()
461 i->iomem = devm_ioremap(dev, io[k]->start, in intc_irqpin_probe()
462 resource_size(io[k])); in intc_irqpin_probe()
480 for (k = 0; k < nirqs; k++) in intc_irqpin_probe()
481 intc_irqpin_mask_unmask_prio(p, k, 1); in intc_irqpin_probe()
489 for (k = 1; k < nirqs; k++) { in intc_irqpin_probe()
490 if (ref_irq != p->irq[k].requested_irq) { in intc_irqpin_probe()
536 for (k = 0; k < nirqs; k++) { in intc_irqpin_probe()
537 if (devm_request_irq(dev, p->irq[k].requested_irq, in intc_irqpin_probe()
539 &p->irq[k])) { in intc_irqpin_probe()
548 for (k = 0; k < nirqs; k++) in intc_irqpin_probe()
549 intc_irqpin_mask_unmask_prio(p, k, 0); in intc_irqpin_probe()