Searched refs:period (Results 1 - 25 of 538) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Dtimeriomem-rng.h15 unsigned int period; member in struct:timeriomem_rng_data
H A Dpwm.h15 * period
18 * period
27 * @period: reference period
39 u64 period; member in struct:pwm_args
50 * @period: PWM period (in nanoseconds)
60 u64 period; member in struct:pwm_state
119 return state.period;
153 * that first retrieves the current PWM state and the replaces the period
241 unsigned int period; member in struct:pwm_capture
597 unsigned int period; member in struct:pwm_lookup
[all...]
/linux-master/drivers/gpu/drm/tegra/
H A Dmipi-phy.c17 unsigned long period)
20 timing->clkpost = 70 + 52 * period;
30 timing->hsprepare = 65 + 5 * period;
31 timing->hszero = 145 + 5 * period;
32 timing->hssettle = 85 + 6 * period;
39 * T_HS-TRAIL = max(n * 8 * period, 60 + n * 4 * period)
43 * not parameterize on anything other that period, so this code will
46 timing->hstrail = max(4 * 8 * period, 60 + 4 * 4 * period);
16 mipi_dphy_timing_get_default(struct mipi_dphy_timing *timing, unsigned long period) argument
62 mipi_dphy_timing_validate(struct mipi_dphy_timing *timing, unsigned long period) argument
[all...]
H A Dmipi-phy.h44 unsigned long period);
46 unsigned long period);
/linux-master/drivers/pwm/
H A Dpwm-visconti.c15 * running period is completed. This way the hardware switches atomically
17 * - Disabling the hardware completes the currently running period and keeps
49 u32 period, duty_cycle, pwmc0; local
57 * The biggest period the hardware can provide is
62 if (state->period > (0xffff << 3) * 1000)
63 period = (0xffff << 3) * 1000;
65 period = state->period;
67 if (state->duty_cycle > period)
68 duty_cycle = period;
109 u32 period, duty, pwmc0, pwmc0_clk; local
[all...]
H A Dpwm-ntxec.c16 * - The period and duty cycle can't be changed together in one atomic action.
57 int period, int duty)
62 * Changes to the period and duty cycle take effect as soon as the
64 * to an inconsistent state after the period is written and before the
66 * is longer than the new period, the EC may output 100% for a moment.
68 * To minimize the time between the changes to period and duty cycle
73 { NTXEC_REG_PERIOD_HIGH, ntxec_reg8(period >> 8) },
75 { NTXEC_REG_PERIOD_LOW, ntxec_reg8(period) },
86 unsigned int period, duty; local
92 period
56 ntxec_pwm_set_raw_period_and_duty_cycle(struct pwm_chip *chip, int period, int duty) argument
[all...]
H A Dpwm-crc.c59 if (state->period > PWM_MAX_PERIOD_NS) {
76 pwm_get_period(pwm) != state->period) {
79 do_div(level, state->period);
89 pwm_get_period(pwm) != state->period) {
98 if (pwm_get_period(pwm) != state->period ||
100 int clk_div = crc_pwm_calc_clk_div(state->period);
144 state->period =
147 DIV_ROUND_UP_ULL(duty_cycle_reg * state->period, PWM_MAX_LEVEL);
H A Dcore.c65 s2.duty_cycle = s1.period - s1.duty_cycle;
66 s2.period = s1.period;
73 state->duty_cycle < state->period)
78 last->period > s2.period &&
79 last->period <= state->period)
81 ".apply didn't pick the best available period (requested: %llu, applied: %llu, possible: %llu)\n",
82 state->period, s
[all...]
H A Dpwm-clk.c46 u64 period = state->period; local
65 * (potentially) different setting. Also setting period and duty_cycle
69 rate = DIV64_U64_ROUND_UP(NSEC_PER_SEC, period);
75 duty_cycle = period - duty_cycle;
77 return clk_set_duty_cycle(pcchip->clk, duty_cycle, period);
H A Dpwm-dwc-core.c48 * Calculate width of low and high period in terms of input clock
57 tmp = DIV_ROUND_CLOSEST_ULL(state->period - state->duty_cycle,
74 * width of low period and latter the width of high period in terms
76 * Width = ((Count + 1) * input clock period).
91 * Enable timer. Output starts from low period.
124 u64 duty, period; local
141 period = (ld2 + 1) * dwc->clk_ns;
142 period += duty;
145 period
[all...]
/linux-master/arch/m68k/amiga/
H A Damisound.c31 * The minimum period for audio may be modified by the frame buffer
42 * Current period (set by dmasound.c)
84 unsigned long period = (clock_constant / hz); local
86 if (period < amiga_audio_min_period)
87 period = amiga_audio_min_period;
88 if (period > MAX_PERIOD)
89 period = MAX_PERIOD;
91 /* setup pointer to data, period, length and volume */
94 custom.aud[2].audper = (unsigned short)period;
116 /* restore period t
[all...]
/linux-master/arch/m68k/atari/
H A Datasound.c60 int period; local
72 /* Convert from frequency value to PSG period value (base
75 period = PSG_FREQ / hz;
77 if (period > 0xfff) period = 0xfff;
81 sound_ym.wd_data = period & 0xff;
83 sound_ym.wd_data = (period >> 8) & 0xf;
/linux-master/lib/
H A Dflex_proportions.c3 * Floating proportions with flexible aging period
14 * Where x_{i,j} is j's number of events in i-th last time period and x_i is
15 * total number of events in i-th last time period.
26 * When a new period is declared, we could do:
33 * occurs. This can bit trivially implemented by remembering last period in
42 p->period = 0;
57 * Declare @periods new periods. It is upto the caller to make sure period
79 p->period += periods;
98 pl->period = 0;
111 unsigned int period local
[all...]
/linux-master/drivers/iio/chemical/
H A Dsps30.h14 int (*read_cleaning_period)(struct sps30_state *state, __be32 *period);
15 int (*write_cleaning_period)(struct sps30_state *state, __be32 period);
/linux-master/include/trace/events/
H A Dpwm.h19 __field(u64, period)
28 __entry->period = state->period;
35 TP_printk("%p: period=%llu duty_cycle=%llu polarity=%d enabled=%d err=%d",
36 __entry->pwm, __entry->period, __entry->duty_cycle,
/linux-master/tools/perf/util/
H A Dannotate-data.h37 * @period: Count of event
41 u64 period; member in struct:type_hist_entry
47 * @period: Total count of the event in this data type
52 u64 period; member in struct:type_hist
116 int nr_samples, u64 period);
136 u64 period __maybe_unused)
/linux-master/drivers/iio/common/inv_sensors/
H A Dinv_sensors_timestamp.c46 /* save chip parameters and compute min and max clock period */
51 /* current multiplier and period values after reset */
53 ts->period = chip->init_period;
55 /* use theoretical value for chip period */
61 uint32_t period, bool fifo)
67 ts->new_mult = period / ts->chip.clock_period;
73 static bool inv_validate_period(struct inv_sensors_timestamp *ts, uint32_t period, uint32_t mult) argument
77 /* check that period is acceptable */
80 if (period > period_min && period < period_ma
60 inv_sensors_timestamp_update_odr(struct inv_sensors_timestamp *ts, uint32_t period, bool fifo) argument
86 inv_update_chip_period(struct inv_sensors_timestamp *ts, uint32_t mult, uint32_t period) argument
129 uint32_t period; local
[all...]
/linux-master/drivers/watchdog/
H A Dbooke_wdt.c22 * Also, the wdt_period sets the watchdog timer period timeout.
50 /* For the specified period, determine the number of seconds
55 * 2.5 * (2^(63-period+1)) / timebase_freq
57 * In order to simplify things, we assume that period is
60 static unsigned long long period_to_sec(unsigned int period) argument
62 unsigned long long tmp = 1ULL << (64 - period);
75 * This procedure will find the highest period which will give a timeout
81 unsigned int period; local
82 for (period = 63; period >
93 period_to_sec(unsigned int period) argument
[all...]
/linux-master/drivers/char/hw_random/
H A Dtimeriomem-rng.c35 ktime_t period; member in struct:timeriomem_rng_private
50 int period_us = ktime_to_us(priv->period);
66 * for the RNG to generate new data. Since the period can have
86 hrtimer_forward_now(&priv->timer, priv->period);
109 int period; local
138 "period", &i))
139 period = i;
141 dev_err(&pdev->dev, "missing period\n");
149 period = pdata->period;
[all...]
/linux-master/drivers/iio/trigger/
H A Diio-trig-hrtimer.c29 ktime_t period; member in struct:iio_hrtimer_info
57 u64 period; local
73 period = PSEC_PER_SEC;
74 do_div(period, val);
75 info->period = period; /* nS */
104 hrtimer_forward_now(timer, info->period);
117 hrtimer_start(&trig_info->timer, trig_info->period,
152 trig_info->period = NSEC_PER_SEC / trig_info->sampling_frequency[0];
/linux-master/tools/perf/tests/
H A Dhists_output.c54 struct perf_sample sample = { .period = 100, };
183 !strcmp(SYM(he), "main") && he->stat.period == 200);
189 !strcmp(SYM(he), "page_fault") && he->stat.period == 100);
195 !strcmp(SYM(he), "main") && he->stat.period == 100);
201 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100);
207 !strcmp(SYM(he), "page_fault") && he->stat.period == 100);
213 !strcmp(SYM(he), "schedule") && he->stat.period == 100);
219 !strcmp(SYM(he), "free") && he->stat.period == 100);
225 !strcmp(SYM(he), "malloc") && he->stat.period == 100);
231 !strcmp(SYM(he), "cmd_record") && he->stat.period
[all...]
/linux-master/include/linux/iio/common/
H A Dinv_sensors_timestamp.h11 * @clock_period: internal clock period in ns
13 * @init_period: chip initial period at reset in ns
46 * @min_period: minimal acceptable clock period
47 * @max_period: maximal acceptable clock period
50 * @mult: current internal period multiplier
51 * @new_mult: new set internal period multiplier (not yet effective)
52 * @period: measured current period of the sensor
53 * @chip_period: accumulator for computing internal chip period
63 uint32_t period; member in struct:inv_sensors_timestamp
[all...]
/linux-master/drivers/leds/trigger/
H A Dledtrig-heartbeat.c28 unsigned int period; member in struct:heartbeat_trig_data
56 * heartbeat period length in dependency of the
60 heartbeat_data->period = 300 +
62 heartbeat_data->period =
63 msecs_to_jiffies(heartbeat_data->period);
70 delay = heartbeat_data->period / 4 - msecs_to_jiffies(70);
82 delay = heartbeat_data->period - heartbeat_data->period / 4 -
/linux-master/drivers/clk/
H A Dclk-pwm.c55 duty->den = state.period;
86 if (!pargs.period) {
87 dev_err(&pdev->dev, "invalid PWM period\n");
92 clk_pwm->fixed_rate = div64_u64(NSEC_PER_SEC, pargs.period);
99 if (pargs.period != NSEC_PER_SEC / clk_pwm->fixed_rate &&
100 pargs.period != DIV_ROUND_UP(NSEC_PER_SEC, clk_pwm->fixed_rate)) {
102 "clock-frequency does not match PWM period\n");
111 ret = pwm_config(pwm, (pargs.period + 1) >> 1, pargs.period);
/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dpower.c64 /* for DTIM period 0 through IWL_DTIM_RANGE_0_MAX */
75 /* for DTIM period IWL_DTIM_RANGE_0_MAX + 1 through IWL_DTIM_RANGE_1_MAX */
85 /* for DTIM period > IWL_DTIM_RANGE_1_MAX */
111 /* for DTIM period IWL_DTIM_RANGE_0_MAX + 1 through IWL_DTIM_RANGE_1_MAX */
126 /* for DTIM period > IWL_DTIM_RANGE_1_MAX */
143 enum iwl_power_level lvl, int period)
153 if (period <= IWL_DTIM_RANGE_1_MAX)
155 if (period <= IWL_DTIM_RANGE_0_MAX)
159 if (period <= IWL_DTIM_RANGE_1_MAX)
161 if (period <
141 iwl_static_sleep_cmd(struct iwl_priv *priv, struct iwl_powertable_cmd *cmd, enum iwl_power_level lvl, int period) argument
[all...]

Completed in 760 milliseconds

1234567891011>>