Home
last modified time | relevance | path

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

12345678910>>...44

/openbmc/linux/drivers/gpu/drm/tegra/
H 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 …]
/openbmc/linux/lib/
H A Dflex_proportions.c105 unsigned int period = p->period; in fprop_reflect_period_single() local
109 if (pl->period == period) in fprop_reflect_period_single()
113 if (pl->period >= period) { in fprop_reflect_period_single()
118 if (period - pl->period < BITS_PER_LONG) in fprop_reflect_period_single()
119 pl->events >>= period - pl->period; in fprop_reflect_period_single()
122 pl->period = period; in fprop_reflect_period_single()
188 unsigned int period = p->period; in fprop_reflect_period_percpu() local
192 if (pl->period == period) in fprop_reflect_period_percpu()
196 if (pl->period >= period) { in fprop_reflect_period_percpu()
201 if (period - pl->period < BITS_PER_LONG) { in fprop_reflect_period_percpu()
[all …]
/openbmc/linux/drivers/pwm/
H 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 …]
H A Dcore.c419 s2.period = s1.period; in pwm_apply_debug()
431 last->period > s2.period && in pwm_apply_debug()
432 last->period <= state->period) in pwm_apply_debug()
435 state->period, s2.period, last->period); in pwm_apply_debug()
440 state->period, s2.period); in pwm_apply_debug()
444 last->period == s2.period && in pwm_apply_debug()
516 if (state->period == pwm->state.period && in pwm_apply_might_sleep()
593 state.period = pargs.period; in pwm_adjust_config()
603 if (pargs.period != state.period) { in pwm_adjust_config()
608 state.period = pargs.period; in pwm_adjust_config()
[all …]
H A Dpwm-ntxec.c58 int period, int duty) in ntxec_pwm_set_raw_period_and_duty_cycle() argument
74 { NTXEC_REG_PERIOD_HIGH, ntxec_reg8(period >> 8) }, in ntxec_pwm_set_raw_period_and_duty_cycle()
76 { NTXEC_REG_PERIOD_LOW, ntxec_reg8(period) }, in ntxec_pwm_set_raw_period_and_duty_cycle()
87 unsigned int period, duty; in ntxec_pwm_apply() local
93 period = min_t(u64, state->period, MAX_PERIOD_NS); in ntxec_pwm_apply()
94 duty = min_t(u64, state->duty_cycle, period); in ntxec_pwm_apply()
96 period /= TIME_BASE_NS; in ntxec_pwm_apply()
109 res = ntxec_pwm_set_raw_period_and_duty_cycle(chip, period, duty); in ntxec_pwm_apply()
H A Dpwm-renesas-tpu.c77 u16 period; member
180 tpu_pwm_write(tpd, TPU_TGRBn, tpd->period); in tpu_pwm_timer_start()
183 tpd->channel, tpd->duty, tpd->period); in tpu_pwm_timer_start()
226 tpd->period = 0; in tpu_pwm_request()
252 u64 period; in tpu_pwm_config() local
281 switch (period) { in tpu_pwm_config()
302 period >>= 2 * prescaler; in tpu_pwm_config()
314 if (tpd->prescaler == prescaler && tpd->period == period) in tpu_pwm_config()
318 tpd->period = period; in tpu_pwm_config()
341 if (duty == 0 || duty == period) { in tpu_pwm_config()
[all …]
/openbmc/linux/drivers/iio/common/inv_sensors/
H A Dinv_sensors_timestamp.c53 ts->period = chip->init_period; in inv_sensors_timestamp_init()
61 uint32_t period, bool fifo) in inv_sensors_timestamp_update_odr() argument
69 mult = period / ts->chip.clock_period; in inv_sensors_timestamp_update_odr()
84 if (period > period_min && period < period_max) in inv_validate_period()
91 uint32_t mult, uint32_t period) in inv_update_chip_period() argument
95 if (!inv_validate_period(ts, period, mult)) in inv_update_chip_period()
99 new_chip_period = period / mult; in inv_update_chip_period()
118 add_max = period_max - (int64_t)ts->period; in inv_align_timestamp_it()
119 sub_max = period_min - (int64_t)ts->period; in inv_align_timestamp_it()
138 uint32_t period = ts->period; in inv_sensors_timestamp_interrupt() local
[all …]
/openbmc/qemu/hw/core/
H A Dptimer.c28 int64_t period; member
54 uint64_t period; in ptimer_reload() local
79 period = s->period; in ptimer_reload()
143 period = 10000 / delta; in ptimer_reload()
223 uint64_t period = s->period; in ptimer_get_count() local
227 period = 10000 / s->delta; in ptimer_get_count()
242 div = period; in ptimer_get_count()
344 s->period = period; in ptimer_set_period()
374 s->period *= divisor; in ptimer_set_period_from_clock()
389 s->period = 1000000000ll / freq; in ptimer_set_freq()
[all …]
H A Dclock.c55 bool clock_set(Clock *clk, uint64_t period) in clock_set() argument
57 if (clk->period == period) { in clock_set()
60 trace_clock_set(CLOCK_PATH(clk), CLOCK_PERIOD_TO_HZ(clk->period), in clock_set()
61 CLOCK_PERIOD_TO_HZ(period)); in clock_set()
62 clk->period = period; in clock_set()
73 return muldiv64(clk->period, clk->multiplier, clk->divider); in clock_get_child_period()
93 if (child->period != child_period) { in clock_propagate_period()
97 child->period = child_period; in clock_propagate_period()
99 CLOCK_PERIOD_TO_HZ(child->period), in clock_propagate_period()
122 clk->period = clock_get_child_period(src); in clock_set_source()
/openbmc/qemu/util/
H A Dtimed-average.c58 int64_t period) in update_expiration() argument
61 int64_t elapsed = (now - w->expiration) % period; in update_expiration()
63 int64_t remaining = period - elapsed; in update_expiration()
98 uint64_t period) in timed_average_init() argument
107 ta->period = (uint64_t) period * 4 / 3; in timed_average_init()
115 ta->windows[0].expiration = now + ta->period / 2; in timed_average_init()
116 ta->windows[1].expiration = now + ta->period; in timed_average_init()
131 assert(ta->period != 0); in check_expirations()
138 update_expiration(w, now, ta->period); in check_expirations()
152 *elapsed = ta->period - remaining; in check_expirations()
/openbmc/linux/tools/perf/tests/
H A Dhists_output.c54 struct perf_sample sample = { .period = 100, }; in add_hist_entries()
183 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
195 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
219 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
337 he->stat.period == 200); in test3()
343 he->stat.period == 100); in test3()
349 he->stat.period == 300); in test3()
355 he->stat.period == 200); in test3()
361 he->stat.period == 200); in test3()
548 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
[all …]
/openbmc/linux/include/linux/
H A Dpwm.h39 u64 period; member
60 u64 period; member
120 pwm->state.period = period; in pwm_set_period()
129 return state.period; in pwm_get_period()
190 state->period = args.period; in pwm_init_state()
212 if (!state->period) in pwm_get_relative_duty_cycle()
216 state->period); in pwm_get_relative_duty_cycle()
245 state->period, in pwm_set_relative_duty_cycle()
257 unsigned int period; member
536 state.period = pwm->args.period; in pwm_apply_args()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H 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 …]
/openbmc/linux/drivers/watchdog/
H 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()
/openbmc/linux/drivers/char/hw_random/
H 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()
149 period = pdata->period; in timeriomem_rng_probe()
153 priv->period = ns_to_ktime(period * NSEC_PER_USEC); in timeriomem_rng_probe()
172 priv->io_base, period); in timeriomem_rng_probe()
/openbmc/linux/arch/m68k/atari/
H 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()
/openbmc/linux/Documentation/RCU/Design/Memory-Ordering/
H 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 …]
/openbmc/linux/Documentation/devicetree/bindings/input/
H 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>".
/openbmc/linux/arch/m68k/amiga/
H 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()
/openbmc/linux/drivers/iio/trigger/
H 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()
/openbmc/linux/drivers/scsi/
H A Dscsi_transport_spi.c416 if (period < 0 || period > 0xff) { in period_to_str()
464 period = j; in store_spi_transport_period_helper()
468 if (period == -1) in store_spi_transport_period_helper()
472 period = 0xff; in store_spi_transport_period_helper()
785 period = newperiod > period ? newperiod : period; in spi_dv_retrain()
787 period++; in spi_dv_retrain()
789 period += period >> 1; in spi_dv_retrain()
791 if (unlikely(period > 0xff || period == prevperiod)) { in spi_dv_retrain()
798 DV_SET(period, period); in spi_dv_retrain()
1198 msg[3] = period; in spi_populate_sync_msg()
[all …]
/openbmc/linux/Documentation/RCU/Design/Expedited-Grace-Periods/
H 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 …]
/openbmc/linux/drivers/input/misc/
H 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()
/openbmc/linux/Documentation/litmus-tests/rcu/
H A DRCU+sync+free.litmus7 * follows a grace period, if it did not see writes that precede that grace
8 * period.
11 * period assigns a pointer, and the writes following the grace period destroy
14 * This is one implication of the RCU grace-period guarantee, which says (among
15 * other things) that an RCU read-side critical section cannot span a grace period.
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H 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 …]

12345678910>>...44