Home
last modified time | relevance | path

Searched refs:scr (Results 1 – 25 of 27) sorted by relevance

12

/titanic_44/usr/src/uts/sun4v/sys/
H A Dmachthread.h49 #define CPU_INDEX(r, scr) \ argument
50 mov SCRATCHPAD_CPUID, scr; \
51 ldxa [scr]ASI_SCRATCHPAD, r
58 #define CPU_INDEXTOSET(base, index, scr) \ argument
59 srl index, BT_ULSHIFT, scr; \
61 sll scr, CLONGSHIFT, scr; \
62 add base, scr, base
64 #define CPU_INDEXTOSET(base, index, scr)
73 #define CPU_ADDR(reg, scr) \ argument
75 CPU_INDEX(scr, reg); \
[all …]
H A Dmachclock.h227 #define GET_HRESTIME(hrestsec, hrestnsec, adj, nslt, nano, scr, hrlock, \ argument
229 5: sethi %hi(hres_lock), scr; \
230 lduw [scr + %lo(hres_lock)], hrlock; /* load clock lock */ \
231 lduw [scr + %lo(nsec_scale)], nano; /* tick-to-ns factor */ \
233 ldx [scr + %lo(hres_last_tick)], nslt; \
234 ldn [scr + %lo(hrestime)], hrestsec; /* load hrestime.sec */\
235 add scr, %lo(hrestime), hrestnsec; \
241 ldx [scr + %lo(hrestime_adj)], adj; /* load hrestime_adj */ \
243 lduw [scr + %lo(hres_lock)], scr; /* load clock lock */ \
246 xor hrlock, scr, scr; \
[all …]
H A Dtraptrace.h219 #define GET_TRACE_TICK(reg, scr) \ argument
220 RD_TICK_NO_SUSPEND_CHECK(reg, scr);
222 #define GET_TRACE_TICK(reg, scr) \ argument
223 RD_TICKSTICK_FLAG(reg, scr, traptrace_use_stick);
/titanic_44/usr/src/uts/sun4u/sys/
H A Dmachclock.h114 #define GET_HRESTIME(hrestsec, hrestnsec, adj, nslt, nano, scr, hrlock, \ argument
116 5: sethi %hi(hres_lock), scr; \
117 lduw [scr + %lo(hres_lock)], hrlock; /* load clock lock */ \
118 lduw [scr + %lo(nsec_scale)], nano; /* tick-to-ns factor */ \
120 ldx [scr + %lo(hres_last_tick)], nslt; \
121 ldn [scr + %lo(hrestime)], hrestsec; /* load hrestime.sec */\
122 add scr, %lo(hrestime), hrestnsec; \
127 ldx [scr + %lo(hrestime_adj)], adj; /* load hrestime_adj */ \
129 lduw [scr + %lo(hres_lock)], scr; /* load clock lock */ \
132 xor hrlock, scr, scr; \
[all …]
H A Dmachthread.h68 #define CPU_INDEX(r, scr) \ argument
69 rdpr %pstate, scr; \
70 andn scr, PSTATE_IE | PSTATE_AM, r; \
76 wrpr scr, 0, %pstate
82 #define CPU_INDEX(r, scr) \
110 #define CPU_INDEX(r, scr) \
122 #define CPU_INDEXTOSET(base, index, scr) \ argument
123 srl index, BT_ULSHIFT, scr; \
125 sll scr, CLONGSHIFT, scr; \
126 add base, scr, base
[all …]
H A Dtraptrace.h157 #define GET_TRACE_TICK(reg, scr) \ argument
160 #define GET_TRACE_TICK(reg, scr) \ argument
/titanic_44/usr/src/uts/intel/brand/common/
H A Dbrand_asm.h181 #define CHECK_FOR_HANDLER(scr, handler) \ argument
182 GET_P_BRAND_DATA(SP_REG, 0, scr); /* get p_brand_data */ \
183 cmp $0, scr; \
185 cmp $0, handler(scr); /* check handler */ \
206 #define CHECK_FOR_INTERPOSITION(emul_table, call, scr, scr_low) \ argument
209 lea emul_table, scr; \
211 mov (scr), scr; \
212 add call, scr; \
214 movb (scr), scr_low; \
218 #define CALLBACK_PROLOGUE(emul_table, handler, call, scr, scr_low) \ argument
[all …]
/titanic_44/usr/src/lib/libshell/common/tests/
H A Dpath.sh276 scr=$tmp/script
279 : > $scr
280 chmod a=x $scr
281 { got=$($scr; print $?); } 2>/dev/null
283 { got=$(command $scr; print $?); } 2>/dev/null
285 [[ "$(:; $scr; print $?)" == "$exp" ]] 2>/dev/null || err_exit "unreadable empty script in [[ ... ]…
286 [[ "$(:; command $scr; print $?)" == "$exp" ]] 2>/dev/null || err_exit "command unreadable empty sc…
287 got=$($SHELL -c "$scr; print \$?" 2>/dev/null)
289 got=$($SHELL -c "command $scr; print \$?" 2>/dev/null)
292 rm -f $scr
[all …]
/titanic_44/usr/src/uts/sun4u/cpu/
H A Dus3_jalapeno_asm.s63 #define CHK_JP_ERRATA85_ENABLED(scr, label) \ argument
64 ASM_LD(scr, jp_errata_85_active); \
65 cmp scr, 1; \
69 #define SET_64BIT_PA(dest, scr, hi32, lo32) \ argument
70 set hi32, scr; \
71 sllx scr, 32, scr; \
74 or scr, dest, dest
81 #define JP_ESTAR_TRIGGER(j_chng_pa, scr) \ argument
82 SET_64BIT_PA(j_chng_pa, scr, TOM_HIGH_PA, M_T_J_CHNG_INIT_PA); \
83 ldxa [j_chng_pa]ASI_IO, scr; \
[all …]
H A Dcommon_asm.s60 #define RD_TICKCMPR(out, scr) \ argument
138 #define GET_NATIVE_TIME(out, scr, tmp) \ argument
139 SETL41(scr, HST_LOW); \
140 ldxa [scr]ASI_IO, tmp; \
141 inc HST_DIFF, scr; \
142 ldxa [scr]ASI_IO, out; \
143 dec HST_DIFF, scr; \
144 ldxa [scr]ASI_IO, scr; \
145 sub scr, tmp, tmp; \
148 or out, scr, out
[all …]
/titanic_44/usr/src/cmd/mdb/sun4u/v9/kmdb/
H A Dmach_asmutil.h69 #define KAIF_DEMAP_TLB_ALL(scr) \ argument
70 mov DEMAP_ALL_TYPE, scr; \
71 stxa %g0, [scr]ASI_DTLB_DEMAP; \
72 sethi %hi(FLUSH_ADDR), scr; \
73 flush scr
/titanic_44/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) in priv_proc_cred_perm() argument
583 if (scr == tcr && !(tp->p_flag & SNOCD)) in priv_proc_cred_perm()
586 idsmatch = (scr->cr_uid == tcr->cr_uid && in priv_proc_cred_perm()
587 scr->cr_uid == tcr->cr_ruid && in priv_proc_cred_perm()
588 scr->cr_uid == tcr->cr_suid && in priv_proc_cred_perm()
589 scr->cr_gid == tcr->cr_gid && in priv_proc_cred_perm()
590 scr->cr_gid == tcr->cr_rgid && in priv_proc_cred_perm()
591 scr->cr_gid == tcr->cr_sgid && in priv_proc_cred_perm()
598 if (scr->cr_zone != tcr->cr_zone && secpolicy_proc_zone(scr) != 0) { in priv_proc_cred_perm()
604 if (!idsmatch && secpolicy_proc_owner(scr, tcr, 0) != 0) in priv_proc_cred_perm()
[all …]
H A Dpolicy.c1677 secpolicy_proc_owner(const cred_t *scr, const cred_t *tcr, int mode) in secpolicy_proc_owner() argument
1681 if ((mode & VWRITE) && scr->cr_uid != 0 && in secpolicy_proc_owner()
1685 return (PRIV_POLICY(scr, PRIV_PROC_OWNER, allzone, EPERM, NULL)); in secpolicy_proc_owner()
1689 secpolicy_proc_access(const cred_t *scr) in secpolicy_proc_access() argument
1691 return (PRIV_POLICY(scr, PRIV_PROC_OWNER, B_FALSE, EACCES, NULL)); in secpolicy_proc_access()
1695 secpolicy_proc_excl_open(const cred_t *scr) in secpolicy_proc_excl_open() argument
1697 return (PRIV_POLICY(scr, PRIV_PROC_OWNER, B_FALSE, EBUSY, NULL)); in secpolicy_proc_excl_open()
1701 secpolicy_proc_zone(const cred_t *scr) in secpolicy_proc_zone() argument
1703 return (PRIV_POLICY(scr, PRIV_PROC_ZONE, B_FALSE, EPERM, NULL)); in secpolicy_proc_zone()
1711 secpolicy_kmdb(const cred_t *scr) in secpolicy_kmdb() argument
[all …]
/titanic_44/usr/src/uts/sfmmu/vm/
H A Dhat_sfmmu.h2031 #define SFMMU_CPU_CNUM(sfmmu, cnum, scr) \ argument
2032 CPU_ADDR(scr, cnum); /* scr = load CPU struct addr */ \
2033 ld [scr + CPU_MMU_IDX], cnum; /* cnum = mmuid */ \
2034 add sfmmu, SFMMU_CTXS, scr; /* scr = sfmmup->sfmmu_ctxs[] */ \
2036 add scr, cnum, scr; /* scr = sfmmup->sfmmu_ctxs[id] */ \
2037 ldx [scr + SFMMU_MMU_GC_NUM], scr; /* sfmmu_ctxs[id].gcnum */ \
2038 sllx scr, SFMMU_MMU_CNUM_LSHIFT, scr; \
2039 srlx scr, SFMMU_MMU_CNUM_LSHIFT, cnum; /* cnum = sfmmu cnum */
2123 #define PANIC_IF_INTR_DISABLED_PSTR(pstatereg, label, scr) \ argument
2129 sethi %hi(panicstr), scr; \
[all …]
/titanic_44/usr/src/cmd/localedef/
H A Dwide.c137 char scr[8]; in show_mb() local
138 (void) snprintf(scr, sizeof (scr), "\\x%02x", *mb); in show_mb()
139 (void) strlcat(buf, scr, sizeof (buf)); in show_mb()
/titanic_44/usr/src/uts/common/io/audio/drv/audio1575/
H A Daudio1575.c483 uint32_t scr; in audio1575_start() local
490 scr = GET32(M1575_SCR_REG); in audio1575_start()
491 scr &= ~(M1575_SCR_6CHL_MASK | M1575_SCR_CHAMOD_MASK); in audio1575_start()
492 scr |= M1575_SCR_6CHL_2; /* select our proper ordering */ in audio1575_start()
495 scr |= M1575_SCR_CHAMOD_2; in audio1575_start()
498 scr |= M1575_SCR_CHAMOD_4; in audio1575_start()
501 scr |= M1575_SCR_CHAMOD_6; in audio1575_start()
504 PUT32(M1575_SCR_REG, scr); in audio1575_start()
/titanic_44/usr/src/cmd/mdb/sun4v/v9/kmdb/
H A Dmach_asmutil.h78 #define KAIF_DEMAP_TLB_ALL(scr) argument
/titanic_44/usr/src/uts/sun/io/
H A Dsocal.c2935 soc_cmdonly_request_t *scr; in socal_force_lip() local
2959 scr = (soc_cmdonly_request_t *)&fcalpkt->fcal_socal_request; in socal_force_lip()
2961 scr->scr_soc_hdr.sh_flags = SOC_PORT_B; in socal_force_lip()
2962 scr->scr_cqhdr.cq_hdr_count = 1; in socal_force_lip()
2963 scr->scr_cqhdr.cq_hdr_type = CQ_TYPE_REQUEST_LIP; in socal_force_lip()
2974 soc_cmdonly_request_t *scr, *tscr; in socal_abort_cmd() local
3020 scr = (soc_cmdonly_request_t *)&fcalpkt2->fcal_socal_request; in socal_abort_cmd()
3022 scr->scr_soc_hdr.sh_byte_cnt = tscr->scr_soc_hdr.sh_request_token; in socal_abort_cmd()
3023 scr->scr_cqhdr.cq_hdr_count = 1; in socal_abort_cmd()
3024 scr->scr_cqhdr.cq_hdr_type = CQ_TYPE_REQUEST_ABORT; in socal_abort_cmd()
[all …]
/titanic_44/usr/src/uts/sun4u/vm/
H A Dmach_sfmmu.h146 #define USE_ALTERNATE_GLOBALS(scr) \ argument
147 rdpr %pstate, scr; \
148 wrpr scr, PSTATE_MG | PSTATE_AG, %pstate
/titanic_44/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_readdir.c116 cred_t *scr; in nfs4_readdir_getvp() local
214 scr = cs->cr; in nfs4_readdir_getvp()
220 cs->cr = scr; in nfs4_readdir_getvp()
/titanic_44/usr/src/uts/sun4v/ml/
H A Dmach_xc.s250 get_cpuaddr(uint64_t reg, uint64_t scr)
/titanic_44/usr/src/uts/common/pcmcia/cs/
H A Dcs.c1639 sclient_reg_t *scr = cr->priv; in cs_register_client() local
1789 scr->num_clients = 0; in cs_register_client()
1790 scr->max_socket_num = cs_globals.max_socket_num; in cs_register_client()
1791 scr->num_sockets = cs_globals.num_sockets; in cs_register_client()
1792 scr->num_windows = cs_globals.num_windows; in cs_register_client()
1794 *(scr->sclient_list) = cs_globals.sclient_list; in cs_register_client()
1796 for (sn = 0; sn < scr->num_sockets; sn++) { in cs_register_client()
1797 scli = scr->sclient_list[sn]; in cs_register_client()
1800 scr->num_clients++; in cs_register_client()
1808 if (!scr->num_clients) { in cs_register_client()
[all …]
/titanic_44/usr/src/uts/common/pcmcia/sys/
H A Dcs_priv.h304 cfg_regs_t scr; /* Socket and Copy Register */ member
/titanic_44/usr/src/lib/libast/common/port/
H A Dlc.tab70 hr croatian hrv|scr iso8859-2
/titanic_44/usr/src/uts/sun4v/vm/
H A Dmach_sfmmu.h112 #define USE_ALTERNATE_GLOBALS(scr) argument

12