Lines Matching refs:pic0
139 uint8_t ptm_picno; /* 0 for pic0 or 1 for pic1 */
900 ptm_pcbe_config_t *pic0;
905 if ((pic0 = kcpc_next_config(token, NULL, NULL)) == NULL)
908 if ((pic1 = kcpc_next_config(token, pic0, NULL)) == NULL)
911 if (pic0->ptm_picno != 0) {
914 pic1 = pic0;
915 pic0 = tmp;
918 ASSERT(pic0->ptm_picno == 0 && pic1->ptm_picno == 1);
930 wrmsr(P5_CTR0, pic0->ptm_rawpic);
932 wrmsr(P5_CESR, pic0->ptm_ctl | pic1->ptm_ctl);
933 pic0->ptm_rawpic = rdmsr(P5_CTR0);
938 wrmsr(REG_PERFCTR0, pic0->ptm_rawpic);
943 pes = pic0->ptm_ctl | (1 << CPC_P6_PES_EN);
963 ptm_pcbe_config_t *pic0;
973 if ((pic0 = kcpc_next_config(token, NULL, &pic0_data)) == NULL)
976 if ((pic1 = kcpc_next_config(token, pic0, &pic1_data)) == NULL) {
981 if (pic0->ptm_picno != 0) {
983 swap = pic0;
984 pic0 = pic1;
991 ASSERT(pic0->ptm_picno == 0 && pic1->ptm_picno == 1);
1004 *pic0_data += diff3931(curpic[0], pic0->ptm_rawpic);
1005 pic0->ptm_rawpic = trunc3931(*pic0_data);