/Linux-v4.19/lib/ |
D | flex_proportions.c | 42 p->period = 0; in fprop_global_init() 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 113 if (pl->period == period) in fprop_reflect_period_single() 117 if (pl->period >= period) { in fprop_reflect_period_single() 122 if (period - pl->period < BITS_PER_LONG) in fprop_reflect_period_single() 123 pl->events >>= period - pl->period; in fprop_reflect_period_single() 126 pl->period = period; in fprop_reflect_period_single() 179 pl->period = 0; in fprop_local_init_percpu() [all …]
|
/Linux-v4.19/drivers/gpu/drm/tegra/ |
D | mipi-phy.c | 20 unsigned long period) in mipi_dphy_timing_get_default() argument 23 timing->clkpost = 70 + 52 * period; in mipi_dphy_timing_get_default() 33 timing->hsprepare = 65 + 5 * period; in mipi_dphy_timing_get_default() 34 timing->hszero = 145 + 5 * period; in mipi_dphy_timing_get_default() 35 timing->hssettle = 85 + 6 * period; in mipi_dphy_timing_get_default() 49 timing->hstrail = max(4 * 8 * period, 60 + 4 * 4 * period); in mipi_dphy_timing_get_default() 66 unsigned long period) in mipi_dphy_timing_validate() argument 71 if (timing->clkpost < (60 + 52 * period)) in mipi_dphy_timing_validate() 92 if (timing->dtermen > 35 + 4 * period) in mipi_dphy_timing_validate() 95 if (timing->eot > 105 + 12 * period) in mipi_dphy_timing_validate() [all …]
|
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/ |
D | mt76x2_dfs.c | 268 pulse->period = mt76_rr(dev, MT_BBP(DFS, 19)); in mt76x2_dfs_get_hw_pulse() 283 if (!pulse->period || !pulse->w1) in mt76x2_dfs_check_hw_pulse() 298 ret = (pulse->period >= 2900 && in mt76x2_dfs_check_hw_pulse() 299 (pulse->period <= 4700 || in mt76x2_dfs_check_hw_pulse() 300 pulse->period >= 6400) && in mt76x2_dfs_check_hw_pulse() 301 (pulse->period <= 6800 || in mt76x2_dfs_check_hw_pulse() 302 pulse->period >= 10200) && in mt76x2_dfs_check_hw_pulse() 303 pulse->period <= 61600); in mt76x2_dfs_check_hw_pulse() 305 ret = (pulse->period >= 2900 && in mt76x2_dfs_check_hw_pulse() 306 pulse->period <= 61600); in mt76x2_dfs_check_hw_pulse() [all …]
|
/Linux-v4.19/tools/perf/tests/ |
D | hists_output.c | 53 struct perf_sample sample = { .period = 100, }; in add_hist_entries() 169 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1() 175 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1() 181 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1() 187 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test1() 193 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1() 199 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test1() 205 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1() 211 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test1() 217 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test1() [all …]
|
/Linux-v4.19/drivers/watchdog/ |
D | booke_wdt.c | 59 static unsigned long long period_to_sec(unsigned int period) in period_to_sec() argument 61 unsigned long long tmp = 1ULL << (64 - period); in period_to_sec() 80 unsigned int period; in sec_to_period() local 81 for (period = 63; period > 0; period--) { in sec_to_period() 82 if (period_to_sec(period) >= secs) in sec_to_period() 83 return period; in sec_to_period() 92 static unsigned long long period_to_sec(unsigned int period) in period_to_sec() argument 94 return period; in period_to_sec()
|
D | nic7018_wdt.c | 56 u32 period; member 61 u32 period; member 70 static inline u32 nic7018_timeout(u32 period, u8 counter) in nic7018_timeout() argument 72 return period * counter - period / 2; in nic7018_timeout() 107 wdd->timeout = nic7018_timeout(config->period, counter); in nic7018_set_timeout() 108 wdt->period = config->period; in nic7018_set_timeout() 160 return nic7018_timeout(wdt->period, count); in nic7018_get_timeleft()
|
/Linux-v4.19/Documentation/scheduler/ |
D | sched-bwc.txt | 10 The bandwidth allowed for a group is specified using a quota and period. Within 11 each given "period" (microseconds), a group is allowed to consume only up to 13 group exceeds this limit (for that period), the tasks belonging to its 15 period. 18 above at each period boundary. As threads consume this bandwidth it is 24 Quota and period are managed within the cpu subsystem via cgroupfs. 26 cpu.cfs_quota_us: the total available run-time within a period (in microseconds) 27 cpu.cfs_period_us: the length of a period (in microseconds) 40 The minimum quota allowed for the quota or period is 1ms. There is also an 41 upper bound on the period length of 1s. Additional restrictions exist when [all …]
|
/Linux-v4.19/include/linux/ |
D | pwm.h | 42 unsigned int period; member 59 unsigned int period; member 108 static inline void pwm_set_period(struct pwm_device *pwm, unsigned int period) in pwm_set_period() argument 111 pwm->state.period = period; in pwm_set_period() 120 return state.period; in pwm_get_period() 181 state->period = args.period; in pwm_init_state() 202 if (!state->period) in pwm_get_relative_duty_cycle() 206 state->period); in pwm_get_relative_duty_cycle() 235 state->period, in pwm_set_relative_duty_cycle() 312 unsigned int period; member [all …]
|
/Linux-v4.19/drivers/char/hw_random/ |
D | timeriomem-rng.c | 38 ktime_t period; member 53 int period_us = ktime_to_us(priv->period); in timeriomem_rng_read() 89 hrtimer_forward_now(&priv->timer, priv->period); in timeriomem_rng_read() 112 int period; in timeriomem_rng_probe() local 142 period = i; in timeriomem_rng_probe() 154 period = pdata->period; in timeriomem_rng_probe() 158 priv->period = ns_to_ktime(period * NSEC_PER_USEC); in timeriomem_rng_probe() 182 priv->io_base, period); in timeriomem_rng_probe()
|
/Linux-v4.19/drivers/usb/host/whci/ |
D | pzl.c | 17 static void update_pzl_pointers(struct whc *whc, int period, u64 addr) in update_pzl_pointers() argument 19 switch (period) { in update_pzl_pointers() 67 int period; in qset_insert_in_sw_list() local 69 period = qset_get_period(whc, qset); in qset_insert_in_sw_list() 72 list_move(&qset->list_node, &whc->periodic_list[period]); in qset_insert_in_sw_list() 197 int period; in update_pzl_hw_view() local 200 for (period = 0; period < 5; period++) { in update_pzl_hw_view() 201 list_for_each_entry_safe(qset, t, &whc->periodic_list[period], list_node) { in update_pzl_hw_view() 206 update_pzl_pointers(whc, period, tmp_qh); in update_pzl_hw_view() 223 int period; in scan_periodic_work() local [all …]
|
/Linux-v4.19/arch/m68k/atari/ |
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-v4.19/drivers/pwm/ |
D | pwm-renesas-tpu.c | 85 u16 period; member 188 tpu_pwm_write(pwm, TPU_TGRBn, pwm->period); in tpu_pwm_timer_start() 191 pwm->channel, pwm->duty, pwm->period); in tpu_pwm_timer_start() 234 pwm->period = 0; in tpu_pwm_request() 261 u32 period; in tpu_pwm_config() local 272 period = clk_rate / prescalers[prescaler] in tpu_pwm_config() 274 if (period <= 0xffff) in tpu_pwm_config() 278 if (prescaler == ARRAY_SIZE(prescalers) || period == 0) { in tpu_pwm_config() 286 if (duty > period) in tpu_pwm_config() 294 clk_rate, prescalers[prescaler], period, duty); in tpu_pwm_config() [all …]
|
D | pwm-jz4740.c | 91 unsigned long period, duty; in jz4740_pwm_config() local 98 period = tmp; in jz4740_pwm_config() 100 while (period > 0xffff && prescaler < 6) { in jz4740_pwm_config() 101 period >>= 2; in jz4740_pwm_config() 108 tmp = (unsigned long long)period * duty_ns; in jz4740_pwm_config() 110 duty = period - tmp; in jz4740_pwm_config() 112 if (duty >= period) in jz4740_pwm_config() 113 duty = period - 1; in jz4740_pwm_config() 121 jz4740_timer_set_period(pwm->hwpwm, period); in jz4740_pwm_config()
|
D | core.c | 155 pwm->args.period = args->args[1]; in of_pwm_xlate_with_flags() 185 pwm->args.period = args->args[1]; in of_pwm_simple_xlate() 471 if (!pwm || !state || !state->period || in pwm_apply_state() 472 state->duty_cycle > state->period) in pwm_apply_state() 510 if (state->period != pwm->state.period || in pwm_apply_state() 514 state->period); in pwm_apply_state() 519 pwm->state.period = state->period; in pwm_apply_state() 590 if (!state.period) { in pwm_adjust_config() 592 state.period = pargs.period; in pwm_adjust_config() 602 if (pargs.period != state.period) { in pwm_adjust_config() [all …]
|
/Linux-v4.19/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-v4.19/drivers/scsi/ |
D | scsi_transport_spi.c | 422 static int period_to_str(char *buf, int period) in period_to_str() argument 426 if (period < 0 || period > 0xff) { in period_to_str() 428 } else if (period <= SPI_STATIC_PPR) { in period_to_str() 429 picosec = ppr_to_ps[period]; in period_to_str() 431 picosec = period * 4000; in period_to_str() 444 show_spi_transport_period_helper(char *buf, int period) in show_spi_transport_period_helper() argument 446 int len = period_to_str(buf, period); in show_spi_transport_period_helper() 456 int j, picosec, period = -1; in store_spi_transport_period_helper() local 474 period = j; in store_spi_transport_period_helper() 478 if (period == -1) in store_spi_transport_period_helper() [all …]
|
/Linux-v4.19/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-v4.19/drivers/input/misc/ |
D | pwm-beeper.c | 32 unsigned long period; member 40 static int pwm_beeper_on(struct pwm_beeper *beeper, unsigned long period) in pwm_beeper_on() argument 48 state.period = period; in pwm_beeper_on() 81 unsigned long period = READ_ONCE(beeper->period); in pwm_beeper_work() local 83 if (period) in pwm_beeper_work() 84 pwm_beeper_on(beeper, period); in pwm_beeper_work() 108 beeper->period = 0; in pwm_beeper_event() 110 beeper->period = HZ_TO_NANOSECONDS(value); in pwm_beeper_event()
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | power.c | 161 enum iwl_power_level lvl, int period) in iwl_static_sleep_cmd() argument 171 if (period <= IWL_DTIM_RANGE_1_MAX) in iwl_static_sleep_cmd() 173 if (period <= IWL_DTIM_RANGE_0_MAX) in iwl_static_sleep_cmd() 177 if (period <= IWL_DTIM_RANGE_1_MAX) in iwl_static_sleep_cmd() 179 if (period <= IWL_DTIM_RANGE_0_MAX) in iwl_static_sleep_cmd() 188 if (period == 0) { in iwl_static_sleep_cmd() 190 period = 1; in iwl_static_sleep_cmd() 205 cpu_to_le32(period * (skip + 1)); in iwl_static_sleep_cmd() 208 if (slp_itrvl > period) in iwl_static_sleep_cmd() 210 cpu_to_le32((slp_itrvl / period) * period); in iwl_static_sleep_cmd() [all …]
|
/Linux-v4.19/samples/bpf/ |
D | xdp_monitor_user.c | 213 __u64 period = 0; in calc_period() local 215 period = r->timestamp - p->timestamp; in calc_period() 216 if (period > 0) in calc_period() 217 period_ = ((double) period / NANOSEC_PER_SEC); in calc_period() 225 __u64 period = 0; in calc_period_u64() local 227 period = r->timestamp - p->timestamp; in calc_period_u64() 228 if (period > 0) in calc_period_u64() 229 period_ = ((double) period / NANOSEC_PER_SEC); in calc_period_u64() 234 static double calc_pps(struct datarec *r, struct datarec *p, double period) in calc_pps() argument 239 if (period > 0) { in calc_pps() [all …]
|
/Linux-v4.19/drivers/md/ |
D | md-faulty.c | 86 int period[Modes]; member 96 if (conf->period[mode] == 0 && in check_mode() 102 if (conf->period[mode]) in check_mode() 103 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode() 237 n, conf->period[WriteTransient]); in faulty_status() 241 n, conf->period[ReadTransient]); in faulty_status() 245 n, conf->period[WritePersistent]); in faulty_status() 249 n, conf->period[ReadPersistent]); in faulty_status() 254 n, conf->period[ReadFixable]); in faulty_status() 278 conf->period[i] = 0; in faulty_reshape() [all …]
|
/Linux-v4.19/drivers/leds/ |
D | leds-pwm.c | 29 unsigned int period; member 42 pwm_config(led_dat->pwm, new_duty, led_dat->period); in __led_pwm_set() 56 unsigned long long duty = led_dat->period; in led_pwm_set() 62 duty = led_dat->period - duty; in led_pwm_set() 118 led_data->period = pargs.period; in led_pwm_add() 119 if (!led_data->period && (led->pwm_period_ns > 0)) in led_pwm_add() 120 led_data->period = led->pwm_period_ns; in led_pwm_add()
|
/Linux-v4.19/drivers/clk/ |
D | clk-pwm.c | 75 if (!pargs.period) { in clk_pwm_probe() 81 clk_pwm->fixed_rate = NSEC_PER_SEC / pargs.period; in clk_pwm_probe() 83 if (pargs.period != NSEC_PER_SEC / clk_pwm->fixed_rate && in clk_pwm_probe() 84 pargs.period != DIV_ROUND_UP(NSEC_PER_SEC, clk_pwm->fixed_rate)) { in clk_pwm_probe() 95 ret = pwm_config(pwm, (pargs.period + 1) >> 1, pargs.period); in clk_pwm_probe()
|
/Linux-v4.19/arch/powerpc/platforms/52xx/ |
D | mpc52xx_gpt.c | 391 static int mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_do_start() argument 411 clocks = period * (u64)gpt->ipb_freq; in mpc52xx_gpt_do_start() 461 int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_start_timer() argument 464 return mpc52xx_gpt_do_start(gpt, period, continuous, 0); in mpc52xx_gpt_start_timer() 499 u64 period; in mpc52xx_gpt_timer_period() local 504 period = in_be32(&gpt->regs->count); in mpc52xx_gpt_timer_period() 507 prescale = period >> 16; in mpc52xx_gpt_timer_period() 508 period &= 0xffff; in mpc52xx_gpt_timer_period() 511 period = period * prescale * 1000000000ULL; in mpc52xx_gpt_timer_period() 512 do_div(period, (u64)gpt->ipb_freq); in mpc52xx_gpt_timer_period() [all …]
|
/Linux-v4.19/drivers/leds/trigger/ |
D | ledtrig-heartbeat.c | 30 unsigned int period; member 62 heartbeat_data->period = 300 + in led_heartbeat_function() 64 heartbeat_data->period = in led_heartbeat_function() 65 msecs_to_jiffies(heartbeat_data->period); in led_heartbeat_function() 72 delay = heartbeat_data->period / 4 - msecs_to_jiffies(70); in led_heartbeat_function() 84 delay = heartbeat_data->period - heartbeat_data->period / 4 - in led_heartbeat_function()
|