Searched refs:sdrt (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/drivers/mtd/nand/raw/ |
D | stm32_fmc2_nand.c | 1396 const struct nand_sdr_timings *sdrt) in stm32_fmc2_nfc_calc_timings() argument 1406 tar = max_t(unsigned long, hclkp, sdrt->tAR_min); in stm32_fmc2_nfc_calc_timings() 1410 tclr = max_t(unsigned long, hclkp, sdrt->tCLR_min); in stm32_fmc2_nfc_calc_timings() 1422 twait = max_t(unsigned long, hclkp, sdrt->tRP_min); in stm32_fmc2_nfc_calc_timings() 1423 twait = max_t(unsigned long, twait, sdrt->tWP_min); in stm32_fmc2_nfc_calc_timings() 1424 twait = max_t(unsigned long, twait, sdrt->tREA_max + FMC2_TIO); in stm32_fmc2_nfc_calc_timings() 1434 if (sdrt->tCS_min > twait && (tset_mem < sdrt->tCS_min - twait)) in stm32_fmc2_nfc_calc_timings() 1435 tset_mem = sdrt->tCS_min - twait; in stm32_fmc2_nfc_calc_timings() 1436 if (sdrt->tALS_min > twait && (tset_mem < sdrt->tALS_min - twait)) in stm32_fmc2_nfc_calc_timings() 1437 tset_mem = sdrt->tALS_min - twait; in stm32_fmc2_nfc_calc_timings() [all …]
|
D | fsmc_nand.c | 284 const struct nand_sdr_timings *sdrt, in fsmc_calc_timings() argument 291 if (sdrt->tRC_min < 30000) in fsmc_calc_timings() 294 tims->tar = DIV_ROUND_UP(sdrt->tAR_min / 1000, hclkn) - 1; in fsmc_calc_timings() 297 tims->tclr = DIV_ROUND_UP(sdrt->tCLR_min / 1000, hclkn) - 1; in fsmc_calc_timings() 301 thiz = sdrt->tCS_min - sdrt->tWP_min; in fsmc_calc_timings() 304 thold = sdrt->tDH_min; in fsmc_calc_timings() 305 if (thold < sdrt->tCH_min) in fsmc_calc_timings() 306 thold = sdrt->tCH_min; in fsmc_calc_timings() 307 if (thold < sdrt->tCLH_min) in fsmc_calc_timings() 308 thold = sdrt->tCLH_min; in fsmc_calc_timings() [all …]
|