Lines Matching full:prescale

96 	unsigned int prescale;  in ingenic_ost_percpu_timer_recalc_rate()  local
98 prescale = readl(ost_clk->ost->base + info->ostccr_reg); in ingenic_ost_percpu_timer_recalc_rate()
100 prescale = FIELD_GET(OSTCCR_PRESCALE1_MASK, prescale); in ingenic_ost_percpu_timer_recalc_rate()
102 return parent_rate >> (prescale * 2); in ingenic_ost_percpu_timer_recalc_rate()
110 unsigned int prescale; in ingenic_ost_global_timer_recalc_rate() local
112 prescale = readl(ost_clk->ost->base + info->ostccr_reg); in ingenic_ost_global_timer_recalc_rate()
114 prescale = FIELD_GET(OSTCCR_PRESCALE2_MASK, prescale); in ingenic_ost_global_timer_recalc_rate()
116 return parent_rate >> (prescale * 2); in ingenic_ost_global_timer_recalc_rate()
121 u8 prescale; in ingenic_ost_get_prescale() local
123 for (prescale = 0; prescale < 2; prescale++) in ingenic_ost_get_prescale()
124 if ((rate >> (prescale * 2)) <= req_rate) in ingenic_ost_get_prescale()
125 return prescale; in ingenic_ost_get_prescale()
134 u8 prescale; in ingenic_ost_round_rate() local
139 prescale = ingenic_ost_get_prescale(rate, req_rate); in ingenic_ost_round_rate()
141 return rate >> (prescale * 2); in ingenic_ost_round_rate()
149 u8 prescale = ingenic_ost_get_prescale(parent_rate, req_rate); in ingenic_ost_percpu_timer_set_rate() local
154 val |= FIELD_PREP(OSTCCR_PRESCALE1_MASK, prescale); in ingenic_ost_percpu_timer_set_rate()
165 u8 prescale = ingenic_ost_get_prescale(parent_rate, req_rate); in ingenic_ost_global_timer_set_rate() local
170 val |= FIELD_PREP(OSTCCR_PRESCALE2_MASK, prescale); in ingenic_ost_global_timer_set_rate()