Lines Matching refs:sdrt

623 				    const struct nand_sdr_timings *sdrt)  in stm32_fmc2_calc_timings()  argument
633 if (tar < sdrt->tAR_min) in stm32_fmc2_calc_timings()
634 tar = sdrt->tAR_min; in stm32_fmc2_calc_timings()
640 if (tclr < sdrt->tCLR_min) in stm32_fmc2_calc_timings()
641 tclr = sdrt->tCLR_min; in stm32_fmc2_calc_timings()
655 if (twait < sdrt->tRP_min) in stm32_fmc2_calc_timings()
656 twait = sdrt->tRP_min; in stm32_fmc2_calc_timings()
657 if (twait < sdrt->tWP_min) in stm32_fmc2_calc_timings()
658 twait = sdrt->tWP_min; in stm32_fmc2_calc_timings()
659 if (twait < sdrt->tREA_max + FMC2_TIO) in stm32_fmc2_calc_timings()
660 twait = sdrt->tREA_max + FMC2_TIO; in stm32_fmc2_calc_timings()
673 if (sdrt->tCS_min > twait && (tset_mem < sdrt->tCS_min - twait)) in stm32_fmc2_calc_timings()
674 tset_mem = sdrt->tCS_min - twait; in stm32_fmc2_calc_timings()
675 if (sdrt->tALS_min > twait && (tset_mem < sdrt->tALS_min - twait)) in stm32_fmc2_calc_timings()
676 tset_mem = sdrt->tALS_min - twait; in stm32_fmc2_calc_timings()
677 if (twait > thiz && (sdrt->tDS_min > twait - thiz) && in stm32_fmc2_calc_timings()
678 (tset_mem < sdrt->tDS_min - (twait - thiz))) in stm32_fmc2_calc_timings()
679 tset_mem = sdrt->tDS_min - (twait - thiz); in stm32_fmc2_calc_timings()
692 if (thold_mem < sdrt->tCH_min) in stm32_fmc2_calc_timings()
693 thold_mem = sdrt->tCH_min; in stm32_fmc2_calc_timings()
694 if (sdrt->tREH_min > tset_mem && in stm32_fmc2_calc_timings()
695 (thold_mem < sdrt->tREH_min - tset_mem)) in stm32_fmc2_calc_timings()
696 thold_mem = sdrt->tREH_min - tset_mem; in stm32_fmc2_calc_timings()
697 if ((sdrt->tRC_min > tset_mem + twait) && in stm32_fmc2_calc_timings()
698 (thold_mem < sdrt->tRC_min - (tset_mem + twait))) in stm32_fmc2_calc_timings()
699 thold_mem = sdrt->tRC_min - (tset_mem + twait); in stm32_fmc2_calc_timings()
700 if ((sdrt->tWC_min > tset_mem + twait) && in stm32_fmc2_calc_timings()
701 (thold_mem < sdrt->tWC_min - (tset_mem + twait))) in stm32_fmc2_calc_timings()
702 thold_mem = sdrt->tWC_min - (tset_mem + twait); in stm32_fmc2_calc_timings()
717 if (sdrt->tCS_min > twait && (tset_att < sdrt->tCS_min - twait)) in stm32_fmc2_calc_timings()
718 tset_att = sdrt->tCS_min - twait; in stm32_fmc2_calc_timings()
719 if (sdrt->tCLS_min > twait && (tset_att < sdrt->tCLS_min - twait)) in stm32_fmc2_calc_timings()
720 tset_att = sdrt->tCLS_min - twait; in stm32_fmc2_calc_timings()
721 if (sdrt->tALS_min > twait && (tset_att < sdrt->tALS_min - twait)) in stm32_fmc2_calc_timings()
722 tset_att = sdrt->tALS_min - twait; in stm32_fmc2_calc_timings()
723 if (sdrt->tRHW_min > thold_mem && in stm32_fmc2_calc_timings()
724 (tset_att < sdrt->tRHW_min - thold_mem)) in stm32_fmc2_calc_timings()
725 tset_att = sdrt->tRHW_min - thold_mem; in stm32_fmc2_calc_timings()
726 if (twait > thiz && (sdrt->tDS_min > twait - thiz) && in stm32_fmc2_calc_timings()
727 (tset_att < sdrt->tDS_min - (twait - thiz))) in stm32_fmc2_calc_timings()
728 tset_att = sdrt->tDS_min - (twait - thiz); in stm32_fmc2_calc_timings()
749 if (thold_att < sdrt->tALH_min) in stm32_fmc2_calc_timings()
750 thold_att = sdrt->tALH_min; in stm32_fmc2_calc_timings()
751 if (thold_att < sdrt->tCH_min) in stm32_fmc2_calc_timings()
752 thold_att = sdrt->tCH_min; in stm32_fmc2_calc_timings()
753 if (thold_att < sdrt->tCLH_min) in stm32_fmc2_calc_timings()
754 thold_att = sdrt->tCLH_min; in stm32_fmc2_calc_timings()
755 if (thold_att < sdrt->tCOH_min) in stm32_fmc2_calc_timings()
756 thold_att = sdrt->tCOH_min; in stm32_fmc2_calc_timings()
757 if (thold_att < sdrt->tDH_min) in stm32_fmc2_calc_timings()
758 thold_att = sdrt->tDH_min; in stm32_fmc2_calc_timings()
759 if ((sdrt->tWB_max + FMC2_TIO + FMC2_TSYNC > tset_mem) && in stm32_fmc2_calc_timings()
760 (thold_att < sdrt->tWB_max + FMC2_TIO + FMC2_TSYNC - tset_mem)) in stm32_fmc2_calc_timings()
761 thold_att = sdrt->tWB_max + FMC2_TIO + FMC2_TSYNC - tset_mem; in stm32_fmc2_calc_timings()
762 if (sdrt->tADL_min > tset_mem && in stm32_fmc2_calc_timings()
763 (thold_att < sdrt->tADL_min - tset_mem)) in stm32_fmc2_calc_timings()
764 thold_att = sdrt->tADL_min - tset_mem; in stm32_fmc2_calc_timings()
765 if (sdrt->tWH_min > tset_mem && in stm32_fmc2_calc_timings()
766 (thold_att < sdrt->tWH_min - tset_mem)) in stm32_fmc2_calc_timings()
767 thold_att = sdrt->tWH_min - tset_mem; in stm32_fmc2_calc_timings()
768 if (sdrt->tWHR_min > tset_mem && in stm32_fmc2_calc_timings()
769 (thold_att < sdrt->tWHR_min - tset_mem)) in stm32_fmc2_calc_timings()
770 thold_att = sdrt->tWHR_min - tset_mem; in stm32_fmc2_calc_timings()
771 if ((sdrt->tRC_min > tset_att + twait) && in stm32_fmc2_calc_timings()
772 (thold_att < sdrt->tRC_min - (tset_att + twait))) in stm32_fmc2_calc_timings()
773 thold_att = sdrt->tRC_min - (tset_att + twait); in stm32_fmc2_calc_timings()
774 if ((sdrt->tWC_min > tset_att + twait) && in stm32_fmc2_calc_timings()
775 (thold_att < sdrt->tWC_min - (tset_att + twait))) in stm32_fmc2_calc_timings()
776 thold_att = sdrt->tWC_min - (tset_att + twait); in stm32_fmc2_calc_timings()
788 const struct nand_sdr_timings *sdrt; in stm32_fmc2_setup_interface() local
790 sdrt = nand_get_sdr_timings(conf); in stm32_fmc2_setup_interface()
791 if (IS_ERR(sdrt)) in stm32_fmc2_setup_interface()
792 return PTR_ERR(sdrt); in stm32_fmc2_setup_interface()
797 stm32_fmc2_calc_timings(chip, sdrt); in stm32_fmc2_setup_interface()