Home
last modified time | relevance | path

Searched refs:tfp (Results 1 – 12 of 12) sorted by relevance

/netbsd/src/sys/arch/arm/gemini/
Dgemini_timer.c203 timer_factors_t *tfp = &sc->sc_tf; in _timer_start() local
207 GEMINI_TIMERn_COUNTER(n), tfp->tf_counter); in _timer_start()
209 GEMINI_TIMERn_LOAD(n), tfp->tf_reload); in _timer_start()
211 GEMINI_TIMERn_MATCH1(n), tfp->tf_match1); in _timer_start()
213 GEMINI_TIMERn_MATCH2(n), tfp->tf_match2); in _timer_start()
218 r |= tfp->tf_tmcr & GEMINI_TIMER_TMnCR_MASK(n); in _timer_start()
369 timer_factors_t *tfp = &sc->sc_tf; in timer_factors() local
379 tfp->tf_tmcr = TIMER_TMCR_TMnENABLE(n); in timer_factors()
382 tfp->tf_counter = ~0U; in timer_factors()
388 tfp->tf_counter = count_freq; in timer_factors()
[all …]
/netbsd/src/external/bsd/nvi/dist/common/
Dtrace.c37 static FILE *tfp; variable
48 if (tfp != NULL && tfp != stderr) in vtrace_end()
49 (void)fclose(tfp); in vtrace_end()
61 if (name == NULL || (tfp = fopen(name, "w")) == NULL) in vtrace_init()
62 tfp = stderr; in vtrace_init()
77 if (tfp == NULL) in vtrace()
81 (void)vfprintf(tfp, fmt, ap); in vtrace()
84 (void)fflush(tfp); in vtrace()
/netbsd/src/usr.bin/config/
Dmkheaders.c364 FILE *tfp; in emitlocs() local
367 if ((tfp = fopen(tfname, "w")) == NULL) in emitlocs()
370 rval = ht_enumerate(attrtab, locators_print, tfp); in emitlocs()
372 fflush(tfp); in emitlocs()
373 if (ferror(tfp)) in emitlocs()
375 if (fclose(tfp) == EOF) in emitlocs()
390 FILE *tfp; in emitioconfh() local
395 if ((tfp = fopen(tfname, "w")) == NULL) in emitioconfh()
398 fputs("\n/* pseudo-devices */\n", tfp); in emitioconfh()
400 fprintf(tfp, "void %sattach(int);\n", in emitioconfh()
[all …]
/netbsd/src/external/bsd/nvi/dist/ex/
Dex_tag.c591 TAGF *atfp, *tfp; in ex_tag_copy() local
615 if (tagf_copy(sp, atfp, &tfp)) in ex_tag_copy()
617 TAILQ_INSERT_TAIL(&nexp->tagfq, tfp, q); in ex_tag_copy()
637 TAGF *tfp; in tagf_copy() local
639 MALLOC_RET(sp, tfp, TAGF *, sizeof(TAGF)); in tagf_copy()
640 *tfp = *otfp; in tagf_copy()
643 if ((tfp->name = strdup(otfp->name)) == NULL) in tagf_copy()
646 *tfpp = tfp; in tagf_copy()
711 tagf_free(SCR *sp, TAGF *tfp) in tagf_free() argument
716 TAILQ_REMOVE(&exp->tagfq, tfp, q); in tagf_free()
[all …]
/netbsd/src/external/bsd/ipf/dist/lib/
Dipft_hx.c27 static FILE *tfp = NULL; variable
33 if (tfp && tfd != -1) {
34 rewind(tfp);
40 tfp = stdin;
44 tfp = fdopen(tfd, "r");
79 while (fgets(line, sizeof(line)-1, tfp)) {
150 if (feof(tfp))
Dipft_tx.c33 static FILE *tfp = NULL; variable
90 if (tfp && tfd != -1) {
91 rewind(tfp);
97 tfp = stdin;
101 tfp = fdopen(tfd, "r");
129 while (fgets(line, sizeof(line)-1, tfp)) {
157 if (feof(tfp))
/netbsd/src/external/gpl2/xcvs/dist/src/
Dlogmsg.c238 FILE *tfp; in do_editor() local
244 tfp = CVS_FOPEN (CVSADM_TEMPLATE, "rb"); in do_editor()
245 if (tfp == NULL) in do_editor()
252 while (!feof (tfp)) in do_editor()
255 n = fread (buf, 1, sizeof buf, tfp); in do_editor()
263 if (ferror (tfp)) in do_editor()
266 if (fclose (tfp) < 0) in do_editor()
526 FILE *tfp; in rcsinfo_proc() local
535 if ((tfp = CVS_FOPEN (template, "r")) != NULL) in rcsinfo_proc()
540 while (getline (&line, &line_chars_allocated, tfp) >= 0) in rcsinfo_proc()
[all …]
/netbsd/src/usr.bin/rdist/
Ddocmd.c368 FILE *tfp; variable
400 tfp = NULL; in dodcolon()
402 if ((tfp = fopen(tempfile, "w")) == NULL) { in dodcolon()
423 if (tfp != NULL) in dodcolon()
424 (void) fclose(tfp); in dodcolon()
478 dolog(tfp, "new: %s\n", name); in cmptime()
/netbsd/src/sys/arch/alpha/alpha/
Dmachdep.c1681 struct trapframe *tfp = l->l_md.md_tf; in setregs() local
1695 memset(tfp, 0, sizeof(*tfp)); in setregs()
1699 tfp->tf_regs[i] = 0xbabefacedeadbeef; in setregs()
1704 tfp->tf_regs[FRAME_PS] = ALPHA_PSL_USERSET; in setregs()
1705 tfp->tf_regs[FRAME_PC] = pack->ep_entry & ~3; in setregs()
1707 tfp->tf_regs[FRAME_A0] = stack; /* a0 = sp */ in setregs()
1708 tfp->tf_regs[FRAME_A1] = 0; /* a1 = rtld cleanup */ in setregs()
1709 tfp->tf_regs[FRAME_A2] = 0; /* a2 = rtld object */ in setregs()
1710 tfp->tf_regs[FRAME_A3] = l->l_proc->p_psstrp; /* a3 = ps_strings */ in setregs()
1711 tfp->tf_regs[FRAME_T12] = tfp->tf_regs[FRAME_PC]; /* a.k.a. PV */ in setregs()
/netbsd/src/sys/arch/m68k/m68k/
Ddb_trace.c502 int tfp; in db_stack_trace_print() local
505 tfp = pos.k_fp + FR_SAVFP + 4 + (5 * 4); in db_stack_trace_print()
508 regp = tfp + offsetof(struct frame, f_sr); in db_stack_trace_print()
515 regp = tfp + offsetof(struct frame, f_pc); in db_stack_trace_print()
/netbsd/src/sys/compat/linux/arch/alpha/
Dlinux_machdep.c96 struct trapframe *tfp = l->l_md.md_tf; in linux_setregs() local
105 memset(tfp->tf_regs, 0, FRAME_SIZE * sizeof tfp->tf_regs[0]); in linux_setregs()
/netbsd/src/sys/arch/m68k/fpe/
Dfpu_emulate.c54 #define fpe_abort(tfp, ksi, signo, code) \ argument