• 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

1087 static inline unsigned long round_to_extif_ticks(unsigned long ps, int div)
1089 int bus_tick = blizzard.extif_clk_period * div;
1093 static int calc_reg_timing(unsigned long sysclk, int div)
1109 "Blizzard systim %lu ps extif_clk_period %u div %d\n",
1110 systim, blizzard.extif_clk_period, div);
1115 t->clk_div = div;
1118 t->we_on_time = round_to_extif_ticks(t->cs_on_time + 2000, div);
1119 t->re_on_time = round_to_extif_ticks(t->cs_on_time + 2000, div);
1120 t->access_time = round_to_extif_ticks(t->re_on_time + 12200, div);
1121 t->we_off_time = round_to_extif_ticks(t->we_on_time + 1000, div);
1122 t->re_off_time = round_to_extif_ticks(t->re_on_time + 13000, div);
1123 t->cs_off_time = round_to_extif_ticks(t->re_off_time + 1000, div);
1124 t->we_cycle_time = round_to_extif_ticks(2 * systim + 2000, div);
1127 t->re_cycle_time = round_to_extif_ticks(2 * systim + 2000, div);
1143 static int calc_lut_timing(unsigned long sysclk, int div)
1159 "Blizzard systim %lu ps extif_clk_period %u div %d\n",
1160 systim, blizzard.extif_clk_period, div);
1165 t->clk_div = div;
1168 t->we_on_time = round_to_extif_ticks(t->cs_on_time + 2000, div);
1169 t->re_on_time = round_to_extif_ticks(t->cs_on_time + 2000, div);
1171 26000, div);
1172 t->we_off_time = round_to_extif_ticks(t->we_on_time + 1000, div);
1174 26000, div);
1175 t->cs_off_time = round_to_extif_ticks(t->re_off_time + 1000, div);
1176 t->we_cycle_time = round_to_extif_ticks(2 * systim + 2000, div);
1179 t->re_cycle_time = round_to_extif_ticks(2000 + 4 * systim + 26000, div);
1200 int div;
1203 for (div = 1; div <= max_clk_div; div++) {
1204 if (calc_reg_timing(sysclk, div) == 0)
1207 if (div > max_clk_div) {
1211 *extif_mem_div = div;
1213 for (div = 1; div <= max_clk_div; div++) {
1214 if (calc_lut_timing(sysclk, div) == 0)
1218 if (div > max_clk_div)
1221 blizzard.extif_clk_div = div;