Home
last modified time | relevance | path

Searched full:period (Results 1 – 25 of 2227) sorted by relevance

12345678910>>...90

/kernel/linux/linux-5.10/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_timestamp.c13 /* internal chip period is 32kHz, 31250ns */
44 uint32_t period) in inv_icm42600_timestamp_init() argument
49 /* current multiplier and period values after reset */ in inv_icm42600_timestamp_init()
51 ts->period = default_period; in inv_icm42600_timestamp_init()
53 ts->new_mult = period / INV_ICM42600_TIMESTAMP_PERIOD; in inv_icm42600_timestamp_init()
55 /* use theoretical value for chip 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
87 /* check that period is acceptable */ in inv_validate_period()
[all …]
Dinv_icm42600_timestamp.h39 * @mult: current internal period multiplier
40 * @new_mult: new set internal period multiplier (not yet effective)
41 * @period: measured current period of the sensor
42 * @chip_period: accumulator for computing internal chip period
49 uint32_t period; member
54 uint32_t period);
59 uint32_t period, bool fifo);
68 ts->timestamp += ts->period; in inv_icm42600_timestamp_pop()
/kernel/linux/linux-5.10/lib/
Dflex_proportions.c3 * Floating proportions with flexible aging period
14 * Where x_{i,j} is j's number of events in i-th last time period and x_i is
15 * total number of events in i-th last time period.
26 * When a new period is declared, we could do:
33 * occurs. This can bit trivially implemented by remembering last period in
42 p->period = 0; in fprop_global_init()
57 * Declare @periods new periods. It is upto the caller to make sure period
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
[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()
39 * T_HS-TRAIL = max(n * 8 * period, 60 + n * 4 * period) in mipi_dphy_timing_get_default()
43 * not parameterize on anything other that period, so this code will 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()
[all …]
/kernel/linux/linux-5.10/Documentation/RCU/Design/Memory-Ordering/
DTree-RCU-Memory-Ordering.rst2 A Tour Through TREE_RCU's Grace-Period Memory Ordering
13 grace-period memory ordering guarantee is provided.
15 What Is Tree RCU's Grace Period Memory Ordering Guarantee?
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.
46 Tree RCU Grace Period Memory Ordering Building Blocks
[all …]
/kernel/linux/linux-5.10/Documentation/RCU/Design/Expedited-Grace-Periods/
DExpedited-Grace-Periods.rst17 Expedited Grace Period Design
23 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
137 Expedited Grace Period and CPU Hotplug
[all …]
/kernel/linux/linux-5.10/Documentation/scheduler/
Dsched-bwc.rst11 The bandwidth allowed for a group is specified using a quota and period. Within
12 each given "period" (microseconds), a task group is allocated up to "quota"
17 period when the quota is replenished.
20 cfs_quota units at each period boundary. As threads consume this bandwidth it
26 Quota and period are managed within the cpu subsystem via cgroupfs.
28 cpu.cfs_quota_us: the total available run-time within a period (in microseconds)
29 cpu.cfs_period_us: the length of a period (in microseconds)
43 The minimum quota allowed for the quota or period is 1ms. There is also an
44 upper bound on the period length of 1s. Additional restrictions exist when
95 a. it fully consumes its own quota within a period
[all …]
Dsched-rt-group.rst27 system when the period is smaller than either the available hrtimer
53 in a given period. We allocate this "run time" for each realtime group which
61 frames a second, which yields a period of 0.04s per frame. Now say it will also
66 This way the graphics group will have a 0.04s period with a 0.032s run time
69 0.00015s. So this group can be scheduled with a period of 0.005s and a run time
90 The scheduling period that is equivalent to 100% CPU bandwidth
102 * A run time of -1 specifies runtime == period, ie. no limit.
115 period from /proc/sys/kernel/sched_rt_period_us and a run time of 0. If you
151 There is work in progress to make the scheduling period for each group
154 The constraint on the period is that a subgroup must have a smaller or
[all …]
/kernel/linux/linux-5.10/include/linux/
Dflex_proportions.h3 * Floating proportions with flexible aging period
19 * bound on the number of events per period like
29 /* Number of events in the current period */
31 /* Current period */
32 unsigned int period; member
33 /* Synchronization with period transitions */
47 /* Period in which we last updated events */
48 unsigned int period; member
49 raw_spinlock_t lock; /* Protect period and numerator */
79 /* Period in which we last updated events */
[all …]
Dpwm.h18 * period
21 * period
30 * @period: reference period
42 u64 period; member
53 * @period: PWM period (in nanoseconds)
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()
162 * that first retrieves the current PWM state and the replaces the period
[all …]
/kernel/linux/linux-5.10/Documentation/RCU/
Dstallwarn.rst40 - Anything that prevents RCU's grace-period kthreads from running.
51 in which case the next RCU grace period can never complete, which
107 RCU only detects CPU stalls when there is a grace period in progress.
108 No grace period, no CPU stall warnings.
136 This kernel configuration parameter defines the period of time
137 that RCU will wait from the beginning of a grace period until it
138 issues an RCU CPU stall warning. This time period is normally
184 task stalling the current RCU-tasks grace period.
209 interrupts during the current stalled grace period.
222 last noted the beginning of a grace period, which might be the current
[all …]
/kernel/linux/linux-5.10/drivers/watchdog/
Dbooke_wdt.c22 * Also, the wdt_period sets the watchdog timer period timeout.
50 /* For the specified period, determine the number of seconds
55 * 2.5 * (2^(63-period+1)) / timebase_freq
57 * In order to simplify things, we assume that period is
60 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()
75 * This procedure will find the highest period which will give a timeout
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()
[all …]
/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/media/cec/core/
Dcec-pin-priv.h31 /* Generate a start bit period that is too short */
33 /* Generate a start bit period that is too long */
43 /* Generate a bit period that is too short */
45 /* Generate a bit period that is too long */
51 /* Generate a bit period that is too short */
53 /* Generate a bit period that is too long */
60 /* Wait for end of bit period after sampling */
62 /* Generate a bit period that is too short */
64 /* Generate a bit period that is too long */
85 /* Wait for earliest end of bit period after sampling */
[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()
513 … ".apply didn't pick the best available period (requested: %llu, applied: %llu, possible: %llu)\n", 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()
[all …]
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()
238 if (!fsl_pwm_calculate_period(fpc, newstate->period, &periodcfg)) { in fsl_pwm_apply_config()
239 dev_err(fpc->chip.dev, "failed to calculate new period\n"); in fsl_pwm_apply_config()
246 * The Freescale FTM controller supports only a single period for in fsl_pwm_apply_config()
247 * all PWM channels, therefore verify if the newly computed period in fsl_pwm_apply_config()
[all …]
Dpwm-imx-tpm.c6 * - The TPM counter and period counter are shared between
7 * multiple channels, so all channels should use same period
10 * next period start.
11 * - Changing period and duty cycle together isn't atomic,
12 * with the wrong timing it might happen that a period is
13 * produced with old duty cycle but new period settings.
97 tmp = (u64)state->period * rate; in pwm_imx_tpm_round_state()
111 /* calculate real period HW can support */ in pwm_imx_tpm_round_state()
114 real_state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate); in pwm_imx_tpm_round_state()
127 p->val = DIV64_U64_ROUND_CLOSEST(tmp, real_state->period); in pwm_imx_tpm_round_state()
[all …]
Dpwm-rockchip.c42 unsigned long period; member
77 tmp = readl_relaxed(pc->base + pc->data->regs.period); in rockchip_pwm_get_state()
79 state->period = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate); in rockchip_pwm_get_state()
100 unsigned long period, duty; in rockchip_pwm_config() local
107 * Since period and duty cycle registers have a width of 32 in rockchip_pwm_config()
108 * bits, every possible input period can be obtained using the in rockchip_pwm_config()
111 div = clk_rate * state->period; in rockchip_pwm_config()
112 period = DIV_ROUND_CLOSEST_ULL(div, in rockchip_pwm_config()
119 * Lock the period and duty of previous configuration, then in rockchip_pwm_config()
120 * change the duty and period, that would not be effective. in rockchip_pwm_config()
[all …]
/kernel/linux/linux-5.10/arch/m68k/amiga/
Damisound.c29 * The minimum period for audio may be modified by the frame buffer
40 * Current period (set by dmasound.c)
82 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()
89 /* setup pointer to data, period, length and volume */ in amiga_mksound()
92 custom.aud[2].audper = (unsigned short)period; in amiga_mksound()
114 /* restore period to previous value after beeping */ in nosound()
/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()
93 PRINT_INFO("hrtimer config period - sec:%d, usec:%d\n", g_perfTimed.cfgTime.tv.sec, in OsPerfTimedConfig()
/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()
66 * for the RNG to generate new data. Since the period can have in timeriomem_rng_read()
86 hrtimer_forward_now(&priv->timer, priv->period); in timeriomem_rng_read()
109 int period; in timeriomem_rng_probe() local
138 "period", &i)) in timeriomem_rng_probe()
139 period = i; in timeriomem_rng_probe()
141 dev_err(&pdev->dev, "missing period\n"); 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()
[all …]
/kernel/linux/linux-5.10/include/linux/phy/
Dphy-mipi-dphy.h31 * transitioned to LP Mode. Interval is defined as the period
34 * Minimum value: 60000 ps + 52 * @hs_clk_rate period in ps
108 * Maximum value: 35000 ps + 4 * @hs_clk_rate period in ps
119 * Maximum value: 105000 ps + 12 * @hs_clk_rate period in ps
140 * Minimum value: 40000 ps + 4 * @hs_clk_rate period in ps
141 * Maximum value: 85000 ps + 6 * @hs_clk_rate period in ps
152 * Minimum value: 85000 ps + 6 * @hs_clk_rate period in ps
153 * Maximum value: 145000 ps + 10 * @hs_clk_rate period in ps
166 * Maximum value: 55000 ps + 4 * @hs_clk_rate period in ps
177 * Minimum value: max(8 * @hs_clk_rate period in ps,
[all …]
/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.c256 /* reported period */ in mt76x02_dfs_get_hw_pulse()
257 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()
[all …]
/kernel/linux/linux-5.10/tools/lib/perf/Documentation/
Dlibperf-sampling.txt23 cpu 0, pid 0, tid 0, ip ffffffffad06c4e6, period 1
24 cpu 0, pid 4465, tid 4469, ip ffffffffad118748, period 18322959
25 cpu 0, pid 0, tid 0, ip ffffffffad115722, period 33544846
26 cpu 0, pid 4465, tid 4470, ip 7f84fe0cdad6, period 23687474
27 cpu 0, pid 0, tid 0, ip ffffffffad9e0349, period 34255790
28 cpu 0, pid 4465, tid 4469, ip ffffffffad136581, period 38664069
29 cpu 0, pid 0, tid 0, ip ffffffffad9e55e2, period 21922384
30 cpu 0, pid 4465, tid 4470, ip 7f84fe0ebebf, period 17655175
193 86 __u64 ip, period, *array;
210 103 period = *array;
[all …]

12345678910>>...90