sdrt 275 drivers/mtd/nand/raw/fsmc_nand.c const struct nand_sdr_timings *sdrt, sdrt 282 drivers/mtd/nand/raw/fsmc_nand.c if (sdrt->tRC_min < 30000) sdrt 285 drivers/mtd/nand/raw/fsmc_nand.c tims->tar = DIV_ROUND_UP(sdrt->tAR_min / 1000, hclkn) - 1; sdrt 288 drivers/mtd/nand/raw/fsmc_nand.c tims->tclr = DIV_ROUND_UP(sdrt->tCLR_min / 1000, hclkn) - 1; sdrt 292 drivers/mtd/nand/raw/fsmc_nand.c thiz = sdrt->tCS_min - sdrt->tWP_min; sdrt 295 drivers/mtd/nand/raw/fsmc_nand.c thold = sdrt->tDH_min; sdrt 296 drivers/mtd/nand/raw/fsmc_nand.c if (thold < sdrt->tCH_min) sdrt 297 drivers/mtd/nand/raw/fsmc_nand.c thold = sdrt->tCH_min; sdrt 298 drivers/mtd/nand/raw/fsmc_nand.c if (thold < sdrt->tCLH_min) sdrt 299 drivers/mtd/nand/raw/fsmc_nand.c thold = sdrt->tCLH_min; sdrt 300 drivers/mtd/nand/raw/fsmc_nand.c if (thold < sdrt->tWH_min) sdrt 301 drivers/mtd/nand/raw/fsmc_nand.c thold = sdrt->tWH_min; sdrt 302 drivers/mtd/nand/raw/fsmc_nand.c if (thold < sdrt->tALH_min) sdrt 303 drivers/mtd/nand/raw/fsmc_nand.c thold = sdrt->tALH_min; sdrt 304 drivers/mtd/nand/raw/fsmc_nand.c if (thold < sdrt->tREH_min) sdrt 305 drivers/mtd/nand/raw/fsmc_nand.c thold = sdrt->tREH_min; sdrt 312 drivers/mtd/nand/raw/fsmc_nand.c twait = max(sdrt->tRP_min, sdrt->tWP_min); sdrt 319 drivers/mtd/nand/raw/fsmc_nand.c tset = max(sdrt->tCS_min - sdrt->tWP_min, sdrt 320 drivers/mtd/nand/raw/fsmc_nand.c sdrt->tCEA_max - sdrt->tREA_max); sdrt 335 drivers/mtd/nand/raw/fsmc_nand.c const struct nand_sdr_timings *sdrt; sdrt 338 drivers/mtd/nand/raw/fsmc_nand.c sdrt = nand_get_sdr_timings(conf); sdrt 339 drivers/mtd/nand/raw/fsmc_nand.c if (IS_ERR(sdrt)) sdrt 340 drivers/mtd/nand/raw/fsmc_nand.c return PTR_ERR(sdrt); sdrt 342 drivers/mtd/nand/raw/fsmc_nand.c ret = fsmc_calc_timings(host, sdrt, &tims); sdrt 1457 drivers/mtd/nand/raw/stm32_fmc2_nand.c const struct nand_sdr_timings *sdrt) sdrt 1467 drivers/mtd/nand/raw/stm32_fmc2_nand.c tar = max_t(unsigned long, hclkp, sdrt->tAR_min); sdrt 1471 drivers/mtd/nand/raw/stm32_fmc2_nand.c tclr = max_t(unsigned long, hclkp, sdrt->tCLR_min); sdrt 1483 drivers/mtd/nand/raw/stm32_fmc2_nand.c twait = max_t(unsigned long, hclkp, sdrt->tRP_min); sdrt 1484 drivers/mtd/nand/raw/stm32_fmc2_nand.c twait = max_t(unsigned long, twait, sdrt->tWP_min); sdrt 1485 drivers/mtd/nand/raw/stm32_fmc2_nand.c twait = max_t(unsigned long, twait, sdrt->tREA_max + FMC2_TIO); sdrt 1495 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (sdrt->tCS_min > twait && (tset_mem < sdrt->tCS_min - twait)) sdrt 1496 drivers/mtd/nand/raw/stm32_fmc2_nand.c tset_mem = sdrt->tCS_min - twait; sdrt 1497 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (sdrt->tALS_min > twait && (tset_mem < sdrt->tALS_min - twait)) sdrt 1498 drivers/mtd/nand/raw/stm32_fmc2_nand.c tset_mem = sdrt->tALS_min - twait; sdrt 1499 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (twait > thiz && (sdrt->tDS_min > twait - thiz) && sdrt 1500 drivers/mtd/nand/raw/stm32_fmc2_nand.c (tset_mem < sdrt->tDS_min - (twait - thiz))) sdrt 1501 drivers/mtd/nand/raw/stm32_fmc2_nand.c tset_mem = sdrt->tDS_min - (twait - thiz); sdrt 1510 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_mem = max_t(unsigned long, hclkp, sdrt->tCH_min); sdrt 1511 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (sdrt->tREH_min > tset_mem && sdrt 1512 drivers/mtd/nand/raw/stm32_fmc2_nand.c (thold_mem < sdrt->tREH_min - tset_mem)) sdrt 1513 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_mem = sdrt->tREH_min - tset_mem; sdrt 1514 drivers/mtd/nand/raw/stm32_fmc2_nand.c if ((sdrt->tRC_min > tset_mem + twait) && sdrt 1515 drivers/mtd/nand/raw/stm32_fmc2_nand.c (thold_mem < sdrt->tRC_min - (tset_mem + twait))) sdrt 1516 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_mem = sdrt->tRC_min - (tset_mem + twait); sdrt 1517 drivers/mtd/nand/raw/stm32_fmc2_nand.c if ((sdrt->tWC_min > tset_mem + twait) && sdrt 1518 drivers/mtd/nand/raw/stm32_fmc2_nand.c (thold_mem < sdrt->tWC_min - (tset_mem + twait))) sdrt 1519 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_mem = sdrt->tWC_min - (tset_mem + twait); sdrt 1531 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (sdrt->tCS_min > twait && (tset_att < sdrt->tCS_min - twait)) sdrt 1532 drivers/mtd/nand/raw/stm32_fmc2_nand.c tset_att = sdrt->tCS_min - twait; sdrt 1533 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (sdrt->tCLS_min > twait && (tset_att < sdrt->tCLS_min - twait)) sdrt 1534 drivers/mtd/nand/raw/stm32_fmc2_nand.c tset_att = sdrt->tCLS_min - twait; sdrt 1535 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (sdrt->tALS_min > twait && (tset_att < sdrt->tALS_min - twait)) sdrt 1536 drivers/mtd/nand/raw/stm32_fmc2_nand.c tset_att = sdrt->tALS_min - twait; sdrt 1537 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (sdrt->tRHW_min > thold_mem && sdrt 1538 drivers/mtd/nand/raw/stm32_fmc2_nand.c (tset_att < sdrt->tRHW_min - thold_mem)) sdrt 1539 drivers/mtd/nand/raw/stm32_fmc2_nand.c tset_att = sdrt->tRHW_min - thold_mem; sdrt 1540 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (twait > thiz && (sdrt->tDS_min > twait - thiz) && sdrt 1541 drivers/mtd/nand/raw/stm32_fmc2_nand.c (tset_att < sdrt->tDS_min - (twait - thiz))) sdrt 1542 drivers/mtd/nand/raw/stm32_fmc2_nand.c tset_att = sdrt->tDS_min - (twait - thiz); sdrt 1559 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = max_t(unsigned long, hclkp, sdrt->tALH_min); sdrt 1560 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = max_t(unsigned long, thold_att, sdrt->tCH_min); sdrt 1561 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = max_t(unsigned long, thold_att, sdrt->tCLH_min); sdrt 1562 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = max_t(unsigned long, thold_att, sdrt->tCOH_min); sdrt 1563 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = max_t(unsigned long, thold_att, sdrt->tDH_min); sdrt 1564 drivers/mtd/nand/raw/stm32_fmc2_nand.c if ((sdrt->tWB_max + FMC2_TIO + FMC2_TSYNC > tset_mem) && sdrt 1565 drivers/mtd/nand/raw/stm32_fmc2_nand.c (thold_att < sdrt->tWB_max + FMC2_TIO + FMC2_TSYNC - tset_mem)) sdrt 1566 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = sdrt->tWB_max + FMC2_TIO + FMC2_TSYNC - tset_mem; sdrt 1567 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (sdrt->tADL_min > tset_mem && sdrt 1568 drivers/mtd/nand/raw/stm32_fmc2_nand.c (thold_att < sdrt->tADL_min - tset_mem)) sdrt 1569 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = sdrt->tADL_min - tset_mem; sdrt 1570 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (sdrt->tWH_min > tset_mem && sdrt 1571 drivers/mtd/nand/raw/stm32_fmc2_nand.c (thold_att < sdrt->tWH_min - tset_mem)) sdrt 1572 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = sdrt->tWH_min - tset_mem; sdrt 1573 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (sdrt->tWHR_min > tset_mem && sdrt 1574 drivers/mtd/nand/raw/stm32_fmc2_nand.c (thold_att < sdrt->tWHR_min - tset_mem)) sdrt 1575 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = sdrt->tWHR_min - tset_mem; sdrt 1576 drivers/mtd/nand/raw/stm32_fmc2_nand.c if ((sdrt->tRC_min > tset_att + twait) && sdrt 1577 drivers/mtd/nand/raw/stm32_fmc2_nand.c (thold_att < sdrt->tRC_min - (tset_att + twait))) sdrt 1578 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = sdrt->tRC_min - (tset_att + twait); sdrt 1579 drivers/mtd/nand/raw/stm32_fmc2_nand.c if ((sdrt->tWC_min > tset_att + twait) && sdrt 1580 drivers/mtd/nand/raw/stm32_fmc2_nand.c (thold_att < sdrt->tWC_min - (tset_att + twait))) sdrt 1581 drivers/mtd/nand/raw/stm32_fmc2_nand.c thold_att = sdrt->tWC_min - (tset_att + twait); sdrt 1589 drivers/mtd/nand/raw/stm32_fmc2_nand.c const struct nand_sdr_timings *sdrt; sdrt 1591 drivers/mtd/nand/raw/stm32_fmc2_nand.c sdrt = nand_get_sdr_timings(conf); sdrt 1592 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (IS_ERR(sdrt)) sdrt 1593 drivers/mtd/nand/raw/stm32_fmc2_nand.c return PTR_ERR(sdrt); sdrt 1598 drivers/mtd/nand/raw/stm32_fmc2_nand.c stm32_fmc2_calc_timings(chip, sdrt);