Lines Matching refs:t
120 static int calc_rd_timings(struct extif_timings *t) in calc_rd_timings() argument
124 int div = t->clk_div; in calc_rd_timings()
130 reon = ps_to_sossi_ticks(t->re_on_time, div); in calc_rd_timings()
135 reoff = ps_to_sossi_ticks(t->re_off_time, div); in calc_rd_timings()
144 recyc = ps_to_sossi_ticks(t->re_cycle_time, div); in calc_rd_timings()
155 actim = ps_to_sossi_ticks(t->access_time, div); in calc_rd_timings()
165 t->tim[0] = tw0 - 1; in calc_rd_timings()
166 t->tim[1] = tw1 - 1; in calc_rd_timings()
171 static int calc_wr_timings(struct extif_timings *t) in calc_wr_timings() argument
175 int div = t->clk_div; in calc_wr_timings()
181 weon = ps_to_sossi_ticks(t->we_on_time, div); in calc_wr_timings()
186 weoff = ps_to_sossi_ticks(t->we_off_time, div); in calc_wr_timings()
193 wecyc = ps_to_sossi_ticks(t->we_cycle_time, div); in calc_wr_timings()
204 t->tim[2] = tw0 - 1; in calc_wr_timings()
205 t->tim[3] = tw1 - 1; in calc_wr_timings()
314 static int sossi_convert_timings(struct extif_timings *t) in sossi_convert_timings() argument
317 int div = t->clk_div; in sossi_convert_timings()
319 t->converted = 0; in sossi_convert_timings()
325 if ((r = calc_rd_timings(t)) < 0) in sossi_convert_timings()
328 if ((r = calc_wr_timings(t)) < 0) in sossi_convert_timings()
331 t->tim[4] = div; in sossi_convert_timings()
333 t->converted = 1; in sossi_convert_timings()
338 static void sossi_set_timings(const struct extif_timings *t) in sossi_set_timings() argument
340 BUG_ON(!t->converted); in sossi_set_timings()
342 sossi.clk_tw0[RD_ACCESS] = t->tim[0]; in sossi_set_timings()
343 sossi.clk_tw1[RD_ACCESS] = t->tim[1]; in sossi_set_timings()
345 sossi.clk_tw0[WR_ACCESS] = t->tim[2]; in sossi_set_timings()
346 sossi.clk_tw1[WR_ACCESS] = t->tim[3]; in sossi_set_timings()
348 sossi.clk_div = t->tim[4]; in sossi_set_timings()