Home
last modified time | relevance | path

Searched refs:pcr (Results 1 – 21 of 21) sorted by relevance

/titanic_50/usr/src/uts/sun4u/pcbe/
H A Dopl_pcbe.c196 #define SPARC64_VI_PCR_SEL_PIC(pcr, picno) { \ argument
197 pcr &= ~((CPC_SPARC64_VI_PCR_SC_MASK \
200 pcr |= (((picno) & CPC_SPARC64_VI_PCR_SC_MASK) \
204 #define SPARC64_VI_PCR_SEL_EVENT(pcr, sl, su) { \ argument
205 pcr &= ~((CPC_SPARC64_VI_PCR_PIC_MASK \
210 pcr |= (((sl) & CPC_SPARC64_VI_PCR_PIC_MASK) \
212 pcr |= (((su) & CPC_SPARC64_VI_PCR_PIC_MASK) \
216 #define SPARC64_VI_CHK_OVF(pcr, picno) \ argument
217 ((pcr) & (UINT64_C(1) << (CPC_SPARC64_VI_PCR_OVF_SHIFT + picno)))
219 #define SPARC64_VI_CLR_OVF(pcr, picno) { \ argument
[all …]
H A Dus234_pcbe.c823 uint64_t pcr; in us_pcbe_program() local
861 pcr = (pic0->us_bits & pcr_pic_mask) << in us_pcbe_program()
863 pcr |= (pic1->us_bits & pcr_pic_mask) << in us_pcbe_program()
867 pcr |= (1ull << CPC_ULTRA_PCR_USR); in us_pcbe_program()
869 pcr |= (1ull << CPC_ULTRA_PCR_SYS); in us_pcbe_program()
871 DTRACE_PROBE1(ultra__pcr, uint64_t, pcr); in us_pcbe_program()
873 ultra_setpcr(pcr); in us_pcbe_program()
/titanic_50/usr/src/uts/common/syscall/
H A Dppriv.c58 cred_t *cr, *pcr; in setppriv() local
73 pcr = p->p_cred; in setppriv()
76 audit_setppriv(op, type, &pset, pcr); in setppriv()
90 !priv_issubset(&pset, &CR_LPRIV(pcr))) { in setppriv()
95 if (!priv_issubset(&pset, &CR_OPPRIV(pcr)) && in setppriv()
96 !priv_issubset(&pset, priv_getset(pcr, type))) { in setppriv()
100 !priv_issubset(&pset, &CR_LPRIV(pcr)) || in setppriv()
106 if (pcr != p->p_cred) in setppriv()
121 crcopy_to(pcr, cr); in setppriv()
171 priv_intersect(&CR_OPPRIV(pcr), &diff); in setppriv()
[all …]
H A Ducredsys.c131 cred_t *pcr; in ucred_get() local
137 pcr = CRED(); in ucred_get()
138 crhold(pcr); in ucred_get()
166 err = priv_proc_cred_perm(CRED(), p, &pcr, VREAD); in ucred_get()
173 uc = cred2ucred(pcr, pid, NULL, CRED()); in ucred_get()
175 crfree(pcr); in ucred_get()
/titanic_50/usr/src/uts/sun4v/pcbe/
H A Dniagara2_pcbe.c418 uint64_t pcr, overflow; in ni2_pcbe_overflow_bitmap() local
425 pcr = ultra_getpcr(); in ni2_pcbe_overflow_bitmap()
426 DTRACE_PROBE1(niagara2__getpcr, uint64_t, pcr); in ni2_pcbe_overflow_bitmap()
427 overflow = (pcr & CPC_PCR_OV0_MASK) >> in ni2_pcbe_overflow_bitmap()
429 overflow |= (pcr & CPC_PCR_OV1_MASK) >> in ni2_pcbe_overflow_bitmap()
436 pcr |= (CPC_PCR_HOLDOV0 | CPC_PCR_HOLDOV1); in ni2_pcbe_overflow_bitmap()
439 pcr &= ~(CPC_PCR_OV0_MASK | in ni2_pcbe_overflow_bitmap()
443 if (pcr & CPC_PCR_SAMPLE_MODE_MASK) in ni2_pcbe_overflow_bitmap()
453 pcr &= ~(CPC_PCR_OV1_MASK | in ni2_pcbe_overflow_bitmap()
457 if (pcr & CPC_PCR_SAMPLE_MODE_MASK) in ni2_pcbe_overflow_bitmap()
[all …]
H A Dniagara_pcbe.c323 uint64_t pcr, overflow; in ni_pcbe_overflow_bitmap() local
325 pcr = ultra_getpcr(); in ni_pcbe_overflow_bitmap()
326 DTRACE_PROBE1(niagara__getpcr, uint64_t, pcr); in ni_pcbe_overflow_bitmap()
327 overflow = (pcr & CPC_PCR_OVF_MASK) >> in ni_pcbe_overflow_bitmap()
335 ultra_setpcr(pcr & ~CPC_PCR_OVF_MASK); in ni_pcbe_overflow_bitmap()
400 uint64_t pcr; in ni_pcbe_program() local
442 pcr = (pic0->pcbe_bits & pcr_pic0_mask) << CPC_PCR_PIC0_SHIFT; in ni_pcbe_program()
443 pcr |= (pic1->pcbe_bits & pcr_pic1_mask) << CPC_PCR_PIC1_SHIFT; in ni_pcbe_program()
446 pcr |= (1ull << CPC_PCR_USR); in ni_pcbe_program()
448 pcr |= (1ull << CPC_PCR_SYS); in ni_pcbe_program()
[all …]
/titanic_50/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_cmp.c232 av1394_pcr_t *pcr; in av1394_ioctl_plug_reg_read() local
253 if ((pcr = av1394_pcr_ph2pcr(cmp, ph)) != NULL) { in av1394_ioctl_plug_reg_read()
254 pr.pr_val = pcr->pcr_val; in av1394_ioctl_plug_reg_read()
281 av1394_pcr_t *pcr; in av1394_ioctl_plug_reg_cas() local
303 if ((pcr = av1394_pcr_ph2pcr(cmp, ph)) != NULL) { in av1394_ioctl_plug_reg_cas()
305 pl.pl_old = pcr->pcr_val; in av1394_ioctl_plug_reg_cas()
306 if (pcr->pcr_val == pl.pl_arg) { in av1394_ioctl_plug_reg_cas()
307 pcr->pcr_val = pl.pl_data; in av1394_ioctl_plug_reg_cas()
451 av1394_pcr_t *pcr; in av1394_pcr_init() local
455 pcr = kmem_zalloc(sizeof (av1394_pcr_t), KM_SLEEP); in av1394_pcr_init()
[all …]
/titanic_50/usr/src/cmd/ptools/pcred/
H A Dpcred.c141 credupdate(prcred_t *pcr) in credupdate() argument
144 pcr->pr_euid = pcr->pr_ruid = pcr->pr_suid = uid; in credupdate()
146 pcr->pr_egid = pcr->pr_rgid = pcr->pr_sgid = gid; in credupdate()
149 pcr->pr_ngroups = ngrp; in credupdate()
151 (void) memcpy(pcr->pr_groups, groups, ngrp * sizeof (gid_t)); in credupdate()
/titanic_50/usr/src/uts/sun4/ml/
H A Dcpc_hwreg.s39 ultra_setpcr(uint64_t pcr)
60 wr %o0, %pcr
65 rd %pcr, %o0
/titanic_50/usr/src/uts/sun4v/cpu/
H A Dniagara_perfctr.c306 uint64_t stat, pcr; in niagara_kstat_init() local
320 stat = hv_niagara_getperf(dram_perf_regs[i].pcr_reg, &pcr); in niagara_kstat_init()
364 stat = hv_niagara_getperf(lpu_perf_regs[i].pcr_reg, &pcr); in niagara_kstat_init()
400 stat = hv_niagara_getperf(gpd_perf_regs[i].pcr_reg, &pcr); in niagara_kstat_init()
436 stat = hv_niagara_getperf(asu_perf_regs[i].pcr_reg, &pcr); in niagara_kstat_init()
722 uint64_t pic0, pic1, pcr; in zam_cntr_kstat_update() local
747 &pcr); in zam_cntr_kstat_update()
752 data_p[0].value.ui64 = pcr; in zam_cntr_kstat_update()
760 ksinfop->pcr_reg, pcr, in zam_cntr_kstat_update()
778 uint64_t pic, pcr; in ni_cntr_kstat_update() local
[all …]
/titanic_50/usr/src/lib/libcpc/sparc/
H A Devent_ultra.c354 unmake_pcr(uint64_t pcr, int cpuver, struct xpcr *xpcr) in unmake_pcr() argument
371 xpcr->pic[0] = (uint8_t)((pcr >> kv[D_pic0].kv_shift) & in unmake_pcr()
373 xpcr->pic[1] = (uint8_t)((pcr >> kv[D_pic1].kv_shift) & in unmake_pcr()
375 xpcr->usr = (pcr >> kv[D_nouser].kv_shift) & in unmake_pcr()
377 xpcr->sys = (pcr >> kv[D_sys].kv_shift) & in unmake_pcr()
/titanic_50/usr/src/common/net/wanboot/crypt/
H A Ddes.c350 unsigned char pcr[56]; /* place to rotate pc1 into */ in des_key() local
367 pcr[j] = pc1m[(l = j + totrot[decrypt ? 15 - i : i]) < in des_key()
372 if (pcr[pc2[j] - 1]) { in des_key()
/titanic_50/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_stats.c343 uint64_t pcr; in hermon_kstat_cntr_update() local
389 pcr = ksi->hki_pcr; in hermon_kstat_cntr_update()
390 indx = pcr & HERMON_CNTR_MASK; in hermon_kstat_cntr_update()
391 data[0].value.ui64 = pcr; in hermon_kstat_cntr_update()
476 indx = pcr >> HERMON_CNTR_SIZE; in hermon_kstat_cntr_update()
/titanic_50/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_stats.c383 uint64_t offset, pcr; in tavor_kstat_cntr_update() local
430 pcr = ksi->tki_pcr; in tavor_kstat_cntr_update()
431 indx = pcr & TAVOR_CNTR_MASK; in tavor_kstat_cntr_update()
432 data[0].value.ui64 = pcr; in tavor_kstat_cntr_update()
464 indx = pcr >> TAVOR_CNTR_SIZE; in tavor_kstat_cntr_update()
/titanic_50/usr/src/cmd/busstat/
H A Dbusstat.c895 uint64_t pcr; in set_evt() local
939 pcr = cnt_data[0].value.ui64; in set_evt()
947 pcr = pcr & clear_pcr_mask; in set_evt()
952 pcr = pcr | evt_node->evt_pcr_mask; in set_evt()
953 cnt_data[0].value.ui64 = pcr; in set_evt()
/titanic_50/usr/src/uts/common/os/
H A Dklpd.c546 cred_t *pcr; in klpd_reg() local
555 crhold(pcr = p->p_cred); in klpd_reg()
562 ckp = crgetcrklpd(pcr); in klpd_reg()
564 crfree(pcr); in klpd_reg()
569 crfree(pcr); in klpd_reg()
H A Dpriv.c571 priv_proc_cred_perm(const cred_t *scr, proc_t *tp, cred_t **pcr, int mode) in priv_proc_cred_perm() argument
624 if (res == 0 && pcr != NULL) in priv_proc_cred_perm()
625 *pcr = tcr; in priv_proc_cred_perm()
/titanic_50/usr/src/uts/common/io/sfe/
H A Dsfe.c1024 uint32_t pcr; in sfe_set_media() local
1138 pcr = INL(dp, PCR); in sfe_set_media()
1142 OUTL(dp, PCR, pcr | PCR_PSEN | PCR_PS_MCAST); in sfe_set_media()
1147 pcr & ~(PCR_PSEN | PCR_PS_MCAST | PCR_PS_DA)); in sfe_set_media()
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_api.c13203 WRT16_IO_REG(ha, pcr, 0x2000); in ql_2200_binary_fw_dump()
13207 WRT16_IO_REG(ha, pcr, 0x2100); in ql_2200_binary_fw_dump()
13211 WRT16_IO_REG(ha, pcr, 0x2200); in ql_2200_binary_fw_dump()
13215 WRT16_IO_REG(ha, pcr, 0x2300); in ql_2200_binary_fw_dump()
13219 WRT16_IO_REG(ha, pcr, 0x2400); in ql_2200_binary_fw_dump()
13223 WRT16_IO_REG(ha, pcr, 0x2500); in ql_2200_binary_fw_dump()
13227 WRT16_IO_REG(ha, pcr, 0x2600); in ql_2200_binary_fw_dump()
13231 WRT16_IO_REG(ha, pcr, 0x2700); in ql_2200_binary_fw_dump()
13417 WRT16_IO_REG(ha, pcr, 0x2000); in ql_2300_binary_fw_dump()
13421 WRT16_IO_REG(ha, pcr, 0x2200); in ql_2300_binary_fw_dump()
[all …]
/titanic_50/usr/src/uts/common/io/
H A Dtl.c5978 tl_fill_option(uchar_t *buf, cred_t *cr, pid_t cpid, int flag, cred_t *pcr) in tl_fill_option() argument
6005 (void) cred2ucred(cr, cpid, (void *)(opt + 1), pcr); in tl_fill_option()
6014 (void) cred2ucred(cr, cpid, (void *)(topt + 1), pcr); in tl_fill_option()
/titanic_50/usr/src/uts/common/sys/fibre-channel/fca/qlc/
H A Dql_api.h477 uint16_t pcr; /* Processor Control Register. */ member