Lines Matching +full:32 +full:k

35  * SENSE is read-write 32-bit with 2-bits or 4-bits per IRQ (*)
36 * PRIO is read-write 32-bit with 4-bits per IRQ (**)
37 * SOURCE is read-only 32-bit or 8-bit with 1-bit per IRQ (***)
38 * MASK is write-only 32-bit or 8-bit with 1-bit per IRQ (***)
39 * CLEAR is write-only 32-bit or 8-bit with 1-bit per IRQ (***)
146 /* The PRIO register is assumed to be 32-bit with fixed 4-bit fields. */ in intc_irqpin_mask_unmask_prio()
148 int shift = 32 - (irq + 1) * bitfield_width; in intc_irqpin_mask_unmask_prio()
157 /* The SENSE register is assumed to be 32-bit. */ in intc_irqpin_set_sense()
159 int shift = 32 - (irq + 1) * bitfield_width; in intc_irqpin_set_sense()
304 int k; in intc_irqpin_shared_irq_handler() local
306 for (k = 0; k < 8; k++) { in intc_irqpin_shared_irq_handler()
307 if (reg_source & BIT(7 - k)) { in intc_irqpin_shared_irq_handler()
308 if (BIT(k) & p->shared_irq_mask) in intc_irqpin_shared_irq_handler()
311 status |= intc_irqpin_irq_handler(irq, &p->irq[k]); in intc_irqpin_shared_irq_handler()
385 int k; in intc_irqpin_probe() local
408 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe()
409 io[k] = platform_get_resource(pdev, IORESOURCE_MEM, k); in intc_irqpin_probe()
410 if (!io[k] && k < INTC_IRQPIN_REG_NR_MANDATORY) { in intc_irqpin_probe()
418 for (k = 0; k < INTC_IRQPIN_MAX; k++) { in intc_irqpin_probe()
419 ret = platform_get_irq_optional(pdev, k); in intc_irqpin_probe()
425 p->irq[k].p = p; in intc_irqpin_probe()
426 p->irq[k].requested_irq = ret; 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()
537 for (k = 0; k < nirqs; k++) { in intc_irqpin_probe()
538 if (devm_request_irq(dev, p->irq[k].requested_irq, in intc_irqpin_probe()
540 &p->irq[k])) { in intc_irqpin_probe()
549 for (k = 0; k < nirqs; k++) in intc_irqpin_probe()
550 intc_irqpin_mask_unmask_prio(p, k, 0); in intc_irqpin_probe()