Lines Matching refs:pic0

128 	uint_t		pcbe_picno;	/* 0 for pic0 or 1 for pic1 */
410 * Fortunately, both pic0 and pic1 can count all events.
420 uint32_t pic0, pic1;
433 pic0 = (uint32_t)(pic & PIC0_MASK);
441 pic_inrange = PIC_IN_OV_RANGE(pic0);
444 pic_inrange = SAMPLE_PIC_IN_OV_RANGE(pic0);
447 pic0 = 0;
467 ultra_setpic(((uint64_t)pic1 << PIC1_SHIFT) | pic0);
611 ni2_pcbe_config_t *pic0;
619 /* enable trap-on-event for pic0 and pic1 */
622 if ((pic0 = (ni2_pcbe_config_t *)kcpc_next_config(token, NULL, NULL)) ==
626 if ((pic1 = kcpc_next_config(token, pic0, NULL)) == NULL) {
628 nullcfg.pcbe_flags = pic0->pcbe_flags;
629 toe = CPC_PCR_TOE0; /* enable trap-on-event for pic0 */
632 if (pic0->pcbe_picno != 0) {
634 * pic0 is counter 1, so if we need the null config it should
638 tmp = pic0;
639 pic0 = pic1;
644 if (pic0->pcbe_picno != 0 || pic1->pcbe_picno != 1)
648 * UltraSPARC does not allow pic0 to be configured differently
653 ASSERT(pic0->pcbe_flags == pic1->pcbe_flags);
658 (uint64_t)pic0->pcbe_pic);
660 pcr = (pic0->pcbe_evsel & pcr_pic0_mask) << CPC_PCR_PIC0_SHIFT;
664 if (pic0->pcbe_flags & CPC_COUNT_USER)
666 if (pic0->pcbe_flags & CPC_COUNT_SYSTEM)
668 if (pic0->pcbe_flags & CPC_COUNT_HV)
671 if (pic0->pcbe_flags & CPC_COUNT_SAMPLE_MODE)
681 if ((pic0->pcbe_evsel & L2_dmiss_ld_event) == L2_dmiss_ld_event)
691 if (pic0->pcbe_flags & CPC_COUNT_HV) {
717 pic0->pcbe_pic = (uint32_t)(curpic & PIC0_MASK);
749 ni2_pcbe_config_t *pic0;
757 if ((pic0 = kcpc_next_config(token, NULL, &pic0_data)) == NULL)
760 if ((pic1 = kcpc_next_config(token, pic0, &pic1_data)) == NULL) {
765 if (pic0->pcbe_picno != 0) {
767 ctmp = pic0;
768 pic0 = pic1;
775 if (pic0->pcbe_picno != 0 || pic1->pcbe_picno != 1)
779 if (pic0->pcbe_flags & CPC_COUNT_HV) {
795 diff = (curpic & PIC0_MASK) - (uint64_t)pic0->pcbe_pic;
805 pic0->pcbe_pic = (uint32_t)(curpic & PIC0_MASK);