• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/video/omap/

Lines Matching defs:div

632 static unsigned long round_to_extif_ticks(unsigned long ps, int div)
634 int bus_tick = hwa742.extif_clk_period * div;
638 static int calc_reg_timing(unsigned long sysclk, int div)
653 "extif_clk_div %d\n", systim, hwa742.extif_clk_period, div);
657 t->clk_div = div;
659 t->we_on_time = round_to_extif_ticks(t->cs_on_time + 2000, div);
660 t->re_on_time = round_to_extif_ticks(t->cs_on_time + 2000, div);
661 t->access_time = round_to_extif_ticks(t->re_on_time + 12200, div);
662 t->we_off_time = round_to_extif_ticks(t->we_on_time + 1000, div);
663 t->re_off_time = round_to_extif_ticks(t->re_on_time + 16000, div);
664 t->cs_off_time = round_to_extif_ticks(t->re_off_time + 1000, div);
665 t->we_cycle_time = round_to_extif_ticks(2 * systim + 2000, div);
668 t->re_cycle_time = round_to_extif_ticks(2 * systim + 2000, div);
684 static int calc_lut_timing(unsigned long sysclk, int div)
700 "extif_clk_div %d\n", systim, hwa742.extif_clk_period, div);
705 t->clk_div = div;
708 t->we_on_time = round_to_extif_ticks(t->cs_on_time + 2000, div);
709 t->re_on_time = round_to_extif_ticks(t->cs_on_time + 2000, div);
711 26000, div);
712 t->we_off_time = round_to_extif_ticks(t->we_on_time + 1000, div);
714 26000, div);
715 t->cs_off_time = round_to_extif_ticks(t->re_off_time + 1000, div);
716 t->we_cycle_time = round_to_extif_ticks(2 * systim + 2000, div);
719 t->re_cycle_time = round_to_extif_ticks(2000 + 4 * systim + 26000, div);
738 int div;
741 for (div = 1; div < max_clk_div; div++) {
742 if (calc_reg_timing(sysclk, div) == 0)
745 if (div >= max_clk_div)
748 *extif_mem_div = div;
750 for (div = 1; div < max_clk_div; div++) {
751 if (calc_lut_timing(sysclk, div) == 0)
755 if (div >= max_clk_div)