Home
last modified time | relevance | path

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

123

/linux-6.6.21/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.6.21/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.6.21/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()
318 fclose(fout); in run_bpf_prog()
328 FILE *fout; in run_bpf_prog() local
343 fout = fopen(fname, "w"); in run_bpf_prog()
344 fprintf(fout, "id:%d\n", cg_id); in run_bpf_prog()
345 fprintf(fout, "rate_mbps:%d\n", rate_mbps); in run_bpf_prog()
346 fprintf(fout, "duration:%.1f secs\n", in run_bpf_prog()
[all …]
/linux-6.6.21/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.6.21/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.6.21/tools/mm/
Dpage_owner_sort.c695 FILE *fin, *fout; in main() local
788 fout = fopen(argv[optind + 1], "w"); in main()
789 if (!fin || !fout) { in main()
850 fprintf(fout, "%d times, %d pages, ", list[i].num, list[i].page_num); in main()
851 print_allocator(fout, list[i].allocator); in main()
852 fprintf(fout, ":\n%s\n", list[i].txt); in main()
855 fprintf(fout, "%d times, %d pages", in main()
858 fprintf(fout, ", PID %d", list[i].pid); in main()
860 fprintf(fout, ", TGID %d", list[i].tgid); in main()
862 fprintf(fout, ", task_comm_name: %s", list[i].comm); in main()
[all …]
/linux-6.6.21/drivers/gpu/drm/renesas/rcar-du/
Drcar_mipi_dsi.c82 unsigned long fout; member
354 u64 fout; in rcar_mipi_dsi_pll_calc() local
356 fout = div64_u64((u64)fpfd * m, dsi->info->n_mul); in rcar_mipi_dsi_pll_calc()
358 if (fout < info->fout_min || fout > info->fout_max) in rcar_mipi_dsi_pll_calc()
361 fout = div64_u64(fout, setup_info->vclk_divider); in rcar_mipi_dsi_pll_calc()
363 if (fout < setup_info->clkset->min_freq || in rcar_mipi_dsi_pll_calc()
364 fout > setup_info->clkset->max_freq) in rcar_mipi_dsi_pll_calc()
367 err = abs((long)(fout - fout_target) * 10000 / in rcar_mipi_dsi_pll_calc()
372 setup_info->fout = (unsigned long)fout; in rcar_mipi_dsi_pll_calc()
427 setup_info->hsfreq = setup_info->fout * 2; in rcar_mipi_dsi_parameters_calc()
[all …]
/linux-6.6.21/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.6.21/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.6.21/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.6.21/drivers/clk/nuvoton/
Dclk-ma35d1-pll.c146 unsigned long tmp, fout, fclk, diff; in ma35d1_pll_find_closest() local
162 fout = div_u64(fclk, p); in ma35d1_pll_find_closest()
163 if (fout < PLL_FCLKO_MIN_FREQ || in ma35d1_pll_find_closest()
164 fout > PLL_FCLKO_MAX_FREQ) in ma35d1_pll_find_closest()
167 diff = abs(rate - fout); in ma35d1_pll_find_closest()
172 *freq = fout; in ma35d1_pll_find_closest()
/linux-6.6.21/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.6.21/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.6.21/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()
/linux-6.6.21/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.6.21/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.6.21/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.6.21/sound/soc/fsl/
Dfsl_xcvr.c52 u32 fout; /* Fout = Fref*(MFI + MFN/MFD), Fref is 24MHz */ member
54 { .mfi = 54, .mfn = 1, .mfd = 6, .fout = 1300000000, }, /* 1.3 GHz */
55 { .mfi = 32, .mfn = 96, .mfd = 125, .fout = 786432000, }, /* 8000 Hz */
56 { .mfi = 30, .mfn = 66, .mfd = 625, .fout = 722534400, }, /* 11025 Hz */
57 { .mfi = 29, .mfn = 1, .mfd = 6, .fout = 700000000, }, /* 700 MHz */
272 if (fsl_xcvr_pll_cfg[i].fout % freq == 0) { in fsl_xcvr_en_phy_pll()
273 div = fsl_xcvr_pll_cfg[i].fout / freq; in fsl_xcvr_en_phy_pll()
353 freq, fsl_xcvr_pll_cfg[i].fout, fsl_xcvr_pll_cfg[i].mfi, in fsl_xcvr_en_phy_pll()
414 u32 fout = 32 * r * ch * 10; in fsl_xcvr_prepare() local
431 ret = fsl_xcvr_en_aud_pll(xcvr, fout); in fsl_xcvr_prepare()
[all …]
/linux-6.6.21/net/ipv4/
Dfou_core.c525 struct fou *fout; in fou_add_to_port_list() local
528 list_for_each_entry(fout, &fn->fou_list, list) { in fou_add_to_port_list()
529 if (fou_cfg_cmp(fout, cfg)) { in fou_add_to_port_list()
824 struct fou *fout; in fou_nl_get_doit() local
846 list_for_each_entry(fout, &fn->fou_list, list) { in fou_nl_get_doit()
847 if (fou_cfg_cmp(fout, &cfg)) { in fou_nl_get_doit()
848 ret = fou_dump_info(fout, info->snd_portid, in fou_nl_get_doit()
869 struct fou *fout; in fou_nl_get_dumpit() local
873 list_for_each_entry(fout, &fn->fou_list, list) { in fou_nl_get_dumpit()
876 ret = fou_dump_info(fout, NETLINK_CB(cb->skb).portid, in fou_nl_get_dumpit()
/linux-6.6.21/Documentation/devicetree/bindings/clock/
Dsilabs,si570.txt19 - factory-fout: Factory set default frequency. This frequency is part specific.
40 factory-fout = <156250000>;
/linux-6.6.21/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.6.21/drivers/phy/rockchip/
Dphy-rockchip-inno-dsidphy.c301 unsigned long fref, fout; in inno_dsidphy_pll_calc_rate() local
314 fout = 1000000000UL; in inno_dsidphy_pll_calc_rate()
316 fout = rate; in inno_dsidphy_pll_calc_rate()
326 tmp = (u64)fout * _prediv; in inno_dsidphy_pll_calc_rate()
343 delta = abs(fout - tmp); in inno_dsidphy_pll_calc_rate()

123