Home
last modified time | relevance | path

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

/linux-5.19.10/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 …]
/linux-5.19.10/include/linux/mfd/syscon/
Datmel-smc.h99 unsigned int ncycles);
101 unsigned int shift, unsigned int ncycles);
103 unsigned int shift, unsigned int ncycles);
105 unsigned int shift, unsigned int ncycles);
/linux-5.19.10/drivers/mtd/nand/raw/atmel/
Dnand-controller.c1242 u32 ncycles, totalcycles, timeps, mckperiodps; in atmel_smc_nand_prepare_smcconf() local
1269 ncycles = DIV_ROUND_UP(conf->timings.sdr.tWP_min, mckperiodps); in atmel_smc_nand_prepare_smcconf()
1270 totalcycles = ncycles; in atmel_smc_nand_prepare_smcconf()
1272 ncycles); in atmel_smc_nand_prepare_smcconf()
1290 ncycles = DIV_ROUND_UP(timeps, mckperiodps); in atmel_smc_nand_prepare_smcconf()
1291 ncycles = ncycles > totalcycles ? ncycles - totalcycles : 0; in atmel_smc_nand_prepare_smcconf()
1292 totalcycles += ncycles; in atmel_smc_nand_prepare_smcconf()
1294 ncycles); in atmel_smc_nand_prepare_smcconf()
1308 ncycles = DIV_ROUND_UP(timeps, mckperiodps); in atmel_smc_nand_prepare_smcconf()
1309 totalcycles += ncycles; in atmel_smc_nand_prepare_smcconf()
[all …]
/linux-5.19.10/arch/riscv/lib/
Ddelay.c108 unsigned long long ncycles = nsecs * lpj_fine * NDELAY_MULT; in ndelay() local
109 __delay(ncycles >> NDELAY_SHIFT); in ndelay()
/linux-5.19.10/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.c426 rpc->dummy = RPCIF_SMDMCR_DMCYC(op->dummy.ncycles / in rpcif_prepare()
/linux-5.19.10/sound/ppc/
Dbeep.c94 int period, ncycles, nsamples; in snd_pmac_beep_event() local
140 ncycles = BEEP_BUFLEN * 256 / period; in snd_pmac_beep_event()
141 nsamples = (period * ncycles) >> 8; in snd_pmac_beep_event()
142 f = ncycles * 65536 / nsamples; in snd_pmac_beep_event()
/linux-5.19.10/arch/riscv/kvm/
Dvcpu_timer.c72 int kvm_riscv_vcpu_timer_next_event(struct kvm_vcpu *vcpu, u64 ncycles) in kvm_riscv_vcpu_timer_next_event() argument
83 delta_ns = kvm_riscv_delta_cycles2ns(ncycles, gt, t); in kvm_riscv_vcpu_timer_next_event()
84 t->next_cycles = ncycles; in kvm_riscv_vcpu_timer_next_event()
/linux-5.19.10/arch/riscv/include/asm/
Dkvm_vcpu_timer.h33 int kvm_riscv_vcpu_timer_next_event(struct kvm_vcpu *vcpu, u64 ncycles);
/linux-5.19.10/drivers/i3c/master/
Di3c-master-cdns.c1065 unsigned long i3c_lim_period, pres_step, ncycles; in cdns_i3c_master_upd_i3c_scl_lim() local
1114 ncycles = DIV_ROUND_UP(i3c_lim_period, pres_step); in cdns_i3c_master_upd_i3c_scl_lim()
1115 if (ncycles < 4) in cdns_i3c_master_upd_i3c_scl_lim()
1116 ncycles = 0; in cdns_i3c_master_upd_i3c_scl_lim()
1118 ncycles -= 4; in cdns_i3c_master_upd_i3c_scl_lim()
1120 prescl1 |= PRESCL_CTRL1_PP_LOW(ncycles); in cdns_i3c_master_upd_i3c_scl_lim()
1213 int ret, ncycles; in cdns_i3c_master_bus_init() local
1260 ncycles = DIV_ROUND_UP(I3C_BUS_TLOW_OD_MIN_NS, pres_step) - 2; in cdns_i3c_master_bus_init()
1261 if (ncycles < 0) in cdns_i3c_master_bus_init()
1262 ncycles = 0; in cdns_i3c_master_bus_init()
[all …]
/linux-5.19.10/include/memory/
Drenesas-rpc-if.h37 u8 ncycles; member
/linux-5.19.10/drivers/mtd/hyperbus/
Drpc-if.c54 op.dummy.ncycles = 15; in rpcif_hb_prepare_read()
/linux-5.19.10/drivers/spi/
Dspi-rpc-if.c37 rpc_op.dummy.ncycles = spi_op->dummy.nbytes * 8 / in rpcif_spi_mem_prepare()
/linux-5.19.10/include/linux/mtd/
Drawnand.h779 #define NAND_OP_ADDR(ncycles, cycles, ns) \ argument
783 .naddrs = ncycles, \