Home
last modified time | relevance | path

Searched refs:ncycles (Results 1 – 4 of 4) sorted by relevance

/drivers/mfd/
Datmel-smc.c43 static int atmel_smc_cs_encode_ncycles(unsigned int ncycles, in atmel_smc_cs_encode_ncycles() argument
54 msb = ncycles / msbfactor; in atmel_smc_cs_encode_ncycles()
55 lsb = ncycles % msbfactor; in atmel_smc_cs_encode_ncycles()
94 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_timing() argument
112 ret = atmel_smc_cs_encode_ncycles(ncycles, 3, 1, 64, &val); in atmel_smc_cs_conf_set_timing()
136 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_setup() argument
151 ret = atmel_smc_cs_encode_ncycles(ncycles, 5, 1, 128, &val); in atmel_smc_cs_conf_set_setup()
175 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_pulse() argument
190 ret = atmel_smc_cs_encode_ncycles(ncycles, 6, 1, 256, &val); in atmel_smc_cs_conf_set_pulse()
214 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_cycle() argument
[all …]
/drivers/mtd/nand/raw/atmel/
Dnand-controller.c1174 u32 ncycles, totalcycles, timeps, mckperiodps; in atmel_smc_nand_prepare_smcconf() local
1201 ncycles = DIV_ROUND_UP(conf->timings.sdr.tWP_min, mckperiodps); in atmel_smc_nand_prepare_smcconf()
1202 totalcycles = ncycles; in atmel_smc_nand_prepare_smcconf()
1204 ncycles); in atmel_smc_nand_prepare_smcconf()
1222 ncycles = DIV_ROUND_UP(timeps, mckperiodps); in atmel_smc_nand_prepare_smcconf()
1223 ncycles = ncycles > totalcycles ? ncycles - totalcycles : 0; in atmel_smc_nand_prepare_smcconf()
1224 totalcycles += ncycles; in atmel_smc_nand_prepare_smcconf()
1226 ncycles); in atmel_smc_nand_prepare_smcconf()
1240 ncycles = DIV_ROUND_UP(timeps, mckperiodps); in atmel_smc_nand_prepare_smcconf()
1241 totalcycles += ncycles; in atmel_smc_nand_prepare_smcconf()
[all …]
/drivers/memory/
Datmel-ebi.c118 unsigned int ncycles; in atmel_ebi_xslate_smc_timings() local
125 ncycles = DIV_ROUND_UP(val, clk_period_ns); in atmel_ebi_xslate_smc_timings()
126 if (ncycles > ATMEL_SMC_MODE_TDF_MAX) { in atmel_ebi_xslate_smc_timings()
131 if (ncycles < ATMEL_SMC_MODE_TDF_MIN) in atmel_ebi_xslate_smc_timings()
132 ncycles = ATMEL_SMC_MODE_TDF_MIN; in atmel_ebi_xslate_smc_timings()
134 smcconf->mode |= ATMEL_SMC_MODE_TDF(ncycles); in atmel_ebi_xslate_smc_timings()
155 ncycles = DIV_ROUND_UP(val, clk_period_ns); in atmel_ebi_xslate_smc_timings()
156 ret = xlate->converter(smcconf, xlate->shift, ncycles); in atmel_ebi_xslate_smc_timings()
/drivers/i3c/master/
Di3c-master-cdns.c1057 unsigned long i3c_lim_period, pres_step, ncycles; in cdns_i3c_master_upd_i3c_scl_lim() local
1106 ncycles = DIV_ROUND_UP(i3c_lim_period, pres_step); in cdns_i3c_master_upd_i3c_scl_lim()
1107 if (ncycles < 4) in cdns_i3c_master_upd_i3c_scl_lim()
1108 ncycles = 0; in cdns_i3c_master_upd_i3c_scl_lim()
1110 ncycles -= 4; in cdns_i3c_master_upd_i3c_scl_lim()
1112 prescl1 |= PRESCL_CTRL1_PP_LOW(ncycles); in cdns_i3c_master_upd_i3c_scl_lim()
1191 int ret, ncycles; in cdns_i3c_master_bus_init() local
1238 ncycles = DIV_ROUND_UP(I3C_BUS_TLOW_OD_MIN_NS, pres_step) - 2; in cdns_i3c_master_bus_init()
1239 if (ncycles < 0) in cdns_i3c_master_bus_init()
1240 ncycles = 0; in cdns_i3c_master_bus_init()
[all …]