Home
last modified time | relevance | path

Searched refs:tf (Results 1 – 25 of 166) sorted by relevance

1234567

/freebsd/contrib/openpam/t/
H A Dt_openpam_readword.c61 orw_expect(struct t_file *tf, const char *expected, int lines, int eof, int eol) in orw_expect() argument
68 got = openpam_readword(tf->file, &lineno, &len); in orw_expect()
70 if (t_ferror(tf)) in orw_expect()
71 err(1, "%s(): %s", __func__, tf->name); in orw_expect()
88 if (eof && !t_feof(tf)) { in orw_expect()
92 if (!eof && t_feof(tf)) { in orw_expect()
96 ch = fgetc(tf->file); in orw_expect()
97 if (t_ferror(tf)) in orw_expect()
98 err(1, "%s(): %s", __func__, tf->name); in orw_expect()
107 ungetc(ch, tf->file); in orw_expect()
[all …]
H A Dt_openpam_readlinev.c62 orlv_expect(struct t_file *tf, const char **expectedv, int lines, int eof) in orlv_expect() argument
73 gotv = openpam_readlinev(tf->file, &lineno, &gotc); in orlv_expect()
74 if (t_ferror(tf)) in orlv_expect()
75 err(1, "%s(): %s", __func__, tf->name); in orlv_expect()
102 if (eof && !t_feof(tf)) { in orlv_expect()
105 } else if (!eof && t_feof(tf)) { in orlv_expect()
156 struct t_file *tf; variable
159 tf = t_fopen(NULL);
160 ret = orlv_expect(tf, NULL, 0 /*lines*/, 1 /*eof*/);
161 t_fclose(tf);
[all …]
/freebsd/sys/kern/
H A Dsubr_filter.c37 reset_time(struct time_filter *tf, uint32_t time_len) in reset_time() argument
39 tf->cur_time_limit = time_len; in reset_time()
43 reset_time_small(struct time_filter_small *tf, uint32_t time_len) in reset_time_small() argument
45 tf->cur_time_limit = time_len; in reset_time_small()
74 setup_time_filter(struct time_filter *tf, int fil_type, uint32_t time_len) in setup_time_filter() argument
97 tf->entries[i].value = set_val; in setup_time_filter()
98 tf->entries[i].time_up = 0; in setup_time_filter()
100 tf->cur_time_limit = time_len; in setup_time_filter()
105 setup_time_filter_small(struct time_filter_small *tf, int fil_type, uint32_t time_len) in setup_time_filter_small() argument
128 tf->entries[i].value = set_val; in setup_time_filter_small()
[all …]
/freebsd/sys/arm/arm/
H A Dexec_machdep.c79 struct trapframe *tf = td->td_frame; in exec_setregs() local
81 memset(tf, 0, sizeof(*tf)); in exec_setregs()
82 tf->tf_usr_sp = stack; in exec_setregs()
83 tf->tf_usr_lr = imgp->entry_addr; in exec_setregs()
84 tf->tf_svc_lr = 0x77777777; in exec_setregs()
85 tf->tf_pc = imgp->entry_addr; in exec_setregs()
86 tf->tf_spsr = PSR_USR32_MODE; in exec_setregs()
88 tf->tf_spsr |= PSR_T; in exec_setregs()
172 struct trapframe *tf = td->td_frame; in get_mcontext() local
177 gr[_REG_CPSR] = tf->tf_spsr & ~PSR_C; in get_mcontext()
[all …]
H A Dtrap-v6.c210 abort_imprecise(struct trapframe *tf, u_int fsr, u_int prefetch, bool usermode) in abort_imprecise() argument
220 abort_fatal(tf, FAULT_EA_IMPREC, fsr, 0, prefetch, curthread, NULL); in abort_imprecise()
231 userret(curthread, tf); in abort_imprecise()
242 abort_debug(struct trapframe *tf, u_int fsr, u_int prefetch, bool usermode, in abort_debug() argument
251 userret(td, tf); in abort_debug()
254 kdb_trap((prefetch) ? T_BREAKPOINT : T_WATCHPOINT, 0, tf); in abort_debug()
272 abort_handler(struct trapframe *tf, int prefetch) in abort_handler() argument
297 usermode = TRAPF_USERMODE(tf); /* Abort came from user mode? */ in abort_handler()
313 td->td_frame = tf; in abort_handler()
322 abort_imprecise(tf, fsr, prefetch, usermode); in abort_handler()
[all …]
H A Dmachdep_kdb.c94 struct trapframe *tf = td->td_frame; in fill_regs() local
95 bcopy(&tf->tf_r0, regs->r, sizeof(regs->r)); in fill_regs()
96 regs->r_sp = tf->tf_usr_sp; in fill_regs()
97 regs->r_lr = tf->tf_usr_lr; in fill_regs()
98 regs->r_pc = tf->tf_pc; in fill_regs()
99 regs->r_cpsr = tf->tf_spsr; in fill_regs()
132 struct trapframe *tf = td->td_frame; in set_regs() local
134 bcopy(regs->r, &tf->tf_r0, sizeof(regs->r)); in set_regs()
135 tf->tf_usr_sp = regs->r_sp; in set_regs()
136 tf->tf_usr_lr = regs->r_lr; in set_regs()
[all …]
/freebsd/stand/libsa/
H A Dpkgfs.c132 static int cache_data(struct tarfile *tf, int);
138 struct tarfile *tf, *tfn; in pkgfs_cleanup() local
144 tf = package->pkg_first; in pkgfs_cleanup()
145 while (tf != NULL) { in pkgfs_cleanup()
146 tfn = tf->tf_next; in pkgfs_cleanup()
147 if (tf->tf_cachesz > 0) in pkgfs_cleanup()
148 free(tf->tf_cache); in pkgfs_cleanup()
149 free(tf); in pkgfs_cleanup()
150 tf = tfn; in pkgfs_cleanup()
201 struct tarfile *tf; in pkg_open_follow() local
[all …]
/freebsd/sys/sys/
H A Dtim_filter.h83 int setup_time_filter(struct time_filter *tf, int fil_type, uint32_t time_len);
84 void reset_time(struct time_filter *tf, uint32_t time_len);
85 void forward_filter_clock(struct time_filter *tf, uint32_t ticks_forward);
86 void tick_filter_clock(struct time_filter *tf, uint32_t now);
87 uint32_t apply_filter_min(struct time_filter *tf, uint64_t value, uint32_t now);
88 uint32_t apply_filter_max(struct time_filter *tf, uint64_t value, uint32_t now);
89 void filter_reduce_by(struct time_filter *tf, uint64_t reduce_by, uint32_t now);
90 void filter_increase_by(struct time_filter *tf, uint64_t incr_by, uint32_t now);
92 get_filter_value(struct time_filter *tf) in get_filter_value() argument
94 return(tf->entries[0].value); in get_filter_value()
[all …]
/freebsd/sys/powerpc/powerpc/
H A Dexec_machdep.c152 struct trapframe *tf; in sendsig() local
174 tf = td->td_frame; in sendsig()
181 (void *)((tf->exc == EXC_DSI || tf->exc == EXC_DSE) ? in sendsig()
182 tf->dar : tf->srr0); in sendsig()
192 sp = (uint32_t)tf->fixreg[1]; in sendsig()
224 sp = tf->fixreg[1]; in sendsig()
263 tf->srr1 = tf->srr1 & ~(PSL_FE0 | PSL_FE1); in sendsig()
275 tf->lr = (register_t)catcher; in sendsig()
276 tf->fixreg[1] = (register_t)usfp; in sendsig()
277 tf->fixreg[FIRSTARG] = sig; in sendsig()
[all …]
H A Ddb_trace.c211 struct trapframe *tf = (struct trapframe *)(args); in db_backtrace() local
212 db_printf("%s ", tf->srr1 & PSL_PR ? "user" : "kernel"); in db_backtrace()
213 switch (tf->exc) { in db_backtrace()
218 (tf->cpu.booke.esr & ESR_ST) ? "write" in db_backtrace()
219 : "read", tf->dar); in db_backtrace()
222 (tf->cpu.aim.dsisr & DSISR_STORE) ? "write" in db_backtrace()
223 : "read", tf->dar); in db_backtrace()
228 tf->dar, (uint32_t)tf->cpu.aim.dsisr); in db_backtrace()
232 db_printf("DSE trap @ %#zx by ", tf->dar); in db_backtrace()
235 db_printf("ISE trap @ %#zx by ", tf->srr0); in db_backtrace()
[all …]
/freebsd/sys/riscv/riscv/
H A Dexec_machdep.c175 struct trapframe *tf; in exec_setregs() local
178 tf = td->td_frame; in exec_setregs()
181 memset(tf, 0, sizeof(struct trapframe)); in exec_setregs()
183 tf->tf_a[0] = stack; in exec_setregs()
184 tf->tf_sp = STACKALIGN(stack); in exec_setregs()
185 tf->tf_ra = imgp->entry_addr; in exec_setregs()
186 tf->tf_sepc = imgp->entry_addr; in exec_setregs()
208 struct trapframe *tf = td->td_frame; in get_mcontext() local
210 memcpy(mcp->mc_gpregs.gp_t, tf->tf_t, sizeof(mcp->mc_gpregs.gp_t)); in get_mcontext()
211 memcpy(mcp->mc_gpregs.gp_s, tf->tf_s, sizeof(mcp->mc_gpregs.gp_s)); in get_mcontext()
[all …]
H A Ddb_trace.c83 struct trapframe *tf; in db_stack_trace_cmd() local
85 tf = (struct trapframe *)(uintptr_t)frame->sp; in db_stack_trace_cmd()
86 if (!__is_aligned(tf, _Alignof(struct trapframe)) || in db_stack_trace_cmd()
87 !kstack_contains(td, (vm_offset_t)tf, in db_stack_trace_cmd()
88 sizeof(*tf))) { in db_stack_trace_cmd()
89 db_printf("--- invalid trapframe %p\n", tf); in db_stack_trace_cmd()
93 if ((tf->tf_scause & SCAUSE_INTR) != 0) { in db_stack_trace_cmd()
95 tf->tf_scause & SCAUSE_CODE); in db_stack_trace_cmd()
96 } else if (tf->tf_scause == SCAUSE_ECALL_USER) { in db_stack_trace_cmd()
102 tf->tf_scause & SCAUSE_CODE, in db_stack_trace_cmd()
[all …]
H A Dvm_machdep.c89 struct trapframe *tf; in cpu_fork() local
101 tf = td2->td_frame; in cpu_fork()
102 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork()
105 tf->tf_t[0] = 0; in cpu_fork()
108 tf->tf_a[0] = 0; in cpu_fork()
109 tf->tf_a[1] = 0; in cpu_fork()
110 tf->tf_sstatus |= (SSTATUS_SPIE); /* Enable interrupts. */ in cpu_fork()
111 tf->tf_sstatus &= ~(SSTATUS_SPP); /* User mode. */ in cpu_fork()
192 struct trapframe *tf; in cpu_set_upcall() local
194 tf = td->td_frame; in cpu_set_upcall()
[all …]
/freebsd/stand/userboot/test/
H A Dtest.c112 struct test_file *tf, int depth) in test_open()
127 if (tf == NULL) { in test_open()
128 tf = calloc(1, sizeof(struct test_file)); in test_open()
129 if (tf == NULL) in test_open()
132 } else if (tf->tf_isdir) { in test_open()
134 closedir(tf->tf_u.dir); in test_open()
145 tf->tf_isdir = 1; in test_open()
146 tf->tf_u.dir = fdopendir(dir_fd); in test_open()
148 if (fstat(dir_fd, &tf->tf_stat) < 0) {
152 tf in test_close()
109 struct test_file *tf; test_open() local
151 struct test_file *tf = h; test_close() local
165 struct test_file *tf = h; test_isdir() local
173 struct test_file *tf = h; test_read() local
189 struct test_file *tf = h; test_readdir() local
215 struct test_file *tf = h; test_seek() local
227 struct test_file *tf = h; test_stat() local
[all...]
/freebsd/sys/i386/i386/
H A Ddb_trace.c79 get_esp(struct trapframe *tf) in get_esp() argument
81 return (TF_HAS_STACKREGS(tf) ? tf->tf_esp : (intptr_t)&tf->tf_esp); in get_esp()
260 struct trapframe *tf; in db_nextframe() local
344 tf = (struct trapframe *)(*fp)->f_frame; in db_nextframe()
350 if (tf == NULL) { in db_nextframe()
357 esp = get_esp(tf); in db_nextframe()
358 eip = tf->tf_eip; in db_nextframe()
359 ebp = tf->tf_ebp; in db_nextframe()
362 db_printf("--- trap %#r", tf->tf_trapno); in db_nextframe()
366 db_decode_syscall(td, tf->tf_eax); in db_nextframe()
[all …]
/freebsd/stand/efi/loader/arch/amd64/
H A Dtrap.c83 void report_exc(struct trapframe *tf);
85 report_exc(struct trapframe *tf) in report_exc() argument
100 printf("Exception %u\n", tf->tf_trapno); in report_exc()
103 (uint16_t)tf->tf_ss, (uint16_t)tf->tf_cs, (uint16_t)tf->tf_ds, in report_exc()
104 (uint16_t)tf->tf_es, (uint16_t)tf->tf_fs, (uint16_t)tf->tf_gs); in report_exc()
107 (uint32_t)tf->tf_err, (uint32_t)tf->tf_rflags, tf->tf_addr, in report_exc()
108 tf->tf_rsp, tf->tf_rip); in report_exc()
115 tf->tf_rdi, tf->tf_rsi, tf->tf_rdx, tf->tf_rcx, tf->tf_r8, in report_exc()
116 tf->tf_r9, tf->tf_rax, tf->tf_rbx, tf->tf_rbp, tf->tf_r10, in report_exc()
117 tf->tf_r11, tf->tf_r12, tf->tf_r13, tf->tf_r14, tf->tf_r15); in report_exc()
[all …]
/freebsd/sys/arm64/arm64/
H A Dexec_machdep.c334 struct trapframe *tf; in fill_regs32() local
336 tf = td->td_frame; in fill_regs32()
338 regs->r[i] = tf->tf_x[i]; in fill_regs32()
340 regs->r_sp = tf->tf_x[13]; in fill_regs32()
341 regs->r_lr = tf->tf_x[14]; in fill_regs32()
342 regs->r_pc = tf->tf_elr; in fill_regs32()
343 regs->r_cpsr = tf->tf_spsr; in fill_regs32()
352 struct trapframe *tf; in set_regs32() local
354 tf = td->td_frame; in set_regs32()
356 tf->tf_x[i] = regs->r[i]; in set_regs32()
[all …]
H A Dfreebsd32_machdep.c191 struct trapframe *tf; in get_mcontext32() local
194 tf = td->td_frame; in get_mcontext32()
198 mcp->mc_gregset[16] = tf->tf_spsr & ~PSR_C; in get_mcontext32()
200 mcp->mc_gregset[0] = tf->tf_x[0]; in get_mcontext32()
201 mcp->mc_gregset[16] = tf->tf_spsr; in get_mcontext32()
204 mcp->mc_gregset[i] = tf->tf_x[i]; in get_mcontext32()
205 mcp->mc_gregset[15] = tf->tf_elr; in get_mcontext32()
216 struct trapframe *tf; in set_mcontext32() local
221 tf = td->td_frame; in set_mcontext32()
229 (tf->tf_spsr & ~(PSR_SETTABLE_32 | PSR_SS))) in set_mcontext32()
[all …]
H A Ddb_trace.c99 struct trapframe *tf; in db_stack_trace_cmd()
101 tf = (struct trapframe *)(uintptr_t)frame->fp - 1; in db_stack_trace_cmd()
102 if (!__is_aligned(tf, _Alignof(struct trapframe)) || in db_stack_trace_cmd()
103 !kstack_contains(td, (vm_offset_t)tf, in db_stack_trace_cmd()
104 sizeof(*tf))) { in db_stack_trace_cmd()
105 db_printf("--- invalid trapframe %p\n", tf); in db_stack_trace_cmd()
112 tf->tf_esr); in db_stack_trace_cmd()
119 tf->tf_esr); in db_stack_trace_cmd()
123 tf->tf_esr); in db_stack_trace_cmd()
130 frame->fp = tf in db_stack_trace_cmd()
92 struct trapframe *tf; db_stack_trace_cmd() local
[all...]
H A Dvm_machdep.c73 struct trapframe *tf; in cpu_fork() local
103 tf = (struct trapframe *)STACKALIGN((struct trapframe *)pcb2 - 1); in cpu_fork()
104 bcopy(td1->td_frame, tf, sizeof(*tf)); in cpu_fork()
105 tf->tf_x[0] = 0; in cpu_fork()
106 tf->tf_x[1] = 0; in cpu_fork()
107 tf->tf_spsr = td1->td_frame->tf_spsr & (PSR_M_32 | PSR_DAIF); in cpu_fork()
109 td2->td_frame = tf; in cpu_fork()
209 struct trapframe *tf = td->td_frame; in cpu_set_upcall() local
213 tf->tf_x[13] = STACKALIGN((uintptr_t)stack->ss_sp + in cpu_set_upcall()
216 tf->tf_spsr |= PSR_T; in cpu_set_upcall()
[all …]
/freebsd/sys/x86/x86/
H A Dstack_machdep.c50 #define TF_FLAGS(tf) ((tf)->tf_eflags) argument
51 #define TF_FP(tf) ((tf)->tf_ebp) argument
52 #define TF_PC(tf) ((tf)->tf_eip) argument
57 #define TF_FLAGS(tf) ((tf)->tf_rflags) argument
58 #define TF_FP(tf) ((tf) argument
59 TF_PC(tf) global() argument
[all...]
/freebsd/contrib/bmake/unit-tests/
H A Dmeta-cmd-cmp.mk9 tf:= .${.PARSEFILE:R}
14 CLEANFILES= ${tf}*
24 tests= ${tf}.cmp ${tf}.nocmp ${tf}.cmp2
25 filter_tests= ${tf}.filter
27 ${tf}.cmp:
30 ${tf}.nocmp: .NOMETA_CMP
35 ${tf}.cmp2:
46 ${tf}.filter: .MAKE.META.CMP_FILTER= ${COMPILER_WRAPPERS:S,^,N,}
49 ${tf}.filter:
/freebsd/contrib/bmake/mk/
H A Dmeta2deps.sh220 tf=/tmp/m2d$$-$USER
221 rm -f $tf.*
222 trap 'rm -f $tf.*; trap 0' 0
224 > $tf.dirdep
225 > $tf.qual
226 > $tf.srcdep
227 > $tf.srcrel
228 > $tf.dpdeps
379 echo $dir >> $tf.srcdep
383 echo "DPDEPS_$dir/${path##*/} += $RELDIR" >> $tf
[all...]
/freebsd/share/mk/
H A Dmeta2deps.sh220 tf=/tmp/m2d$$-$USER
221 rm -f $tf.*
222 trap 'rm -f $tf.*; trap 0' 0
224 > $tf.dirdep
225 > $tf.qual
226 > $tf.srcdep
227 > $tf.srcrel
228 > $tf.dpdeps
379 echo $dir >> $tf.srcdep
383 echo "DPDEPS_$dir/${path##*/} += $RELDIR" >> $tf
[all...]
/freebsd/sys/arm64/linux/
H A Dlinux_sysvec.c255 struct trapframe *tf; in linux_rt_sigreturn() local
261 tf = td->td_frame; in linux_rt_sigreturn()
262 frame = (struct l_sigframe *)tf->tf_sp; in linux_rt_sigreturn()
269 memcpy(tf->tf_x, sf->sf_uc.uc_sc.regs, sizeof(tf->tf_x)); in linux_rt_sigreturn()
270 tf->tf_lr = sf->sf_uc.uc_sc.regs[30]; in linux_rt_sigreturn()
271 tf->tf_sp = sf->sf_uc.uc_sc.sp; in linux_rt_sigreturn()
272 tf->tf_elr = sf->sf_uc.uc_sc.pc; in linux_rt_sigreturn()
279 tf->tf_spsr = sf->sf_uc.uc_sc.pstate; in linux_rt_sigreturn()
300 struct trapframe *tf; in linux_rt_sendsig() local
318 tf = td->td_frame; in linux_rt_sendsig()
[all …]

1234567