Home
last modified time | relevance | path

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

12345678910>>...31

/kernel/linux/linux-5.10/lib/
Dflex_proportions.c42 p->period = 0; in fprop_global_init()
83 p->period += periods; in fprop_new_period()
97 pl->period = 0; in fprop_local_init_single()
109 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()
179 pl->period = 0; in fprop_local_init_percpu()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
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
68 if (timing->clkpost < (60 + 52 * period)) in mipi_dphy_timing_validate()
89 if (timing->dtermen > 35 + 4 * period) in mipi_dphy_timing_validate()
92 if (timing->eot > 105 + 12 * period) in mipi_dphy_timing_validate()
[all …]
/kernel/linux/linux-5.10/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_timestamp.c44 uint32_t period) in inv_icm42600_timestamp_init() argument
51 ts->period = default_period; in inv_icm42600_timestamp_init()
53 ts->new_mult = period / INV_ICM42600_TIMESTAMP_PERIOD; in inv_icm42600_timestamp_init()
71 uint32_t period, bool fifo) in inv_icm42600_timestamp_update_odr() argument
77 ts->new_mult = period / INV_ICM42600_TIMESTAMP_PERIOD; in inv_icm42600_timestamp_update_odr()
82 static bool inv_validate_period(uint32_t period, uint32_t mult) in inv_validate_period() 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()
[all …]
/kernel/linux/linux-5.10/drivers/pwm/
Dcore.c154 pwm->args.period = args->args[1]; in of_pwm_xlate_with_flags()
184 pwm->args.period = args->args[1]; in of_pwm_simple_xlate()
497 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug()
498 s2.period = s1.period; in pwm_apply_state_debug()
505 state->duty_cycle < state->period) in pwm_apply_state_debug()
510 last->period > s2.period && in pwm_apply_state_debug()
511 last->period <= state->period) in pwm_apply_state_debug()
514 state->period, s2.period, last->period); in pwm_apply_state_debug()
516 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug()
519 state->period, s2.period); in pwm_apply_state_debug()
[all …]
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()
270 if (prescaler == ARRAY_SIZE(prescalers) || period == 0) { in tpu_pwm_config()
278 if (duty > period) in tpu_pwm_config()
286 clk_rate, prescalers[prescaler], period, duty); in tpu_pwm_config()
[all …]
Dpwm-crc.c61 if (state->period > PWM_MAX_PERIOD_NS) { in crc_pwm_apply()
78 pwm_get_period(pwm) != state->period) { in crc_pwm_apply()
81 do_div(level, state->period); in crc_pwm_apply()
91 pwm_get_period(pwm) != state->period) { in crc_pwm_apply()
100 if (pwm_get_period(pwm) != state->period || in crc_pwm_apply()
102 int clk_div = crc_pwm_calc_clk_div(state->period); in crc_pwm_apply()
146 state->period = in crc_pwm_get_state()
149 DIV_ROUND_UP_ULL(duty_cycle_reg * state->period, PWM_MAX_LEVEL); in crc_pwm_get_state()
/kernel/linux/linux-5.10/tools/perf/tests/
Dhists_output.c54 struct perf_sample sample = { .period = 100, }; in add_hist_entries()
170 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
176 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
182 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
188 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test1()
194 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
200 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test1()
206 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
212 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test1()
218 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test1()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmt76x02_dfs.c257 pulse->period = mt76_rr(dev, MT_BBP(DFS, 19)); in mt76x02_dfs_get_hw_pulse()
272 if (!pulse->period || !pulse->w1) in mt76x02_dfs_check_hw_pulse()
287 ret = (pulse->period >= 2900 && in mt76x02_dfs_check_hw_pulse()
288 (pulse->period <= 4700 || in mt76x02_dfs_check_hw_pulse()
289 pulse->period >= 6400) && in mt76x02_dfs_check_hw_pulse()
290 (pulse->period <= 6800 || in mt76x02_dfs_check_hw_pulse()
291 pulse->period >= 10200) && in mt76x02_dfs_check_hw_pulse()
292 pulse->period <= 61600); in mt76x02_dfs_check_hw_pulse()
294 ret = (pulse->period >= 2900 && in mt76x02_dfs_check_hw_pulse()
295 pulse->period <= 61600); in mt76x02_dfs_check_hw_pulse()
[all …]
/kernel/linux/linux-5.10/drivers/watchdog/
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()
/kernel/linux/linux-5.10/include/linux/
Dpwm.h42 u64 period; member
59 u64 period; member
110 static inline void pwm_set_period(struct pwm_device *pwm, u64 period) in pwm_set_period() argument
113 pwm->state.period = period; in pwm_set_period()
122 return state.period; in pwm_get_period()
183 state->period = args.period; in pwm_init_state()
204 if (!state->period) in pwm_get_relative_duty_cycle()
208 state->period); in pwm_get_relative_duty_cycle()
237 state->period, in pwm_set_relative_duty_cycle()
310 unsigned int period; member
[all …]
/kernel/linux/linux-5.10/drivers/char/hw_random/
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()
/kernel/linux/linux-5.10/Documentation/RCU/Design/Memory-Ordering/
DTree-RCU-Memory-Ordering.rst13 grace-period memory ordering guarantee is provided.
20 Any code that happens after the end of a given RCU grace period is guaranteed
22 period that are within RCU read-side critical sections.
24 period is guaranteed to see the effects of all accesses following the end
25 of that grace period that are within RCU read-side critical sections.
34 two phases, one of which is executed before the grace period and
35 the other of which is executed after the grace period.
49 The workhorse for RCU's grace-period memory ordering is the
74 period, including any CPUs that came online or went offline during
75 the grace period in question.
[all …]
/kernel/linux/linux-5.10/arch/m68k/atari/
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()
/kernel/liteos_a/kernel/extended/perf/pmu/
Dperf_timed_pmu.c39 STATIC BOOL OsPerfTimedPeriodValid(UINT32 period) in OsPerfTimedPeriodValid() argument
41 return period >= TIMER_PERIOD_LOWER_BOUND_US; in OsPerfTimedPeriodValid()
82 UINT32 period = event->period; in OsPerfTimedConfig() local
84 if (!OsPerfTimedPeriodValid(period)) { in OsPerfTimedConfig()
85 period = TIMER_PERIOD_LOWER_BOUND_US; in OsPerfTimedConfig()
86 … PRINT_ERR("config period invalid, should be >= 100, use default period:%u us\n", period); in OsPerfTimedConfig()
90 .tv.sec = period / US_PER_SECOND, in OsPerfTimedConfig()
91 .tv.usec = period % US_PER_SECOND in OsPerfTimedConfig()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/
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>".
/kernel/linux/linux-5.10/drivers/scsi/
Dscsi_transport_spi.c413 static int period_to_str(char *buf, int period) in period_to_str() argument
417 if (period < 0 || period > 0xff) { in period_to_str()
419 } else if (period <= SPI_STATIC_PPR) { in period_to_str()
420 picosec = ppr_to_ps[period]; in period_to_str()
422 picosec = period * 4000; in period_to_str()
435 show_spi_transport_period_helper(char *buf, int period) in show_spi_transport_period_helper() argument
437 int len = period_to_str(buf, period); in show_spi_transport_period_helper()
447 int j, picosec, period = -1; in store_spi_transport_period_helper() local
465 period = j; in store_spi_transport_period_helper()
469 if (period == -1) in store_spi_transport_period_helper()
[all …]
/kernel/linux/linux-5.10/Documentation/RCU/Design/Expedited-Grace-Periods/
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
72 block the current expedited grace period until it resumes and finds its
75 the CPU is no longer blocking the grace period.
86 | Why not just have the expedited grace period check the state of all |
116 the handling of a given CPU by an RCU-sched expedited grace period is
153 period. Note that this number never decreases, at least in the
159 beginning of the most recent RCU expedited grace period. The
[all …]
/kernel/linux/linux-5.10/arch/m68k/amiga/
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()
/kernel/liteos_a/arch/arm/arm/src/pmu/
Darmv7_pmu.c76 STATIC INLINE VOID Armv7PmuSetCntPeriod(UINT32 index, UINT32 period) in Armv7PmuSetCntPeriod() argument
81 __asm__ volatile("mcr p15, 0, %0, c9, c13, 0" : : "r" (period)); in Armv7PmuSetCntPeriod()
84 __asm__ volatile("mcr p15, 0, %0, c9, c13, 2" : : "r" (period)); in Armv7PmuSetCntPeriod()
146 if (event->period == 0) { in Armv7EnableEvent()
233 if (event->period != 0) { in Armv7SetEventPeriod()
234 PRINT_INFO("counter: %u, period: 0x%x\n", event->counter, event->period); in Armv7SetEventPeriod()
235 Armv7PmuSetCntPeriod(event->counter, PERIOD_CALC(event->period)); in Armv7SetEventPeriod()
253 if (value < PERIOD_CALC(event->period)) { in Armv7ReadEventCnt()
255 value += event->period; in Armv7ReadEventCnt()
258 value -= PERIOD_CALC(event->period); in Armv7ReadEventCnt()
[all …]
/kernel/linux/linux-5.10/drivers/input/misc/
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()
/kernel/linux/linux-5.10/Documentation/litmus-tests/rcu/
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.
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dpower.c147 enum iwl_power_level lvl, int period) in iwl_static_sleep_cmd() argument
157 if (period <= IWL_DTIM_RANGE_1_MAX) in iwl_static_sleep_cmd()
159 if (period <= IWL_DTIM_RANGE_0_MAX) in iwl_static_sleep_cmd()
163 if (period <= IWL_DTIM_RANGE_1_MAX) in iwl_static_sleep_cmd()
165 if (period <= IWL_DTIM_RANGE_0_MAX) in iwl_static_sleep_cmd()
174 if (period == 0) { in iwl_static_sleep_cmd()
176 period = 1; in iwl_static_sleep_cmd()
191 cpu_to_le32(period * (skip + 1)); in iwl_static_sleep_cmd()
194 if (slp_itrvl > period) in iwl_static_sleep_cmd()
196 cpu_to_le32((slp_itrvl / period) * period); in iwl_static_sleep_cmd()
[all …]
/kernel/liteos_a/kernel/extended/plimit/
Dlos_schedlimit.c40 schedLimit->period = 0; in OsSchedLimitInit()
69 plimitDest->period = plimitSrc->period; in OsSchedLimitCopy()
84 if ((schedLimit->period <= 0) || (schedLimit->quota <= 0)) { in OsSchedLimitUpdateRuntime()
94 schedLimit->startTime = currTime + schedLimit->period; in OsSchedLimitUpdateRuntime()
125 schedLimit->period = value; in OsSchedLimitSetPeriod()
142 if (value > (UINT64)schedLimit->period) { in OsSchedLimitSetQuota()
/kernel/linux/linux-5.10/samples/bpf/
Dxdp_monitor_user.c248 __u64 period = 0; in calc_period() local
250 period = r->timestamp - p->timestamp; in calc_period()
251 if (period > 0) in calc_period()
252 period_ = ((double) period / NANOSEC_PER_SEC); in calc_period()
260 __u64 period = 0; in calc_period_u64() local
262 period = r->timestamp - p->timestamp; in calc_period_u64()
263 if (period > 0) in calc_period_u64()
264 period_ = ((double) period / NANOSEC_PER_SEC); in calc_period_u64()
269 static double calc_pps(struct datarec *r, struct datarec *p, double period) in calc_pps() argument
274 if (period > 0) { in calc_pps()
[all …]
/kernel/linux/linux-5.10/drivers/clk/
Dclk-pwm.c55 duty->den = state.period; in clk_pwm_get_duty_cycle()
86 if (!pargs.period) { in clk_pwm_probe()
92 clk_pwm->fixed_rate = div64_u64(NSEC_PER_SEC, pargs.period); in clk_pwm_probe()
99 if (pargs.period != NSEC_PER_SEC / clk_pwm->fixed_rate && in clk_pwm_probe()
100 pargs.period != DIV_ROUND_UP(NSEC_PER_SEC, clk_pwm->fixed_rate)) { in clk_pwm_probe()
111 ret = pwm_config(pwm, (pargs.period + 1) >> 1, pargs.period); in clk_pwm_probe()

12345678910>>...31