Searched defs:pcr (Results 1 - 19 of 19) sorted by relevance

/illumos-gate/usr/src/common/net/wanboot/crypt/
H A Ddes.c350 unsigned char pcr[56]; /* place to rotate pc1 into */ local
367 pcr[j] = pc1m[(l = j + totrot[decrypt ? 15 - i : i]) <
372 if (pcr[pc2[j] - 1]) {
/illumos-gate/usr/src/uts/common/syscall/
H A Ducredsys.c131 cred_t *pcr; local
137 pcr = CRED();
138 crhold(pcr);
166 err = priv_proc_cred_perm(CRED(), p, &pcr, VREAD);
173 uc = cred2ucred(pcr, pid, NULL, CRED());
175 crfree(pcr);
H A Dppriv.c58 cred_t *cr, *pcr; local
73 pcr = p->p_cred;
76 audit_setppriv(op, type, &pset, pcr);
90 !priv_issubset(&pset, &CR_LPRIV(pcr))) {
95 if (!priv_issubset(&pset, &CR_OPPRIV(pcr)) &&
96 !priv_issubset(&pset, priv_getset(pcr, type))) {
100 !priv_issubset(&pset, &CR_LPRIV(pcr)) ||
106 if (pcr != p->p_cred)
121 crcopy_to(pcr, cr);
171 priv_intersect(&CR_OPPRIV(pcr),
247 cred_t *cr, *pcr; local
[all...]
/illumos-gate/usr/src/cmd/ptools/pcred/
H A Dpcred.c141 credupdate(prcred_t *pcr) argument
144 pcr->pr_euid = pcr->pr_ruid = pcr->pr_suid = uid;
146 pcr->pr_egid = pcr->pr_rgid = pcr->pr_sgid = gid;
149 pcr->pr_ngroups = ngrp;
151 (void) memcpy(pcr->pr_groups, groups, ngrp * sizeof (gid_t));
/illumos-gate/usr/src/lib/libcpc/sparc/
H A Devent_ultra.c354 unmake_pcr(uint64_t pcr, int cpuver, struct xpcr *xpcr) argument
371 xpcr->pic[0] = (uint8_t)((pcr >> kv[D_pic0].kv_shift) &
373 xpcr->pic[1] = (uint8_t)((pcr >> kv[D_pic1].kv_shift) &
375 xpcr->usr = (pcr >> kv[D_nouser].kv_shift) &
377 xpcr->sys = (pcr >> kv[D_sys].kv_shift) &
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_cmp.c232 av1394_pcr_t *pcr; local
253 if ((pcr = av1394_pcr_ph2pcr(cmp, ph)) != NULL) {
254 pr.pr_val = pcr->pcr_val;
281 av1394_pcr_t *pcr; local
303 if ((pcr = av1394_pcr_ph2pcr(cmp, ph)) != NULL) {
305 pl.pl_old = pcr->pcr_val;
306 if (pcr->pcr_val == pl.pl_arg) {
307 pcr->pcr_val = pl.pl_data;
451 av1394_pcr_t *pcr; local
455 pcr
643 av1394_pcr_t *pcr; local
679 av1394_pcr_t *pcr; local
[all...]
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_stats.c255 * Write event names and their associated pcr masks. The last entry
296 * num_pic + 1 because it also contains the "%pcr".
308 * Initialize the named kstats (for the "pcr" and for the
311 kstat_named_init(&cntr_named_data[0], "pcr", KSTAT_DATA_UINT64);
343 uint64_t pcr; local
367 * writing the "pcr" control register, we need to handle and
370 * If this is a write to the "pcr", then extract the value from
381 /* Update the stored "pcr" value */
386 * Get the current "pcr" value and extract the lower
389 pcr
[all...]
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_stats.c288 * Write event names and their associated pcr masks. The last entry
332 * num_pic + 1 because it also contains the "%pcr".
347 * Initialize the named kstats (for the "pcr" and for the
350 kstat_named_init(&cntr_named_data[0], "pcr", KSTAT_DATA_UINT64);
383 uint64_t offset, pcr; local
407 * writing the "pcr" control register, we need to handle and
410 * If this is a write to the "pcr", then extract the value from
421 /* Update the stored "pcr" value */
427 * Get the current "pcr" value and extract the lower
430 pcr
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dpriv.c571 priv_proc_cred_perm(const cred_t *scr, proc_t *tp, cred_t **pcr, int mode) argument
624 if (res == 0 && pcr != NULL)
625 *pcr = tcr;
H A Dklpd.c548 cred_t *pcr; local
557 crhold(pcr = p->p_cred);
564 ckp = crgetcrklpd(pcr);
566 crfree(pcr);
571 crfree(pcr);
/illumos-gate/usr/src/uts/sun4v/cpu/
H A Dniagara_perfctr.c43 * Data structure used to build array of event-names and pcr-mask values
306 uint64_t stat, pcr; local
320 stat = hv_niagara_getperf(dram_perf_regs[i].pcr_reg, &pcr);
364 stat = hv_niagara_getperf(lpu_perf_regs[i].pcr_reg, &pcr);
400 stat = hv_niagara_getperf(gpd_perf_regs[i].pcr_reg, &pcr);
436 stat = hv_niagara_getperf(asu_perf_regs[i].pcr_reg, &pcr);
627 * Write event names and their associated pcr masks. The
675 * also contains the %pcr
690 kstat_named_init(&counters_named_data[0], "pcr", KSTAT_DATA_UINT64);
722 uint64_t pic0, pic1, pcr; local
778 uint64_t pic, pcr; local
[all...]
/illumos-gate/usr/src/uts/sun4v/pcbe/
H A Dniagara_pcbe.c121 uint32_t pcbe_bits; /* %pcr event code unshifted */
323 uint64_t pcr, overflow; local
325 pcr = ultra_getpcr();
326 DTRACE_PROBE1(niagara__getpcr, uint64_t, pcr);
327 overflow = (pcr & CPC_PCR_OVF_MASK) >>
335 ultra_setpcr(pcr & ~CPC_PCR_OVF_MASK);
400 uint64_t pcr; local
442 pcr = (pic0->pcbe_bits & pcr_pic0_mask) << CPC_PCR_PIC0_SHIFT;
443 pcr |= (pic1->pcbe_bits & pcr_pic1_mask) << CPC_PCR_PIC1_SHIFT;
446 pcr |
[all...]
H A Dniagara2_pcbe.c129 uint32_t pcbe_evsel; /* %pcr event code unshifted */
418 uint64_t pcr, overflow; local
425 pcr = ultra_getpcr();
426 DTRACE_PROBE1(niagara2__getpcr, uint64_t, pcr);
427 overflow = (pcr & CPC_PCR_OV0_MASK) >>
429 overflow |= (pcr & CPC_PCR_OV1_MASK) >>
436 pcr |= (CPC_PCR_HOLDOV0 | CPC_PCR_HOLDOV1);
439 pcr &= ~(CPC_PCR_OV0_MASK |
443 if (pcr & CPC_PCR_SAMPLE_MODE_MASK)
453 pcr
615 uint64_t pcr; local
748 uint64_t pcr; local
[all...]
/illumos-gate/usr/src/cmd/busstat/
H A Dbusstat.c292 * kstat is the pcr value/name. We are looking for the
794 * as a pcr mask. If given as pcr mask, we try to match it
796 * the pcr mask value.
815 * See if the pcr mask given by the user matches that for any
895 uint64_t pcr; local
937 * Read the current pcr value from device.
939 pcr = cnt_data[0].value.ui64;
942 * Clear the section of the pcr which corresponds to the
943 * pic we are setting events on. Also clear the pcr valu
[all...]
/illumos-gate/usr/src/uts/sun4u/pcbe/
H A Dopl_pcbe.c121 uint32_t opl_bits; /* %pcr event code unshifted */
149 * ULRO and OVRO bits should be on upon accessing pcr unless
196 #define SPARC64_VI_PCR_SEL_PIC(pcr, picno) { \
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) { \
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, picn
649 uint64_t pcr; local
717 uint64_t pcr; local
810 uint64_t pcr; local
[all...]
H A Dus234_pcbe.c122 uint32_t us_bits; /* %pcr event code unshifted */
823 uint64_t pcr; local
861 pcr = (pic0->us_bits & pcr_pic_mask) <<
863 pcr |= (pic1->us_bits & pcr_pic_mask) <<
867 pcr |= (1ull << CPC_ULTRA_PCR_USR);
869 pcr |= (1ull << CPC_ULTRA_PCR_SYS);
871 DTRACE_PROBE1(ultra__pcr, uint64_t, pcr);
873 ultra_setpcr(pcr);
/illumos-gate/usr/src/uts/common/io/sfe/
H A Dsfe.c1024 uint32_t pcr; local
1138 pcr = INL(dp, PCR);
1142 OUTL(dp, PCR, pcr | PCR_PSEN | PCR_PS_MCAST);
1147 pcr & ~(PCR_PSEN | PCR_PS_MCAST | PCR_PS_DA));
/illumos-gate/usr/src/uts/common/io/
H A Dtl.c6029 tl_fill_option(uchar_t *buf, cred_t *cr, pid_t cpid, int flag, cred_t *pcr) argument
6056 (void) cred2ucred(cr, cpid, (void *)(opt + 1), pcr);
6065 (void) cred2ucred(cr, cpid, (void *)(topt + 1), pcr);
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/qlc/
H A Dql_api.h477 uint16_t pcr; /* Processor Control Register. */ member in struct:__anon7767

Completed in 1586 milliseconds