Home
last modified time | relevance | path

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

/drivers/clk/sirf/
Dclk-common.c77 unsigned long fin = parent_rate; in pll_clk_recalc_rate() local
84 return fin; in pll_clk_recalc_rate()
91 WARN_ON(fin % MHZ); in pll_clk_recalc_rate()
92 return fin / MHZ * nf / nr / od * MHZ; in pll_clk_recalc_rate()
99 unsigned long fin, nf, nr, od; in pll_clk_round_rate() local
114 fin = *parent_rate; in pll_clk_round_rate()
116 nr = fin / MHZ; in pll_clk_round_rate()
121 dividend = (u64)fin * nf; in pll_clk_round_rate()
131 unsigned long fin, nf, nr, od, reg; in pll_clk_set_rate() local
142 fin = parent_rate; in pll_clk_set_rate()
[all …]
Dclk-atlas7.c356 unsigned long fin = parent_rate; in pll_clk_recalc_rate() local
371 return fin; in pll_clk_recalc_rate()
374 rate = fin; in pll_clk_recalc_rate()
380 rate = 2 * fin; in pll_clk_recalc_rate()
/drivers/clk/
Dclk-axi-clkgen.c106 static void axi_clkgen_calc_params(unsigned long fin, unsigned long fout, in axi_clkgen_calc_params() argument
113 fin /= 1000; in axi_clkgen_calc_params()
121 d_min = max_t(unsigned long, DIV_ROUND_UP(fin, fpfd_max), 1); in axi_clkgen_calc_params()
122 d_max = min_t(unsigned long, fin / fpfd_min, 80); in axi_clkgen_calc_params()
124 m_min = max_t(unsigned long, DIV_ROUND_UP(fvco_min, fin) * d_min, 1); in axi_clkgen_calc_params()
125 m_max = min_t(unsigned long, fvco_max * d_max / fin, 64); in axi_clkgen_calc_params()
128 _d_min = max(d_min, DIV_ROUND_UP(fin * m, fvco_max)); in axi_clkgen_calc_params()
129 _d_max = min(d_max, fin * m / fvco_min); in axi_clkgen_calc_params()
132 fvco = fin * m / d; in axi_clkgen_calc_params()
/drivers/media/dvb-frontends/
Dves1820.c121 u32 fin; in ves1820_set_symbolrate() local
163 fin = state->config->xin >> 4; in ves1820_set_symbolrate()
165 ratio = (symbolrate << 4) / fin; in ves1820_set_symbolrate()
166 tmp = ((symbolrate << 4) % fin) << 8; in ves1820_set_symbolrate()
167 ratio = (ratio << 8) + tmp / fin; in ves1820_set_symbolrate()
168 tmp = (tmp % fin) << 8; in ves1820_set_symbolrate()
169 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, fin); in ves1820_set_symbolrate()
/drivers/spi/
Dspi-imx.c175 static unsigned int spi_imx_clkdiv_1(unsigned int fin, in spi_imx_clkdiv_1() argument
181 if (fspi * mxc_clkdivs[i] >= fin) in spi_imx_clkdiv_1()
188 static unsigned int spi_imx_clkdiv_2(unsigned int fin, in spi_imx_clkdiv_2() argument
194 if (fspi * div >= fin) in spi_imx_clkdiv_2()
200 *fres = fin / div; in spi_imx_clkdiv_2()
284 unsigned int fin = spi_imx->spi_clk; in mx51_ecspi_clkdiv() local
286 if (unlikely(fspi > fin)) in mx51_ecspi_clkdiv()
289 post = fls(fin) - fls(fspi); in mx51_ecspi_clkdiv()
290 if (fin > fspi << post) in mx51_ecspi_clkdiv()
298 fspi, fin); in mx51_ecspi_clkdiv()
[all …]
/drivers/clk/mediatek/
Dclk-pll.c66 static unsigned long __mtk_pll_recalc_rate(struct mtk_clk_pll *pll, u32 fin, in __mtk_pll_recalc_rate() argument
77 vco = (u64)fin * pcw; in __mtk_pll_recalc_rate()
138 u32 freq, u32 fin) in mtk_pll_calc_values() argument
167 do_div(_pcw, fin); in mtk_pll_calc_values()
/drivers/net/wireless/ath/carl9170/
Dfw.c150 unsigned long fin, diff; in carl9170_fw_checksum() local
178 fin = (unsigned long) last_desc + sizeof(*last_desc); in carl9170_fw_checksum()
179 diff = fin - (unsigned long) otus_desc; in carl9170_fw_checksum()
/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c556 unsigned long fin, unsigned long fout, u8 *p, u16 *m, u8 *s) in exynos_dsi_pll_find_pms() argument
566 p_min = DIV_ROUND_UP(fin, (12 * MHZ)); in exynos_dsi_pll_find_pms()
567 p_max = fin / (6 * MHZ); in exynos_dsi_pll_find_pms()
575 do_div(tmp, fin); in exynos_dsi_pll_find_pms()
580 tmp = (u64)_m * fin; in exynos_dsi_pll_find_pms()
586 tmp = (u64)_m * fin; in exynos_dsi_pll_find_pms()
613 unsigned long fin, fout; in exynos_dsi_set_pll() local
619 fin = dsi->pll_clk_rate; in exynos_dsi_set_pll()
620 fout = exynos_dsi_pll_find_pms(dsi, fin, freq, &p, &m, &s); in exynos_dsi_set_pll()
/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()
/drivers/crypto/
Dmxs-dcp.c574 int fin = rctx->fini; in dcp_sha_req_to_buf() local
575 if (fin) in dcp_sha_req_to_buf()
607 if (fin) { in dcp_sha_req_to_buf()
/drivers/char/
Dapplicom.c249 goto fin; in applicom_init()
294 fin: in applicom_init()
/drivers/input/mouse/
Dalps.c251 int x, y, z, ges, fin, left, right, middle; in alps_process_packet_v1_v2() local
283 fin = packet[2] & 2; in alps_process_packet_v1_v2()
305 if (ges && !fin) in alps_process_packet_v1_v2()
313 if (ges && fin && !priv->prev_fin) { in alps_process_packet_v1_v2()
320 priv->prev_fin = fin; in alps_process_packet_v1_v2()
/drivers/media/pci/bt8xx/
Dbttv-driver.c804 static void set_pll_freq(struct bttv *btv, unsigned int fin, unsigned int fout) in set_pll_freq() argument
809 fin/=4; in set_pll_freq()
813 fi=fout/fin; in set_pll_freq()
815 fout=(fout%fin)*256; in set_pll_freq()
816 fh=fout/fin; in set_pll_freq()
818 fout=(fout%fin)*256; in set_pll_freq()
819 fl=fout/fin; in set_pll_freq()
/drivers/net/slip/
Dslhc.c270 if(hlen > isize || th->syn || th->fin || th->rst || in slhc_compress()
/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c2117 if (th->fin || th->rst) in i40e_atr()
2124 if (!th->fin && in i40e_atr()
2151 dtype_cmd |= (th->fin || th->rst) ? in i40e_atr()
/drivers/infiniband/hw/nes/
Dnes_cm.c509 tcph->fin = 1; in form_cm_frame()
2222 tcph->ack, tcph->rst, tcph->fin); in process_packet()
2233 if (tcph->fin) in process_packet()
2633 if (!tcph->rst && !tcph->fin) { in mini_cm_recv_pkt()
Dnes_mgt.c182 *fin_rcvd = tcph->fin; in nes_get_seq()
Dnes_nic.c604 tcph->fin = 0; in nes_netdev_start_xmit()
/drivers/infiniband/hw/i40iw/
Di40iw_cm.c517 tcph->fin = 1; in i40iw_form_cm_frame()
2752 if (tcph->fin) in i40iw_process_packet()
3132 if (!tcph->rst && !tcph->fin) { in i40iw_receive_ilq()
/drivers/media/i2c/cx25840/
Dcx25840-core.c863 int fin, fsc; in cx25840_std_setup() local
872 fin = ((u64)src_decimation * pll) >> 12; in cx25840_std_setup()
875 fin / 1000000, fin % 1000000); in cx25840_std_setup()
/drivers/net/ethernet/tile/
Dtilegx.c1790 th->fin = 0; in tso_headers_prepare()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dd3.c512 pkt->tcp.fin = 1; in iwl_mvm_build_tcp_packet()
/drivers/net/ethernet/neterion/
Ds2io.c8376 tcp->syn || tcp->fin || in verify_l3_l4_lro_capable()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c7694 if (th->fin) in ixgbe_atr()