| /linux/tools/perf/arch/x86/tests/ |
| H A D | amd-ibs-period.c | 172 /* 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 D | mipi-phy.c | 17 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 …]
|
| /linux/lib/ |
| H A D | flex_proportions.c | 42 p->period = 0; in fprop_global_init() 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 116 if (pl->period == period) in fprop_reflect_period_percpu() 120 if (pl->period >= period) { in fprop_reflect_period_percpu() 125 if (period - pl->period < BITS_PER_LONG) { in fprop_reflect_period_percpu() 132 -val + (val >> (period-pl->period)), PROP_BATCH); in fprop_reflect_period_percpu() 135 pl->period = period; in fprop_reflect_period_percpu()
|
| /linux/tools/perf/tests/ |
| H A D | hists_output.c | 54 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/drivers/pwm/ |
| H A D | pwm-ntxec.c | 57 int period, int duty) in ntxec_pwm_set_raw_period_and_duty_cycle() argument 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 92 period = min_t(u64, state->period, MAX_PERIOD_NS); in ntxec_pwm_apply() 93 duty = min_t(u64, state->duty_cycle, period); in ntxec_pwm_apply() 95 period /= TIME_BASE_NS; in ntxec_pwm_apply() 108 res = ntxec_pwm_set_raw_period_and_duty_cycle(chip, period, duty); in ntxec_pwm_apply()
|
| H A D | pwm-crc.c | 59 if (state->period > PWM_MAX_PERIOD_NS) { in crc_pwm_apply() 76 pwm_get_period(pwm) != state->period) { in crc_pwm_apply() 79 do_div(level, state->period); in crc_pwm_apply() 89 pwm_get_period(pwm) != state->period) { in crc_pwm_apply() 98 if (pwm_get_period(pwm) != state->period || in crc_pwm_apply() 100 int clk_div = crc_pwm_calc_clk_div(state->period); in crc_pwm_apply() 144 state->period = in crc_pwm_get_state() 147 DIV_ROUND_UP_ULL(duty_cycle_reg * state->period, PWM_MAX_LEVEL); in crc_pwm_get_state()
|
| H A D | pwm-intel-lgm.c | 45 u32 period; member 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() 116 pc->period = LGM_PWM_PERIOD_2WIRE_NS; in lgm_pwm_init()
|
| H A D | pwm-dwc-core.c | 57 tmp = DIV_ROUND_CLOSEST_ULL(state->period - state->duty_cycle, 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 D | pwm-microchip-core.c | 69 bool enable, u64 period) in mchp_core_pwm_enable() argument 96 mchp_core_pwm->update_timestamp = ktime_add_ns(ktime_get(), period); in mchp_core_pwm_enable() 209 tmp = mul_u64_u64_div_u64(state->period, clk_rate, NSEC_PER_SEC); in mchp_core_pwm_calc_period() 282 mchp_core_pwm_enable(chip, pwm, false, pwm->state.period); in mchp_core_pwm_apply_locked() 352 mchp_core_pwm_enable(chip, pwm, true, pwm->state.period); in mchp_core_pwm_apply_locked() 400 state->period = (period_steps + 1) * (prescale + 1); in mchp_core_pwm_get_state() 401 state->period *= NSEC_PER_SEC; in mchp_core_pwm_get_state() 402 state->period = DIV64_U64_ROUND_UP(state->period, rate); in mchp_core_pwm_get_state() 408 state->duty_cycle = state->period; in mchp_core_pwm_get_state() 409 state->period *= 2; in mchp_core_pwm_get_state()
|
| H A D | pwm-adp5585.c | 73 u64 period, duty_cycle; in pwm_adp5585_apply() local 86 if (state->period < ADP5585_PWM_MIN_PERIOD_NS) in pwm_adp5585_apply() 89 period = min(state->period, ADP5585_PWM_MAX_PERIOD_NS); in pwm_adp5585_apply() 90 duty_cycle = min(state->duty_cycle, period); in pwm_adp5585_apply() 97 off = div_u64(period, NSEC_PER_SEC / ADP5585_PWM_OSC_FREQ_HZ) - on; in pwm_adp5585_apply() 142 state->period = (on + off) * (NSEC_PER_SEC / ADP5585_PWM_OSC_FREQ_HZ); in pwm_adp5585_get_state()
|
| /linux/Documentation/RCU/Design/Memory-Ordering/ |
| H A D | Tree-RCU-Memory-Ordering.rst | 13 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 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. 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 …]
|
| /linux/drivers/scsi/ |
| H A D | scsi_transport_spi.c | 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 465 period = j; in store_spi_transport_period_helper() 469 if (period == -1) in store_spi_transport_period_helper() [all …]
|
| /linux/Documentation/RCU/Design/Expedited-Grace-Periods/ |
| H A D | Expedited-Grace-Periods.rst | 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 153 period. Note that this number never decreases, at least in the 159 beginning of the most recent RCU expedited grace period. The [all …]
|
| /linux/arch/m68k/atari/ |
| H A D | atasound.c | 60 int period; in atari_mksound() local 75 period = PSG_FREQ / hz; in atari_mksound() 77 if (period > 0xfff) period = 0xfff; in atari_mksound() 81 sound_ym.wd_data = period & 0xff; in atari_mksound() 83 sound_ym.wd_data = (period >> 8) & 0xf; in atari_mksound()
|
| /linux/drivers/input/misc/ |
| H A D | pwm-beeper.c | 23 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/iio/trigger/ |
| H A D | iio-trig-hrtimer.c | 29 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/amiga/ |
| H A D | amisound.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() 94 custom.aud[2].audper = (unsigned short)period; in amiga_mksound()
|
| /linux/tools/perf/Documentation/ |
| H A D | intel-acr.txt | 10 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/Documentation/litmus-tests/rcu/ |
| H A D | RCU+sync+free.litmus | 7 * 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/drivers/watchdog/ |
| H A D | nic7018_wdt.c | 47 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/drivers/leds/trigger/ |
| H A D | ledtrig-heartbeat.c | 28 unsigned int period; member 60 heartbeat_data->period = 300 + in led_heartbeat_function() 62 heartbeat_data->period = in led_heartbeat_function() 63 msecs_to_jiffies(heartbeat_data->period); in led_heartbeat_function() 70 delay = heartbeat_data->period / 4 - msecs_to_jiffies(70); in led_heartbeat_function() 82 delay = heartbeat_data->period - heartbeat_data->period / 4 - in led_heartbeat_function()
|
| /linux/Documentation/scheduler/ |
| H A D | sched-rt-group.rst | 27 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/lib/perf/Documentation/ |
| H A D | libperf-sampling.txt | 23 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/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_ptp.c | 256 s64 best_val = 0, val, best_period = 0, period, approx_dev, dif, dif2; in qed_ptp_hw_adjfreq() local 274 period = div_s64(val * 1000000000, ppb); in qed_ptp_hw_adjfreq() 275 period -= 8; in qed_ptp_hw_adjfreq() 276 period >>= 4; in qed_ptp_hw_adjfreq() 277 if (period < 1) in qed_ptp_hw_adjfreq() 278 period = 1; in qed_ptp_hw_adjfreq() 279 if (period > 0xFFFFFFE) in qed_ptp_hw_adjfreq() 280 period = 0xFFFFFFE; in qed_ptp_hw_adjfreq() 283 approx_dev = period * 16 + 8; in qed_ptp_hw_adjfreq() 294 period++; in qed_ptp_hw_adjfreq() [all …]
|
| /linux/drivers/ptp/ |
| H A D | ptp_netc.c | 101 u32 period; /* pulse period, ns */ member 116 u64 period; member 252 u32 period = pp->period; in netc_timer_set_perout_alarm() local 255 min_time = cur_time + NSEC_PER_MSEC + period; in netc_timer_set_perout_alarm() 258 stime += roundup_u64(delta, period); in netc_timer_set_perout_alarm() 261 alarm = roundup_u64(stime - period, integral_period); in netc_timer_set_perout_alarm() 299 fiper = pp->period - integral_period; in netc_timer_enable_periodic_pulse() 400 pp->period = NSEC_PER_SEC; in netc_timer_enable_pps() 444 struct timespec64 period, stime; in net_timer_enable_perout() local 448 period.tv_sec = rq->perout.period.sec; in net_timer_enable_perout() [all …]
|