| /linux-6.15/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 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 …]
|
| /linux-6.15/drivers/pwm/ |
| H A D | pwm-visconti.c | 49 u32 period, duty_cycle, pwmc0; in visconti_pwm_apply() local 63 period = (0xffff << 3) * 1000; in visconti_pwm_apply() 65 period = state->period; in visconti_pwm_apply() 67 if (state->duty_cycle > period) in visconti_pwm_apply() 68 duty_cycle = period; in visconti_pwm_apply() 77 period /= 1000; in visconti_pwm_apply() 80 if (!period) in visconti_pwm_apply() 89 pwmc0 = fls(period >> 16); in visconti_pwm_apply() 93 period >>= pwmc0; in visconti_pwm_apply() 109 u32 period, duty, pwmc0, pwmc0_clk; in visconti_pwm_get_state() local [all …]
|
| 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-renesas-tpu.c | 76 u16 period; member 182 tpu_pwm_write(tpd, TPU_TGRBn, tpd->period); in tpu_pwm_timer_start() 185 tpd->channel, tpd->duty, tpd->period); in tpu_pwm_timer_start() 226 tpd->period = 0; in tpu_pwm_request() 250 u64 period; in tpu_pwm_config() local 279 switch (period) { in tpu_pwm_config() 300 period >>= 2 * prescaler; in tpu_pwm_config() 312 if (tpd->prescaler == prescaler && tpd->period == period) in tpu_pwm_config() 316 tpd->period = period; in tpu_pwm_config() 339 if (duty == 0 || duty == period) { in tpu_pwm_config() [all …]
|
| H A D | pwm-fsl-ftm.c | 47 struct fsl_pwm_periodcfg period; member 120 rate = clk_get_rate(fpc->clk[fpc->period.clk_select]); in fsl_pwm_ticks_to_ns() 121 if (rate >> fpc->period.clk_ps == 0) in fsl_pwm_ticks_to_ns() 126 do_div(exval, rate >> fpc->period.clk_ps); in fsl_pwm_ticks_to_ns() 193 unsigned int period = fpc->period.mod_period + 1; in fsl_pwm_calculate_duty() local 194 unsigned int period_ns = fsl_pwm_ticks_to_ns(fpc, period); in fsl_pwm_calculate_duty() 199 duty = (unsigned long long)duty_ns * period; in fsl_pwm_calculate_duty() 260 if (fpc->period.clk_select != periodcfg.clk_select) { in fsl_pwm_apply_config() 262 enum fsl_pwm_clk oldclk = fpc->period.clk_select; in fsl_pwm_apply_config() 282 fpc->period = periodcfg; in fsl_pwm_apply_config() [all …]
|
| H A D | core.c | 469 s2.period = s1.period; in pwm_apply_debug() 481 last->period > s2.period && in pwm_apply_debug() 482 last->period <= state->period) in pwm_apply_debug() 485 state->period, s2.period, last->period); in pwm_apply_debug() 494 state->period, s2.period); in pwm_apply_debug() 498 last->period == s2.period && in pwm_apply_debug() 598 if (state->period == pwm->state.period && in __pwm_apply() 810 state.period = pargs.period; in pwm_adjust_config() 820 if (pargs.period != state.period) { in pwm_adjust_config() 825 state.period = pargs.period; in pwm_adjust_config() [all …]
|
| 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()
|
| /linux-6.15/lib/ |
| H A D | flex_proportions.c | 42 p->period = 0; in fprop_global_init() 79 p->period += periods; in fprop_new_period() 98 pl->period = 0; in fprop_local_init_percpu() 111 unsigned int period = p->period; in fprop_reflect_period_percpu() local 115 if (pl->period == period) in fprop_reflect_period_percpu() 119 if (pl->period >= period) { in fprop_reflect_period_percpu() 124 if (period - pl->period < BITS_PER_LONG) { in fprop_reflect_period_percpu() 131 -val + (val >> (period-pl->period)), PROP_BATCH); in fprop_reflect_period_percpu() 134 pl->period = period; in fprop_reflect_period_percpu()
|
| /linux-6.15/drivers/iio/common/inv_sensors/ |
| H A D | inv_sensors_timestamp.c | 53 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() 88 if (period > period_min && period < period_max) in inv_validate_period() 95 uint32_t period) in inv_update_chip_period() argument 99 if (!inv_validate_period(ts, period)) in inv_update_chip_period() 103 new_chip_period = period / ts->mult; in inv_update_chip_period() 122 add_max = period_max - (int64_t)ts->period; in inv_align_timestamp_it() 123 sub_max = period_min - (int64_t)ts->period; in inv_align_timestamp_it() 140 uint32_t period; in inv_sensors_timestamp_interrupt() local [all …]
|
| /linux-6.15/tools/perf/tests/ |
| H A D | hists_output.c | 54 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 …]
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/ |
| H A D | mt76x02_dfs.c | 289 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 …]
|
| /linux-6.15/drivers/watchdog/ |
| H A D | booke_wdt.c | 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() 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()
|
| /linux-6.15/drivers/char/hw_random/ |
| H A D | timeriomem-rng.c | 35 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() 171 priv->io_base, period); in timeriomem_rng_probe()
|
| /linux-6.15/Documentation/RCU/Design/Memory-Ordering/ |
| H A D | Tree-RCU-Memory-Ordering.rst | 13 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 …]
|
| /linux-6.15/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-6.15/drivers/scsi/ |
| H A D | scsi_transport_spi.c | 417 if (period < 0 || period > 0xff) { in period_to_str() 465 period = j; in store_spi_transport_period_helper() 469 if (period == -1) in store_spi_transport_period_helper() 473 period = 0xff; in store_spi_transport_period_helper() 786 period = newperiod > period ? newperiod : period; in spi_dv_retrain() 788 period++; in spi_dv_retrain() 790 period += period >> 1; in spi_dv_retrain() 792 if (unlikely(period > 0xff || period == prevperiod)) { in spi_dv_retrain() 799 DV_SET(period, period); in spi_dv_retrain() 1200 msg[3] = period; in spi_populate_sync_msg() [all …]
|
| /linux-6.15/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 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 …]
|
| /linux-6.15/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-6.15/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-6.15/include/linux/ |
| H A D | pwm.h | 43 u64 period; member 89 u64 period; member 148 return state.period; in pwm_get_period() 203 state->period = args.period; in pwm_init_state() 225 if (!state->period) in pwm_get_relative_duty_cycle() 229 state->period); in pwm_get_relative_duty_cycle() 258 state->period, in pwm_set_relative_duty_cycle() 270 unsigned int period; member 417 state.period = period_ns; in pwm_config() 631 state.period = pwm->args.period; in pwm_apply_args() [all …]
|
| /linux-6.15/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-6.15/Documentation/devicetree/bindings/input/ |
| H A D | rotary-encoder.yaml | 49 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-6.15/drivers/net/wireless/intel/iwlwifi/dvm/ |
| H A D | power.c | 153 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 …]
|
| /linux-6.15/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-6.15/drivers/leds/ |
| H A D | leds-pca955x.c | 360 period /= MSEC_PER_SEC; in pca955x_period_to_psc() 361 period -= 1; in pca955x_period_to_psc() 363 return period; in pca955x_period_to_psc() 368 unsigned long period = psc; in pca955x_psc_to_period() local 371 period += 1; in pca955x_psc_to_period() 372 period *= MSEC_PER_SEC; in pca955x_psc_to_period() 375 return period; in pca955x_psc_to_period() 388 if (period) { in pca955x_led_blink() 441 period /= 2; in pca955x_led_blink() 442 *delay_on = period; in pca955x_led_blink() [all …]
|