Lines Matching refs:irqp

244 	apic_irq_t	*irqp;
252 for (irqp = apic_irq_table[i]; irqp; irqp = irqp->airq_next) {
253 if ((irqp->airq_dip == dip) &&
254 (irqp->airq_origirq == ispec->intrspec_vec) &&
255 (irqp->airq_ipl == ispec->intrspec_pri)) {
257 if (irqp->airq_mps_intr_index ==
259 return (irqp);
261 if (irqp->airq_mps_intr_index ==
263 return (irqp);
265 return (irqp);
274 * This function will return the pending bit of the irqp.
280 apic_get_pending(apic_irq_t *irqp, int type)
286 DDI_INTR_IMPLDBG((CE_CONT, "apic_get_pending: irqp: %p, cpuid: %x "
287 "type: %x\n", (void *)irqp, irqp->airq_cpu & ~IRQ_USER_BOUND,
292 affinity_set(irqp->airq_cpu & ~IRQ_USER_BOUND);
294 index = irqp->airq_vector / 32;
295 bit = irqp->airq_vector % 32;
304 intin_no = irqp->airq_intin_no;
305 apic_ix = irqp->airq_ioapicindex;
317 apic_clear_mask(apic_irq_t *irqp)
324 DDI_INTR_IMPLDBG((CE_CONT, "apic_clear_mask: irqp: %p\n",
325 (void *)irqp));
327 intin_no = irqp->airq_intin_no;
328 apic_ix = irqp->airq_ioapicindex;
348 apic_set_mask(apic_irq_t *irqp)
355 DDI_INTR_IMPLDBG((CE_CONT, "apic_set_mask: irqp: %p\n", (void *)irqp));
357 intin_no = irqp->airq_intin_no;
358 apic_ix = irqp->airq_ioapicindex;
456 apic_irq_t *irqp;
463 irqp = apic_irq_table[irqno];
466 if (irqp == NULL) {
472 if ((irqp->airq_mps_intr_index == MSI_INDEX) &&
473 (irqp->airq_intin_no > 1)) {
481 ret = apic_rebind_all(irqp, cpu);
493 irqp->airq_cpu = cpu;
763 apic_irq_t *irqp;
829 if ((irqp = apic_find_irq(dip, ispec, hdlp->ih_type)) == NULL)
831 *result = apic_get_pending(irqp, hdlp->ih_type);
836 irqp = apic_find_irq(dip, ispec, hdlp->ih_type);
837 if (irqp == NULL)
839 apic_clear_mask(irqp);
844 if ((irqp = apic_find_irq(dip, ispec, hdlp->ih_type)) == NULL)
846 apic_set_mask(irqp);
858 if ((irqp = apic_find_irq(dip, ispec, hdlp->ih_type)) == NULL)
860 *result = (irqp->airq_share > 1) ? 1: 0;