Searched refs:fout (Results 1 - 25 of 68) sorted by relevance

123

/freebsd-current/usr.bin/rpcgen/
H A Drpc_svcout.c68 f_print(fout, "\t\txdr_%s = (xdrproc_t) xdr_%s;\n",
75 f_print(fout, "static ");
77 f_print(fout, "*");
90 f_print(fout, "%s int _rpcpmstart;", var_type);
91 f_print(fout, "\t\t/* Started by a port monitor ? */\n");
93 f_print(fout, "%s int _rpcfdtype;", var_type);
94 f_print(fout, "\n\t\t /* Whether Stream or \
99 f_print(fout, " /* States a server can be in \
101 f_print(fout, "#define\t_IDLE 0\n");
102 f_print(fout, "#defin
[all...]
H A Drpc_sample.c82 f_print(fout, "\n\nvoid\n");
84 f_print(fout, "(char *host)\n{\n");
85 f_print(fout, "\tCLIENT *clnt;\n");
89 f_print(fout, "\t");
91 f_print(fout, "enum clnt_stat retval_%d;\n\t", ++i);
93 f_print(fout, "result_%d;\n", i);
96 f_print(fout, " *result_%d;\n",++i);
100 f_print(fout, "\t");
105 f_print(fout, "char * "); /* cannot have "void" type */
106 f_print(fout, " ");
[all...]
H A Drpc_clntout.c56 f_print(fout,
58 f_print(fout, "static struct timeval TIMEOUT = { %d, 0 };\n",
76 f_print(fout, "\n");
79 f_print(fout, "*\n");
83 f_print(fout, "enum clnt_stat \n");
88 f_print(fout, "{\n");
91 f_print(fout, "}\n");
113 f_print(fout, "(");
118 f_print(fout, "*argp, ");
120 f_print(fout, "*
[all...]
H A Drpc_hout.c63 f_print(fout, "\n");
99 f_print(fout, "\n");
135 f_print(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n", name,
166 f_print(fout, "struct %s {\n", name);
172 f_print(fout, "};\n");
173 f_print(fout, "typedef struct %s %s;\n",
176 f_print(fout, "\n");
188 f_print(fout, "struct %s {\n", name);
192 f_print(fout, "};\n");
193 f_print(fout, "typede
[all...]
H A Drpc_tblout.c66 f_print(fout, "\n");
90 f_print(fout, tbl_hdr, progvers);
96 fputs(null_entry, fout);
101 f_print(fout,
110 f_print(fout, "\n\t(char *(*)())RPCGEN_ACTION(");
117 f_print( fout, "_"); /* calls internal func */
120 f_print(fout, "),\n");
134 fputs(tbl_end, fout);
135 f_print(fout, tbl_nproc, progvers, progvers, progvers);
146 len = fprintf(fout, "\txdr
[all...]
H A Drpc_cout.c120 f_print(fout, "\n");
121 f_print(fout, "bool_t\n");
122 f_print(fout, "xdr_%s(", procname);
123 f_print(fout, "XDR *xdrs, ");
124 f_print(fout, "%s ", procname);
126 f_print(fout, "*");
127 f_print(fout, "objp)\n{\n\n");
142 f_print(fout, "\tregister long *buf;\n\n");
154 f_print(fout, "\treturn (TRUE);\n");
155 f_print(fout, "}\
[all...]
H A Drpc_main.c233 fout = stdout;
241 fout = fopen(outfile, "w");
242 if (fout == NULL) {
254 f_print(fout, "/*\n");
255 f_print(fout, " * Please do not edit this file.\n");
256 f_print(fout, " * It was generated using rpcgen.\n");
257 f_print(fout, " */\n\n");
476 f_print(fout, "#include \"%s\"\n", include);
480 f_print(fout, "#include <rpc/rpc.h>\n");
481 tell = ftell(fout);
[all...]
H A Drpc_util.c55 FILE *fout; /* file pointer of current output */ variable
163 f_print(fout, "enum ");
165 f_print(fout, "struct ");
169 f_print(fout, "bool_t ");
171 f_print(fout, "char *");
173 f_print(fout, "%s ", follow ? fixtype(type) : type);
230 f_print(fout, "%s_%s_svc", locase(pname), vnum);
236 f_print(fout, "%s_%s", locase(pname), vnum);
/freebsd-current/sys/contrib/zstd/examples/
H A Dstreaming_decompression.c22 FILE* const fout = stdout; local
58 fwrite_orDie(buffOut, output.pos, fout);
79 fclose_orDie(fout);
H A Dstreaming_compression.c26 FILE* const fout = fopen_orDie(outName, "wb"); local
74 fwrite_orDie(buffOut, output.pos, fout);
90 fclose_orDie(fout);
H A Dmultiple_streaming_compression.c61 FILE* const fout = fopen_orDie(outName, "wb"); local
84 fwrite_orDie(ress.buffOut, output.pos, fout);
91 fclose_orDie(fout);
/freebsd-current/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, argument
147 if (abs(*fout - cur) < abs(*fout - best)) {
161 aw_clk_m_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, argument
173 best = aw_clk_m_find_best(sc, fparent, fout,
175 if ((best != *fout) && ((sc->flags & AW_CLK_SET_PARENT) != 0)) {
183 clknode_set_freq(p_clk, *fout, CLK_SET_ROUND_MULTIPLE, 0);
185 best = aw_clk_m_find_best(sc, fparent, fout,
190 *fout = best;
195 if ((best < *fout)
[all...]
H A Daw_clk_frac.c145 aw_clk_frac_find_best(struct aw_clk_frac_sc *sc, uint64_t fparent, uint64_t fout, argument
168 if (cur == fout) {
173 if (abs((fout - cur)) < abs((fout - best))) {
185 aw_clk_frac_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, argument
199 dprintf("Trying to find freq %ju with parent %ju\n", *fout, fparent);
205 if (*fout * multiple == sc->frac.freq0) {
211 else if (*fout * multiple == sc->frac.freq1) {
218 cur = aw_clk_frac_find_best(sc, fparent, *fout * multiple,
221 if (cur == (*fout * multipl
[all...]
H A Daw_clk_np.c100 aw_clk_np_find_best(struct aw_clk_np_sc *sc, uint64_t fparent, uint64_t *fout, argument
116 if (abs(*fout - cur) < abs(*fout - best)) {
131 aw_clk_np_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, argument
143 best = aw_clk_np_find_best(sc, fparent, fout,
147 *fout = best;
152 if ((best < *fout) &&
157 if ((best > *fout) &&
185 *fout = best;
H A Daw_clk_nm.c135 aw_clk_nm_find_best(struct aw_clk_nm_sc *sc, uint64_t fparent, uint64_t *fout, argument
151 if (clk_freq_diff(*fout, cur) <
152 clk_freq_diff(*fout, best)) {
173 aw_clk_nm_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, argument
194 cur = aw_clk_nm_find_best(sc, fparent, fout, &n, &m);
195 if (clk_freq_diff(*fout, cur) <
196 clk_freq_diff(*fout, best)) {
208 best = aw_clk_nm_find_best(sc, fparent, fout,
213 *fout = best;
218 if ((best < *fout)
[all...]
H A Daw_clk_nmm.c101 aw_clk_nmm_find_best(struct aw_clk_nmm_sc *sc, uint64_t fparent, uint64_t *fout, argument
122 if (abs(*fout - cur) < abs(*fout - best)) {
139 aw_clk_nmm_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, argument
151 best = aw_clk_nmm_find_best(sc, fparent, fout,
155 *fout = best;
160 if ((best < *fout) &&
165 if ((best > *fout) &&
196 *fout = best;
/freebsd-current/crypto/heimdal/lib/asn1/
H A Dasn1_gen.c52 FILE *f, *fout; local
68 fout = fopen(fnout, "w");
69 if (fout == NULL)
122 if (fwrite(p + sizeof(p) - sz , sz, 1, fout) != 1)
135 if (fwrite(pdata, datalen, 1, fout) != 1)
144 fclose(fout);
/freebsd-current/contrib/libcbor/oss-fuzz/
H A Dcbor_load_fuzzer.cc62 FILE* fout; member in struct:State
64 State() : fout(fopen("/dev/null", "r")) {
75 cbor_describe(item, kState.fout);
/freebsd-current/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, argument
718 (*fout != (((fin / m) * n) /p)))
721 *fout = ((fin / m) * n) /p;
760 *fout = ((fin / m) * n) / p;
765 plla_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
771 n = (*fout * p * m + fin / 2)/ fin;
773 return (pll_set_std(sc, fin, fout, flags, m, n, p));
777 pllc_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
783 n = (*fout *
803 plld2_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
872 pllrefe_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
884 pllx_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
953 tegra124_pll_set_freq(struct clknode *clknode, uint64_t fin, uint64_t *fout, int flags, int *stop) argument
[all...]
/freebsd-current/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, argument
916 (*fout != (((fin / m) * n) /p)))
919 *fout = ((fin / m) * n) /p;
958 *fout = ((fin / m) * n) / p;
963 plla_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
969 n = (*fout * p * m + fin / 2)/ fin;
971 return (pll_set_std(sc, fin, fout, flags, m, n, p));
975 pllc_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
981 n = (*fout *
987 pllc4_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
999 plldp_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
1026 plld2_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
1095 pllrefe_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
1112 pllx_set_freq(struct pll_sc *sc, uint64_t fin, uint64_t *fout, int flags) argument
1245 tegra210_pll_set_freq(struct clknode *clknode, uint64_t fin, uint64_t *fout, int flags, int *stop) argument
[all...]
/freebsd-current/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, argument
173 divider = (_fin + *fout / 2) / *fout;
177 if ((flags & CLK_SET_ROUND_UP) && (*fout < _fout))
179 else if ((flags & CLK_SET_ROUND_DOWN) && (*fout > _fout))
218 (*fout != (_fin / divider)))
235 *fout = _fin / divider;
/freebsd-current/sys/dev/clk/rockchip/
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, argument
209 clk_compute_fract_div(*fout, fin, 0xFFFF, 0xFFFF, &div_n, &div_d);
214 if ((flags & CLK_SET_ROUND_UP) && (_fout < *fout)) {
219 } else if ((flags & CLK_SET_ROUND_DOWN) && (_fout > *fout)) {
244 *fout != _fout)
255 *fout = _fout;
H A Drk_clk_composite.c223 rk_clk_composite_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, argument
234 dprintf("Finding best parent/div for target freq of %ju\n", *fout);
242 div = rk_clk_composite_find_best(sc, fparent, *fout, &div_reg);
244 if ((*fout - cur) < (*fout - best)) {
258 if ((best < *fout) && ((flags & CLK_SET_ROUND_DOWN) == 0))
261 if ((best > *fout) && ((flags & CLK_SET_ROUND_UP) == 0)) {
266 *fout = best;
288 *fout = best;
/freebsd-current/sys/arm/ti/clk/
H A Dti_clk_dpll.c112 uint64_t *fout, uint32_t *factor_n, uint32_t *factor_p)
127 if (abs(*fout - cur) < abs(*fout - best)) {
176 ti_dpll_clk_set_freq(struct clknode *clk, uint64_t fparent, uint64_t *fout, argument
187 best = ti_dpll_clk_find_best(sc, fparent, fout,
191 *fout = best;
196 if ((best < *fout) &&
201 if ((best > *fout) &&
256 *fout = best;
111 ti_dpll_clk_find_best(struct ti_dpll_clknode_sc *sc, uint64_t fparent, uint64_t *fout, uint32_t *factor_n, uint32_t *factor_p) argument
/freebsd-current/usr.bin/mail/
H A Dnames.c281 FILE *fout, *fin; local
310 (fout = Fdopen(fd, "a")) == NULL) {
320 (void)Fclose(fout);
324 fprintf(fout, "From %s %s", myname, date);
325 puthead(hp, fout,
328 (void)putc(c, fout);
330 fprintf(fout, "\n");
331 (void)fflush(fout);
332 if (ferror(fout)) {
335 (void)Fclose(fout);
[all...]

Completed in 262 milliseconds

123