Home
last modified time | relevance | path

Searched refs:fout (Results 1 – 25 of 82) sorted by relevance

1234

/freebsd-14-stable/usr.bin/rpcgen/
HDrpc_svcout.c76 f_print(fout, "\t\txdr_%s = (xdrproc_t) xdr_%s;\n", in p_xdrfunc()
83 f_print(fout, "static "); in internal_proctype()
85 f_print(fout, "*"); in internal_proctype()
98 f_print(fout, "%s int _rpcpmstart;", var_type); in write_most()
99 f_print(fout, "\t\t/* Started by a port monitor ? */\n"); in write_most()
101 f_print(fout, "%s int _rpcfdtype;", var_type); in write_most()
102 f_print(fout, "\n\t\t /* Whether Stream or \ in write_most()
107 f_print(fout, " /* States a server can be in \ in write_most()
109 f_print(fout, "#define\t_IDLE 0\n"); in write_most()
110 f_print(fout, "#define\t_SERVED 1\n"); in write_most()
[all …]
HDrpc_sample.c85 f_print(fout, "\n\nvoid\n"); in write_sample_client()
87 f_print(fout, "(char *host)\n{\n"); in write_sample_client()
88 f_print(fout, "\tCLIENT *clnt;\n"); in write_sample_client()
92 f_print(fout, "\t"); in write_sample_client()
94 f_print(fout, "enum clnt_stat retval_%d;\n\t", ++i); in write_sample_client()
96 f_print(fout, "result_%d;\n", i); in write_sample_client()
99 f_print(fout, " *result_%d;\n",++i); in write_sample_client()
103 f_print(fout, "\t"); in write_sample_client()
108 f_print(fout, "char * "); /* cannot have "void" type */ in write_sample_client()
109 f_print(fout, " "); in write_sample_client()
[all …]
HDrpc_clntout.c64 f_print(fout, in write_stubs()
66 f_print(fout, "static struct timeval TIMEOUT = { %d, 0 };\n", in write_stubs()
84 f_print(fout, "\n"); in write_program()
87 f_print(fout, "*\n"); in write_program()
91 f_print(fout, "enum clnt_stat \n"); in write_program()
96 f_print(fout, "{\n"); in write_program()
99 f_print(fout, "}\n"); in write_program()
121 f_print(fout, "("); in printarglist()
126 f_print(fout, "*argp, "); in printarglist()
128 f_print(fout, "*%s, %s%s)\n", in printarglist()
[all …]
HDrpc_hout.c71 f_print(fout, "\n"); in print_datadef()
107 f_print(fout, "\n"); in print_funcdef()
143 f_print(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n", name, in print_xdr_func_def()
174 f_print(fout, "struct %s {\n", name); in pargdef()
180 f_print(fout, "};\n"); in pargdef()
181 f_print(fout, "typedef struct %s %s;\n", in pargdef()
184 f_print(fout, "\n"); in pargdef()
196 f_print(fout, "struct %s {\n", name); in pstructdef()
200 f_print(fout, "};\n"); in pstructdef()
201 f_print(fout, "typedef struct %s %s;\n", name, name); in pstructdef()
[all …]
HDrpc_cout.c128 f_print(fout, "\n"); in print_generic_header()
129 f_print(fout, "bool_t\n"); in print_generic_header()
130 f_print(fout, "xdr_%s(", procname); in print_generic_header()
131 f_print(fout, "XDR *xdrs, "); in print_generic_header()
132 f_print(fout, "%s ", procname); in print_generic_header()
134 f_print(fout, "*"); in print_generic_header()
135 f_print(fout, "objp)\n{\n\n"); in print_generic_header()
150 f_print(fout, "\tregister long *buf;\n\n"); in print_header()
162 f_print(fout, "\treturn (TRUE);\n"); in print_trailer()
163 f_print(fout, "}\n"); in print_trailer()
[all …]
HDrpc_main.c241 fout = stdout; in open_output()
249 fout = fopen(outfile, "w"); in open_output()
250 if (fout == NULL) { in open_output()
262 f_print(fout, "/*\n"); in add_warning()
263 f_print(fout, " * Please do not edit this file.\n"); in add_warning()
264 f_print(fout, " * It was generated using rpcgen.\n"); in add_warning()
265 f_print(fout, " */\n\n"); in add_warning()
484 f_print(fout, "#include \"%s\"\n", include); in c_output()
488 f_print(fout, "#include <rpc/rpc.h>\n"); in c_output()
489 tell = ftell(fout); in c_output()
[all …]
HDrpc_tblout.c74 f_print(fout, "\n"); in write_tables()
98 f_print(fout, tbl_hdr, progvers); in write_table()
104 fputs(null_entry, fout); in write_table()
109 f_print(fout, in write_table()
118 f_print(fout, "\n\t(char *(*)())RPCGEN_ACTION("); in write_table()
125 f_print( fout, "_"); /* calls internal func */ in write_table()
128 f_print(fout, "),\n"); in write_table()
142 fputs(tbl_end, fout); in write_table()
143 f_print(fout, tbl_nproc, progvers, progvers, progvers); in write_table()
154 len = fprintf(fout, "\txdr_%s,", stringfix(type)); in printit()
[all …]
HDrpc_util.c63 FILE *fout; /* file pointer of current output */ variable
171 f_print(fout, "enum "); in ptype()
173 f_print(fout, "struct "); in ptype()
177 f_print(fout, "bool_t "); in ptype()
179 f_print(fout, "char *"); in ptype()
181 f_print(fout, "%s ", follow ? fixtype(type) : type); in ptype()
238 f_print(fout, "%s_%s_svc", locase(pname), vnum); in pvname_svc()
244 f_print(fout, "%s_%s", locase(pname), vnum); in pvname()
/freebsd-14-stable/sys/arm/allwinner/clkng/
HDaw_clk_m.c135 aw_clk_m_find_best(struct aw_clk_m_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_m_find_best() argument
148 if (abs(*fout - cur) < abs(*fout - best)) { in aw_clk_m_find_best()
162 aw_clk_m_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_m_set_freq() argument
174 best = aw_clk_m_find_best(sc, fparent, fout, in aw_clk_m_set_freq()
176 if ((best != *fout) && ((sc->flags & AW_CLK_SET_PARENT) != 0)) { in aw_clk_m_set_freq()
184 clknode_set_freq(p_clk, *fout, CLK_SET_ROUND_MULTIPLE, 0); in aw_clk_m_set_freq()
186 best = aw_clk_m_find_best(sc, fparent, fout, in aw_clk_m_set_freq()
191 *fout = best; in aw_clk_m_set_freq()
196 if ((best < *fout) && in aw_clk_m_set_freq()
201 if ((best > *fout) && in aw_clk_m_set_freq()
[all …]
HDaw_clk_frac.c146 aw_clk_frac_find_best(struct aw_clk_frac_sc *sc, uint64_t fparent, uint64_t fout, in aw_clk_frac_find_best() argument
169 if (cur == fout) { in aw_clk_frac_find_best()
174 if (abs((fout - cur)) < abs((fout - best))) { in aw_clk_frac_find_best()
186 aw_clk_frac_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_frac_set_freq() argument
200 dprintf("Trying to find freq %ju with parent %ju\n", *fout, fparent); in aw_clk_frac_set_freq()
206 if (*fout * multiple == sc->frac.freq0) { in aw_clk_frac_set_freq()
212 else if (*fout * multiple == sc->frac.freq1) { in aw_clk_frac_set_freq()
219 cur = aw_clk_frac_find_best(sc, fparent, *fout * multiple, in aw_clk_frac_set_freq()
222 if (cur == (*fout * multiple)) { in aw_clk_frac_set_freq()
230 if (abs(((*fout * multiple) - cur)) < abs(((*fout * multiple) - best))) { in aw_clk_frac_set_freq()
[all …]
HDaw_clk_nm.c136 aw_clk_nm_find_best(struct aw_clk_nm_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_nm_find_best() argument
152 if (clk_freq_diff(*fout, cur) < in aw_clk_nm_find_best()
153 clk_freq_diff(*fout, best)) { in aw_clk_nm_find_best()
174 aw_clk_nm_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_nm_set_freq() argument
195 cur = aw_clk_nm_find_best(sc, fparent, fout, &n, &m); in aw_clk_nm_set_freq()
196 if (clk_freq_diff(*fout, cur) < in aw_clk_nm_set_freq()
197 clk_freq_diff(*fout, best)) { in aw_clk_nm_set_freq()
209 best = aw_clk_nm_find_best(sc, fparent, fout, in aw_clk_nm_set_freq()
214 *fout = best; in aw_clk_nm_set_freq()
219 if ((best < *fout) && in aw_clk_nm_set_freq()
[all …]
HDaw_clk_np.c101 aw_clk_np_find_best(struct aw_clk_np_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_np_find_best() argument
117 if (abs(*fout - cur) < abs(*fout - best)) { in aw_clk_np_find_best()
132 aw_clk_np_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_np_set_freq() argument
144 best = aw_clk_np_find_best(sc, fparent, fout, in aw_clk_np_set_freq()
148 *fout = best; in aw_clk_np_set_freq()
153 if ((best < *fout) && in aw_clk_np_set_freq()
158 if ((best > *fout) && in aw_clk_np_set_freq()
186 *fout = best; in aw_clk_np_set_freq()
HDaw_clk_nmm.c102 aw_clk_nmm_find_best(struct aw_clk_nmm_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_nmm_find_best() argument
123 if (abs(*fout - cur) < abs(*fout - best)) { in aw_clk_nmm_find_best()
140 aw_clk_nmm_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_nmm_set_freq() argument
152 best = aw_clk_nmm_find_best(sc, fparent, fout, in aw_clk_nmm_set_freq()
156 *fout = best; in aw_clk_nmm_set_freq()
161 if ((best < *fout) && in aw_clk_nmm_set_freq()
166 if ((best > *fout) && in aw_clk_nmm_set_freq()
197 *fout = best; in aw_clk_nmm_set_freq()
HDaw_clk_mipi.c114 aw_clk_mipi_find_best(struct aw_clk_mipi_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_mipi_find_best() argument
129 if ((*fout - cur) < (*fout - best)) { in aw_clk_mipi_find_best()
135 if (best == *fout) in aw_clk_mipi_find_best()
145 aw_clk_mipi_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_mipi_set_freq() argument
157 best = aw_clk_mipi_find_best(sc, fparent, fout, &best_k, &best_m, &best_n); in aw_clk_mipi_set_freq()
167 *fout = best; in aw_clk_mipi_set_freq()
203 *fout = best; in aw_clk_mipi_set_freq()
/freebsd-14-stable/sys/arm64/nvidia/tegra210/
HDtegra210_clk_pll.c572 uint64_t *fout, int flags, int *stop);
900 pll_set_std(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags, in pll_set_std() argument
917 (*fout != (((fin / m) * n) /p))) in pll_set_std()
920 *fout = ((fin / m) * n) /p; in pll_set_std()
959 *fout = ((fin / m) * n) / p; in pll_set_std()
964 plla_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) in plla_set_freq() argument
970 n = (*fout * p * m + fin / 2)/ fin; in plla_set_freq()
972 return (pll_set_std(sc, fin, fout, flags, m, n, p)); in plla_set_freq()
976 pllc_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) in pllc_set_freq() argument
982 n = (*fout * p * m + fin / 2)/ fin; in pllc_set_freq()
[all …]
/freebsd-14-stable/sys/arm/nvidia/tegra124/
HDtegra124_clk_pll.c386 uint64_t *fout, int flags, int *stop);
702 pll_set_std(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags, in pll_set_std() argument
719 (*fout != (((fin / m) * n) /p))) in pll_set_std()
722 *fout = ((fin / m) * n) /p; in pll_set_std()
761 *fout = ((fin / m) * n) / p; in pll_set_std()
766 plla_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) in plla_set_freq() argument
772 n = (*fout * p * m + fin / 2)/ fin; in plla_set_freq()
774 return (pll_set_std(sc, fin, fout, flags, m, n, p)); in plla_set_freq()
778 pllc_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) in pllc_set_freq() argument
784 n = (*fout * p * m + fin / 2)/ fin; in pllc_set_freq()
[all …]
/freebsd-14-stable/usr.bin/mail/
HDnames.c287 FILE *fout, *fin; in outof() local
316 (fout = Fdopen(fd, "a")) == NULL) { in outof()
326 (void)Fclose(fout); in outof()
330 fprintf(fout, "From %s %s", myname, date); in outof()
331 puthead(hp, fout, in outof()
334 (void)putc(c, fout); in outof()
336 fprintf(fout, "\n"); in outof()
337 (void)fflush(fout); in outof()
338 if (ferror(fout)) { in outof()
341 (void)Fclose(fout); in outof()
[all …]
/freebsd-14-stable/contrib/bc/src/
HDhistory.c295 bc_file_printf(&vm->fout, "\n"); in bc_history_line()
394 bc_file_printf(&vm->fout, "%s\n", "^D"); in bc_history_line()
929 bc_file_write(&vm->fout, bc_flush_none, "\x1b[6n", 4); in bc_history_cursorPos()
930 bc_file_flush(&vm->fout, bc_flush_none); in bc_history_cursorPos()
973 ret = ioctl(vm->fout.fd, TIOCGWINSZ, &ws); in bc_history_columns()
985 bc_file_write(&vm->fout, bc_flush_none, "\x1b[999C", 6); in bc_history_columns()
986 bc_file_flush(&vm->fout, bc_flush_none); in bc_history_columns()
993 bc_file_printf(&vm->fout, "\x1b[%zuD", cols - start); in bc_history_columns()
994 bc_file_flush(&vm->fout, bc_flush_none); in bc_history_columns()
1052 bc_file_flush(&vm->fout, bc_flush_none); in bc_history_refresh()
[all …]
HDread.c146 bc_file_puts(&vm->fout, bc_flush_none, prompt); in bc_read_chars()
147 bc_file_flush(&vm->fout, bc_flush_none); in bc_read_chars()
194 bc_file_puts(&vm->fout, bc_flush_none, in bc_read_chars()
198 bc_file_puts(&vm->fout, bc_flush_none, prompt); in bc_read_chars()
200 bc_file_flush(&vm->fout, bc_flush_none); in bc_read_chars()
/freebsd-14-stable/crypto/heimdal/lib/asn1/
HDasn1_gen.c52 FILE *f, *fout; in doit() local
68 fout = fopen(fnout, "w"); in doit()
69 if (fout == NULL) in doit()
122 if (fwrite(p + sizeof(p) - sz , sz, 1, fout) != 1) in doit()
135 if (fwrite(pdata, datalen, 1, fout) != 1) in doit()
144 fclose(fout); in doit()
/freebsd-14-stable/sys/arm64/rockchip/clk/
HDrk_clk_composite.c224 rk_clk_composite_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in rk_clk_composite_set_freq() argument
235 dprintf("Finding best parent/div for target freq of %ju\n", *fout); in rk_clk_composite_set_freq()
243 div = rk_clk_composite_find_best(sc, fparent, *fout, &div_reg); in rk_clk_composite_set_freq()
245 if ((*fout - cur) < (*fout - best)) { in rk_clk_composite_set_freq()
259 if ((best < *fout) && ((flags & CLK_SET_ROUND_DOWN) == 0)) in rk_clk_composite_set_freq()
262 if ((best > *fout) && ((flags & CLK_SET_ROUND_UP) == 0)) { in rk_clk_composite_set_freq()
267 *fout = best; in rk_clk_composite_set_freq()
289 *fout = best; in rk_clk_composite_set_freq()
HDrk_clk_fract.c55 uint64_t *fout, int flag, int *stop);
202 rk_clk_fract_set_freq(struct clknode *clk, uint64_t fin, uint64_t *fout, in rk_clk_fract_set_freq() argument
210 clk_compute_fract_div(*fout, fin, 0xFFFF, 0xFFFF, &div_n, &div_d); in rk_clk_fract_set_freq()
215 if ((flags & CLK_SET_ROUND_UP) && (_fout < *fout)) { in rk_clk_fract_set_freq()
220 } else if ((flags & CLK_SET_ROUND_DOWN) && (_fout > *fout)) { in rk_clk_fract_set_freq()
245 *fout != _fout) in rk_clk_fract_set_freq()
256 *fout = _fout; in rk_clk_fract_set_freq()
HDrk_clk_mux.c68 uint64_t *fout, int flags, int *stop);
166 rk_clk_mux_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in rk_clk_mux_set_freq() argument
186 dprintf("Finding best parent for target freq of %ju\n", *fout); in rk_clk_mux_set_freq()
193 rv = clknode_set_freq(p_clk, *fout, flags | CLK_SET_DRYRUN, 0); in rk_clk_mux_set_freq()
216 clknode_set_freq(p_best_clk, *fout, flags, 0); in rk_clk_mux_set_freq()
217 clknode_get_freq(p_best_clk, fout); in rk_clk_mux_set_freq()
/freebsd-14-stable/sys/arm/ti/clk/
HDti_clk_dpll.c113 uint64_t *fout, uint32_t *factor_n, uint32_t *factor_p) in ti_dpll_clk_find_best() argument
128 if (abs(*fout - cur) < abs(*fout - best)) { in ti_dpll_clk_find_best()
177 ti_dpll_clk_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in ti_dpll_clk_set_freq() argument
188 best = ti_dpll_clk_find_best(sc, fparent, fout, in ti_dpll_clk_set_freq()
192 *fout = best; in ti_dpll_clk_set_freq()
197 if ((best < *fout) && in ti_dpll_clk_set_freq()
202 if ((best > *fout) && in ti_dpll_clk_set_freq()
257 *fout = best; in ti_dpll_clk_set_freq()
/freebsd-14-stable/sys/dev/extres/clk/
HDclk_div.c54 uint64_t *fout, int flag, int *stop);
162 clknode_div_set_freq(struct clknode *clk, uint64_t fin, uint64_t *fout, in clknode_div_set_freq() argument
174 divider = (_fin + *fout / 2) / *fout; in clknode_div_set_freq()
178 if ((flags & CLK_SET_ROUND_UP) && (*fout < _fout)) in clknode_div_set_freq()
180 else if ((flags & CLK_SET_ROUND_DOWN) && (*fout > _fout)) in clknode_div_set_freq()
219 (*fout != (_fin / divider))) in clknode_div_set_freq()
236 *fout = _fin / divider; in clknode_div_set_freq()

1234