Home
last modified time | relevance | path

Searched refs:prescale (Results 1 – 4 of 4) sorted by relevance

/arch/arm/mach-at91/
Dclock.c343 unsigned prescale; in clk_round_rate() local
352 for (prescale = 0; prescale < 7; prescale++) { in clk_round_rate()
359 prescale--; in clk_round_rate()
367 return (prescale < 7) ? actual : -ENOENT; in clk_round_rate()
374 unsigned prescale; in clk_set_rate() local
394 for (prescale = 0; prescale < 7; prescale++) { in clk_set_rate()
400 pckr |= prescale << prescale_offset; in clk_set_rate()
409 return (prescale < 7) ? actual : -ENOENT; in clk_set_rate()
/arch/powerpc/platforms/52xx/
Dmpc52xx_gpt.c401 u32 prescale; in mpc52xx_gpt_do_start() local
435 prescale = (clocks >> 16) + 1; in mpc52xx_gpt_do_start()
436 do_div(clocks, prescale); in mpc52xx_gpt_do_start()
439 prescale, clocks); in mpc52xx_gpt_do_start()
451 out_be32(&gpt->regs->count, prescale << 16 | clocks); in mpc52xx_gpt_do_start()
505 u64 prescale; in mpc52xx_gpt_timer_period() local
512 prescale = period >> 16; in mpc52xx_gpt_timer_period()
514 if (prescale == 0) in mpc52xx_gpt_timer_period()
515 prescale = 0x10000; in mpc52xx_gpt_timer_period()
516 period = period * prescale * 1000000000ULL; in mpc52xx_gpt_timer_period()
/arch/arm/plat-samsung/
Dadc.c75 unsigned int prescale; member
356 adc->prescale = S3C2410_ADCCON_PRSCVL(49); in s3c_adc_probe()
394 tmp = adc->prescale | S3C2410_ADCCON_PRSCEN; in s3c_adc_probe()
460 tmp = adc->prescale | S3C2410_ADCCON_PRSCEN; in s3c_adc_resume()
/arch/arm/mach-w90x900/
Ddev.c397 .prescale = 0xfa,