Lines Matching defs:sdrt
284 const struct nand_sdr_timings *sdrt,
291 if (sdrt->tRC_min < 30000)
294 tims->tar = DIV_ROUND_UP(sdrt->tAR_min / 1000, hclkn) - 1;
297 tims->tclr = DIV_ROUND_UP(sdrt->tCLR_min / 1000, hclkn) - 1;
301 thiz = sdrt->tCS_min - sdrt->tWP_min;
304 thold = sdrt->tDH_min;
305 if (thold < sdrt->tCH_min)
306 thold = sdrt->tCH_min;
307 if (thold < sdrt->tCLH_min)
308 thold = sdrt->tCLH_min;
309 if (thold < sdrt->tWH_min)
310 thold = sdrt->tWH_min;
311 if (thold < sdrt->tALH_min)
312 thold = sdrt->tALH_min;
313 if (thold < sdrt->tREH_min)
314 thold = sdrt->tREH_min;
321 tset = max(sdrt->tCS_min - sdrt->tWP_min,
322 sdrt->tCEA_max - sdrt->tREA_max);
334 twait_min = sdrt->tCEA_max - ((tims->tset + 1) * hclkn * 1000)
336 twait = max3(sdrt->tRP_min, sdrt->tWP_min, twait_min);
352 const struct nand_sdr_timings *sdrt;
355 sdrt = nand_get_sdr_timings(conf);
356 if (IS_ERR(sdrt))
357 return PTR_ERR(sdrt);
359 ret = fsmc_calc_timings(host, sdrt, &tims);