Lines Matching refs:setup

235 	u32 (*calculate)(struct stm32_fmc2_ebi *ebi, int cs, u32 setup);
238 int cs, u32 setup);
414 int cs, u32 setup) in stm32_fmc2_ebi_ns_to_clock_cycles() argument
419 return DIV_ROUND_UP(setup * 1000, hclkp); in stm32_fmc2_ebi_ns_to_clock_cycles()
423 int cs, u32 setup) in stm32_fmc2_ebi_ns_to_clk_period() argument
425 u32 nb_clk_cycles = stm32_fmc2_ebi_ns_to_clock_cycles(ebi, cs, setup); in stm32_fmc2_ebi_ns_to_clk_period()
446 int cs, u32 setup) in stm32_fmc2_ebi_mp25_ns_to_clk_period() argument
448 u32 nb_clk_cycles = stm32_fmc2_ebi_ns_to_clock_cycles(ebi, cs, setup); in stm32_fmc2_ebi_mp25_ns_to_clk_period()
496 int cs, u32 setup) in stm32_fmc2_ebi_set_bit_field() argument
506 setup ? prop->reg_mask : 0); in stm32_fmc2_ebi_set_bit_field()
513 int cs, u32 setup) in stm32_fmc2_ebi_set_trans_type() argument
525 switch (setup) { in stm32_fmc2_ebi_set_trans_type()
646 int cs, u32 setup) in stm32_fmc2_ebi_set_buswidth() argument
650 switch (setup) { in stm32_fmc2_ebi_set_buswidth()
669 int cs, u32 setup) in stm32_fmc2_ebi_set_cpsize() argument
673 switch (setup) { in stm32_fmc2_ebi_set_cpsize()
701 int cs, u32 setup) in stm32_fmc2_ebi_set_bl_setup() argument
705 val = min_t(u32, setup, FMC2_BCR_NBLSET_MAX); in stm32_fmc2_ebi_set_bl_setup()
714 int cs, u32 setup) in stm32_fmc2_ebi_set_address_setup() argument
736 val = clamp_val(setup, 1, FMC2_BXTR_ADDSET_MAX); in stm32_fmc2_ebi_set_address_setup()
738 val = min_t(u32, setup, FMC2_BXTR_ADDSET_MAX); in stm32_fmc2_ebi_set_address_setup()
747 int cs, u32 setup) in stm32_fmc2_ebi_set_address_hold() argument
756 val = clamp_val(setup, 1, FMC2_BXTR_ADDHLD_MAX); in stm32_fmc2_ebi_set_address_hold()
765 int cs, u32 setup) in stm32_fmc2_ebi_set_data_setup() argument
774 val = clamp_val(setup, 1, FMC2_BXTR_DATAST_MAX); in stm32_fmc2_ebi_set_data_setup()
783 int cs, u32 setup) in stm32_fmc2_ebi_set_bus_turnaround() argument
792 val = setup ? min_t(u32, setup - 1, FMC2_BXTR_BUSTURN_MAX) : 0; in stm32_fmc2_ebi_set_bus_turnaround()
801 int cs, u32 setup) in stm32_fmc2_ebi_set_data_hold() argument
811 val = setup ? min_t(u32, setup - 1, FMC2_BXTR_DATAHLD_MAX) : 0; in stm32_fmc2_ebi_set_data_hold()
813 val = min_t(u32, setup, FMC2_BXTR_DATAHLD_MAX); in stm32_fmc2_ebi_set_data_hold()
822 int cs, u32 setup) in stm32_fmc2_ebi_set_clk_period() argument
826 val = setup ? clamp_val(setup - 1, 1, FMC2_BTR_CLKDIV_MAX) : 1; in stm32_fmc2_ebi_set_clk_period()
835 int cs, u32 setup) in stm32_fmc2_ebi_mp25_set_clk_period() argument
845 val = setup ? clamp_val(setup - 1, 1, FMC2_CFGR_CLKDIV_MAX) : 1; in stm32_fmc2_ebi_mp25_set_clk_period()
849 val = setup ? clamp_val(setup - 1, 1, FMC2_BTR_CLKDIV_MAX) : 1; in stm32_fmc2_ebi_mp25_set_clk_period()
859 int cs, u32 setup) in stm32_fmc2_ebi_set_data_latency() argument
863 val = setup > 1 ? min_t(u32, setup - 2, FMC2_BTR_DATLAT_MAX) : 0; in stm32_fmc2_ebi_set_data_latency()
872 int cs, u32 setup) in stm32_fmc2_ebi_set_max_low_pulse() argument
877 if (setup < 1) in stm32_fmc2_ebi_set_max_low_pulse()
889 new_val = min_t(u32, setup - 1, FMC2_PCSCNTR_CSCOUNT_MAX); in stm32_fmc2_ebi_set_max_low_pulse()
904 int cs, u32 setup) in stm32_fmc2_ebi_mp25_set_max_low_pulse() argument
908 if (setup == FMC2_CSCOUNT_0) in stm32_fmc2_ebi_mp25_set_max_low_pulse()
910 else if (setup == FMC2_CSCOUNT_1) in stm32_fmc2_ebi_mp25_set_max_low_pulse()
912 else if (setup <= FMC2_CSCOUNT_64) in stm32_fmc2_ebi_mp25_set_max_low_pulse()
1363 u32 setup = 0; in stm32_fmc2_ebi_parse_prop() local
1385 setup = 1; in stm32_fmc2_ebi_parse_prop()
1398 setup = prop->reset_val; in stm32_fmc2_ebi_parse_prop()
1400 setup = prop->calculate(ebi, cs, val); in stm32_fmc2_ebi_parse_prop()
1402 setup = val; in stm32_fmc2_ebi_parse_prop()
1405 return prop->set(ebi, prop, cs, setup); in stm32_fmc2_ebi_parse_prop()