Lines Matching +full:32 +full:k
48 * SENSE is read-write 32-bit with 2-bits or 4-bits per IRQ (*)
49 * PRIO is read-write 32-bit with 4-bits per IRQ (**)
50 * SOURCE is read-only 32-bit or 8-bit with 1-bit per IRQ (***)
51 * MASK is write-only 32-bit or 8-bit with 1-bit per IRQ (***)
52 * CLEAR is write-only 32-bit or 8-bit with 1-bit per IRQ (***)
160 /* The PRIO register is assumed to be 32-bit with fixed 4-bit fields. */ in intc_irqpin_mask_unmask_prio()
162 int shift = 32 - (irq + 1) * bitfield_width; in intc_irqpin_mask_unmask_prio()
171 /* The SENSE register is assumed to be 32-bit. */ in intc_irqpin_set_sense()
173 int shift = 32 - (irq + 1) * bitfield_width; in intc_irqpin_set_sense()
318 int k; in intc_irqpin_shared_irq_handler() local
320 for (k = 0; k < 8; k++) { in intc_irqpin_shared_irq_handler()
321 if (reg_source & BIT(7 - k)) { in intc_irqpin_shared_irq_handler()
322 if (BIT(k) & p->shared_irq_mask) in intc_irqpin_shared_irq_handler()
325 status |= intc_irqpin_irq_handler(irq, &p->irq[k]); in intc_irqpin_shared_irq_handler()
401 int k; in intc_irqpin_probe() local
426 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe()
427 io[k] = platform_get_resource(pdev, IORESOURCE_MEM, k); in intc_irqpin_probe()
428 if (!io[k] && k < INTC_IRQPIN_REG_NR_MANDATORY) { in intc_irqpin_probe()
436 for (k = 0; k < INTC_IRQPIN_MAX; k++) { in intc_irqpin_probe()
437 irq = platform_get_resource(pdev, IORESOURCE_IRQ, k); in intc_irqpin_probe()
441 p->irq[k].p = p; in intc_irqpin_probe()
442 p->irq[k].requested_irq = irq->start; in intc_irqpin_probe()
445 nirqs = k; in intc_irqpin_probe()
453 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe()
454 i = &p->iomem[k]; in intc_irqpin_probe()
457 if (!io[k]) in intc_irqpin_probe()
460 switch (resource_size(io[k])) { in intc_irqpin_probe()
467 i->width = 32; in intc_irqpin_probe()
477 i->iomem = devm_ioremap_nocache(dev, io[k]->start, in intc_irqpin_probe()
478 resource_size(io[k])); in intc_irqpin_probe()
496 for (k = 0; k < nirqs; k++) in intc_irqpin_probe()
497 intc_irqpin_mask_unmask_prio(p, k, 1); in intc_irqpin_probe()
505 for (k = 1; k < nirqs; k++) { in intc_irqpin_probe()
506 if (ref_irq != p->irq[k].requested_irq) { in intc_irqpin_probe()
551 for (k = 0; k < nirqs; k++) { in intc_irqpin_probe()
552 if (devm_request_irq(dev, p->irq[k].requested_irq, in intc_irqpin_probe()
554 &p->irq[k])) { in intc_irqpin_probe()
563 for (k = 0; k < nirqs; k++) in intc_irqpin_probe()
564 intc_irqpin_mask_unmask_prio(p, k, 0); in intc_irqpin_probe()