Home
last modified time | relevance | path

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

1234

/freebsd/usr.bin/rpcgen/
H A Drpc_svcout.c68 f_print(fout, "\t\txdr_%s = (xdrproc_t) xdr_%s;\n", in p_xdrfunc()
75 f_print(fout, "static "); in internal_proctype()
77 f_print(fout, "*"); in internal_proctype()
90 f_print(fout, "%s int _rpcpmstart;", var_type); in write_most()
91 f_print(fout, "\t\t/* Started by a port monitor ? */\n"); in write_most()
93 f_print(fout, "%s int _rpcfdtype;", var_type); in write_most()
94 f_print(fout, "\n\t\t /* Whether Stream or \ in write_most()
99 f_print(fout, " /* States a server can be in \ in write_most()
101 f_print(fout, "#define\t_IDLE 0\n"); in write_most()
102 f_print(fout, "#define\t_SERVED 1\n"); in write_most()
[all …]
H A Drpc_sample.c82 f_print(fout, "\n\nvoid\n"); in write_sample_client()
84 f_print(fout, "(char *host)\n{\n"); in write_sample_client()
85 f_print(fout, "\tCLIENT *clnt;\n"); in write_sample_client()
89 f_print(fout, "\t"); in write_sample_client()
91 f_print(fout, "enum clnt_stat retval_%d;\n\t", ++i); in write_sample_client()
93 f_print(fout, "result_%d;\n", i); in write_sample_client()
96 f_print(fout, " *result_%d;\n",++i); in write_sample_client()
100 f_print(fout, "\t"); in write_sample_client()
105 f_print(fout, "char * "); /* cannot have "void" type */ in write_sample_client()
106 f_print(fout, " "); in write_sample_client()
[all …]
H A Drpc_clntout.c56 f_print(fout, in write_stubs()
58 f_print(fout, "static struct timeval TIMEOUT = { %d, 0 };\n", in write_stubs()
76 f_print(fout, "\n"); in write_program()
79 f_print(fout, "*\n"); in write_program()
83 f_print(fout, "enum clnt_stat \n"); in write_program()
88 f_print(fout, "{\n"); in write_program()
91 f_print(fout, "}\n"); in write_program()
113 f_print(fout, "("); in printarglist()
118 f_print(fout, "*argp, "); in printarglist()
120 f_print(fout, "*%s, %s%s)\n", in printarglist()
[all …]
H A Drpc_hout.c63 f_print(fout, "\n"); in print_datadef()
99 f_print(fout, "\n"); in print_funcdef()
135 f_print(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n", name, in print_xdr_func_def()
166 f_print(fout, "struct %s {\n", name); in pargdef()
172 f_print(fout, "};\n"); in pargdef()
173 f_print(fout, "typedef struct %s %s;\n", in pargdef()
176 f_print(fout, "\n"); in pargdef()
188 f_print(fout, "struct %s {\n", name); in pstructdef()
192 f_print(fout, "};\n"); in pstructdef()
193 f_print(fout, "typedef struct %s %s;\n", name, name); in pstructdef()
[all …]
H A Drpc_cout.c120 f_print(fout, "\n"); in print_generic_header()
121 f_print(fout, "bool_t\n"); in print_generic_header()
122 f_print(fout, "xdr_%s(", procname); in print_generic_header()
123 f_print(fout, "XDR *xdrs, "); in print_generic_header()
124 f_print(fout, "%s ", procname); in print_generic_header()
126 f_print(fout, "*"); in print_generic_header()
127 f_print(fout, "objp)\n{\n\n"); in print_generic_header()
142 f_print(fout, "\tregister long *buf;\n\n"); in print_header()
154 f_print(fout, "\treturn (TRUE);\n"); in print_trailer()
155 f_print(fout, "}\n"); in print_trailer()
[all …]
H A Drpc_main.c233 fout = stdout; in open_output()
241 fout = fopen(outfile, "w"); in open_output()
242 if (fout == NULL) { in open_output()
254 f_print(fout, "/*\n"); in add_warning()
255 f_print(fout, " * Please do not edit this file.\n"); in add_warning()
256 f_print(fout, " * It was generated using rpcgen.\n"); in add_warning()
257 f_print(fout, " */\n\n"); in add_warning()
476 f_print(fout, "#include \"%s\"\n", include); in c_output()
480 f_print(fout, "#include <rpc/rpc.h>\n"); in c_output()
481 tell = ftell(fout); in c_output()
[all …]
H A Drpc_tblout.c66 f_print(fout, "\n"); in write_tables()
90 f_print(fout, tbl_hdr, progvers); in write_table()
96 fputs(null_entry, fout); in write_table()
101 f_print(fout, in write_table()
110 f_print(fout, "\n\t(char *(*)())RPCGEN_ACTION("); in write_table()
117 f_print( fout, "_"); /* calls internal func */ in write_table()
120 f_print(fout, "),\n"); in write_table()
134 fputs(tbl_end, fout); in write_table()
135 f_print(fout, tbl_nproc, progvers, progvers, progvers); in write_table()
146 len = fprintf(fout, "\txdr_%s,", stringfix(type)); in printit()
[all …]
H A Drpc_util.c55 FILE *fout; /* file pointer of current output */ variable
163 f_print(fout, "enum "); in ptype()
165 f_print(fout, "struct "); in ptype()
169 f_print(fout, "bool_t "); in ptype()
171 f_print(fout, "char *"); in ptype()
173 f_print(fout, "%s ", follow ? fixtype(type) : type); in ptype()
230 f_print(fout, "%s_%s_svc", locase(pname), vnum); in pvname_svc()
236 f_print(fout, "%s_%s", locase(pname), vnum); in pvname()
/freebsd/sys/dev/clk/allwinner/
H A Daw_clk_m.c134 aw_clk_m_find_best(struct aw_clk_m_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_m_find_best() argument
147 if (abs(*fout - cur) < abs(*fout - best)) { in aw_clk_m_find_best()
161 aw_clk_m_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_m_set_freq() argument
173 best = aw_clk_m_find_best(sc, fparent, fout, in aw_clk_m_set_freq()
175 if ((best != *fout) && ((sc->flags & AW_CLK_SET_PARENT) != 0)) { in aw_clk_m_set_freq()
183 clknode_set_freq(p_clk, *fout, CLK_SET_ROUND_MULTIPLE, 0); in aw_clk_m_set_freq()
185 best = aw_clk_m_find_best(sc, fparent, fout, in aw_clk_m_set_freq()
190 *fout = best; in aw_clk_m_set_freq()
195 if ((best < *fout) && in aw_clk_m_set_freq()
200 if ((best > *fout) && in aw_clk_m_set_freq()
[all …]
H A Daw_clk_frac.c145 aw_clk_frac_find_best(struct aw_clk_frac_sc *sc, uint64_t fparent, uint64_t fout, in aw_clk_frac_find_best() argument
168 if (cur == fout) { in aw_clk_frac_find_best()
173 if (abs((fout - cur)) < abs((fout - best))) { in aw_clk_frac_find_best()
185 aw_clk_frac_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_frac_set_freq() argument
199 dprintf("Trying to find freq %ju with parent %ju\n", *fout, fparent); in aw_clk_frac_set_freq()
205 if (*fout * multiple == sc->frac.freq0) { in aw_clk_frac_set_freq()
211 else if (*fout * multiple == sc->frac.freq1) { in aw_clk_frac_set_freq()
218 cur = aw_clk_frac_find_best(sc, fparent, *fout * multiple, in aw_clk_frac_set_freq()
221 if (cur == (*fout * multiple)) { in aw_clk_frac_set_freq()
229 if (abs(((*fout * multiple) - cur)) < abs(((*fout * multiple) - best))) { in aw_clk_frac_set_freq()
[all …]
H A Daw_clk_nm.c135 aw_clk_nm_find_best(struct aw_clk_nm_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_nm_find_best() argument
151 if (clk_freq_diff(*fout, cur) < in aw_clk_nm_find_best()
152 clk_freq_diff(*fout, best)) { in aw_clk_nm_find_best()
173 aw_clk_nm_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_nm_set_freq() argument
194 cur = aw_clk_nm_find_best(sc, fparent, fout, &n, &m); in aw_clk_nm_set_freq()
195 if (clk_freq_diff(*fout, cur) < in aw_clk_nm_set_freq()
196 clk_freq_diff(*fout, best)) { in aw_clk_nm_set_freq()
208 best = aw_clk_nm_find_best(sc, fparent, fout, in aw_clk_nm_set_freq()
213 *fout = best; in aw_clk_nm_set_freq()
218 if ((best < *fout) && in aw_clk_nm_set_freq()
[all …]
H A Daw_clk_np.c100 aw_clk_np_find_best(struct aw_clk_np_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_np_find_best() argument
116 if (abs(*fout - cur) < abs(*fout - best)) { in aw_clk_np_find_best()
131 aw_clk_np_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_np_set_freq() argument
143 best = aw_clk_np_find_best(sc, fparent, fout, in aw_clk_np_set_freq()
147 *fout = best; in aw_clk_np_set_freq()
152 if ((best < *fout) && in aw_clk_np_set_freq()
157 if ((best > *fout) && in aw_clk_np_set_freq()
185 *fout = best; in aw_clk_np_set_freq()
H A Daw_clk_nmm.c101 aw_clk_nmm_find_best(struct aw_clk_nmm_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_nmm_find_best() argument
122 if (abs(*fout - cur) < abs(*fout - best)) { in aw_clk_nmm_find_best()
139 aw_clk_nmm_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_nmm_set_freq() argument
151 best = aw_clk_nmm_find_best(sc, fparent, fout, in aw_clk_nmm_set_freq()
155 *fout = best; in aw_clk_nmm_set_freq()
160 if ((best < *fout) && in aw_clk_nmm_set_freq()
165 if ((best > *fout) && in aw_clk_nmm_set_freq()
196 *fout = best; in aw_clk_nmm_set_freq()
H A Daw_clk_mipi.c113 aw_clk_mipi_find_best(struct aw_clk_mipi_sc *sc, uint64_t fparent, uint64_t *fout, in aw_clk_mipi_find_best() argument
128 if ((*fout - cur) < (*fout - best)) { in aw_clk_mipi_find_best()
134 if (best == *fout) in aw_clk_mipi_find_best()
144 aw_clk_mipi_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in aw_clk_mipi_set_freq() argument
156 best = aw_clk_mipi_find_best(sc, fparent, fout, &best_k, &best_m, &best_n); in aw_clk_mipi_set_freq()
166 *fout = best; in aw_clk_mipi_set_freq()
202 *fout = best; in aw_clk_mipi_set_freq()
/freebsd/sys/arm64/nvidia/tegra210/
H A Dtegra210_clk_pll.c571 uint64_t *fout, int flags, int *stop);
899 pll_set_std(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags, in pll_set_std() argument
916 (*fout != (((fin / m) * n) /p))) in pll_set_std()
919 *fout = ((fin / m) * n) /p; in pll_set_std()
958 *fout = ((fin / m) * n) / p; in pll_set_std()
963 plla_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) in plla_set_freq() argument
969 n = (*fout * p * m + fin / 2)/ fin; in plla_set_freq()
971 return (pll_set_std(sc, fin, fout, flags, m, n, p)); in plla_set_freq()
975 pllc_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) in pllc_set_freq() argument
981 n = (*fout * p * m + fin / 2)/ fin; in pllc_set_freq()
[all …]
/freebsd/sys/arm/nvidia/tegra124/
H A Dtegra124_clk_pll.c385 uint64_t *fout, int flags, int *stop);
701 pll_set_std(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags, in pll_set_std() argument
718 (*fout != (((fin / m) * n) /p))) in pll_set_std()
721 *fout = ((fin / m) * n) /p; in pll_set_std()
760 *fout = ((fin / m) * n) / p; in pll_set_std()
765 plla_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) in plla_set_freq() argument
771 n = (*fout * p * m + fin / 2)/ fin; in plla_set_freq()
773 return (pll_set_std(sc, fin, fout, flags, m, n, p)); in plla_set_freq()
777 pllc_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) in pllc_set_freq() argument
783 n = (*fout * p * m + fin / 2)/ fin; in pllc_set_freq()
[all …]
/freebsd/usr.bin/mail/
H A Dnames.c281 FILE *fout, *fin; in outof() local
310 (fout = Fdopen(fd, "a")) == NULL) { in outof()
320 (void)Fclose(fout); in outof()
324 fprintf(fout, "From %s %s", myname, date); in outof()
325 puthead(hp, fout, in outof()
328 (void)putc(c, fout); in outof()
330 fprintf(fout, "\n"); in outof()
331 (void)fflush(fout); in outof()
332 if (ferror(fout)) { in outof()
335 (void)Fclose(fout); in outof()
[all …]
/freebsd/contrib/bc/src/
H A Dhistory.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 …]
/freebsd/crypto/heimdal/lib/asn1/
H A Dasn1_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/sys/dev/clk/rockchip/
H A Drk_clk_composite.c223 rk_clk_composite_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in rk_clk_composite_set_freq() argument
234 dprintf("Finding best parent/div for target freq of %ju\n", *fout); in rk_clk_composite_set_freq()
242 div = rk_clk_composite_find_best(sc, fparent, *fout, &div_reg); in rk_clk_composite_set_freq()
244 if ((*fout - cur) < (*fout - best)) { in rk_clk_composite_set_freq()
258 if ((best < *fout) && ((flags & CLK_SET_ROUND_DOWN) == 0)) in rk_clk_composite_set_freq()
261 if ((best > *fout) && ((flags & CLK_SET_ROUND_UP) == 0)) { in rk_clk_composite_set_freq()
266 *fout = best; in rk_clk_composite_set_freq()
288 *fout = best; in rk_clk_composite_set_freq()
H A Drk_clk_fract.c54 uint64_t *fout, int flag, int *stop);
201 rk_clk_fract_set_freq(struct clknode *clk, uint64_t fin, uint64_t *fout, in rk_clk_fract_set_freq() argument
209 clk_compute_fract_div(*fout, fin, 0xFFFF, 0xFFFF, &div_n, &div_d); in rk_clk_fract_set_freq()
214 if ((flags & CLK_SET_ROUND_UP) && (_fout < *fout)) { in rk_clk_fract_set_freq()
219 } else if ((flags & CLK_SET_ROUND_DOWN) && (_fout > *fout)) { in rk_clk_fract_set_freq()
244 *fout != _fout) in rk_clk_fract_set_freq()
255 *fout = _fout; in rk_clk_fract_set_freq()
H A Drk_clk_mux.c67 uint64_t *fout, int flags, int *stop);
165 rk_clk_mux_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in rk_clk_mux_set_freq() argument
185 dprintf("Finding best parent for target freq of %ju\n", *fout); in rk_clk_mux_set_freq()
192 rv = clknode_set_freq(p_clk, *fout, flags | CLK_SET_DRYRUN, 0); in rk_clk_mux_set_freq()
215 clknode_set_freq(p_best_clk, *fout, flags, 0); in rk_clk_mux_set_freq()
216 clknode_get_freq(p_best_clk, fout); in rk_clk_mux_set_freq()
/freebsd/sys/arm/ti/clk/
H A Dti_clk_dpll.c112 uint64_t *fout, uint32_t *factor_n, uint32_t *factor_p) in ti_dpll_clk_find_best() argument
127 if (abs(*fout - cur) < abs(*fout - best)) { in ti_dpll_clk_find_best()
176 ti_dpll_clk_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, in ti_dpll_clk_set_freq() argument
187 best = ti_dpll_clk_find_best(sc, fparent, fout, in ti_dpll_clk_set_freq()
191 *fout = best; in ti_dpll_clk_set_freq()
196 if ((best < *fout) && in ti_dpll_clk_set_freq()
201 if ((best > *fout) && in ti_dpll_clk_set_freq()
256 *fout = best; in ti_dpll_clk_set_freq()
/freebsd/sys/dev/clk/
H A Dclk_div.c53 uint64_t *fout, int flag, int *stop);
161 clknode_div_set_freq(struct clknode *clk, uint64_t fin, uint64_t *fout, in clknode_div_set_freq() argument
173 divider = (_fin + *fout / 2) / *fout; in clknode_div_set_freq()
177 if ((flags & CLK_SET_ROUND_UP) && (*fout < _fout)) in clknode_div_set_freq()
179 else if ((flags & CLK_SET_ROUND_DOWN) && (*fout > _fout)) in clknode_div_set_freq()
218 (*fout != (_fin / divider))) in clknode_div_set_freq()
235 *fout = _fin / divider; in clknode_div_set_freq()
/freebsd/contrib/arm-optimized-routines/math/test/rtest/
H A Dsemi.c489 char *test_modf(uint32 *x, uint32 *fout, uint32 *iout) { in test_modf() argument
498 fout[0] = iout[0] = x[0]; in test_modf()
499 fout[1] = iout[1] = x[1]; in test_modf()
507 fout[0] = sign; in test_modf()
508 fout[1] = 0; in test_modf()
512 fout[0] = x[0]; in test_modf()
513 fout[1] = x[1]; in test_modf()
521 fout[0] = sign | (ex << 20) | (fh & 0xFFFFF); in test_modf()
522 fout[1] = fl; in test_modf()
526 char *test_modff(uint32 *x, uint32 *fout, uint32 *iout) { in test_modff() argument
[all …]

1234