/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | psm_types.h | 124 int (*psm_intr_enter)(int ipl, int *vectorp); 125 void (*psm_intr_exit)(int ipl, int irqno); 126 void (*psm_setspl)(int ipl); 127 int (*psm_addspl)(int irqno, int ipl, int min_ipl, int max_ipl); 128 int (*psm_delspl)(int irqno, int ipl, int min_ipl, int max_ipl); 131 int (*psm_softlvl_to_irq)(int ipl); 132 void (*psm_set_softintr)(int ipl); 143 int (*psm_get_clockirq)(int ipl); 160 int (*psm_get_ipivect)(int ipl, int type); 161 void (*psm_send_ipi)(processorid_t cpun, int ipl); [all …]
|
H A D | apix.h | 146 #define INTR_PENDING(apixp, ipl) \ argument 147 ((ipl) <= LOCK_LEVEL ? \ 148 ((apixp)->x_intr_pending & (1 << (ipl))) : \ 302 extern int apix_add_avintr(void *intr_id, int ipl, avfunc xxintr, char *name, 304 extern void apix_rem_avintr(void *intr_id, int ipl, avfunc xxintr, 311 extern uchar_t apix_alloc_ipi(int ipl); 331 extern int apix_addspl(int virtvec, int ipl, int min_ipl, int max_ipl); 332 extern int apix_delspl(int virtvec, int ipl, int min_ipl, int max_ipl);
|
H A D | apic.h | 366 #define APIC_VECTOR(ipl) (apic_ipltopri[ipl] | APIC_RESV_VECT) argument 771 extern void apic_intr_exit(int ipl, int irq); 772 extern void x2apic_intr_exit(int ipl, int irq); 777 extern int apic_addspl_common(int irqno, int ipl, int min_ipl, int max_ipl); 778 extern int apic_delspl_common(int irqno, int ipl, int min_ipl, int max_ipl); 782 extern uchar_t apic_allocate_vector(int ipl, int irq, int pri);
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_log.c | 434 iplog_t *ipl; local 490 ipl = (iplog_t *)buf; 491 ipl->ipl_magic = ipl_magic[dev]; 492 ipl->ipl_count = 1; 493 ipl->ipl_next = NULL; 494 ipl->ipl_dsize = len; 496 GETKTIME(&ipl->ipl_sec); 498 ipl->ipl_sec = 0; 499 ipl->ipl_usec = 0; 506 for (i = 0, ptr = buf + sizeof(*ipl); i < cnt; i++) { [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/ |
H A D | apic.c | 98 static int apic_getclkirq(int ipl); 102 static int apic_intr_enter(int ipl, int *vect); 103 static void apic_setspl(int ipl); 104 static int apic_addspl(int ipl, int vector, int min_ipl, int max_ipl); 105 static int apic_delspl(int ipl, int vector, int min_ipl, int max_ipl); 108 static int apic_get_ipivect(int ipl, int type); 386 int ipl = APIC_PCINT_IPL; in apic_init_intr() local 387 int irq = apic_get_ipivect(ipl, -1); in apic_init_intr() 393 (void) add_avintr(NULL, ipl, in apic_init_intr() 422 int ipl = 0xf; /* get highest priority intr */ in apic_init_intr() local [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/psm/ |
H A D | uppc.c | 52 static int uppc_addspl(int irqno, int ipl, int min_ipl, int max_ipl); 53 static int uppc_delspl(int irqno, int ipl, int min_ipl, int max_ipl); 55 static int uppc_get_clockirq(int ipl); 317 uppc_addspl(int irqno, int ipl, int min_ipl, int max_ipl) in uppc_addspl() argument 327 if (ipl != min_ipl) in uppc_addspl() 332 startidx = (ipl << 1); in uppc_addspl() 335 startidx = (ipl << 1) + 1; in uppc_addspl() 361 uppc_delspl(int irqno, int ipl, int min_ipl, int max_ipl) in uppc_delspl() argument 374 if ((max_ipl != PSM_INVALID_IPL) && (ipl >= min_ipl)) in uppc_delspl() 423 uppc_get_clockirq(int ipl) in uppc_get_clockirq() argument [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix_intr.c | 80 apix_insert_pending_av(apix_impl_t *apixp, struct autovec *avp, int ipl) in apix_insert_pending_av() argument 86 if (tail[ipl] == NULL) { in apix_insert_pending_av() 87 head[ipl] = tail[ipl] = avp; in apix_insert_pending_av() 91 tail[ipl]->av_ipl_link = avp; in apix_insert_pending_av() 92 tail[ipl] = avp; in apix_insert_pending_av() 100 apix_remove_pending_av(apix_impl_t *apixp, int ipl) in apix_remove_pending_av() argument 105 struct autovec *avp = head[ipl]; in apix_remove_pending_av() 121 head[ipl] = avp->av_ipl_link; in apix_remove_pending_av() 124 if (head[ipl] == NULL) in apix_remove_pending_av() 125 tail[ipl] = NULL; in apix_remove_pending_av() [all …]
|
H A D | apix_regops.c | 171 x2apic_send_ipi(int cpun, int ipl) in x2apic_send_ipi() argument 192 vector = apic_resv_vector[ipl]; in x2apic_send_ipi() 260 apic_common_send_ipi(int cpun, int ipl) in apic_common_send_ipi() argument 267 x2apic_send_ipi(cpun, ipl); in apic_common_send_ipi() 273 vector = apic_resv_vector[ipl]; in apic_common_send_ipi()
|
H A D | apix_utils.c | 93 apix_alloc_ipi(int ipl) in apix_alloc_ipi() argument 125 vecp->v_pri = ipl; in apix_alloc_ipi() 141 apix_add_ipi(int ipl, avfunc xxintr, char *name, int vector, in apix_add_ipi() argument 154 apix_insert_av(vecp, NULL, xxintr, arg1, arg2, NULL, ipl, NULL); in apix_add_ipi() 160 "ipl %x\n", name, vector, ipl)); in apix_add_ipi() 556 int repeats, tries, ipl, busy = 0, cpuid = vecp->v_cpuid; in apix_obsolete_vector() local 606 for (ipl = 1; ipl < MIN(LOCK_LEVEL, vecp->v_pri); ipl++) in apix_obsolete_vector() 607 apix_wait_till_seen(cpuid, ipl); in apix_obsolete_vector() 776 #define INIT_AUTOVEC(p, intr_id, f, arg1, arg2, ticksp, ipl, dip) \ argument 783 (p)->av_prilevel = ipl; \ [all …]
|
H A D | apix.c | 470 int ipl = APIC_PCINT_IPL; in apix_init_intr() local 472 apic_cpcovf_vect = apix_get_ipivect(ipl, -1); in apix_init_intr() 475 (void) add_avintr(NULL, ipl, in apix_init_intr() 505 int ipl = 0xf; /* get highest priority intr */ in apix_init_intr() local 506 apic_errvect = apix_get_ipivect(ipl, -1); in apix_init_intr() 512 (void) add_avintr(NULL, ipl, in apix_init_intr() 526 const int ipl = 0x2; in apix_init_intr() local 527 apic_cmci_vect = apix_get_ipivect(ipl, -1); in apix_init_intr() 530 (void) add_avintr(NULL, ipl, in apix_init_intr() 626 apix_intr_enter(int ipl, int *vectorp) in apix_intr_enter() argument [all …]
|
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/common/ |
H A D | intr_common.c | 220 char ipl[3]; in apic_interrupt_dump() local 263 (void) mdb_snprintf(ipl, 3, "%d", avp->avh_hi_pri); in apic_interrupt_dump() 266 (void) mdb_snprintf(ipl, 3, "%d", irqp->airq_ipl); in apic_interrupt_dump() 274 i, irqp->airq_vector, evtchn, ipl, in apic_interrupt_dump() 329 char ipl[3]; in apix_interrupt_dump() local 391 (void) mdb_snprintf(ipl, 3, "%d", avp->av_prilevel); in apix_interrupt_dump() 397 "%-9s ", cpu_vector, irq, evtchn, ipl, in apix_interrupt_dump() 421 char ipl[3]; in apix_interrupt_ipi_dump() local 446 (void) mdb_snprintf(ipl, 3, "%d", vectp->v_pri); in apix_interrupt_ipi_dump() 453 cpu_vector, "- ", evtchn, ipl, "- ", "Edg", in apix_interrupt_ipi_dump()
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | evtchn.c | 524 ec_setup_pirq(int irq, int ipl, cpuset_t *cpusp) in ec_setup_pirq() argument 544 irqp->ii_u2.ipl = ipl; in ec_setup_pirq() 549 ASSERT(irqp->ii_u2.ipl != 0); in ec_setup_pirq() 551 if (ipl > irqp->ii_u2.ipl) in ec_setup_pirq() 552 irqp->ii_u2.ipl = ipl; in ec_setup_pirq() 661 irqp->ii_u2.ipl = pri; in ec_set_irq_priority() 674 irqp->ii_u2.ipl = 0; in ec_clear_irq_priority() 717 ec_bind_ipi_to_irq(int ipl, int cpu) in ec_bind_ipi_to_irq() argument 725 ipip = &ipi_info[ipl]; in ec_bind_ipi_to_irq() 732 ipip->mi_irq = alloc_irq(IRQT_IPI, ipl, evtchn, cpu); in ec_bind_ipi_to_irq() [all …]
|
/illumos-gate/usr/src/uts/i86xpv/io/psm/ |
H A D | xpv_uppc.c | 249 xen_uppc_addspl(int irqno, int ipl, int min_ipl, int max_ipl) in xen_uppc_addspl() argument 265 ec_setup_pirq(irqno, ipl, &cpus); in xen_uppc_addspl() 270 ret = ec_set_irq_priority(irqno, ipl); in xen_uppc_addspl() 283 xen_uppc_delspl(int irqno, int ipl, int min_ipl, int max_ipl) in xen_uppc_delspl() argument 321 xen_uppc_get_clockirq(int ipl) in xen_uppc_get_clockirq() argument 757 xen_uppc_intr_enter(int ipl, int *vector) in xen_uppc_intr_enter() argument 806 xen_uppc_intr_exit(int ipl, int vector) in xen_uppc_intr_exit() argument 809 xen_uppc_setspl(ipl); in xen_uppc_intr_exit() 822 xen_uppc_setspl(int ipl) in xen_uppc_setspl() argument 834 pending = cpu->cpu_m.mcpu_intr_pending & ~((1 << (ipl + 1)) - 1); in xen_uppc_setspl() [all …]
|
H A D | xpv_psm.c | 307 xen_psm_send_ipi(int cpun, int ipl) in xen_psm_send_ipi() argument 311 ec_send_ipi(ipl, cpun); in xen_psm_send_ipi() 317 xen_psm_addspl(int irqno, int ipl, int min_ipl, int max_ipl) in xen_psm_addspl() argument 331 ret = apic_addspl_common(irqno, ipl, min_ipl, max_ipl); in xen_psm_addspl() 336 ret = ec_set_irq_priority(irqno, ipl); in xen_psm_addspl() 373 xen_psm_delspl(int irqno, int ipl, int min_ipl, int max_ipl) in xen_psm_delspl() argument 388 err = apic_delspl_common(irqno, ipl, min_ipl, max_ipl); in xen_psm_delspl() 459 xen_psm_get_ipivect(int ipl, int type) in xen_psm_get_ipivect() argument 461 return (ec_bind_ipi_to_irq(ipl, 0)); in xen_psm_get_ipivect() 466 xen_psm_get_clockirq(int ipl) in xen_psm_get_clockirq() argument [all …]
|
H A D | mp_platform_xpv.c | 84 static void apic_try_deferred_reprogram(int ipl, int vect); 319 apic_addspl_common(int irqno, int ipl, int min_ipl, int max_ipl) in apic_addspl_common() argument 353 if (ipl != max_ipl) in apic_addspl_common() 450 apic_delspl_common(int irqno, int ipl, int min_ipl, int max_ipl) in apic_delspl_common() argument 483 if (ipl < max_ipl) in apic_delspl_common() 897 apic_share_vector(int irqno, iflag_t *intr_flagp, short intr_index, int ipl, in apic_share_vector() argument 909 "intr_index=0x%x ipl=0x%x\n", irqno, intr_index, ipl)); in apic_share_vector() 911 highest = apic_ipltopri[ipl] + APIC_VECTOR_MASK; in apic_share_vector() 912 lowest = apic_ipltopri[ipl-1] + APIC_VECTOR_PER_IPL; in apic_share_vector() 1004 uchar_t ipl = ispec->intrspec_pri; in apic_setup_irq_table() local [all …]
|
/illumos-gate/usr/src/uts/sun4/io/ |
H A D | cbe.c | 140 int ipl; in cbe_set_level() local 144 ipl = CBE_LOW_PIL; in cbe_set_level() 147 ipl = CBE_LOCK_PIL; in cbe_set_level() 150 ipl = CBE_HIGH_PIL; in cbe_set_level() 156 return (splr(ipl)); in cbe_set_level()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_sadb.c | 52 ipsec_match_outbound_ids(ipsec_latch_t *ipl, ipsa_t *sa) in ipsec_match_outbound_ids() argument 54 ASSERT(ipl->ipl_ids_latched == B_TRUE); in ipsec_match_outbound_ids() 55 return ipsid_equal(ipl->ipl_local_cid, sa->ipsa_src_cid) && in ipsec_match_outbound_ids() 56 ipsid_equal(ipl->ipl_remote_cid, sa->ipsa_dst_cid); in ipsec_match_outbound_ids() 109 ipsec_latch_t *ipl = ixa->ixa_ipsec_latch; in ipsec_getassocbyconn() local 131 if (ipl != NULL) { in ipsec_getassocbyconn() 313 if (ipl && ipl->ipl_ids_latched && in ipsec_getassocbyconn() 314 !ipsec_match_outbound_ids(ipl, retval)) in ipsec_getassocbyconn() 434 if (ipl != NULL) { in ipsec_getassocbyconn() 435 if (!ipl->ipl_ids_latched) { in ipsec_getassocbyconn() [all …]
|
H A D | spd.c | 1458 ipsec_latch_t *ipl; in ipsec_req_from_conn() local 1464 ipl = connp->conn_latch; in ipsec_req_from_conn() 1471 if (ipl != NULL) { in ipsec_req_from_conn() 1741 spd_match_inbound_ids(ipsec_latch_t *ipl, ipsa_t *sa) in spd_match_inbound_ids() argument 1743 ASSERT(ipl->ipl_ids_latched == B_TRUE); in spd_match_inbound_ids() 1744 return ipsid_equal(ipl->ipl_remote_cid, sa->ipsa_src_cid) && in spd_match_inbound_ids() 1745 ipsid_equal(ipl->ipl_local_cid, sa->ipsa_dst_cid); in spd_match_inbound_ids() 1800 ipsec_check_ipsecin_latch(ip_recv_attr_t *ira, mblk_t *mp, ipsec_latch_t *ipl, in ipsec_check_ipsecin_latch() argument 1806 ASSERT(ipl->ipl_ids_latched == B_TRUE); in ipsec_check_ipsecin_latch() 1816 if (!spd_match_inbound_ids(ipl, in ipsec_check_ipsecin_latch() [all …]
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipmon.c | 728 iplog_t *ipl = (iplog_t *)buf; local 734 nl = (struct natlog *)((char *)ipl + sizeof(*ipl)); 736 tm = get_tm(ipl->ipl_sec); 746 (void) sprintf(t, ".%-.6ld @%hd ", ipl->ipl_usec, nl->nlg_rule + 1); 811 iplog_t *ipl = (iplog_t *)buf; local 816 sl = (struct ipslog *)((char *)ipl + sizeof(*ipl)); 818 tm = get_tm(ipl->ipl_sec); 828 (void) sprintf(t, ".%-.6ld ", ipl->ipl_usec); 927 iplog_t *ipl; local 932 ipl = (iplog_t *)buf; [all …]
|
H A D | ipmon_y.y | 464 iplog_t *ipl; local 470 ipl = (iplog_t *)buf; 471 ipf = (ipflog_t *)(ipl +1); 486 if ((a->ac_type != 0) && (a->ac_type != ipl->ipl_magic)) 597 fwrite(ipl, 1, ipl->ipl_dsize, a->ac_savefp); 614 sizeof(*ipl) +
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | cbe.c | 148 int ipl; in cbe_set_level() local 152 ipl = CBE_LOW_PIL; in cbe_set_level() 155 ipl = CBE_LOCK_PIL; in cbe_set_level() 158 ipl = CBE_HIGH_PIL; in cbe_set_level() 164 return (splr(ipltospl(ipl))); in cbe_set_level()
|
H A D | mp_platform_misc.c | 97 static void apic_try_deferred_reprogram(int ipl, int vect); 367 apic_addspl_common(int irqno, int ipl, int min_ipl, int max_ipl) in apic_addspl_common() argument 401 if (ipl != max_ipl) in apic_addspl_common() 498 apic_delspl_common(int irqno, int ipl, int min_ipl, int max_ipl) in apic_delspl_common() argument 531 if (ipl < max_ipl) in apic_delspl_common() 947 apic_share_vector(int irqno, iflag_t *intr_flagp, short intr_index, int ipl, in apic_share_vector() argument 959 "intr_index=0x%x ipl=0x%x\n", irqno, intr_index, ipl)); in apic_share_vector() 961 highest = apic_ipltopri[ipl] + APIC_VECTOR_MASK; in apic_share_vector() 962 lowest = apic_ipltopri[ipl-1] + APIC_VECTOR_PER_IPL; in apic_share_vector() 1054 uchar_t ipl; in apic_setup_irq_table() local [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | avintr.c | 517 wait_till_seen(int ipl) in wait_till_seen() argument 529 if (INTR_ACTIVE(cpup, ipl)) { in wait_till_seen() 548 int ipl; in remove_av() local 555 ipl = pri_level; in remove_av() 571 if (ipl < hi_pri) in remove_av() 572 ipl = hi_pri; in remove_av() 594 wait_till_seen(ipl); in remove_av() 607 wait_till_seen(ipl); in remove_av()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | errorq.c | 295 ulong_t qlen, size_t size, uint_t ipl, uint_t flags) in errorq_create() argument 298 ddi_iblock_cookie_t ibc = (ddi_iblock_cookie_t)(uintptr_t)ipltospl(ipl); in errorq_create() 306 ASSERT(ipl > 0 && ipl <= LOCK_LEVEL); in errorq_create() 317 "IPL %u softint for queue %s", ipl, name); in errorq_create() 346 eqp->eq_ipl = ipl; in errorq_create() 394 ulong_t qlen, size_t size, uint_t ipl, uint_t flags) in errorq_nvcreate() argument 400 size + sizeof (errorq_nvelem_t), ipl, flags | ERRORQ_NVLIST); in errorq_nvcreate()
|
/illumos-gate/usr/src/cmd/mdb/i86xpv/modules/xpv_uppc/ |
H A D | xpv_uppc.c | 273 mdb_printf("%6d/%-2d ", irq_tbl[i].ii_u2.ipl, irq_tbl[i].ii_u2.ipl); in ec_interrupt_dump() 380 mdb_printf("%6d/%-2d ", irq_tbl[irq].ii_u2.ipl, in evtchn_dump() 381 irq_tbl[irq].ii_u2.ipl); in evtchn_dump()
|