Home
last modified time | relevance | path

Searched refs:frem (Results 1 – 2 of 2) sorted by relevance

/rk3399_ARM-atf/drivers/ti/clk/
H A Dti_pll.c105 uint64_t frem; in ti_pll_consider_entry() local
121 frem = ((uint64_t)data->input * entry->pllfm) % clkod_plld; in ti_pll_consider_entry()
124 frem *= stride; in ti_pll_consider_entry()
125 fret += (uint32_t)frem / clkod_plld; in ti_pll_consider_entry()
126 frem = (uint32_t)frem % clkod_plld; in ti_pll_consider_entry()
128 frem += (uint32_t)(fret & pllfm_mask) * clkod_plld; in ti_pll_consider_entry()
131 rem += (uint32_t)(frem >> pllfm_bits); in ti_pll_consider_entry()
201 uint64_t frem; in ti_pll_consider() local
237 frem = ((uint64_t)data->input * curr_pllfm) % div; in ti_pll_consider()
241 frem *= stride; in ti_pll_consider()
[all …]
H A Dti_clk_pll_16fft.c544 uint64_t frem; /* Fraction remainder */ in ti_clk_pll_16fft_get_freq_internal() local
550 frem = ((uint64_t) parent_freq_hz % clkod_plld) * m_frac_mult; in ti_clk_pll_16fft_get_freq_internal()
551 fret += frem / (uint64_t) clkod_plld; in ti_clk_pll_16fft_get_freq_internal()
552 frem = frem % (uint64_t) clkod_plld; in ti_clk_pll_16fft_get_freq_internal()
555 frem += (fret & (uint64_t) mask) * clkod_plld; in ti_clk_pll_16fft_get_freq_internal()
561 rem += frem >> PLL_16FFT_FREQ_CTRL1_FB_DIV_FRAC_BIT_CNT; in ti_clk_pll_16fft_get_freq_internal()
843 uint64_t frem; in ti_pll_16fft_set_freq_table() local
863 frem = ((uint64_t) input % clkod_plld) * in ti_pll_16fft_set_freq_table()
865 if (frem >= clkod_plld) { in ti_pll_16fft_set_freq_table()
866 fret += ((uint64_t) frem) / clkod_plld; in ti_pll_16fft_set_freq_table()
[all …]