Searched refs:m_div (Results 1 – 2 of 2) sorted by relevance
/linux-4.19.296/drivers/clk/nxp/ |
D | clk-lpc32xx.c | 331 unsigned long m_div; member 490 clk->m_div = ((val & PLL_CTRL_FEEDDIV) >> 1) + 1; in clk_pll_recalc_rate() 509 rate = cco_rate = ref_rate * clk->m_div; in clk_pll_recalc_rate() 524 clk->n_div, clk->m_div, (1 << clk->p_div), rate); in clk_pll_recalc_rate() 548 val |= (clk->m_div - 1) << 1; in clk_pll_set_rate() 550 new_rate = (parent_rate * clk->m_div) / clk->n_div; in clk_pll_set_rate() 563 val |= (clk->m_div - 1) << 1; in clk_pll_set_rate() 566 new_rate = (parent_rate * clk->m_div) / clk->n_div; in clk_pll_set_rate() 570 val |= (clk->m_div - 1) << 1; in clk_pll_set_rate() 573 new_rate = (parent_rate * clk->m_div) / in clk_pll_set_rate() [all …]
|
/linux-4.19.296/drivers/media/dvb-frontends/ |
D | stv0900_core.c | 297 u32 m_div, clk_sel; in stv0900_set_mclk() local 309 m_div = ((clk_sel * mclk) / intp->quartz) - 1; in stv0900_set_mclk() 310 stv0900_write_bits(intp, F0900_M_DIV, m_div); in stv0900_set_mclk() 320 m_div = intp->mclk / 704000; in stv0900_set_mclk() 321 stv0900_write_reg(intp, R0900_P1_F22TX, m_div); in stv0900_set_mclk() 322 stv0900_write_reg(intp, R0900_P1_F22RX, m_div); in stv0900_set_mclk() 324 stv0900_write_reg(intp, R0900_P2_F22TX, m_div); in stv0900_set_mclk() 325 stv0900_write_reg(intp, R0900_P2_F22RX, m_div); in stv0900_set_mclk()
|