Home
last modified time | relevance | path

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

12

/drivers/clk/
A Dclk-axi-clkgen.c133 unsigned long fin, unsigned long fout, in axi_clkgen_calc_params() argument
143 fin /= 1000; in axi_clkgen_calc_params()
151 d_min = max(DIV_ROUND_UP(fin, limits->fpfd_max), 1); in axi_clkgen_calc_params()
152 d_max = min(fin / limits->fpfd_min, 80); in axi_clkgen_calc_params()
158 m_min = max(DIV_ROUND_UP(fvco_min_fract, fin) * d_min, 1); in axi_clkgen_calc_params()
159 m_max = min(fvco_max_fract * d_max / fin, 64 << fract_shift); in axi_clkgen_calc_params()
162 _d_min = max(d_min, DIV_ROUND_UP(fin * m, fvco_max_fract)); in axi_clkgen_calc_params()
163 _d_max = min(d_max, fin * m / fvco_min_fract); in axi_clkgen_calc_params()
166 fvco = fin * m / d; in axi_clkgen_calc_params()
/drivers/media/dvb-frontends/
A 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()
/drivers/gpu/drm/loongson/
A Dlsdc_output_7a2000.c414 int fin, in ls7a2000_hdmi_phy_pll_config() argument
430 if (fin >= 170000) in ls7a2000_hdmi_phy_pll_config()
434 else if (fin >= 85000) in ls7a2000_hdmi_phy_pll_config()
438 else if (fin >= 42500) in ls7a2000_hdmi_phy_pll_config()
442 else if (fin >= 21250) in ls7a2000_hdmi_phy_pll_config()
459 drm_dbg(ddev, "Fin of HDMI-%u: %d kHz\n", index, fin); in ls7a2000_hdmi_phy_pll_config()
/drivers/phy/rockchip/
A Dphy-rockchip-samsung-dcphy.c1134 u64 fin, fvco, fout; in samsung_mipi_dcphy_pll_round_rate() local
1152 fin = div64_ul(prate, MSEC_PER_SEC); in samsung_mipi_dcphy_pll_round_rate()
1170 min_prediv = DIV_ROUND_UP_ULL(fin, 30 * MSEC_PER_SEC); in samsung_mipi_dcphy_pll_round_rate()
1171 max_prediv = DIV_ROUND_CLOSEST_ULL(fin, 6 * MSEC_PER_SEC); in samsung_mipi_dcphy_pll_round_rate()
1176 _fbdiv = DIV_ROUND_CLOSEST_ULL(fvco * _prediv, 2 * fin); in samsung_mipi_dcphy_pll_round_rate()
1183 _dsm = ((_prediv * fvco) - (2 * _fbdiv * fin)); in samsung_mipi_dcphy_pll_round_rate()
1184 _dsm = DIV_ROUND_UP_ULL(_dsm << 15, fin); in samsung_mipi_dcphy_pll_round_rate()
1188 tmp = DIV_ROUND_CLOSEST_ULL((_fbdiv * fin * 2 * 1000), _prediv); in samsung_mipi_dcphy_pll_round_rate()
1189 tmp += DIV_ROUND_CLOSEST_ULL((_dsm * fin * 1000), _prediv << 15); in samsung_mipi_dcphy_pll_round_rate()
1416 max_mfr = DIV_ROUND_UP(fin, (20 * prediv) << 5); in samsung_mipi_dcphy_pll_ssc_modulation_calc()
[all …]
/drivers/gpu/drm/renesas/rcar-du/
A Drcar_lvds.c147 unsigned long fin; in rcar_lvds_d3_e3_pll_calc() local
186 fin = clk_get_rate(clk); in rcar_lvds_d3_e3_pll_calc()
187 if (fin < 12000000 || fin > 192000000) in rcar_lvds_d3_e3_pll_calc()
196 m_min = max_t(unsigned int, 1, DIV_ROUND_UP(fin, 24000000)); in rcar_lvds_d3_e3_pll_calc()
197 m_max = min_t(unsigned int, 8, fin / 12000000); in rcar_lvds_d3_e3_pll_calc()
212 fpfd = fin / m; in rcar_lvds_d3_e3_pll_calc()
261 output = fin * pll->pll_n / pll->pll_m / (1 << pll->pll_e) in rcar_lvds_d3_e3_pll_calc()
267 clk, fin, output, target, error / 100, in rcar_lvds_d3_e3_pll_calc()
/drivers/gpu/drm/bridge/
A Dchipone-icn6211.c259 unsigned int fin; in chipone_configure_pll() local
280 fin = icn->refclk_rate; in chipone_configure_pll()
282 fin = icn->dsi->hs_rate / 4; /* in Hz */ in chipone_configure_pll()
285 p_min = clamp(DIV_ROUND_UP(fin, 20000000), 1U, 31U); in chipone_configure_pll()
286 p_max = clamp(fin / 5000000, 1U, 31U); in chipone_configure_pll()
291 freq_p = fin / p; in chipone_configure_pll()
307 freq_out = (fin * m) / p; in chipone_configure_pll()
329 min_delta, icn->refclk ? "EXT" : "DSI", fin, in chipone_configure_pll()
330 (fin * best_m) / (best_p << (best_s + 1))); in chipone_configure_pll()
A Dsamsung-dsim.c563 unsigned long fin, in samsung_dsim_pll_find_pms() argument
584 do_div(tmp, fin); in samsung_dsim_pll_find_pms()
589 tmp = (u64)_m * fin; in samsung_dsim_pll_find_pms()
595 tmp = (u64)_m * fin; in samsung_dsim_pll_find_pms()
622 unsigned long fin, fout; in samsung_dsim_set_pll() local
634 fin = clk_get_rate(clk_get_parent(dsi->pll_clk)); in samsung_dsim_set_pll()
636 fin /= 2; in samsung_dsim_set_pll()
637 clk_set_rate(dsi->pll_clk, fin); in samsung_dsim_set_pll()
639 fin = clk_get_rate(dsi->pll_clk); in samsung_dsim_set_pll()
641 fin = dsi->pll_clk_rate; in samsung_dsim_set_pll()
[all …]
/drivers/spi/
A Dspi-imx.c204 if (fspi * mxc_clkdivs[i] >= fin) in spi_imx_clkdiv_1()
207 *fres = fin / mxc_clkdivs[i]; in spi_imx_clkdiv_1()
218 if (fspi * div >= fin) in spi_imx_clkdiv_2()
224 *fres = fin / div; in spi_imx_clkdiv_2()
473 unsigned int fin = spi_imx->spi_clk; in mx51_ecspi_clkdiv() local
475 fspi = min(fspi, fin); in mx51_ecspi_clkdiv()
477 post = fls(fin) - fls(fspi); in mx51_ecspi_clkdiv()
478 if (fin > fspi << post) in mx51_ecspi_clkdiv()
486 fspi, fin); in mx51_ecspi_clkdiv()
493 __func__, fin, fspi, post, pre); in mx51_ecspi_clkdiv()
[all …]
/drivers/clk/mediatek/
A Dclk-pll.c40 static unsigned long __mtk_pll_recalc_rate(struct mtk_clk_pll *pll, u32 fin, in __mtk_pll_recalc_rate() argument
54 vco = (u64)fin * pcw; in __mtk_pll_recalc_rate()
139 u32 freq, u32 fin) in mtk_pll_calc_values() argument
170 do_div(_pcw, fin); in mtk_pll_calc_values()
A Dclk-pll.h96 u32 freq, u32 fin);
/drivers/gpu/drm/bridge/imx/
A Dimx93-mipi-dsi.c225 unsigned long fin = dsi->ref_clk_rate; in dphy_pll_get_configure_from_opts() local
250 min_n = DIV_ROUND_UP_ULL((u64)fin, MHZ(8)); in dphy_pll_get_configure_from_opts()
251 max_n = DIV_ROUND_DOWN_ULL((u64)fin, MHZ(2)); in dphy_pll_get_configure_from_opts()
262 m = DIV_ROUND_CLOSEST(fout * n * fvco_div, fin); in dphy_pll_get_configure_from_opts()
269 tmp = m * fin; in dphy_pll_get_configure_from_opts()
/drivers/net/wireless/ath/carl9170/
A 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()
/drivers/video/fbdev/matrox/
A Dg450_pll.c26 static inline unsigned int g450_f2vco(unsigned char p, unsigned int fin) { in g450_f2vco() argument
27 return (p & 0x40) ? fin : fin << ((p & 3) + 1); in g450_f2vco()
/drivers/gpu/drm/rockchip/
A Ddw-mipi-dsi-rockchip.c560 unsigned long fvco_min, fvco_max, fin, fout; in dw_mipi_dsi_get_lane_mbps() local
597 fin = clk_get_rate(dsi->pllref_clk); in dw_mipi_dsi_get_lane_mbps()
601 min_prediv = DIV_ROUND_UP(fin, 40 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
602 max_prediv = fin / (5 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
613 do_div(tmp, fin); in dw_mipi_dsi_get_lane_mbps()
625 tmp = (u64)_fbdiv * fin; in dw_mipi_dsi_get_lane_mbps()
/drivers/media/i2c/
A Dtc358746.c943 unsigned long delta, fin; in tc358746_find_pll_settings() local
946 fin = DIV_ROUND_CLOSEST(refclk, p); in tc358746_find_pll_settings()
947 if (fin < 4 * HZ_PER_MHZ || fin > 40 * HZ_PER_MHZ) in tc358746_find_pll_settings()
951 mul = div64_ul(tmp, fin); in tc358746_find_pll_settings()
955 tmp = mul * fin; in tc358746_find_pll_settings()
A Dov772x.c644 unsigned long fin = clk_get_rate(priv->clk); in ov772x_set_frame_rate() local
692 unsigned int pll_out = pll_mult * fin; in ov772x_set_frame_rate()
700 t_pclk = DIV_ROUND_CLOSEST(fin * pll_mult, div); in ov772x_set_frame_rate()
/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
A Dchcr_ktls.c1072 if (!tcp->fin) in chcr_ktls_write_tcp_options()
1965 if (!th->fin && chcr_ktls_check_tcp_options(th)) { in chcr_ktls_xmit()
2019 if (th->fin) in chcr_ktls_xmit()
2036 (!th->fin && th->psh), q, in chcr_ktls_xmit()
2059 (!th->fin && th->psh), q, in chcr_ktls_xmit()
2073 (!th->fin && th->psh), in chcr_ktls_xmit()
2082 if (th->fin) in chcr_ktls_xmit()
2103 if (th->fin) { in chcr_ktls_xmit()
/drivers/crypto/
A Dmxs-dcp.c687 int fin = rctx->fini; in dcp_sha_req_to_buf() local
688 if (fin) in dcp_sha_req_to_buf()
720 if (fin) { in dcp_sha_req_to_buf()
/drivers/char/
A Dapplicom.c249 goto fin; in applicom_init()
294 fin: in applicom_init()
/drivers/media/pci/bt8xx/
A Dbttv-driver.c758 static void set_pll_freq(struct bttv *btv, unsigned int fin, unsigned int fout) in set_pll_freq() argument
763 fin/=4; in set_pll_freq()
767 fi=fout/fin; in set_pll_freq()
769 fout=(fout%fin)*256; in set_pll_freq()
770 fh=fout/fin; in set_pll_freq()
772 fout=(fout%fin)*256; in set_pll_freq()
773 fl=fout/fin; in set_pll_freq()
/drivers/media/i2c/cx25840/
A Dcx25840-core.c1211 int fin, fsc; in cx25840_std_setup() local
1222 fin = ((u64)src_decimation * pll) >> 12; in cx25840_std_setup()
1225 fin / 1000000, fin % 1000000); in cx25840_std_setup()
/drivers/input/mouse/
A Dalps.c254 int x, y, z, ges, fin, left, right, middle; in alps_process_packet_v1_v2() local
286 fin = packet[2] & 2; in alps_process_packet_v1_v2()
308 if (ges && !fin) in alps_process_packet_v1_v2()
316 if (ges && fin && !priv->prev_fin) { in alps_process_packet_v1_v2()
323 priv->prev_fin = fin; in alps_process_packet_v1_v2()
/drivers/net/ethernet/wangxun/txgbe/
A Dtxgbe_fdir.c258 if (!th || th->fin) in txgbe_atr()
/drivers/net/slip/
A Dslhc.c276 if(hlen > isize || th->syn || th->fin || th->rst || in slhc_compress()
/drivers/net/ethernet/intel/i40e/
A Di40e_txrx.c2927 if (th->fin || th->rst) in i40e_atr()
2934 if (!th->fin && in i40e_atr()
2961 dtype_cmd |= (th->fin || th->rst) ? in i40e_atr()

Completed in 91 milliseconds

12