Lines Matching refs:thold_att
143 u8 thold_att; member
202 patt |= FMC2_PATT_ATTHOLD(timings->thold_att); in stm32_fmc2_timings_init()
630 int tar, tclr, thiz, twait, tset_mem, tset_att, thold_mem, thold_att; in stm32_fmc2_calc_timings() local
748 thold_att = hclkp; 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()
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()
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()
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()
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()
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()
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()
777 tims->thold_att = DIV_ROUND_UP(thold_att, hclkp); in stm32_fmc2_calc_timings()
778 if (tims->thold_att == 0) in stm32_fmc2_calc_timings()
779 tims->thold_att = 1; in stm32_fmc2_calc_timings()
780 else if (tims->thold_att > FMC2_PMEM_PATT_TIMING_MASK) in stm32_fmc2_calc_timings()
781 tims->thold_att = FMC2_PMEM_PATT_TIMING_MASK; in stm32_fmc2_calc_timings()