| /OK3568_Linux_fs/kernel/lib/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/imu/inv_icm42600/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/pwm/ |
| H A D | core.c | 154 pwm->args.period = args->args[1]; in of_pwm_xlate_with_flags() 184 pwm->args.period = args->args[1]; in of_pwm_simple_xlate() 498 s2.duty_cycle = s1.period - s1.duty_cycle; in pwm_apply_state_debug() 499 s2.period = s1.period; in pwm_apply_state_debug() 506 state->duty_cycle < state->period) in pwm_apply_state_debug() 511 last->period > s2.period && in pwm_apply_state_debug() 512 last->period <= state->period) in pwm_apply_state_debug() 515 state->period, s2.period, last->period); in pwm_apply_state_debug() 517 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug() 520 state->period, s2.period); in pwm_apply_state_debug() [all …]
|
| H A D | pwm-renesas-tpu.c | 77 u16 period; member 180 tpu_pwm_write(pwm, TPU_TGRBn, pwm->period); in tpu_pwm_timer_start() 183 pwm->channel, pwm->duty, pwm->period); in tpu_pwm_timer_start() 226 pwm->period = 0; in tpu_pwm_request() 253 u32 period; in tpu_pwm_config() local 264 period = clk_rate / prescalers[prescaler] in tpu_pwm_config() 266 if (period <= 0xffff) in tpu_pwm_config() 270 if (prescaler == ARRAY_SIZE(prescalers) || period == 0) { in tpu_pwm_config() 278 if (duty > period) in tpu_pwm_config() 286 clk_rate, prescalers[prescaler], period, duty); in tpu_pwm_config() [all …]
|
| H A D | pwm-fsl-ftm.c | 49 struct fsl_pwm_periodcfg period; member 125 rate = clk_get_rate(fpc->clk[fpc->period.clk_select]); in fsl_pwm_ticks_to_ns() 128 do_div(exval, rate >> fpc->period.clk_ps); in fsl_pwm_ticks_to_ns() 195 unsigned int period = fpc->period.mod_period + 1; in fsl_pwm_calculate_duty() local 196 unsigned int period_ns = fsl_pwm_ticks_to_ns(fpc, period); in fsl_pwm_calculate_duty() 198 duty = (unsigned long long)duty_ns * period; in fsl_pwm_calculate_duty() 238 if (!fsl_pwm_calculate_period(fpc, newstate->period, &periodcfg)) { in fsl_pwm_apply_config() 251 else if (!fsl_pwm_periodcfg_are_equal(&fpc->period, &periodcfg)) { in fsl_pwm_apply_config() 258 if (fpc->period.clk_select != periodcfg.clk_select) { in fsl_pwm_apply_config() 260 enum fsl_pwm_clk oldclk = fpc->period.clk_select; in fsl_pwm_apply_config() [all …]
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/tools/perf/tests/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt76/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/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 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 …]
|
| /OK3568_Linux_fs/kernel/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()
|
| 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()
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | pwm.h | 43 u64 period; member 71 u64 period; member 128 static inline void pwm_set_period(struct pwm_device *pwm, u64 period) in pwm_set_period() argument 131 pwm->state.period = period; in pwm_set_period() 140 return state.period; in pwm_get_period() 211 state->period = args.period; in pwm_init_state() 232 if (!state->period) in pwm_get_relative_duty_cycle() 236 state->period); in pwm_get_relative_duty_cycle() 265 state->period, in pwm_set_relative_duty_cycle() 345 unsigned int period; member [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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() 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()
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/ |
| H A 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>".
|
| /OK3568_Linux_fs/kernel/arch/m68k/atari/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | xdp_monitor_user.c | 248 __u64 period = 0; in calc_period() local 250 period = r->timestamp - p->timestamp; in calc_period() 251 if (period > 0) in calc_period() 252 period_ = ((double) period / NANOSEC_PER_SEC); in calc_period() 260 __u64 period = 0; in calc_period_u64() local 262 period = r->timestamp - p->timestamp; in calc_period_u64() 263 if (period > 0) in calc_period_u64() 264 period_ = ((double) period / NANOSEC_PER_SEC); in calc_period_u64() 269 static double calc_pps(struct datarec *r, struct datarec *p, double period) in calc_pps() argument 274 if (period > 0) { in calc_pps() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/dvm/ |
| H A D | power.c | 147 enum iwl_power_level lvl, int period) in iwl_static_sleep_cmd() argument 157 if (period <= IWL_DTIM_RANGE_1_MAX) in iwl_static_sleep_cmd() 159 if (period <= IWL_DTIM_RANGE_0_MAX) in iwl_static_sleep_cmd() 163 if (period <= IWL_DTIM_RANGE_1_MAX) in iwl_static_sleep_cmd() 165 if (period <= IWL_DTIM_RANGE_0_MAX) in iwl_static_sleep_cmd() 174 if (period == 0) { in iwl_static_sleep_cmd() 176 period = 1; in iwl_static_sleep_cmd() 191 cpu_to_le32(period * (skip + 1)); in iwl_static_sleep_cmd() 194 if (slp_itrvl > period) in iwl_static_sleep_cmd() 196 cpu_to_le32((slp_itrvl / period) * period); in iwl_static_sleep_cmd() [all …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/Documentation/scheduler/ |
| H A D | sched-bwc.rst | 11 The bandwidth allowed for a group is specified using a quota and period. Within 12 each given "period" (microseconds), a task group is allocated up to "quota" 17 period when the quota is replenished. 20 cfs_quota units at each period boundary. As threads consume this bandwidth it 26 Quota and period are managed within the cpu subsystem via cgroupfs. 28 cpu.cfs_quota_us: the total available run-time within a period (in microseconds) 29 cpu.cfs_period_us: the length of a period (in microseconds) 43 The minimum quota allowed for the quota or period is 1ms. There is also an 44 upper bound on the period length of 1s. Additional restrictions exist when 95 a. it fully consumes its own quota within a period [all …]
|
| /OK3568_Linux_fs/kernel/arch/m68k/amiga/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | md-faulty.c | 77 int period[Modes]; member 87 if (conf->period[mode] == 0 && in check_mode() 93 if (conf->period[mode]) in check_mode() 94 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode() 228 n, conf->period[WriteTransient]); in faulty_status() 232 n, conf->period[ReadTransient]); in faulty_status() 236 n, conf->period[WritePersistent]); in faulty_status() 240 n, conf->period[ReadPersistent]); in faulty_status() 245 n, conf->period[ReadFixable]); in faulty_status() 269 conf->period[i] = 0; in faulty_reshape() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/52xx/ |
| H A D | mpc52xx_gpt.c | 387 static int mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_do_start() argument 407 clocks = period * (u64)gpt->ipb_freq; in mpc52xx_gpt_do_start() 457 int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_start_timer() argument 460 return mpc52xx_gpt_do_start(gpt, period, continuous, 0); in mpc52xx_gpt_start_timer() 495 u64 period; in mpc52xx_gpt_timer_period() local 500 period = in_be32(&gpt->regs->count); in mpc52xx_gpt_timer_period() 503 prescale = period >> 16; in mpc52xx_gpt_timer_period() 504 period &= 0xffff; in mpc52xx_gpt_timer_period() 507 period = period * prescale * 1000000000ULL; in mpc52xx_gpt_timer_period() 508 do_div(period, (u64)gpt->ipb_freq); in mpc52xx_gpt_timer_period() [all …]
|