Home
last modified time | relevance | path

Searched refs:rp (Results 1 – 25 of 479) sorted by relevance

12345678910>>...20

/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Drandom.c177 struct _randomjunk *rp = __randomjunk; in _randomjunk() local
179 if (rp == 0) { in _randomjunk()
180 rp = (struct _randomjunk *)malloc(sizeof (*rp)); in _randomjunk()
181 if (rp == 0) in _randomjunk()
183 *rp = _randominit; in _randomjunk()
184 __randomjunk = rp; in _randomjunk()
186 return (rp); in _randomjunk()
205 struct _randomjunk *rp = _randomjunk(); in srandom() local
208 if (rp == 0) in srandom()
210 if (rp->rand_type == TYPE_0) { in srandom()
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Drandom.c192 struct _randomjunk *rp = __randomjunk; in _randomjunk() local
194 if (rp == NULL) { in _randomjunk()
195 rp = (struct _randomjunk *)malloc(sizeof (*rp)); in _randomjunk()
196 if (rp == NULL) in _randomjunk()
198 (void) memcpy(rp, &_randominit, sizeof (*rp)); in _randomjunk()
199 __randomjunk = rp; in _randomjunk()
201 return (rp); in _randomjunk()
228 struct _randomjunk *rp = _randomjunk(); in initstate() local
236 if (rp == NULL) in initstate()
238 ostate = (char *)(&rp->state[ -1 ]); in initstate()
[all …]
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_rnode.c197 r4flushpages(rnode4_t *rp, cred_t *cr) in r4flushpages() argument
208 mutex_enter(&rp->r_statelock); in r4flushpages()
209 while (rp->r_count > 0) in r4flushpages()
210 cv_wait(&rp->r_cv, &rp->r_statelock); in r4flushpages()
211 mutex_exit(&rp->r_statelock); in r4flushpages()
216 vp = RTOV4(rp); in r4flushpages()
219 if ((rp->r_flags & R4DIRTY) && !rp->r_error) { in r4flushpages()
222 mutex_enter(&rp->r_statelock); in r4flushpages()
223 if (!rp->r_error) in r4flushpages()
224 rp->r_error = error; in r4flushpages()
[all …]
H A Dnfs4_callback.c154 rnode4_t *rp; member
176 rnode4_t *rp; in cb_getattr() local
247 rp = list_head(&sp->s_deleg_list); in cb_getattr()
248 for (; rp != NULL; rp = list_next(&sp->s_deleg_list, rp)) { in cb_getattr()
251 sfh4_copyval(rp->r_fh, &fhandle); in cb_getattr()
276 vp = RTOV4(rp); in cb_getattr()
321 mutex_enter(&rp->r_statelock); in cb_getattr()
322 mapcnt = rp->r_mapcnt; in cb_getattr()
323 rflag = rp->r_flags; in cb_getattr()
324 mutex_exit(&rp->r_statelock); in cb_getattr()
[all …]
H A Dnfs_client.c108 rnode_t *rp; in nfs_waitfor_purge_complete() local
111 rp = VTOR(vp); in nfs_waitfor_purge_complete()
112 if (rp->r_serial != NULL && rp->r_serial != curthread) { in nfs_waitfor_purge_complete()
113 mutex_enter(&rp->r_statelock); in nfs_waitfor_purge_complete()
115 while (rp->r_serial != NULL) { in nfs_waitfor_purge_complete()
116 if (!cv_wait_sig(&rp->r_cv, &rp->r_statelock)) { in nfs_waitfor_purge_complete()
118 mutex_exit(&rp->r_statelock); in nfs_waitfor_purge_complete()
123 mutex_exit(&rp->r_statelock); in nfs_waitfor_purge_complete()
188 rnode_t *rp; in nfs_purge_caches() local
197 rp = VTOR(vp); in nfs_purge_caches()
[all …]
H A Dnfs3_vnops.c297 rnode_t *rp; in nfs3_open() local
303 rp = VTOR(vp); in nfs3_open()
304 mutex_enter(&rp->r_statelock); in nfs3_open()
305 if (rp->r_cred == NULL) { in nfs3_open()
307 rp->r_cred = cr; in nfs3_open()
309 mutex_exit(&rp->r_statelock); in nfs3_open()
325 ((vn_has_cached_data(vp) || HAVE_RDDIR_CACHE(rp)) && in nfs3_open()
329 else if (rp->r_mapcnt == 0 && vp->v_count == 1) { in nfs3_open()
347 rnode_t *rp; in nfs3_close() local
398 rp = VTOR(vp); in nfs3_close()
[all …]
H A Dnfs_vnops.c259 rnode_t *rp; in nfs_open() local
263 rp = VTOR(vp); in nfs_open()
266 mutex_enter(&rp->r_statelock); in nfs_open()
267 if (rp->r_cred == NULL) { in nfs_open()
269 rp->r_cred = cr; in nfs_open()
271 mutex_exit(&rp->r_statelock); in nfs_open()
287 ((vn_has_cached_data(vp) || HAVE_RDDIR_CACHE(rp)) && in nfs_open()
291 else if (rp->r_mapcnt == 0 && vp->v_count == 1) { in nfs_open()
309 rnode_t *rp; in nfs_close() local
360 rp = VTOR(vp); in nfs_close()
[all …]
/titanic_41/usr/src/cmd/make/bin/
H A Dparallel.cc85 static void delete_running_struct(Running rp);
90 static void finish_doname(Running rp);
96 static void store_conditionals(Running rp);
777 Running rp; in process_next() local
794 for (rp_prev = &running_list, rp = running_list; in process_next()
795 rp != NULL && parallel_process_cnt == 0; in process_next()
796 rp = rp->next) { in process_next()
797 if (rp->state == build_serial) { in process_next()
798 *rp_prev = rp->next; in process_next()
799 if (rp->next == NULL) { in process_next()
[all …]
H A Drep.cc77 Recursive_make rp; in report_recursive_init() local
134 rp = ALLOC(Recursive_make); in report_recursive_init()
135 (void) memset((char *) rp, 0, sizeof (Recursive_make_rec)); in report_recursive_init()
139 rp->oldline = (wchar_t *) wcsdup(line); in report_recursive_init()
141 rp->cond_macrostring = in report_recursive_init()
148 rp->target = (wchar_t *) wcsdup(line); in report_recursive_init()
149 *bpatch = rp; in report_recursive_init()
150 bpatch = &rp->next; in report_recursive_init()
171 Recursive_make rp; in report_recursive_dep() local
180 rp = find_recursive_target(target); in report_recursive_dep()
[all …]
/titanic_41/usr/src/cmd/lp/cmd/lpsched/
H A Ddisp1.c85 RSTATUS *rp; in s_print_request() local
108 if ((rp = NewRequest = new_rstatus(NULL, NULL)) == NULL) in s_print_request()
123 rp->req_file = Strdup(req_file); in s_print_request()
125 freerequest(rp->request); in s_print_request()
126 rp->request = r; in s_print_request()
128 rp->request->outcome = 0; in s_print_request()
129 rp->secure->uid = md->uid; in s_print_request()
130 rp->secure->gid = md->gid; in s_print_request()
132 rp->secure->slabel = Strdup(md->slabel); in s_print_request()
137 rp->secure->user = Strdup(pw->pw_name); in s_print_request()
[all …]
/titanic_41/usr/src/uts/i86pc/os/
H A Dbiosdisk.c131 struct bop_regs rp = {0}; in bios_check_extension_present() local
134 rp.eax.word.ax = 0x4100; in bios_check_extension_present()
135 rp.ebx.word.bx = 0x55AA; in bios_check_extension_present()
136 rp.edx.word.dx = drivenum; in bios_check_extension_present()
139 BOP_DOINT(bootops, 0x13, &rp); in bios_check_extension_present()
141 if (((rp.eflags & PS_C) != 0) || (rp.ebx.word.bx != 0xAA55)) { in bios_check_extension_present()
143 "failed %d bx = %x\n", rp.eflags, rp.ebx.word.bx)); in bios_check_extension_present()
147 if ((rp.ecx.word.cx & 0x7) == 0) { in bios_check_extension_present()
149 "not supported cx = %x\n", rp.ecx.word.cx)); in bios_check_extension_present()
159 struct bop_regs rp = {0}; in get_dev_params() local
[all …]
H A Dtrap.c193 die(uint_t type, struct regs *rp, caddr_t addr, processorid_t cpuid) in die() argument
210 ti.trap_regs = rp; in die()
219 type, trap_mnemonic, trap_name, (void *)rp, (void *)addr, in die()
220 mod_containing_pc((caddr_t)rp->r_pc), in die()
226 type, trap_mnemonic, trap_name, (void *)rp, (void *)addr); in die()
302 ldt_rewrite_syscall(struct regs *rp, proc_t *p, int syscall_insn) in ldt_rewrite_syscall() argument
309 if (linear_pc(rp, p, &linearpc) == 0) { in ldt_rewrite_syscall()
404 emulate_lsahf(struct regs *rp, uchar_t instr) in emulate_lsahf() argument
408 rp->r_ps = (rp->r_ps & ~0xff) | in emulate_lsahf()
409 ((rp->r_rax >> 8) & PSL_LSAHFMASK) | PS_MB1; in emulate_lsahf()
[all …]
H A Ddtrace_subr.c178 dtrace_user_probe(struct regs *rp, caddr_t addr, processorid_t cpuid) in dtrace_user_probe() argument
184 if (USERMODE(rp->r_cs) || (rp->r_ps & PS_VM)) { in dtrace_user_probe()
197 if (rp->r_trapno == T_DTRACE_RET) { in dtrace_user_probe()
229 rp->r_pc = npc; in dtrace_user_probe()
240 (void) (*dtrace_return_probe_ptr)(rp); in dtrace_user_probe()
242 rp->r_pc = npc; in dtrace_user_probe()
244 } else if (rp->r_trapno == T_BPTFLT) { in dtrace_user_probe()
258 (*dtrace_pid_probe_ptr)(rp) == 0) { in dtrace_user_probe()
264 if (dtrace_linear_pc(rp, p, &linearpc) != 0) { in dtrace_user_probe()
265 trap(rp, addr, cpuid); in dtrace_user_probe()
[all …]
/titanic_41/usr/src/uts/sun4/os/
H A Dtrap.c70 int vis1_partial_support(struct regs *rp, k_siginfo_t *siginfo, uint_t *fault);
90 die(unsigned type, struct regs *rp, caddr_t addr, uint_t mmu_fsr) in die() argument
98 ti.trap_regs = rp; in die()
108 type, (void *)rp, (void *)addr, mmu_fsr, in die()
109 mod_containing_pc((caddr_t)rp->r_pc), in die()
115 type, (void *)rp, (void *)addr, mmu_fsr); in die()
143 trap(struct regs *rp, caddr_t addr, uint32_t type, uint32_t mmu_fsr) in trap() argument
178 if (USERMODE(rp->r_tstate) || (type & T_USER)) { in trap()
205 lwp->lwp_regs == rp); in trap()
228 ((oldpc = rp->r_pc), prundostep()) && in trap()
[all …]
/titanic_41/usr/src/uts/intel/os/
H A Dddi_arch.c54 struct regspec tmp_reg, *rp; in i_ddi_bus_map() local
72 rp = i_ddi_rnumber_to_regspec(rdip, rnumber); in i_ddi_bus_map()
73 if (rp == (struct regspec *)0) { in i_ddi_bus_map()
86 mp->map_obj.rp = rp; in i_ddi_bus_map()
95 tmp_reg = *(mp->map_obj.rp); /* Preserve underlying data */ in i_ddi_bus_map()
96 rp = mp->map_obj.rp = &tmp_reg; /* Use tmp_reg in request */ in i_ddi_bus_map()
103 rp->regspec_bustype, rp->regspec_addr, rp->regspec_size, in i_ddi_bus_map()
115 if (rp->regspec_bustype > 1 && rp->regspec_addr != 0) { in i_ddi_bus_map()
118 ddi_get_name(rdip), rp->regspec_bustype, in i_ddi_bus_map()
119 rp->regspec_addr, rp->regspec_size); in i_ddi_bus_map()
[all …]
/titanic_41/usr/src/cmd/mdb/intel/modules/genunix/
H A Dgcore_isadep.c46 struct regs *rp; in gcore_getgregs() local
52 rp = &rgs; in gcore_getgregs()
57 grp[REG_RDI] = rp->r_rdi; in gcore_getgregs()
58 grp[REG_RSI] = rp->r_rsi; in gcore_getgregs()
59 grp[REG_RDX] = rp->r_rdx; in gcore_getgregs()
60 grp[REG_RCX] = rp->r_rcx; in gcore_getgregs()
61 grp[REG_R8] = rp->r_r8; in gcore_getgregs()
62 grp[REG_R9] = rp->r_r9; in gcore_getgregs()
63 grp[REG_RAX] = rp->r_rax; in gcore_getgregs()
64 grp[REG_RBX] = rp->r_rbx; in gcore_getgregs()
[all …]
/titanic_41/usr/src/lib/libdevinfo/
H A Ddevinfo_retire.c57 int (*sel_selector)(di_node_t node, rcm_arg_t *rp);
67 static int disk_select(di_node_t node, rcm_arg_t *rp);
68 static int nexus_select(di_node_t node, rcm_arg_t *rp);
69 static int enclosure_select(di_node_t node, rcm_arg_t *rp);
70 static int smp_select(di_node_t node, rcm_arg_t *rp);
109 rcm_arg_t *rp = (rcm_arg_t *)arg; in enclosure_minor() local
110 di_retire_t *dp = rp->rcm_dp; in enclosure_minor()
112 rp->rcm_supp = 1; in enclosure_minor()
119 enclosure_select(di_node_t node, rcm_arg_t *rp) in enclosure_select() argument
122 di_retire_t *dp = rp->rcm_dp; in enclosure_select()
[all …]
/titanic_41/usr/src/uts/sun4/io/efcode/
H A Dfc_ops.c104 fco_handle_t rp; in fc_ops_alloc_handle() local
107 rp = kmem_zalloc(sizeof (struct fc_resource_list), KM_SLEEP); in fc_ops_alloc_handle()
108 rp->next_handle = NULL; /* nobody is downstream */ in fc_ops_alloc_handle()
109 rp->ap = ap; in fc_ops_alloc_handle()
110 rp->child = child; in fc_ops_alloc_handle()
111 rp->fcode = fcode; in fc_ops_alloc_handle()
112 rp->fcode_size = fcode_size; in fc_ops_alloc_handle()
116 rp->unit_address = up; in fc_ops_alloc_handle()
118 rp->bus_args = NULL; /* generic module has no bus args */ in fc_ops_alloc_handle()
119 fc_phandle_table_alloc(fc_handle_to_phandle_head(rp)); in fc_ops_alloc_handle()
[all …]
/titanic_41/usr/src/uts/sparc/v9/os/
H A Dxregs.c153 struct regs *rp = lwptoregs(lwp); in xregs_getgregs() local
161 xregs->pr_un.pr_v8p.pr_xg[XR_G1] = GET_UPPER_32(rp->r_g1); in xregs_getgregs()
162 xregs->pr_un.pr_v8p.pr_xg[XR_G2] = GET_UPPER_32(rp->r_g2); in xregs_getgregs()
163 xregs->pr_un.pr_v8p.pr_xg[XR_G3] = GET_UPPER_32(rp->r_g3); in xregs_getgregs()
164 xregs->pr_un.pr_v8p.pr_xg[XR_G4] = GET_UPPER_32(rp->r_g4); in xregs_getgregs()
165 xregs->pr_un.pr_v8p.pr_xg[XR_G5] = GET_UPPER_32(rp->r_g5); in xregs_getgregs()
166 xregs->pr_un.pr_v8p.pr_xg[XR_G6] = GET_UPPER_32(rp->r_g6); in xregs_getgregs()
167 xregs->pr_un.pr_v8p.pr_xg[XR_G7] = GET_UPPER_32(rp->r_g7); in xregs_getgregs()
169 xregs->pr_un.pr_v8p.pr_xo[XR_O0] = GET_UPPER_32(rp->r_o0); in xregs_getgregs()
170 xregs->pr_un.pr_v8p.pr_xo[XR_O1] = GET_UPPER_32(rp->r_o1); in xregs_getgregs()
[all …]
/titanic_41/usr/src/uts/sparc/dtrace/
H A Dfasttrap_isa.c198 fasttrap_anarg(struct regs *rp, int argno) in fasttrap_anarg() argument
203 return ((&rp->r_o0)[argno]); in fasttrap_anarg()
206 struct frame *fr = (struct frame *)(rp->r_sp + STACK_BIAS); in fasttrap_anarg()
213 struct frame32 *fr = (struct frame32 *)rp->r_sp; in fasttrap_anarg()
228 fasttrap_usdt_args(fasttrap_probe_t *probe, struct regs *rp, in fasttrap_usdt_args() argument
245 struct frame *fr = (struct frame *)(rp->r_sp + STACK_BIAS); in fasttrap_usdt_args()
252 argv[i] = fasttrap_getreg(rp, R_O0 + x + inc); in fasttrap_usdt_args()
258 struct frame32 *fr = (struct frame32 *)rp->r_sp; in fasttrap_usdt_args()
265 argv[i] = fasttrap_getreg(rp, R_O0 + x + inc); in fasttrap_usdt_args()
277 fasttrap_return_common(struct regs *rp, uintptr_t pc, pid_t pid, in fasttrap_return_common() argument
[all …]
/titanic_41/usr/src/uts/intel/ia32/os/
H A Darchdep.c446 struct regs *rp = lwptoregs(lwp); in getgregs() local
451 grp[REG_RDI] = rp->r_rdi; in getgregs()
452 grp[REG_RSI] = rp->r_rsi; in getgregs()
453 grp[REG_RDX] = rp->r_rdx; in getgregs()
454 grp[REG_RCX] = rp->r_rcx; in getgregs()
455 grp[REG_R8] = rp->r_r8; in getgregs()
456 grp[REG_R9] = rp->r_r9; in getgregs()
457 grp[REG_RAX] = rp->r_rax; in getgregs()
458 grp[REG_RBX] = rp->r_rbx; in getgregs()
459 grp[REG_RBP] = rp->r_rbp; in getgregs()
[all …]
/titanic_41/usr/src/uts/sparc/os/
H A Dddi_arch.c64 struct regspec tmp_reg, *rp; in i_ddi_bus_map() local
82 rp = i_ddi_rnumber_to_regspec(rdip, rnumber); in i_ddi_bus_map()
83 if (rp == (struct regspec *)0) { in i_ddi_bus_map()
96 mp->map_obj.rp = rp; in i_ddi_bus_map()
105 tmp_reg = *(mp->map_obj.rp); /* Preserve underlying data */ in i_ddi_bus_map()
106 rp = mp->map_obj.rp = &tmp_reg; /* Use tmp_reg in request */ in i_ddi_bus_map()
108 rp->regspec_addr += (uintptr_t)offset; in i_ddi_bus_map()
110 rp->regspec_size = (uint_t)len; in i_ddi_bus_map()
131 if ((error = i_ddi_apply_range(dip, rdip, mp->map_obj.rp)) != 0) in i_ddi_bus_map()
178 reg_is_enclosed_in_range(struct regspec *rp, struct rangespec *rangep) in reg_is_enclosed_in_range() argument
[all …]
/titanic_41/usr/src/uts/sun4u/os/
H A Dmach_trap.c99 showregs(uint_t type, struct regs *rp, caddr_t addr, uint_t mmu_fsr) in showregs() argument
154 (ttoproc(curthread)->p_pid) : 0, rp->r_pc, rp->r_sp, in showregs()
155 rp->r_tstate, sfmmu_getctx_sec()); in showregs()
156 if (USERMODE(rp->r_tstate)) { in showregs()
158 "%llx, %llx\n", rp->r_o0, rp->r_o1, rp->r_o2, rp->r_o3, in showregs()
159 rp->r_o4, rp->r_o5, rp->r_o6, rp->r_o7); in showregs()
162 rp->r_g1, rp->r_g2, rp->r_g3, in showregs()
163 rp->r_g4, rp->r_g5, rp->r_g6, rp->r_g7); in showregs()
186 ptl1_regs_t *rp = &pstate->ptl1_regs; in ptl1_showtrap() local
187 short i, j, maxtl = rp->ptl1_trap_regs[0].ptl1_tl; in ptl1_showtrap()
[all …]
/titanic_41/usr/src/uts/intel/dtrace/
H A Dfasttrap_isa.c194 fasttrap_anarg(struct regs *rp, int function_entry, int argno) in fasttrap_anarg() argument
208 return ((&rp->r_rdi)[argno]); in fasttrap_anarg()
210 stack = (uintptr_t *)rp->r_sp; in fasttrap_anarg()
216 uint32_t *stack = (uint32_t *)rp->r_sp; in fasttrap_anarg()
659 fasttrap_return_common(struct regs *rp, uintptr_t pc, pid_t pid, in fasttrap_return_common() argument
701 rp->r_r0, rp->r_r1, 0, 0); in fasttrap_return_common()
726 fasttrap_usdt_args64(fasttrap_probe_t *probe, struct regs *rp, int argc, in fasttrap_usdt_args64() argument
730 uintptr_t *stack = (uintptr_t *)rp->r_sp; in fasttrap_usdt_args64()
736 argv[i] = (&rp->r_rdi)[x]; in fasttrap_usdt_args64()
748 fasttrap_usdt_args32(fasttrap_probe_t *probe, struct regs *rp, int argc, in fasttrap_usdt_args32() argument
[all …]
/titanic_41/usr/src/cmd/sendmail/db/btree/
H A Dbt_recno.c83 RECNO *rp; local
93 if ((ret = __os_calloc(1, sizeof(*rp), &rp)) != 0)
96 t->recno = rp;
103 rp->re_delim = '\n';
104 rp->re_pad = ' ';
105 rp->re_fd = -1;
106 F_SET(rp, RECNO_EOF);
117 rp->re_fd = -1;
118 F_SET(rp, RECNO_EOF);
121 __ram_source(dbp, rp, dbinfo->re_source)) != 0)
[all …]

12345678910>>...20