Home
last modified time | relevance | path

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

123

/linux-6.1.9/scripts/selinux/mdp/
Dmdp.c48 FILE *fout; in main() local
60 fout = fopen(polout, "w"); in main()
61 if (!fout) { in main()
68 fprintf(fout, "class %s\n", secclass_map[i].name); in main()
69 fprintf(fout, "\n"); in main()
77 fprintf(fout, "sid %s\n", name); in main()
79 fprintf(fout, "sid unused%d\n", i); in main()
81 fprintf(fout, "\n"); in main()
86 fprintf(fout, "class %s\n", map->name); in main()
87 fprintf(fout, "{\n"); in main()
[all …]
/linux-6.1.9/scripts/selinux/genheaders/
Dgenheaders.c48 FILE *fout; in main() local
55 fout = fopen(argv[1], "w"); in main()
56 if (!fout) { in main()
62 fprintf(fout, "/* This file is automatically generated. Do not edit. */\n"); in main()
63 fprintf(fout, "#ifndef _SELINUX_FLASK_H_\n#define _SELINUX_FLASK_H_\n\n"); in main()
68 fprintf(fout, "#define SECCLASS_%-39s %2d\n", name, i+1); in main()
72 fprintf(fout, "\n"); in main()
80 fprintf(fout, "#define SECINITSID_%-39s %2d\n", sidname, i); in main()
84 fprintf(fout, "\n#define SECINITSID_NUM %d\n", i-1); in main()
85 fprintf(fout, "\nstatic inline bool security_is_socket_class(u16 kern_tclass)\n"); in main()
[all …]
/linux-6.1.9/samples/bpf/
Dhbm.c309 FILE *fout; in run_bpf_prog() local
315 fout = fopen(fname, "w"); in run_bpf_prog()
316 fprintf(fout, "id:%d\n", cg_id); in run_bpf_prog()
317 fprintf(fout, "ERROR: Could not lookup queue_stats\n"); in run_bpf_prog()
327 FILE *fout; in run_bpf_prog() local
342 fout = fopen(fname, "w"); in run_bpf_prog()
343 fprintf(fout, "id:%d\n", cg_id); in run_bpf_prog()
344 fprintf(fout, "rate_mbps:%d\n", rate_mbps); in run_bpf_prog()
345 fprintf(fout, "duration:%.1f secs\n", in run_bpf_prog()
348 fprintf(fout, "packets:%d\n", (int)qstats.pkts_total); in run_bpf_prog()
[all …]
/linux-6.1.9/drivers/video/fbdev/matrox/
Dg450_pll.c106 unsigned int *vco, unsigned int fout) in g450_firstpll() argument
112 if (fout > (vcomax / 2)) { in g450_firstpll()
113 if (fout > vcomax) { in g450_firstpll()
116 *vco = fout; in g450_firstpll()
123 tvco = g450_f2vco(p, fout); in g450_firstpll()
331 static int __g450_setclk(struct matrox_fb_info *minfo, unsigned int fout, in __g450_setclk() argument
361 if (fout >= minfo->max_pixel_clock_panellink) in __g450_setclk()
435 …for (mnp = g450_firstpll(minfo, pi, &xvco, fout); mnp != NO_MORE_MNP; mnp = g450_nextpll(minfo, pi… in __g450_setclk()
441 delta = pll_freq_delta(fout, g450_vco2f(mnp, vco)); in __g450_setclk()
494 int matroxfb_g450_setclk(struct matrox_fb_info *minfo, unsigned int fout, in matroxfb_g450_setclk() argument
[all …]
Dg450_pll.h7 int matroxfb_g450_setclk(struct matrox_fb_info *minfo, unsigned int fout,
/linux-6.1.9/sound/soc/codecs/
Dmadera.c3460 static int madera_find_main_fratio(unsigned int fref, unsigned int fout, in madera_find_main_fratio() argument
3465 while ((fout / (ratio * fref)) > MADERA_FLL_MAX_N) in madera_find_main_fratio()
3488 fll->fout, in madera_find_fratio()
3500 return madera_find_main_fratio(fref, fll->fout, fratio); in madera_find_fratio()
3566 if (fll->fout % (ratio * fref)) { in madera_calc_fratio()
3582 if (fll->fout % (ratio * fref)) { in madera_calc_fratio()
3631 fref, fll->fout, fll->fout * MADERA_FLL_VCO_MULT); in madera_calc_fll()
3641 cfg->n = fll->fout / (ratio * fref); in madera_calc_fll()
3643 if (fll->fout % (ratio * fref)) { in madera_calc_fll()
3644 gcd_fll = gcd(fll->fout, ratio * fref); in madera_calc_fll()
[all …]
Dmadera.h163 unsigned int fout; member
413 unsigned int fref, unsigned int fout);
415 unsigned int fref, unsigned int fout);
417 unsigned int fin, unsigned int fout);
419 unsigned int fin, unsigned int fout);
/linux-6.1.9/tools/vm/
Dpage_owner_sort.c693 FILE *fin, *fout; in main() local
786 fout = fopen(argv[optind + 1], "w"); in main()
787 if (!fin || !fout) { in main()
840 fprintf(fout, "%d times, %d pages, ", list[i].num, list[i].page_num); in main()
841 print_allocator(fout, list[i].allocator); in main()
842 fprintf(fout, ":\n%s\n", list[i].txt); in main()
845 fprintf(fout, "%d times, %d pages", in main()
848 fprintf(fout, ", PID %d", list[i].pid); in main()
850 fprintf(fout, ", TGID %d", list[i].pid); in main()
852 fprintf(fout, ", task_comm_name: %s", list[i].comm); in main()
[all …]
/linux-6.1.9/sound/soc/sh/rcar/
Dsrc.c208 u32 fin, fout; in rsnd_src_set_convert_rate() local
222 fout = rsnd_src_get_out_rate(priv, io); in rsnd_src_set_convert_rate()
227 if (fin == fout) in rsnd_src_set_convert_rate()
229 else if (fin > fout) in rsnd_src_set_convert_rate()
230 ratio = 100 * fin / fout; in rsnd_src_set_convert_rate()
232 ratio = 100 * fout / fin; in rsnd_src_set_convert_rate()
239 use_src = (fin != fout) | rsnd_src_sync_is_enabled(mod); in rsnd_src_set_convert_rate()
256 do_div(n, fout); in rsnd_src_set_convert_rate()
348 rsnd_adg_set_src_timesel_gen2(mod, io, fin, fout); in rsnd_src_set_convert_rate()
/linux-6.1.9/drivers/clk/imx/
Dclk-sscg-pll.c78 uint64_t fout; member
115 int new_diff = temp_setup->fout - temp_setup->fout_request; in clk_sscg_pll2_check_match()
122 if (temp_setup->fout_request == temp_setup->fout) in clk_sscg_pll2_check_match()
141 temp_setup->fout = temp_setup->vco2; in clk_sscg_divq_lookup()
142 do_div(temp_setup->fout, 2 * (temp_setup->divq + 1)); in clk_sscg_divq_lookup()
281 setup->fout = rate; in clk_sscg_pll_find_setup()
448 req->rate = setup->fout; in __clk_sscg_pll_determine_rate()
483 if (setup->fout >= min && setup->fout <= max) in clk_sscg_pll_determine_rate()
/linux-6.1.9/Documentation/userspace-api/media/v4l/
Dv4l2grab.c.rst66 FILE *fout;
149 fout = fopen(out_name, "w");
150 if (!fout) {
154 fprintf(fout, "P6\n%d %d 255\n",
156 fwrite(buffers[buf.index].start, buf.bytesused, 1, fout);
157 fclose(fout);
/linux-6.1.9/arch/m68k/coldfire/
Dm53xx.c472 int fref, temp, fout, mfd; in clock_pll() local
498 fout = (fref * mfd / (BUSDIV * 4)); in clock_pll()
542 return fout; in clock_pll()
569 int fout; in clock_exit_limp() local
578 fout = get_sys_clock(); in clock_exit_limp()
580 return fout; in clock_exit_limp()
/linux-6.1.9/drivers/clk/ti/
Ddpll44xx.c92 long fint, fout; in omap4_dpll_lpmode_recalc() local
95 fout = fint * dd->last_rounded_m; in omap4_dpll_lpmode_recalc()
97 if ((fint < OMAP4_DPLL_LP_FINT_MAX) && (fout < OMAP4_DPLL_LP_FOUT_MAX)) in omap4_dpll_lpmode_recalc()
/linux-6.1.9/drivers/clk/
Dclk-axi-clkgen.c126 unsigned long fin, unsigned long fout, in axi_clkgen_calc_params() argument
136 fout /= 1000; in axi_clkgen_calc_params()
160 dout = DIV_ROUND_CLOSEST(fvco, fout); in axi_clkgen_calc_params()
163 if (abs(f - fout) < abs(best_f - fout)) { in axi_clkgen_calc_params()
168 if (best_f == fout) in axi_clkgen_calc_params()
Dclk-si570.c129 static int si570_get_defaults(struct clk_si570 *data, u64 fout, in si570_get_defaults() argument
147 fdco = fout * data->n1 * data->hs_div; in si570_get_defaults()
153 data->frequency = fout; in si570_get_defaults()
/linux-6.1.9/drivers/clk/pistachio/
Dclk-pll.c130 unsigned long fout) in pll_get_params() argument
135 if (pll->rates[i].fref == fref && pll->rates[i].fout == fout) in pll_get_params()
150 pll->rates[i].fout <= rate) in pll_round_rate()
151 return pll->rates[i - 1].fout; in pll_round_rate()
154 return pll->rates[0].fout; in pll_round_rate()
/linux-6.1.9/drivers/staging/iio/frequency/
Dad9832.c121 static unsigned long ad9832_calc_freqreg(unsigned long mclk, unsigned long fout) in ad9832_calc_freqreg() argument
123 unsigned long long freqreg = (u64)fout * in ad9832_calc_freqreg()
130 unsigned int addr, unsigned long fout) in ad9832_write_frequency() argument
134 if (fout > (clk_get_rate(st->mclk) / 2)) in ad9832_write_frequency()
137 regval = ad9832_calc_freqreg(clk_get_rate(st->mclk), fout); in ad9832_write_frequency()
Dad9834.c101 static unsigned int ad9834_calc_freqreg(unsigned long mclk, unsigned long fout) in ad9834_calc_freqreg() argument
103 unsigned long long freqreg = (u64)fout * (u64)BIT(AD9834_FREQ_BITS); in ad9834_calc_freqreg()
110 unsigned long addr, unsigned long fout) in ad9834_write_frequency() argument
117 if (fout > (clk_freq / 2)) in ad9834_write_frequency()
120 regval = ad9834_calc_freqreg(clk_freq, fout); in ad9834_write_frequency()
/linux-6.1.9/drivers/gpu/drm/rcar-du/
Drcar_mipi_dsi.c171 unsigned long fout; member
187 unsigned long fin, fout; in rcar_mipi_dsi_parameters_calc() local
243 fout = fpfd * m / divider; in rcar_mipi_dsi_parameters_calc()
244 err = abs((long)(fout - fout_target) * 10000 / in rcar_mipi_dsi_parameters_calc()
249 setup_info->fout = fout; in rcar_mipi_dsi_parameters_calc()
260 clk, fin, setup_info->fout, fout_target, best_err / 100, in rcar_mipi_dsi_parameters_calc()
/linux-6.1.9/tools/bpf/
Dbpf_dbg.c1318 static void init_shell(FILE *fin, FILE *fout) in init_shell() argument
1326 rl_outstream = fout; in init_shell()
1350 static void exit_shell(FILE *fin, FILE *fout) in exit_shell() argument
1364 if (fout != stdout) in exit_shell()
1365 fclose(fout); in exit_shell()
1368 static int run_shell_loop(FILE *fin, FILE *fout) in run_shell_loop() argument
1372 init_shell(fin, fout); in run_shell_loop()
1384 exit_shell(fin, fout); in run_shell_loop()
1390 FILE *fin = NULL, *fout = NULL; in main() local
1395 fout = fopen(argv[2], "w"); in main()
[all …]
/linux-6.1.9/sound/soc/fsl/
Dfsl_xcvr.c50 u32 fout; /* Fout = Fref*(MFI + MFN/MFD), Fref is 24MHz */ member
52 { .mfi = 54, .mfn = 1, .mfd = 6, .fout = 1300000000, }, /* 1.3 GHz */
53 { .mfi = 32, .mfn = 96, .mfd = 125, .fout = 786432000, }, /* 8000 Hz */
54 { .mfi = 30, .mfn = 66, .mfd = 625, .fout = 722534400, }, /* 11025 Hz */
55 { .mfi = 29, .mfn = 1, .mfd = 6, .fout = 700000000, }, /* 700 MHz */
265 if (fsl_xcvr_pll_cfg[i].fout % freq == 0) { in fsl_xcvr_en_phy_pll()
266 div = fsl_xcvr_pll_cfg[i].fout / freq; in fsl_xcvr_en_phy_pll()
346 freq, fsl_xcvr_pll_cfg[i].fout, fsl_xcvr_pll_cfg[i].mfi, in fsl_xcvr_en_phy_pll()
404 u32 fout = 32 * r * ch * 10 * 2; in fsl_xcvr_prepare() local
411 ret = fsl_xcvr_en_aud_pll(xcvr, fout); in fsl_xcvr_prepare()
[all …]
/linux-6.1.9/net/ipv4/
Dfou.c523 struct fou *fout; in fou_add_to_port_list() local
526 list_for_each_entry(fout, &fn->fou_list, list) { in fou_add_to_port_list()
527 if (fou_cfg_cmp(fout, cfg)) { in fou_add_to_port_list()
836 struct fou *fout; in fou_nl_cmd_get_port() local
858 list_for_each_entry(fout, &fn->fou_list, list) { in fou_nl_cmd_get_port()
859 if (fou_cfg_cmp(fout, &cfg)) { in fou_nl_cmd_get_port()
860 ret = fou_dump_info(fout, info->snd_portid, in fou_nl_cmd_get_port()
881 struct fou *fout; in fou_nl_dump() local
885 list_for_each_entry(fout, &fn->fou_list, list) { in fou_nl_dump()
888 ret = fou_dump_info(fout, NETLINK_CB(cb->skb).portid, in fou_nl_dump()
/linux-6.1.9/Documentation/devicetree/bindings/clock/
Dsilabs,si570.txt19 - factory-fout: Factory set default frequency. This frequency is part specific.
40 factory-fout = <156250000>;
/linux-6.1.9/drivers/clk/at91/
Dclk-audio-pll.c177 unsigned long fout; in clk_audio_pll_frac_recalc_rate() local
179 fout = clk_audio_pll_fout(parent_rate, frac->nd, frac->fracr); in clk_audio_pll_frac_recalc_rate()
182 fout, frac->nd, (unsigned long)frac->fracr); in clk_audio_pll_frac_recalc_rate()
184 return fout; in clk_audio_pll_frac_recalc_rate()
/linux-6.1.9/drivers/phy/rockchip/
Dphy-rockchip-inno-dsidphy.c306 unsigned long fref, fout; in inno_dsidphy_pll_calc_rate() local
319 fout = 1000000000UL; in inno_dsidphy_pll_calc_rate()
321 fout = rate; in inno_dsidphy_pll_calc_rate()
331 tmp = (u64)fout * _prediv; in inno_dsidphy_pll_calc_rate()
348 delta = abs(fout - tmp); in inno_dsidphy_pll_calc_rate()

123