Home
last modified time | relevance | path

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

12345678910>>...69

/linux/tools/perf/arch/x86/tests/
H A Damd-ibs-period.c172 /* Sample period value taken from perf sample must match with expected value. */ in rb_skip()
179 * Sample period value taken from perf sample must be >= minimum sample period in rb_skip()
193 unsigned long period; in period_higher()
200 * { u64 period; } && PERF_SAMPLE_PERIOD in rb_drain_samples()
209 period = 0; in rb_drain_samples()
210 if (rb_read(rb, &period, sizeof(period))) in rb_drain_samples()
211 pr_debug("rb_read(period) error. [%m]"); in rb_drain_samples()
212 ret |= callback(exp_period, period); in rb_drain_samples()
202 unsigned long period; rb_drain_samples() local
270 unsigned long period; global() member
419 unsigned long period; global() member
488 __ibs_period_constraint_test(int ibs_type,struct ibs_period * period,int * nr_samples) __ibs_period_constraint_test() argument
607 unsigned long period; global() member
[all...]
/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()
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 …]
/linux/drivers/pwm/
H A Dpwm-microchip-core.c17 * As setting the period/duty cycle takes 4 register writes, there is a window
18 * in which this races against the start of a new period.
23 * period. Therefore to get a 0% waveform, the output is set the max high/low
25 * If the duty cycle is 0%, and the requested period is less than the
26 * available period resolution, this will manifest as a ~100% waveform (with
28 * - The PWM period is set for the whole IP block not per channel. The driver
29 * will only change the period if no other PWM output is enabled.
69 bool enable, u64 period) in mchp_core_pwm_enable() argument
92 * applied to the waveform at the beginning of the next period. in mchp_core_pwm_enable()
96 mchp_core_pwm->update_timestamp = ktime_add_ns(ktime_get(), period); in mchp_core_pwm_enable()
[all …]
H A Dpwm-ntxec.c16 * - The period and duty cycle can't be changed together in one atomic action.
44 * The time base used in the EC is 8MHz, or 125ns. Period and duty cycle are
57 int period, int duty) in ntxec_pwm_set_raw_period_and_duty_cycle() argument
62 * Changes to the period and duty cycle take effect as soon as the in ntxec_pwm_set_raw_period_and_duty_cycle()
64 * to an inconsistent state after the period is written and before the in ntxec_pwm_set_raw_period_and_duty_cycle()
66 * is longer than the new period, the EC may output 100% for a moment. in ntxec_pwm_set_raw_period_and_duty_cycle()
68 * To minimize the time between the changes to period and duty cycle in ntxec_pwm_set_raw_period_and_duty_cycle()
73 { NTXEC_REG_PERIOD_HIGH, ntxec_reg8(period >> 8) }, in ntxec_pwm_set_raw_period_and_duty_cycle()
75 { NTXEC_REG_PERIOD_LOW, ntxec_reg8(period) }, in ntxec_pwm_set_raw_period_and_duty_cycle()
86 unsigned int period, duty; in ntxec_pwm_apply() local
[all …]
H A Dpwm-intel-lgm.c6 * - The hardware supports fixed period & configures only 2-wire mode.
9 * keep track of running period.
11 * and new setting for the first period. From second period, the output is
45 u32 period; member
69 /* The hardware only supports normal polarity and fixed period. */ in lgm_pwm_apply()
70 if (state->polarity != PWM_POLARITY_NORMAL || state->period < pc->period) in lgm_pwm_apply()
76 duty_cycle = min_t(u64, state->duty_cycle, pc->period); in lgm_pwm_apply()
77 val = duty_cycle * LGM_PWM_MAX_DUTY_CYCLE / pc->period; in lgm_pwm_apply()
96 state->period = pc->period; /* fixed period */ in lgm_pwm_get_state()
100 state->duty_cycle = DIV_ROUND_UP(duty * pc->period, LGM_PWM_MAX_DUTY_CYCLE); in lgm_pwm_get_state()
[all …]
H A Dpwm-dwc-core.c48 * Calculate width of low and high period in terms of input clock in __dwc_pwm_configure_timer()
57 tmp = DIV_ROUND_CLOSEST_ULL(state->period - state->duty_cycle, in __dwc_pwm_configure_timer()
74 * width of low period and latter the width of high period in terms in __dwc_pwm_configure_timer()
76 * Width = ((Count + 1) * input clock period). in __dwc_pwm_configure_timer()
91 * Enable timer. Output starts from low period. in __dwc_pwm_configure_timer()
124 u64 duty, period; in dwc_pwm_get_state() local
141 period = (ld2 + 1) * dwc->clk_ns; in dwc_pwm_get_state()
142 period += duty; in dwc_pwm_get_state()
145 period = duty * 2; in dwc_pwm_get_state()
149 state->period = period; in dwc_pwm_get_state()
H A Dpwm-airoha.c8 * duty_cycle and period. Waveform generators are shared between 16 GPIO
11 * - On configuration the currently running period is completed.
12 * - Minimum supported period is 4 ms
13 * - Maximum supported period is 1s
66 /* Cycle(Period) registers handles 4 generators in one 32-bit register */
76 * only use up to 8 different combinations of duty cycle and period at a time.
224 * cycle but it can be reused regardless of period in airoha_pwm_get_generator()
232 * a bucket to recycle (closer to the requested period/duty) in airoha_pwm_get_generator()
237 /* Ignore bucket with invalid period */ in airoha_pwm_get_generator()
242 * Search for a bucket closer to the requested period in airoha_pwm_get_generator()
[all …]
/linux/lib/
H A 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
80 p->period += periods; in fprop_new_period()
99 pl->period = 0; in fprop_local_init_percpu()
112 unsigned int period = p->period; in fprop_reflect_period_percpu() local
[all …]
/linux/Documentation/RCU/Design/Expedited-Grace-Periods/
H A 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 …]
/linux/Documentation/RCU/Design/Memory-Ordering/
H A 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 not 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 …]
/linux/Documentation/scheduler/
H A 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 real-time 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.
104 * A run time of -1 specifies runtime == period, ie. no limit.
107 runtime/period in /sys/kernel/debug/sched/fair_server/cpuX/
120 period from /proc/sys/kernel/sched_rt_period_us and a run time of 0. If you
156 There is work in progress to make the scheduling period for each group
[all …]
/linux/tools/perf/Documentation/
H A Dintel-acr.txt10 two or more events. To enable this, the user must provide a sample period
13 period is exceeded.
18 perf record -e {cpu_atom/instructions,period=200000,acr_mask=0x2/, \
19 cpu_atom/cycles,period=100000,acr_mask=0x3/} -- true
21 In this case, if the "instructions" counter exceeds the sample period of
27 events in the group to be reset when the period is exceeded. In the
31 that both event counters will be reset if the sample period is exceeded
37 alongside the sample period term n or the -c/--count option. This would
44 cpu_atom/cycles,period=100000,ratio-to-prev=0.5/} -- true
53 cpu_atom/instructions,period=200000,ratio-to-prev=2.0/} -- true
/linux/include/linux/
H A 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 */
/linux/kernel/rcu/
H A Dtree_exp.h18 * Record the start of an expedited grace period.
27 * Return the value that the expedited-grace-period counter will have
28 * at the end of the current grace period.
36 * Record the end of an expedited grace period.
46 * Take a snapshot of the expedited-grace-period counter, which is the
47 * earliest value that will indicate that a full grace period has
62 * if a full expedited grace period has elapsed since that snapshot
132 * a new expedited grace period.
156 * Return non-zero if there is no RCU expedited grace period in progress
159 * for the current expedited grace period.
[all …]
H A Dtree.c179 /* Delay in jiffies for grace-period initialization delays, debug only. */
216 * Return true if an RCU grace period is in progress. The READ_ONCE()s
354 * We inform the RCU core by emulating a zero-duration dyntick-idle period.
446 * How long the grace period must be before we start recruiting
455 * Make sure that we give the grace-period kthread time to detect any
549 * Send along grace-period-related data for rcutorture diagnostics.
558 /* Gather grace-period sequence numbers for rcutorture diagnostics. */
567 /* Format grace-period sequence numbers for rcutorture diagnostics. */
649 * in a timely manner, the RCU grace-period kthread sets that CPU's
658 * interrupt or exception. In that case, the RCU grace-period kthread
[all …]
/linux/arch/m68k/amiga/
H A Damisound.c31 * The minimum period for audio may be modified by the frame buffer
42 * Current period (set by dmasound.c)
84 unsigned long period = (clock_constant / hz); in amiga_mksound() local
86 if (period < amiga_audio_min_period) in amiga_mksound()
87 period = amiga_audio_min_period; in amiga_mksound()
88 if (period > MAX_PERIOD) in amiga_mksound()
89 period = MAX_PERIOD; in amiga_mksound()
91 /* setup pointer to data, period, length and volume */ in amiga_mksound()
94 custom.aud[2].audper = (unsigned short)period; in amiga_mksound()
116 /* restore period to previous value after beeping */ in nosound()
/linux/Documentation/devicetree/bindings/input/
H A Drotary-encoder.yaml49 rotary-encoder,steps-per-period:
54 Number of steps (stable states) per period.
56 1: Full-period mode (default)
57 2: Half-period mode
58 4: Quarter-period mode
67 rotary-encoder,half-period:
71 Makes the driver work on half-period mode.
72 This property is deprecated. Instead, a 'steps-per-period ' value should
73 be used, such as "rotary-encoder,steps-per-period = <2>".
/linux/tools/perf/tests/
H A Dhists_output.c54 struct perf_sample sample = { .evsel = evsel, .period = 100, }; in add_hist_entries()
182 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
188 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
194 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
200 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test1()
206 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
212 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test1()
218 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
224 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test1()
230 !strcmp(SYM(he), "cmd_record") && he->stat.period in test1()
[all...]
/linux/include/linux/phy/
H A 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 …]
/linux/include/trace/events/
H A Drcu.h47 * Tracepoint for grace-period events. Takes a string identifying the
48 * RCU flavor, the grace-period number, and a string identifying the
49 * grace-period-related event as follows:
53 * "newreq": Request a new grace period.
54 * "start": Start a grace period.
55 * "cpustart": CPU first notices a grace-period start.
59 * "cpuofl-bgp": CPU goes offline while blocking a grace period.
60 * "reqwait": GP kthread sleeps waiting for grace-period request.
66 * "end": End a grace period.
67 * "cpuend": CPU first notices a grace-period end.
[all …]
/linux/tools/lib/perf/Documentation/
H A 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 …]
/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.
/linux/tools/perf/tests/shell/
H A Drecord_weak_term.sh11 # Find the first event with a specified period, such as
12 # "cpu_core/event=0x24,period=200003,umask=0xff/"
18 if "Encoding" in e and "period=" in e["Encoding"]:
24 echo "Skip: No sysfs/json events with inbuilt period."
28 echo "Testing that for $event the period is overridden with 1000"
33 echo "Fail: Unexpected verbose output and sample period"
/linux/tools/testing/selftests/rcutorture/bin/
H A Dkvm-recheck-rcuscale.sh43 /rcu_scale: Grace-period kthread CPU time/ {
79 print "Average grace-period duration: " sum / newNR " microseconds";
80 print "Minimum grace-period duration: " gptimes[1];
81 print "50th percentile grace-period duration: " gptimes[pct50];
82 print "90th percentile grace-period duration: " gptimes[pct90];
83 print "99th percentile grace-period duration: " gptimes[pct99];
84 print "Maximum grace-period duration: " gptimes[newNR];
/linux/drivers/scsi/
H A Dscsi_transport_spi.c83 /* The PPR values at which you calculate the period in ns by multiplying
411 /* Translate the period into ns according to the current spec
413 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
[all …]

12345678910>>...69