Home
last modified time | relevance | path

Searched refs:fin (Results 1 – 25 of 61) sorted by relevance

123

/Linux-v5.4/tools/vm/
Dpage_owner_sort.c34 int read_block(char *buf, int buf_size, FILE *fin) in read_block() argument
38 while (buf_end - curr > 1 && fgets(curr, buf_end - curr, fin)) { in read_block()
89 FILE *fin, *fout; in main() local
101 fin = fopen(argv[1], "r"); in main()
103 if (!fin || !fout) { in main()
109 fstat(fileno(fin), &st); in main()
120 ret = read_block(buf, BUF_SIZE, fin); in main()
/Linux-v5.4/drivers/clk/sirf/
Dclk-common.c76 unsigned long fin = parent_rate; in pll_clk_recalc_rate() local
83 return fin; in pll_clk_recalc_rate()
90 WARN_ON(fin % MHZ); in pll_clk_recalc_rate()
91 return fin / MHZ * nf / nr / od * MHZ; in pll_clk_recalc_rate()
98 unsigned long fin, nf, nr, od; in pll_clk_round_rate() local
113 fin = *parent_rate; in pll_clk_round_rate()
115 nr = fin / MHZ; in pll_clk_round_rate()
120 dividend = (u64)fin * nf; in pll_clk_round_rate()
130 unsigned long fin, nf, nr, od, reg; in pll_clk_set_rate() local
141 fin = parent_rate; in pll_clk_set_rate()
[all …]
/Linux-v5.4/drivers/clk/
Dclk-axi-clkgen.c104 static void axi_clkgen_calc_params(unsigned long fin, unsigned long fout, in axi_clkgen_calc_params() argument
111 fin /= 1000; in axi_clkgen_calc_params()
119 d_min = max_t(unsigned long, DIV_ROUND_UP(fin, fpfd_max), 1); in axi_clkgen_calc_params()
120 d_max = min_t(unsigned long, fin / fpfd_min, 80); in axi_clkgen_calc_params()
122 m_min = max_t(unsigned long, DIV_ROUND_UP(fvco_min, fin) * d_min, 1); in axi_clkgen_calc_params()
123 m_max = min_t(unsigned long, fvco_max * d_max / fin, 64); in axi_clkgen_calc_params()
126 _d_min = max(d_min, DIV_ROUND_UP(fin * m, fvco_max)); in axi_clkgen_calc_params()
127 _d_max = min(d_max, fin * m / fvco_min); in axi_clkgen_calc_params()
130 fvco = fin * m / d; in axi_clkgen_calc_params()
/Linux-v5.4/sound/usb/line6/
Dcapture.c40 struct usb_iso_packet_descriptor *fin = in submit_audio_in_urb() local
42 fin->offset = urb_size; in submit_audio_in_urb()
43 fin->length = line6pcm->max_packet_size_in; in submit_audio_in_urb()
164 struct usb_iso_packet_descriptor *fin = &urb->iso_frame_desc[i]; in audio_in_callback() local
166 if (fin->status == -EXDEV) { in audio_in_callback()
171 fbuf = urb->transfer_buffer + fin->offset; in audio_in_callback()
172 fsize = fin->actual_length; in audio_in_callback()
/Linux-v5.4/samples/bpf/
Dhbm.c208 FILE *fin; in run_bpf_prog() local
220 fin = fopen("/sys/class/net/eth0/statistics/tx_bytes", "r"); in run_bpf_prog()
221 if (fscanf(fin, "%llu", &last_eth_tx_bytes) != 1) in run_bpf_prog()
223 fclose(fin); in run_bpf_prog()
238 fin = fopen("/sys/class/net/eth0/statistics/tx_bytes", in run_bpf_prog()
240 if (fscanf(fin, "%llu", &new_eth_tx_bytes) != 1) in run_bpf_prog()
242 fclose(fin); in run_bpf_prog()
/Linux-v5.4/sound/soc/sh/rcar/
Dsrc.c199 u32 fin, fout; in rsnd_src_set_convert_rate() local
212 fin = rsnd_src_get_in_rate(priv, io); in rsnd_src_set_convert_rate()
218 if (fin == fout) in rsnd_src_set_convert_rate()
220 else if (fin > fout) in rsnd_src_set_convert_rate()
221 ratio = 100 * fin / fout; in rsnd_src_set_convert_rate()
223 ratio = 100 * fout / fin; in rsnd_src_set_convert_rate()
230 use_src = (fin != fout) | rsnd_src_sync_is_enabled(mod); in rsnd_src_set_convert_rate()
246 n = (u64)0x0400000 * fin; in rsnd_src_set_convert_rate()
339 rsnd_adg_set_src_timesel_gen2(mod, io, fin, fout); in rsnd_src_set_convert_rate()
/Linux-v5.4/drivers/media/dvb-frontends/
Dves1820.c109 u32 fin; in ves1820_set_symbolrate() local
151 fin = state->config->xin >> 4; in ves1820_set_symbolrate()
153 ratio = (symbolrate << 4) / fin; in ves1820_set_symbolrate()
154 tmp = ((symbolrate << 4) % fin) << 8; in ves1820_set_symbolrate()
155 ratio = (ratio << 8) + tmp / fin; in ves1820_set_symbolrate()
156 tmp = (tmp % fin) << 8; in ves1820_set_symbolrate()
157 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, fin); in ves1820_set_symbolrate()
/Linux-v5.4/drivers/gpu/drm/rcar-du/
Drcar_lvds.c195 unsigned long fin; in rcar_lvds_d3_e3_pll_calc() local
234 fin = clk_get_rate(clk); in rcar_lvds_d3_e3_pll_calc()
235 if (fin < 12000000 || fin > 192000000) in rcar_lvds_d3_e3_pll_calc()
244 m_min = max_t(unsigned int, 1, DIV_ROUND_UP(fin, 24000000)); in rcar_lvds_d3_e3_pll_calc()
245 m_max = min_t(unsigned int, 8, fin / 12000000); in rcar_lvds_d3_e3_pll_calc()
260 fpfd = fin / m; in rcar_lvds_d3_e3_pll_calc()
309 output = fin * pll->pll_n / pll->pll_m / (1 << pll->pll_e) in rcar_lvds_d3_e3_pll_calc()
315 clk, fin, output, target, error / 100, in rcar_lvds_d3_e3_pll_calc()
/Linux-v5.4/Documentation/media/uapi/rc/
Dkeytable.c.rst110 FILE *fin;
114 fin=fopen(argv[2],"r");
115 if (fin==NULL) {
129 while (fgets(s,sizeof(s),fin)) {
/Linux-v5.4/drivers/spi/
Dspi-imx.c181 static unsigned int spi_imx_clkdiv_1(unsigned int fin, in spi_imx_clkdiv_1() argument
187 if (fspi * mxc_clkdivs[i] >= fin) in spi_imx_clkdiv_1()
190 *fres = fin / mxc_clkdivs[i]; in spi_imx_clkdiv_1()
195 static unsigned int spi_imx_clkdiv_2(unsigned int fin, in spi_imx_clkdiv_2() argument
201 if (fspi * div >= fin) in spi_imx_clkdiv_2()
207 *fres = fin / div; in spi_imx_clkdiv_2()
433 unsigned int fin = spi_imx->spi_clk; in mx51_ecspi_clkdiv() local
435 if (unlikely(fspi > fin)) in mx51_ecspi_clkdiv()
438 post = fls(fin) - fls(fspi); in mx51_ecspi_clkdiv()
439 if (fin > fspi << post) in mx51_ecspi_clkdiv()
[all …]
/Linux-v5.4/net/ipv4/netfilter/
Dipt_SYNPROXY.c31 if (th->syn && !(th->ack || th->fin || th->rst)) { in synproxy_tg4()
51 } else if (th->ack && !(th->fin || th->rst || th->syn)) { in synproxy_tg4()
Dnf_tproxy_ipv4.c31 if (hp->syn && !hp->rst && !hp->ack && !hp->fin) { in nf_tproxy_handle_time_wait4()
/Linux-v5.4/net/ipv6/netfilter/
Dip6t_SYNPROXY.c31 if (th->syn && !(th->ack || th->fin || th->rst)) { in synproxy_tg6()
52 } else if (th->ack && !(th->fin || th->rst || th->syn)) { in synproxy_tg6()
Dnf_tproxy_ipv6.c54 if (hp->syn && !hp->rst && !hp->ack && !hp->fin) { in nf_tproxy_handle_time_wait6()
/Linux-v5.4/tools/bpf/
Dbpf_dbg.c1318 static void init_shell(FILE *fin, FILE *fout) in init_shell() argument
1325 rl_instream = fin; in init_shell()
1350 static void exit_shell(FILE *fin, FILE *fout) in exit_shell() argument
1362 if (fin != stdin) in exit_shell()
1363 fclose(fin); 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
1393 fin = fopen(argv[1], "r"); in main()
[all …]
/Linux-v5.4/drivers/clk/mediatek/
Dclk-pll.c62 static unsigned long __mtk_pll_recalc_rate(struct mtk_clk_pll *pll, u32 fin, in __mtk_pll_recalc_rate() argument
76 vco = (u64)fin * pcw; in __mtk_pll_recalc_rate()
160 u32 freq, u32 fin) in mtk_pll_calc_values() argument
191 do_div(_pcw, fin); in mtk_pll_calc_values()
/Linux-v5.4/include/uapi/linux/
Dtcp.h33 fin:1, member
51 fin:1; member
/Linux-v5.4/drivers/gpu/drm/rockchip/
Ddw-mipi-dsi-rockchip.c481 unsigned long fvco_min, fvco_max, fin, fout; in dw_mipi_dsi_get_lane_mbps() local
507 fin = clk_get_rate(dsi->pllref_clk); in dw_mipi_dsi_get_lane_mbps()
511 min_prediv = DIV_ROUND_UP(fin, 40 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
512 max_prediv = fin / (5 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
523 do_div(tmp, fin); in dw_mipi_dsi_get_lane_mbps()
535 tmp = (u64)_fbdiv * fin; in dw_mipi_dsi_get_lane_mbps()
/Linux-v5.4/sound/soc/codecs/
Dmadera.c4110 unsigned int fin; member
4118 .fin = 32768,
4125 .fin = 32768,
4218 unsigned int fin, unsigned int fout) in madera_set_fll_ao_refclk() argument
4226 fll->ref_freq == fin && fll->fout == fout) in madera_set_fll_ao_refclk()
4230 fin, fout, source); in madera_set_fll_ao_refclk()
4232 if (fout && (fll->ref_freq != fin || fll->fout != fout)) { in madera_set_fll_ao_refclk()
4234 if (madera_fllao_settings[i].fin == fin && in madera_set_fll_ao_refclk()
4250 fll->ref_freq = fin; in madera_set_fll_ao_refclk()
4304 static int madera_fllhj_apply(struct madera_fll *fll, int fin) in madera_fllhj_apply() argument
[all …]
Dmadera.h413 unsigned int fin, unsigned int fout);
415 unsigned int fin, unsigned int fout);
/Linux-v5.4/drivers/net/wireless/ath/carl9170/
Dfw.c137 unsigned long fin, diff; in carl9170_fw_checksum() local
165 fin = (unsigned long) last_desc + sizeof(*last_desc); in carl9170_fw_checksum()
166 diff = fin - (unsigned long) otus_desc; in carl9170_fw_checksum()
/Linux-v5.4/drivers/video/fbdev/matrox/
Dg450_pll.c24 static inline unsigned int g450_f2vco(unsigned char p, unsigned int fin) { in g450_f2vco() argument
25 return (p & 0x40) ? fin : fin << ((p & 3) + 1); in g450_f2vco()
/Linux-v5.4/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c541 unsigned long fin, unsigned long fout, u8 *p, u16 *m, u8 *s) in exynos_dsi_pll_find_pms() argument
551 p_min = DIV_ROUND_UP(fin, (12 * MHZ)); in exynos_dsi_pll_find_pms()
552 p_max = fin / (6 * MHZ); in exynos_dsi_pll_find_pms()
560 do_div(tmp, fin); in exynos_dsi_pll_find_pms()
565 tmp = (u64)_m * fin; in exynos_dsi_pll_find_pms()
571 tmp = (u64)_m * fin; in exynos_dsi_pll_find_pms()
598 unsigned long fin, fout; in exynos_dsi_set_pll() local
604 fin = dsi->pll_clk_rate; in exynos_dsi_set_pll()
605 fout = exynos_dsi_pll_find_pms(dsi, fin, freq, &p, &m, &s); in exynos_dsi_set_pll()
/Linux-v5.4/arch/m68k/ifpsp060/
DMISC68 fin.s : 2.4
127 fin.s : 2.4
/Linux-v5.4/net/core/
Dtso.c41 tcph->fin = 0; in tso_build_hdr()

123