/drivers/clk/ |
D | clk-axi-clkgen.c | 126 unsigned long fin, unsigned long fout, in axi_clkgen_calc_params() argument 135 fin /= 1000; in axi_clkgen_calc_params() 143 d_min = max_t(unsigned long, DIV_ROUND_UP(fin, limits->fpfd_max), 1); in axi_clkgen_calc_params() 144 d_max = min_t(unsigned long, fin / limits->fpfd_min, 80); in axi_clkgen_calc_params() 150 m_min = max_t(unsigned long, DIV_ROUND_UP(fvco_min_fract, fin) * d_min, 1); in axi_clkgen_calc_params() 151 m_max = min_t(unsigned long, fvco_max_fract * d_max / fin, 64 << fract_shift); in axi_clkgen_calc_params() 154 _d_min = max(d_min, DIV_ROUND_UP(fin * m, fvco_max_fract)); in axi_clkgen_calc_params() 155 _d_max = min(d_max, fin * m / fvco_min_fract); in axi_clkgen_calc_params() 158 fvco = fin * m / d; in axi_clkgen_calc_params()
|
/drivers/media/dvb-frontends/ |
D | ves1820.c | 109 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/ |
D | lsdc_output_7a2000.c | 415 int fin, in ls7a2000_hdmi_phy_pll_config() argument 431 if (fin >= 170000) in ls7a2000_hdmi_phy_pll_config() 435 else if (fin >= 85000) in ls7a2000_hdmi_phy_pll_config() 439 else if (fin >= 42500) in ls7a2000_hdmi_phy_pll_config() 443 else if (fin >= 21250) in ls7a2000_hdmi_phy_pll_config() 460 drm_dbg(ddev, "Fin of HDMI-%u: %d kHz\n", index, fin); in ls7a2000_hdmi_phy_pll_config()
|
/drivers/gpu/drm/renesas/rcar-du/ |
D | rcar_lvds.c | 147 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/ |
D | chipone-icn6211.c | 259 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()
|
D | samsung-dsim.c | 552 unsigned long fin, in samsung_dsim_pll_find_pms() argument 564 p_min = DIV_ROUND_UP(fin, (12 * MHZ)); in samsung_dsim_pll_find_pms() 565 p_max = fin / (6 * MHZ); in samsung_dsim_pll_find_pms() 573 do_div(tmp, fin); in samsung_dsim_pll_find_pms() 578 tmp = (u64)_m * fin; in samsung_dsim_pll_find_pms() 584 tmp = (u64)_m * fin; in samsung_dsim_pll_find_pms() 611 unsigned long fin, fout; in samsung_dsim_set_pll() local 617 fin = dsi->pll_clk_rate; in samsung_dsim_set_pll() 618 fout = samsung_dsim_pll_find_pms(dsi, fin, freq, &p, &m, &s); in samsung_dsim_set_pll()
|
/drivers/spi/ |
D | spi-imx.c | 193 static unsigned int spi_imx_clkdiv_1(unsigned int fin, in spi_imx_clkdiv_1() argument 199 if (fspi * mxc_clkdivs[i] >= fin) in spi_imx_clkdiv_1() 202 *fres = fin / mxc_clkdivs[i]; in spi_imx_clkdiv_1() 207 static unsigned int spi_imx_clkdiv_2(unsigned int fin, in spi_imx_clkdiv_2() argument 213 if (fspi * div >= fin) in spi_imx_clkdiv_2() 219 *fres = fin / div; in spi_imx_clkdiv_2() 457 unsigned int fin = spi_imx->spi_clk; in mx51_ecspi_clkdiv() local 459 fspi = min(fspi, fin); in mx51_ecspi_clkdiv() 461 post = fls(fin) - fls(fspi); in mx51_ecspi_clkdiv() 462 if (fin > fspi << post) in mx51_ecspi_clkdiv() [all …]
|
/drivers/clk/mediatek/ |
D | clk-pll.c | 40 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() 138 u32 freq, u32 fin) in mtk_pll_calc_values() argument 169 do_div(_pcw, fin); in mtk_pll_calc_values()
|
D | clk-pll.h | 95 u32 freq, u32 fin);
|
/drivers/net/wireless/ath/carl9170/ |
D | fw.c | 137 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/ |
D | g450_pll.c | 24 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()
|
/drivers/gpu/drm/rockchip/ |
D | dw-mipi-dsi-rockchip.c | 551 unsigned long fvco_min, fvco_max, fin, fout; in dw_mipi_dsi_get_lane_mbps() local 588 fin = clk_get_rate(dsi->pllref_clk); in dw_mipi_dsi_get_lane_mbps() 592 min_prediv = DIV_ROUND_UP(fin, 40 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps() 593 max_prediv = fin / (5 * USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps() 604 do_div(tmp, fin); in dw_mipi_dsi_get_lane_mbps() 616 tmp = (u64)_fbdiv * fin; in dw_mipi_dsi_get_lane_mbps()
|
/drivers/media/i2c/ |
D | tc358746.c | 835 unsigned long delta, fin; in tc358746_find_pll_settings() local 838 fin = DIV_ROUND_CLOSEST(refclk, p); in tc358746_find_pll_settings() 839 if (fin < 4 * HZ_PER_MHZ || fin > 40 * HZ_PER_MHZ) in tc358746_find_pll_settings() 843 do_div(tmp, fin); in tc358746_find_pll_settings() 848 tmp = mul * fin; in tc358746_find_pll_settings()
|
D | ov772x.c | 646 unsigned long fin = clk_get_rate(priv->clk); in ov772x_set_frame_rate() local 694 unsigned int pll_out = pll_mult * fin; in ov772x_set_frame_rate() 702 t_pclk = DIV_ROUND_CLOSEST(fin * pll_mult, div); in ov772x_set_frame_rate()
|
/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
D | chcr_ktls.c | 1076 if (!tcp->fin) in chcr_ktls_write_tcp_options() 1969 if (!th->fin && chcr_ktls_check_tcp_options(th)) { in chcr_ktls_xmit() 2023 if (th->fin) in chcr_ktls_xmit() 2040 (!th->fin && th->psh), q, in chcr_ktls_xmit() 2063 (!th->fin && th->psh), q, in chcr_ktls_xmit() 2077 (!th->fin && th->psh), in chcr_ktls_xmit() 2086 if (th->fin) in chcr_ktls_xmit() 2107 if (th->fin) { in chcr_ktls_xmit()
|
/drivers/crypto/ |
D | mxs-dcp.c | 633 int fin = rctx->fini; in dcp_sha_req_to_buf() local 634 if (fin) in dcp_sha_req_to_buf() 666 if (fin) { in dcp_sha_req_to_buf()
|
/drivers/char/ |
D | applicom.c | 250 goto fin; in applicom_init() 295 fin: in applicom_init()
|
/drivers/media/pci/bt8xx/ |
D | bttv-driver.c | 758 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/input/mouse/ |
D | alps.c | 254 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/slip/ |
D | slhc.c | 276 if(hlen > isize || th->syn || th->fin || th->rst || in slhc_compress()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 2977 if (th->fin || th->rst) in i40e_atr() 2984 if (!th->fin && in i40e_atr() 3011 dtype_cmd |= (th->fin || th->rst) ? in i40e_atr()
|
/drivers/infiniband/hw/irdma/ |
D | cm.c | 370 tcph->fin = 1; in irdma_form_ah_cm_frame() 558 tcph->fin = 1; in irdma_form_uda_cm_frame() 2913 if (tcph->fin) in irdma_process_pkt() 3227 if (!tcph->rst && !tcph->fin) { in irdma_receive_ilq()
|
/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_cm.c | 1715 tcp_hdr(skb)->fin = 0; in chtls_recv_data() 1773 tcp_hdr(skb)->fin = 0; in chtls_recv_pdu()
|
/drivers/media/i2c/cx25840/ |
D | cx25840-core.c | 1211 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/net/wireless/ath/ath11k/ |
D | mac.c | 6599 goto fin; in ath11k_mac_11d_scan_start() 6602 goto fin; in ath11k_mac_11d_scan_start() 6605 goto fin; in ath11k_mac_11d_scan_start() 6608 goto fin; in ath11k_mac_11d_scan_start() 6626 fin: in ath11k_mac_11d_scan_start()
|