Home
last modified time | relevance | path

Searched refs:pic0 (Results 1 – 6 of 6) sorted by relevance

/titanic_41/usr/src/uts/sun4v/pcbe/
H A Dniagara2_pcbe.c420 uint32_t pic0, pic1; in ni2_pcbe_overflow_bitmap() local
433 pic0 = (uint32_t)(pic & PIC0_MASK); in ni2_pcbe_overflow_bitmap()
441 pic_inrange = PIC_IN_OV_RANGE(pic0); in ni2_pcbe_overflow_bitmap()
444 pic_inrange = SAMPLE_PIC_IN_OV_RANGE(pic0); in ni2_pcbe_overflow_bitmap()
447 pic0 = 0; in ni2_pcbe_overflow_bitmap()
467 ultra_setpic(((uint64_t)pic1 << PIC1_SHIFT) | pic0); in ni2_pcbe_overflow_bitmap()
611 ni2_pcbe_config_t *pic0; in ni2_pcbe_program() local
622 if ((pic0 = (ni2_pcbe_config_t *)kcpc_next_config(token, NULL, NULL)) == in ni2_pcbe_program()
626 if ((pic1 = kcpc_next_config(token, pic0, NULL)) == NULL) { in ni2_pcbe_program()
628 nullcfg.pcbe_flags = pic0->pcbe_flags; in ni2_pcbe_program()
[all …]
H A Dniagara_pcbe.c396 ni_pcbe_config_t *pic0; in ni_pcbe_program() local
403 if ((pic0 = (ni_pcbe_config_t *)kcpc_next_config(token, NULL, NULL)) == in ni_pcbe_program()
407 if ((pic1 = kcpc_next_config(token, pic0, NULL)) == NULL) { in ni_pcbe_program()
409 empty.pcbe_flags = pic0->pcbe_flags; in ni_pcbe_program()
412 if (pic0->pcbe_picno != 0) { in ni_pcbe_program()
422 tmp = pic0; in ni_pcbe_program()
423 pic0 = pic1; in ni_pcbe_program()
427 if (pic0->pcbe_picno != 0 || pic1->pcbe_picno != 1) in ni_pcbe_program()
436 ASSERT(pic0->pcbe_flags == pic1->pcbe_flags); in ni_pcbe_program()
440 (uint64_t)pic0->pcbe_pic); in ni_pcbe_program()
[all …]
/titanic_41/usr/src/uts/sun4u/pcbe/
H A Dus234_pcbe.c819 us_pcbe_config_t *pic0; in us_pcbe_program() local
826 if ((pic0 = (us_pcbe_config_t *)kcpc_next_config(token, NULL, NULL)) == in us_pcbe_program()
830 if ((pic1 = kcpc_next_config(token, pic0, NULL)) == NULL) { in us_pcbe_program()
832 empty.us_flags = pic0->us_flags; in us_pcbe_program()
835 if (pic0->us_picno != 0) { in us_pcbe_program()
842 tmp = pic0; in us_pcbe_program()
843 pic0 = pic1; in us_pcbe_program()
847 if (pic0->us_picno != 0 || pic1->us_picno != 1) in us_pcbe_program()
856 ASSERT(pic0->us_flags == pic1->us_flags); in us_pcbe_program()
859 ultra_setpic(((uint64_t)pic1->us_pic << 32) | (uint64_t)pic0->us_pic); in us_pcbe_program()
[all …]
/titanic_41/usr/src/uts/intel/pcbe/
H A Dp123_pcbe.c900 ptm_pcbe_config_t *pic0; in ptm_pcbe_program() local
905 if ((pic0 = kcpc_next_config(token, NULL, NULL)) == NULL) in ptm_pcbe_program()
908 if ((pic1 = kcpc_next_config(token, pic0, NULL)) == NULL) in ptm_pcbe_program()
911 if (pic0->ptm_picno != 0) { in ptm_pcbe_program()
914 pic1 = pic0; in ptm_pcbe_program()
915 pic0 = tmp; in ptm_pcbe_program()
918 ASSERT(pic0->ptm_picno == 0 && pic1->ptm_picno == 1); in ptm_pcbe_program()
930 wrmsr(P5_CTR0, pic0->ptm_rawpic); in ptm_pcbe_program()
932 wrmsr(P5_CESR, pic0->ptm_ctl | pic1->ptm_ctl); in ptm_pcbe_program()
933 pic0->ptm_rawpic = rdmsr(P5_CTR0); in ptm_pcbe_program()
[all …]
/titanic_41/usr/src/uts/sun4v/cpu/
H A Dniagara_perfctr.c722 uint64_t pic0, pic1, pcr; in zam_cntr_kstat_update() local
739 &pic0); in zam_cntr_kstat_update()
753 data_p[1].value.ui64 = pic0; in zam_cntr_kstat_update()
780 uint32_t pic0, pic1; in ni_cntr_kstat_update() local
802 pic0 = (uint32_t)((pic >> ksinfop->pic_shift[0]) & in ni_cntr_kstat_update()
804 if (pic0 < ksinfop->pic_last_val[0]) in ni_cntr_kstat_update()
806 ksinfop->pic_last_val[0] = pic0; in ni_cntr_kstat_update()
807 pic0 += (ksinfop->pic_overflow[0] & 1) << 31; in ni_cntr_kstat_update()
808 data_p[1].value.ui64 = (uint64_t)pic0; in ni_cntr_kstat_update()
/titanic_41/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_stats.c384 uint32_t pic0, pic1, tmp; in tavor_kstat_cntr_update() local
447 pic0 = ddi_get32(state->ts_reg_cmdhdl, (uint32_t *) in tavor_kstat_cntr_update()
450 tmp = ((pic0 >> shift) & mask); in tavor_kstat_cntr_update()