/Linux-v6.1/drivers/gpu/drm/tegra/ |
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-v6.1/lib/ |
D | flex_proportions.c | 42 p->period = 0; in fprop_global_init() 79 p->period += periods; in fprop_new_period() 93 pl->period = 0; in fprop_local_init_single() 105 unsigned int period = p->period; in fprop_reflect_period_single() local 109 if (pl->period == period) in fprop_reflect_period_single() 113 if (pl->period >= period) { in fprop_reflect_period_single() 118 if (period - pl->period < BITS_PER_LONG) in fprop_reflect_period_single() 119 pl->events >>= period - pl->period; in fprop_reflect_period_single() 122 pl->period = period; in fprop_reflect_period_single() 175 pl->period = 0; in fprop_local_init_percpu() [all …]
|
/Linux-v6.1/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_timestamp.c | 44 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 …]
|
/Linux-v6.1/drivers/pwm/ |
D | pwm-visconti.c | 50 u32 period, duty_cycle, pwmc0; in visconti_pwm_apply() local 63 if (state->period > (0xffff << 3) * 1000) in visconti_pwm_apply() 64 period = (0xffff << 3) * 1000; in visconti_pwm_apply() 66 period = state->period; in visconti_pwm_apply() 68 if (state->duty_cycle > period) in visconti_pwm_apply() 69 duty_cycle = period; in visconti_pwm_apply() 78 period /= 1000; in visconti_pwm_apply() 81 if (!period) in visconti_pwm_apply() 90 pwmc0 = fls(period >> 16); in visconti_pwm_apply() 94 period >>= pwmc0; in visconti_pwm_apply() [all …]
|
D | core.c | 143 pwm->args.period = args->args[1]; in of_pwm_xlate_with_flags() 171 pwm->args.period = args->args[0]; in of_pwm_single_xlate() 470 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug() 471 s2.period = s1.period; in pwm_apply_state_debug() 478 state->duty_cycle < state->period) in pwm_apply_state_debug() 483 last->period > s2.period && in pwm_apply_state_debug() 484 last->period <= state->period) in pwm_apply_state_debug() 487 state->period, s2.period, last->period); in pwm_apply_state_debug() 489 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug() 492 state->period, s2.period); in pwm_apply_state_debug() [all …]
|
D | pwm-ntxec.c | 59 int period, int duty) in ntxec_pwm_set_raw_period_and_duty_cycle() argument 75 { NTXEC_REG_PERIOD_HIGH, ntxec_reg8(period >> 8) }, in ntxec_pwm_set_raw_period_and_duty_cycle() 77 { NTXEC_REG_PERIOD_LOW, ntxec_reg8(period) }, in ntxec_pwm_set_raw_period_and_duty_cycle() 88 unsigned int period, duty; in ntxec_pwm_apply() local 94 period = min_t(u64, state->period, MAX_PERIOD_NS); in ntxec_pwm_apply() 95 duty = min_t(u64, state->duty_cycle, period); in ntxec_pwm_apply() 97 period /= TIME_BASE_NS; in ntxec_pwm_apply() 110 res = ntxec_pwm_set_raw_period_and_duty_cycle(chip, period, duty); in ntxec_pwm_apply()
|
D | pwm-renesas-tpu.c | 77 u16 period; member 180 tpu_pwm_write(tpd, TPU_TGRBn, tpd->period); in tpu_pwm_timer_start() 183 tpd->channel, tpd->duty, tpd->period); in tpu_pwm_timer_start() 226 tpd->period = 0; in tpu_pwm_request() 252 u64 period; in tpu_pwm_config() local 267 period = mul_u64_u64_div_u64(clk_rate, period_ns, NSEC_PER_SEC); in tpu_pwm_config() 281 switch (period) { in tpu_pwm_config() 302 period >>= 2 * prescaler; in tpu_pwm_config() 312 clk_rate, 1 << (2 * prescaler), (u32)period, duty); in tpu_pwm_config() 314 if (tpd->prescaler == prescaler && tpd->period == period) in tpu_pwm_config() [all …]
|
D | pwm-crc.c | 61 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()
|
/Linux-v6.1/tools/perf/tests/ |
D | hists_output.c | 54 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 …]
|
/Linux-v6.1/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_dfs.c | 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() 295 pulse->period <= 61600); in mt76x02_dfs_check_hw_pulse() [all …]
|
/Linux-v6.1/include/linux/ |
D | pwm.h | 39 u64 period; member 60 u64 period; member 117 static inline void pwm_set_period(struct pwm_device *pwm, u64 period) in pwm_set_period() argument 120 pwm->state.period = period; in pwm_set_period() 129 return state.period; in pwm_get_period() 190 state->period = args.period; in pwm_init_state() 212 if (!state->period) in pwm_get_relative_duty_cycle() 216 state->period); in pwm_get_relative_duty_cycle() 245 state->period, in pwm_set_relative_duty_cycle() 257 unsigned int period; member [all …]
|
/Linux-v6.1/drivers/watchdog/ |
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()
|
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-v6.1/drivers/char/hw_random/ |
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() 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()
|
/Linux-v6.1/Documentation/RCU/Design/Memory-Ordering/ |
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-v6.1/arch/m68k/atari/ |
D | atasound.c | 59 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()
|
/Linux-v6.1/drivers/scsi/ |
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-v6.1/Documentation/RCU/Design/Expedited-Grace-Periods/ |
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-v6.1/Documentation/devicetree/bindings/input/ |
D | rotary-encoder.txt | 17 - 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>".
|
/Linux-v6.1/drivers/iio/trigger/ |
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-v6.1/arch/m68k/amiga/ |
D | amisound.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() 92 custom.aud[2].audper = (unsigned short)period; in amiga_mksound()
|
/Linux-v6.1/drivers/input/misc/ |
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-v6.1/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | power.c | 143 enum iwl_power_level lvl, int period) in iwl_static_sleep_cmd() argument 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() [all …]
|
/Linux-v6.1/Documentation/litmus-tests/rcu/ |
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-v6.1/drivers/clk/ |
D | clk-pwm.c | 55 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()
|