Home
last modified time | relevance | path

Searched refs:period (Results 1 – 25 of 775) sorted by relevance

12345678910>>...31

/linux/lib/
A Dflex_proportions.c109 unsigned int period = p->period; in fprop_reflect_period_single() local
113 if (pl->period == period) in fprop_reflect_period_single()
117 if (pl->period >= period) { in fprop_reflect_period_single()
122 if (period - pl->period < BITS_PER_LONG) in fprop_reflect_period_single()
123 pl->events >>= period - pl->period; in fprop_reflect_period_single()
126 pl->period = period; in fprop_reflect_period_single()
192 unsigned int period = p->period; in fprop_reflect_period_percpu() local
196 if (pl->period == period) in fprop_reflect_period_percpu()
200 if (pl->period >= period) { in fprop_reflect_period_percpu()
205 if (period - pl->period < BITS_PER_LONG) { in fprop_reflect_period_percpu()
[all …]
/linux/drivers/gpu/drm/tegra/
A Dmipi-phy.c17 unsigned long period) in mipi_dphy_timing_get_default() argument
20 timing->clkpost = 70 + 52 * period; in mipi_dphy_timing_get_default()
30 timing->hsprepare = 65 + 5 * period; in mipi_dphy_timing_get_default()
31 timing->hszero = 145 + 5 * period; in mipi_dphy_timing_get_default()
32 timing->hssettle = 85 + 6 * period; in mipi_dphy_timing_get_default()
46 timing->hstrail = max(4 * 8 * period, 60 + 4 * 4 * period); in mipi_dphy_timing_get_default()
63 unsigned long period) in mipi_dphy_timing_validate() argument
89 if (timing->dtermen > 35 + 4 * period) in mipi_dphy_timing_validate()
92 if (timing->eot > 105 + 12 * period) in mipi_dphy_timing_validate()
99 timing->hsprepare > 85 + 6 * period) in mipi_dphy_timing_validate()
[all …]
/linux/drivers/iio/imu/inv_icm42600/
A Dinv_icm42600_timestamp.c44 uint32_t period) in inv_icm42600_timestamp_init() argument
51 ts->period = default_period; in inv_icm42600_timestamp_init()
71 uint32_t period, bool fifo) in inv_icm42600_timestamp_update_odr() argument
90 if (period > period_min && period < period_max) in inv_validate_period()
97 uint32_t mult, uint32_t period) in inv_compute_chip_period() argument
101 if (!inv_validate_period(period, mult)) in inv_compute_chip_period()
105 new_chip_period = period / mult; in inv_compute_chip_period()
118 uint32_t period = ts->period; in inv_icm42600_timestamp_interrupt() local
132 period = div_s64(delta, fifo_nb); in inv_icm42600_timestamp_interrupt()
157 m = INV_ICM42600_TIMESTAMP_MAX_PERIOD(ts->period) - ts->period; in inv_icm42600_timestamp_interrupt()
[all …]
/linux/drivers/pwm/
A Dpwm-visconti.c50 u32 period, duty_cycle, pwmc0; in visconti_pwm_apply() local
64 period = (0xffff << 3) * 1000; in visconti_pwm_apply()
66 period = state->period; in visconti_pwm_apply()
68 if (state->duty_cycle > period) in visconti_pwm_apply()
69 duty_cycle = period; in visconti_pwm_apply()
78 period /= 1000; in visconti_pwm_apply()
81 if (!period) in visconti_pwm_apply()
90 pwmc0 = fls(period >> 16); in visconti_pwm_apply()
94 period >>= pwmc0; in visconti_pwm_apply()
110 u32 period, duty, pwmc0, pwmc0_clk; in visconti_pwm_get_state() local
[all …]
A Dcore.c455 s2.period = s1.period; in pwm_apply_state_debug()
467 last->period > s2.period && in pwm_apply_state_debug()
468 last->period <= state->period) in pwm_apply_state_debug()
471 state->period, s2.period, last->period); in pwm_apply_state_debug()
476 state->period, s2.period); in pwm_apply_state_debug()
480 last->period == s2.period && in pwm_apply_state_debug()
606 pwm->state.period = state->period; in pwm_apply_state()
679 state.period = pargs.period; in pwm_adjust_config()
689 if (pargs.period != state.period) { in pwm_adjust_config()
694 state.period = pargs.period; in pwm_adjust_config()
[all …]
A Dpwm-ntxec.c59 int period, int duty) in ntxec_pwm_set_raw_period_and_duty_cycle() argument
75 { NTXEC_REG_PERIOD_HIGH, ntxec_reg8(period >> 8) }, in ntxec_pwm_set_raw_period_and_duty_cycle()
77 { NTXEC_REG_PERIOD_LOW, ntxec_reg8(period) }, in ntxec_pwm_set_raw_period_and_duty_cycle()
88 unsigned int period, duty; in ntxec_pwm_apply() local
94 period = min_t(u64, state->period, MAX_PERIOD_NS); in ntxec_pwm_apply()
95 duty = min_t(u64, state->duty_cycle, period); in ntxec_pwm_apply()
97 period /= TIME_BASE_NS; in ntxec_pwm_apply()
110 res = ntxec_pwm_set_raw_period_and_duty_cycle(chip, period, duty); in ntxec_pwm_apply()
A Dpwm-renesas-tpu.c77 u16 period; member
180 tpu_pwm_write(pwm, TPU_TGRBn, pwm->period); in tpu_pwm_timer_start()
183 pwm->channel, pwm->duty, pwm->period); in tpu_pwm_timer_start()
226 pwm->period = 0; in tpu_pwm_request()
253 u32 period; in tpu_pwm_config() local
264 period = clk_rate / prescalers[prescaler] in tpu_pwm_config()
266 if (period <= 0xffff) in tpu_pwm_config()
278 if (duty > period) in tpu_pwm_config()
288 if (pwm->prescaler == prescaler && pwm->period == period) in tpu_pwm_config()
292 pwm->period = period; in tpu_pwm_config()
[all …]
A Dpwm-fsl-ftm.c49 struct fsl_pwm_periodcfg period; member
125 rate = clk_get_rate(fpc->clk[fpc->period.clk_select]); in fsl_pwm_ticks_to_ns()
128 do_div(exval, rate >> fpc->period.clk_ps); in fsl_pwm_ticks_to_ns()
195 unsigned int period = fpc->period.mod_period + 1; in fsl_pwm_calculate_duty() local
196 unsigned int period_ns = fsl_pwm_ticks_to_ns(fpc, period); in fsl_pwm_calculate_duty()
198 duty = (unsigned long long)duty_ns * period; in fsl_pwm_calculate_duty()
258 if (fpc->period.clk_select != periodcfg.clk_select) { in fsl_pwm_apply_config()
260 enum fsl_pwm_clk oldclk = fpc->period.clk_select; in fsl_pwm_apply_config()
280 fpc->period = periodcfg; in fsl_pwm_apply_config()
488 clk_disable_unprepare(fpc->clk[fpc->period.clk_select]); in fsl_pwm_suspend()
[all …]
/linux/tools/perf/tests/
A Dhists_output.c54 struct perf_sample sample = { .period = 100, }; in add_hist_entries()
170 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
182 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
206 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
324 he->stat.period == 200); in test3()
330 he->stat.period == 100); in test3()
336 he->stat.period == 300); in test3()
342 he->stat.period == 200); in test3()
348 he->stat.period == 200); in test3()
535 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
A Dmt76x02_dfs.c289 pulse->period >= 6400) && in mt76x02_dfs_check_hw_pulse()
291 pulse->period >= 10200) && in mt76x02_dfs_check_hw_pulse()
306 pulse->period >= 12400) && in mt76x02_dfs_check_hw_pulse()
316 pulse->period >= 76900) && in mt76x02_dfs_check_hw_pulse()
333 pulse->period >= 6400) && in mt76x02_dfs_check_hw_pulse()
335 pulse->period >= 27560) && in mt76x02_dfs_check_hw_pulse()
337 pulse->period >= 28360) && in mt76x02_dfs_check_hw_pulse()
339 pulse->period >= 79900) && in mt76x02_dfs_check_hw_pulse()
344 pulse->period >= 27560) && in mt76x02_dfs_check_hw_pulse()
346 pulse->period >= 28360) && in mt76x02_dfs_check_hw_pulse()
[all …]
/linux/include/linux/
A Dpwm.h42 u64 period; member
63 u64 period; member
123 pwm->state.period = period; in pwm_set_period()
132 return state.period; in pwm_get_period()
193 state->period = args.period; in pwm_init_state()
215 if (!state->period) in pwm_get_relative_duty_cycle()
219 state->period); in pwm_get_relative_duty_cycle()
248 state->period, in pwm_set_relative_duty_cycle()
321 unsigned int period; member
577 state.period = pwm->args.period; in pwm_apply_args()
[all …]
/linux/Documentation/RCU/Design/Memory-Ordering/
A DTree-RCU-Memory-Ordering.rst13 grace-period memory ordering guarantee is provided.
22 period that are within RCU read-side critical sections.
35 the other of which is executed after the grace period.
75 the grace period in question.
330 Grace-period initialization is carried out by the grace-period kernel
382 grace period.
429 grace period, and thus a critical section that the grace period must
518 grace period.
573 cleanup is complete, the next grace period can begin.
615 period.
[all …]
/linux/drivers/watchdog/
A Dbooke_wdt.c60 static unsigned long long period_to_sec(unsigned int period) in period_to_sec() argument
62 unsigned long long tmp = 1ULL << (64 - period); in period_to_sec()
81 unsigned int period; in sec_to_period() local
82 for (period = 63; period > 0; period--) { in sec_to_period()
83 if (period_to_sec(period) >= secs) in sec_to_period()
84 return period; in sec_to_period()
93 static unsigned long long period_to_sec(unsigned int period) in period_to_sec() argument
95 return period; in period_to_sec()
A Dnic7018_wdt.c47 u32 period; member
52 u32 period; member
61 static inline u32 nic7018_timeout(u32 period, u8 counter) in nic7018_timeout() argument
63 return period * counter - period / 2; in nic7018_timeout()
98 wdd->timeout = nic7018_timeout(config->period, counter); in nic7018_set_timeout()
99 wdt->period = config->period; in nic7018_set_timeout()
151 return nic7018_timeout(wdt->period, count); in nic7018_get_timeleft()
/linux/Documentation/RCU/Design/Expedited-Grace-Periods/
A DExpedited-Grace-Periods.rst23 grace period.
32 state, the expedited grace period has completed.
43 expedited grace period is shown in the following diagram:
54 Otherwise, the expedited grace period will use
75 the CPU is no longer blocking the grace period.
170 period.
270 grace period.
272 period.
420 previous grace period's wakeups complete before the next grace period's
448 | grace period in progress, in which case the normal grace period |
[all …]
/linux/drivers/scsi/
A Dscsi_transport_spi.c417 if (period < 0 || period > 0xff) { in period_to_str()
465 period = j; in store_spi_transport_period_helper()
469 if (period == -1) in store_spi_transport_period_helper()
473 period = 0xff; in store_spi_transport_period_helper()
786 period = newperiod > period ? newperiod : period; in spi_dv_retrain()
788 period++; in spi_dv_retrain()
790 period += period >> 1; in spi_dv_retrain()
792 if (unlikely(period > 0xff || period == prevperiod)) { in spi_dv_retrain()
799 DV_SET(period, period); in spi_dv_retrain()
1198 msg[3] = period; in spi_populate_sync_msg()
[all …]
/linux/drivers/char/hw_random/
A Dtimeriomem-rng.c35 ktime_t period; member
50 int period_us = ktime_to_us(priv->period); in timeriomem_rng_read()
86 hrtimer_forward_now(&priv->timer, priv->period); in timeriomem_rng_read()
109 int period; in timeriomem_rng_probe() local
139 period = i; in timeriomem_rng_probe()
151 period = pdata->period; in timeriomem_rng_probe()
155 priv->period = ns_to_ktime(period * NSEC_PER_USEC); in timeriomem_rng_probe()
179 priv->io_base, period); in timeriomem_rng_probe()
/linux/Documentation/devicetree/bindings/input/
A Drotary-encoder.txt17 - rotary-encoder,steps-per-period: Number of steps (stable states) per period.
19 1: Full-period mode (default)
20 2: Half-period mode
21 4: Quarter-period mode
27 - rotary-encoder,half-period: Makes the driver work on half-period mode.
28 This property is deprecated. Instead, a 'steps-per-period ' value should
29 be used, such as "rotary-encoder,steps-per-period = <2>".
/linux/drivers/iio/trigger/
A Diio-trig-hrtimer.c29 ktime_t period; member
57 u64 period; in iio_hrtimer_store_sampling_frequency() local
73 period = PSEC_PER_SEC; in iio_hrtimer_store_sampling_frequency()
74 do_div(period, val); in iio_hrtimer_store_sampling_frequency()
75 info->period = period; /* nS */ in iio_hrtimer_store_sampling_frequency()
104 hrtimer_forward_now(timer, info->period); in iio_hrtimer_trig_handler()
117 hrtimer_start(&trig_info->timer, trig_info->period, in iio_trig_hrtimer_set_state()
152 trig_info->period = NSEC_PER_SEC / trig_info->sampling_frequency[0]; in iio_trig_hrtimer_probe()
/linux/arch/m68k/atari/
A Datasound.c59 int period; in atari_mksound() local
74 period = PSG_FREQ / hz; in atari_mksound()
76 if (period > 0xfff) period = 0xfff; in atari_mksound()
80 sound_ym.wd_data = period & 0xff; in atari_mksound()
82 sound_ym.wd_data = (period >> 8) & 0xf; in atari_mksound()
/linux/drivers/input/misc/
A Dpwm-beeper.c23 unsigned long period; member
31 static int pwm_beeper_on(struct pwm_beeper *beeper, unsigned long period) in pwm_beeper_on() argument
39 state.period = period; in pwm_beeper_on()
72 unsigned long period = READ_ONCE(beeper->period); in pwm_beeper_work() local
74 if (period) in pwm_beeper_work()
75 pwm_beeper_on(beeper, period); in pwm_beeper_work()
99 beeper->period = 0; in pwm_beeper_event()
101 beeper->period = HZ_TO_NANOSECONDS(value); in pwm_beeper_event()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
A Dpower.c153 if (period <= IWL_DTIM_RANGE_1_MAX) in iwl_static_sleep_cmd()
155 if (period <= IWL_DTIM_RANGE_0_MAX) in iwl_static_sleep_cmd()
159 if (period <= IWL_DTIM_RANGE_1_MAX) in iwl_static_sleep_cmd()
161 if (period <= IWL_DTIM_RANGE_0_MAX) in iwl_static_sleep_cmd()
170 if (period == 0) { in iwl_static_sleep_cmd()
172 period = 1; in iwl_static_sleep_cmd()
187 cpu_to_le32(period * (skip + 1)); in iwl_static_sleep_cmd()
190 if (slp_itrvl > period) in iwl_static_sleep_cmd()
192 cpu_to_le32((slp_itrvl / period) * period); in iwl_static_sleep_cmd()
220 (max_sleep[i] * period)) in iwl_static_sleep_cmd()
[all …]
/linux/arch/m68k/amiga/
A Damisound.c82 unsigned long period = (clock_constant / hz); in amiga_mksound() local
84 if (period < amiga_audio_min_period) in amiga_mksound()
85 period = amiga_audio_min_period; in amiga_mksound()
86 if (period > MAX_PERIOD) in amiga_mksound()
87 period = MAX_PERIOD; in amiga_mksound()
92 custom.aud[2].audper = (unsigned short)period; in amiga_mksound()
/linux/arch/powerpc/platforms/52xx/
A Dmpc52xx_gpt.c404 clocks = period * (u64)gpt->ipb_freq; in mpc52xx_gpt_do_start()
492 u64 period; in mpc52xx_gpt_timer_period() local
497 period = in_be32(&gpt->regs->count); in mpc52xx_gpt_timer_period()
500 prescale = period >> 16; in mpc52xx_gpt_timer_period()
501 period &= 0xffff; in mpc52xx_gpt_timer_period()
504 period = period * prescale * 1000000000ULL; in mpc52xx_gpt_timer_period()
505 do_div(period, (u64)gpt->ipb_freq); in mpc52xx_gpt_timer_period()
506 return period; in mpc52xx_gpt_timer_period()
676 const u32 *period) in mpc52xx_gpt_wdt_setup() argument
684 if (!period || *period == 0) in mpc52xx_gpt_wdt_setup()
[all …]
/linux/drivers/md/
A Dmd-faulty.c77 int period[Modes]; member
87 if (conf->period[mode] == 0 && in check_mode()
93 if (conf->period[mode]) in check_mode()
228 n, conf->period[WriteTransient]); in faulty_status()
232 n, conf->period[ReadTransient]); in faulty_status()
236 n, conf->period[WritePersistent]); in faulty_status()
240 n, conf->period[ReadPersistent]); in faulty_status()
245 n, conf->period[ReadFixable]); in faulty_status()
269 conf->period[i] = 0; in faulty_reshape()
273 conf->period[mode] = count; in faulty_reshape()
[all …]

Completed in 66 milliseconds

12345678910>>...31