Lines Matching refs:setup

171 	u32 (*calculate)(struct stm32_fmc2_ebi *ebi, int cs, u32 setup);
174 int cs, u32 setup);
295 int cs, u32 setup) in stm32_fmc2_ebi_ns_to_clock_cycles() argument
300 return DIV_ROUND_UP(setup * 1000, hclkp); in stm32_fmc2_ebi_ns_to_clock_cycles()
304 int cs, u32 setup) in stm32_fmc2_ebi_ns_to_clk_period() argument
306 u32 nb_clk_cycles = stm32_fmc2_ebi_ns_to_clock_cycles(ebi, cs, setup); in stm32_fmc2_ebi_ns_to_clk_period()
344 int cs, u32 setup) in stm32_fmc2_ebi_set_bit_field() argument
354 setup ? prop->reg_mask : 0); in stm32_fmc2_ebi_set_bit_field()
361 int cs, u32 setup) in stm32_fmc2_ebi_set_trans_type() argument
373 switch (setup) { in stm32_fmc2_ebi_set_trans_type()
494 int cs, u32 setup) in stm32_fmc2_ebi_set_buswidth() argument
498 switch (setup) { in stm32_fmc2_ebi_set_buswidth()
517 int cs, u32 setup) in stm32_fmc2_ebi_set_cpsize() argument
521 switch (setup) { in stm32_fmc2_ebi_set_cpsize()
549 int cs, u32 setup) in stm32_fmc2_ebi_set_bl_setup() argument
553 val = min_t(u32, setup, FMC2_BCR_NBLSET_MAX); in stm32_fmc2_ebi_set_bl_setup()
562 int cs, u32 setup) in stm32_fmc2_ebi_set_address_setup() argument
579 val = clamp_val(setup, 1, FMC2_BXTR_ADDSET_MAX); in stm32_fmc2_ebi_set_address_setup()
581 val = min_t(u32, setup, FMC2_BXTR_ADDSET_MAX); in stm32_fmc2_ebi_set_address_setup()
590 int cs, u32 setup) in stm32_fmc2_ebi_set_address_hold() argument
599 val = clamp_val(setup, 1, FMC2_BXTR_ADDHLD_MAX); in stm32_fmc2_ebi_set_address_hold()
608 int cs, u32 setup) in stm32_fmc2_ebi_set_data_setup() argument
617 val = clamp_val(setup, 1, FMC2_BXTR_DATAST_MAX); in stm32_fmc2_ebi_set_data_setup()
626 int cs, u32 setup) in stm32_fmc2_ebi_set_bus_turnaround() argument
635 val = setup ? min_t(u32, setup - 1, FMC2_BXTR_BUSTURN_MAX) : 0; in stm32_fmc2_ebi_set_bus_turnaround()
644 int cs, u32 setup) in stm32_fmc2_ebi_set_data_hold() argument
654 val = setup ? min_t(u32, setup - 1, FMC2_BXTR_DATAHLD_MAX) : 0; in stm32_fmc2_ebi_set_data_hold()
656 val = min_t(u32, setup, FMC2_BXTR_DATAHLD_MAX); in stm32_fmc2_ebi_set_data_hold()
665 int cs, u32 setup) in stm32_fmc2_ebi_set_clk_period() argument
669 val = setup ? clamp_val(setup - 1, 1, FMC2_BTR_CLKDIV_MAX) : 1; in stm32_fmc2_ebi_set_clk_period()
678 int cs, u32 setup) in stm32_fmc2_ebi_set_data_latency() argument
682 val = setup > 1 ? min_t(u32, setup - 2, FMC2_BTR_DATLAT_MAX) : 0; in stm32_fmc2_ebi_set_data_latency()
691 int cs, u32 setup) in stm32_fmc2_ebi_set_max_low_pulse() argument
695 if (setup < 1) in stm32_fmc2_ebi_set_max_low_pulse()
705 new_val = min_t(u32, setup - 1, FMC2_PCSCNTR_CSCOUNT_MAX); in stm32_fmc2_ebi_set_max_low_pulse()
889 u32 setup = 0; in stm32_fmc2_ebi_parse_prop() local
911 setup = 1; in stm32_fmc2_ebi_parse_prop()
924 setup = prop->reset_val; in stm32_fmc2_ebi_parse_prop()
926 setup = prop->calculate(ebi, cs, val); in stm32_fmc2_ebi_parse_prop()
928 setup = val; in stm32_fmc2_ebi_parse_prop()
931 return prop->set(ebi, prop, cs, setup); in stm32_fmc2_ebi_parse_prop()