Home
last modified time | relevance | path

Searched refs:ncycles (Results 1 – 7 of 7) 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.c1243 u32 ncycles, totalcycles, timeps, mckperiodps; in atmel_smc_nand_prepare_smcconf() local
1270 ncycles = DIV_ROUND_UP(conf->timings.sdr.tWP_min, mckperiodps); in atmel_smc_nand_prepare_smcconf()
1271 totalcycles = ncycles; in atmel_smc_nand_prepare_smcconf()
1273 ncycles); in atmel_smc_nand_prepare_smcconf()
1291 ncycles = DIV_ROUND_UP(timeps, mckperiodps); in atmel_smc_nand_prepare_smcconf()
1292 ncycles = ncycles > totalcycles ? ncycles - totalcycles : 0; in atmel_smc_nand_prepare_smcconf()
1293 totalcycles += ncycles; in atmel_smc_nand_prepare_smcconf()
1295 ncycles); in atmel_smc_nand_prepare_smcconf()
1309 ncycles = DIV_ROUND_UP(timeps, mckperiodps); in atmel_smc_nand_prepare_smcconf()
1310 totalcycles += ncycles; in atmel_smc_nand_prepare_smcconf()
[all …]
/drivers/memory/
Datmel-ebi.c117 unsigned int ncycles; in atmel_ebi_xslate_smc_timings() local
124 ncycles = DIV_ROUND_UP(val, clk_period_ns); in atmel_ebi_xslate_smc_timings()
125 if (ncycles > ATMEL_SMC_MODE_TDF_MAX) { in atmel_ebi_xslate_smc_timings()
130 if (ncycles < ATMEL_SMC_MODE_TDF_MIN) in atmel_ebi_xslate_smc_timings()
131 ncycles = ATMEL_SMC_MODE_TDF_MIN; in atmel_ebi_xslate_smc_timings()
133 smcconf->mode |= ATMEL_SMC_MODE_TDF(ncycles); in atmel_ebi_xslate_smc_timings()
154 ncycles = DIV_ROUND_UP(val, clk_period_ns); in atmel_ebi_xslate_smc_timings()
155 ret = xlate->converter(smcconf, xlate->shift, ncycles); in atmel_ebi_xslate_smc_timings()
Drenesas-rpc-if.c413 rpc->dummy = RPCIF_SMDMCR_DMCYC(op->dummy.ncycles / in rpcif_prepare()
/drivers/i3c/master/
Di3c-master-cdns.c1066 unsigned long i3c_lim_period, pres_step, ncycles; in cdns_i3c_master_upd_i3c_scl_lim() local
1115 ncycles = DIV_ROUND_UP(i3c_lim_period, pres_step); in cdns_i3c_master_upd_i3c_scl_lim()
1116 if (ncycles < 4) in cdns_i3c_master_upd_i3c_scl_lim()
1117 ncycles = 0; in cdns_i3c_master_upd_i3c_scl_lim()
1119 ncycles -= 4; in cdns_i3c_master_upd_i3c_scl_lim()
1121 prescl1 |= PRESCL_CTRL1_PP_LOW(ncycles); in cdns_i3c_master_upd_i3c_scl_lim()
1214 int ret, ncycles; in cdns_i3c_master_bus_init() local
1261 ncycles = DIV_ROUND_UP(I3C_BUS_TLOW_OD_MIN_NS, pres_step) - 2; in cdns_i3c_master_bus_init()
1262 if (ncycles < 0) in cdns_i3c_master_bus_init()
1263 ncycles = 0; in cdns_i3c_master_bus_init()
[all …]
/drivers/mtd/hyperbus/
Drpc-if.c54 op.dummy.ncycles = 15; in rpcif_hb_prepare_read()
/drivers/spi/
Dspi-rpc-if.c37 rpc_op.dummy.ncycles = spi_op->dummy.nbytes * 8 / in rpcif_spi_mem_prepare()