Searched refs:period (Results 101 - 125 of 541) sorted by relevance

1234567891011>>

/linux-master/tools/tracing/rtla/src/
H A Dosnoise.h67 unsigned long long period);
H A Dosnoise.c232 unsigned long long period)
239 retval = osnoise_write_ll_config("osnoise/period_us", period);
243 context->period_us = period;
248 * osnoise_set_runtime_period - set osnoise runtime and period
250 * Osnoise's runtime and period are related as runtime <= period.
252 * to set the runtime and period if they are != 0.
256 unsigned long long period)
262 if (!period && !runtime)
272 if (!period) {
231 __osnoise_write_period(struct osnoise_context *context, unsigned long long period) argument
254 osnoise_set_runtime_period(struct osnoise_context *context, unsigned long long runtime, unsigned long long period) argument
[all...]
H A Dutils.c404 * d:runtime:period
405 * D:runtime:period
411 long period; local
419 /* d:runtime:period */
427 period = get_long_ns_after_colon(&arg[2]);
428 if (period == INVALID_VAL)
431 if (runtime > period)
436 sched_param->sched_deadline = period;
437 sched_param->sched_period = period;
/linux-master/drivers/watchdog/
H A Dpic32-wdt.c75 u32 period, ps, terminal; local
92 period = terminal / rate;
95 rate, terminal, period);
97 return period;
H A Dwdat_wdt.c34 * @period: How long is one watchdog period in ms
44 unsigned int period; member in struct:wdat_wdt
282 periods = timeout * 1000 / wdat->period;
295 return periods * wdat->period / 1000;
337 /* WDAT specification wants to have >= 1ms period */
343 wdat->period = tbl->timer_period;
344 wdat->wdd.min_timeout = DIV_ROUND_UP(wdat->period * tbl->min_count, 1000);
345 wdat->wdd.max_timeout = wdat->period * tbl->max_count / 1000;
/linux-master/drivers/pwm/
H A Dpwm-berlin.c80 u32 value, duty, period; local
95 period = cycles;
108 berlin_pwm_writel(bpc, pwm->hwpwm, period, BERLIN_PWM_TCNT);
178 err = berlin_pwm_config(chip, pwm, state->duty_cycle, state->period);
H A Dpwm-stm32-lp.c58 /* Calculate the period and prescaler value */
59 div = (unsigned long long)clk_get_rate(priv->clk) * state->period;
62 /* Clock is too slow to achieve requested period. */
63 dev_dbg(pwmchip_parent(chip), "Can't reach %llu ns\n", state->period);
80 do_div(dty, state->period);
180 state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate);
H A Dpwm-lpss.c175 pwm_lpss_prepare(lpwm, pwm, state->duty_cycle, state->period);
227 state->period = NSEC_PER_SEC;
229 state->period = NSEC_PER_SEC / (unsigned long)freq;
231 on_time_div *= state->period;
H A Dpwm-meson.c8 * N cycles for the first half period.
9 * The hardware has no "polarity" setting. This driver reverses the period
15 * current period to complete first).
152 u64 duty, period, freq; local
155 period = state->period;
164 duty = period - duty;
166 freq = div64_u64(NSEC_PER_SEC * 0xffffULL, period);
179 cnt = mul_u64_u64_div_u64(fin_freq, period, NSEC_PER_SEC);
181 dev_err(pwmchip_parent(chip), "unable to get period cn
185 dev_dbg(pwmchip_parent(chip), "period=%llu cnt=%u\\n", period, cnt); local
[all...]
/linux-master/drivers/media/rc/
H A Dgpio-ir-recv.c65 u32 period = 0; local
114 of_property_read_u32(np, "linux,autosuspend-period", &period);
115 if (period) {
117 pm_runtime_set_autosuspend_delay(dev, period);
H A Dene_ir.c320 int period = ene_read_reg(dev, ENE_CIRCAR_PRD); local
323 if (!(period & ENE_CIRCAR_PRD_VALID))
326 period &= ~ENE_CIRCAR_PRD_VALID;
328 if (!period)
331 dbg("RX: hardware carrier period = %02x", period);
332 dbg("RX: hardware carrier pulse period = %02x", hperiod);
334 carrier = 2000000 / period;
335 duty_cycle = (hperiod * 100) / period;
391 /* set sample period*/
880 u32 period; local
[all...]
/linux-master/drivers/leds/
H A Dleds-pwm.c47 unsigned long long duty = led_dat->pwmstate.period;
53 duty = led_dat->pwmstate.period - duty;
92 if (led_data->pwmstate.period)
96 "failed to read period for %s, default to off",
115 do_div(brightness, led_data->pwmstate.period);
H A Dleds-pca963x.c86 /* Total blink period in milliseconds */
251 unsigned long time_on, time_off, period; local
266 period = pca963x_period_scale(led, time_on + time_off);
268 /* If period not supported by hardware, default to someting sane. */
269 if ((period < PCA963X_BLINK_PERIOD_MIN) ||
270 (period > PCA963X_BLINK_PERIOD_MAX)) {
273 period = pca963x_period_scale(led, 1000);
278 * (time_on / period) = (GDC / 256) ->
279 * GDC = ((time_on * 256) / period)
281 gdc = (pca963x_period_scale(led, time_on) * 256) / period;
[all...]
/linux-master/sound/oss/dmasound/
H A Ddmasound_paula.c40 * The minimum period for audio depends on htotal (for OCS/ECS/AGA)
48 * amiga_mksound() should be able to restore the period after beeping
360 int period, i; local
365 period = amiga_colorclock/dmasound.soft.speed-1;
367 period = amiga_audio_min_period;
371 if (period < amiga_audio_min_period) {
373 period = amiga_audio_min_period;
374 } else if (period > 65535) {
375 period = 65535;
377 dmasound.hard.speed = amiga_colorclock/(period
[all...]
/linux-master/drivers/video/backlight/
H A Dpwm_bl.c85 duty_cycle *= state->period - lth;
184 unsigned int period)
195 min((int)DIV_ROUND_UP(period, fls(period)), 4096);
205 data->max_brightness) * period;
366 unsigned int period)
514 * period, parsed from the DT, in the PWM device. For the non-DT case,
515 * set the period from platform data if it has not already been set
518 if (!state.period && (data->pwm_period_ns > 0))
519 state.period
182 pwm_backlight_brightness_default(struct device *dev, struct platform_pwm_backlight_data *data, unsigned int period) argument
364 pwm_backlight_brightness_default(struct device *dev, struct platform_pwm_backlight_data *data, unsigned int period) argument
[all...]
/linux-master/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_tai.c29 * seems it can be set to any period of 1ns resolution. It is probably
30 * limited by the TOD step size. Its period is defined by the PCLK_CCC
61 u64 period; // nanosecond period in 32.32 fixed point member in struct:mvpp2_tai
154 u64 val = tai->period * abs_scaled_ppm >> 4;
316 nano = upper_32_bits(tai->period);
317 frac = lower_32_bits(tai->period);
430 * Consequently, we use the period rather than calculating from the
433 tai->period = 3ULL << 32;
/linux-master/tools/perf/util/
H A Dhist.c271 unsigned int cpumode, u64 period)
275 he_stat->period_sys += period;
278 he_stat->period_us += period;
281 he_stat->period_guest_sys += period;
284 he_stat->period_guest_us += period;
299 static void he_stat__add_period(struct he_stat *he_stat, u64 period) argument
301 he_stat->period += period;
307 dest->period += src->period;
270 he_stat__add_cpumode_period(struct he_stat *he_stat, unsigned int cpumode, u64 period) argument
580 hist_entry__add_callchain_period(struct hist_entry *he, u64 period) argument
599 u64 period = entry->stat.period; local
[all...]
H A Dcallchain.c132 if (!strncmp(value, "period", strlen(value))) {
649 u64 period)
671 new->hit = period;
818 u64 idx_parents, u64 idx_local, u64 period)
855 parent->children_hit += period;
860 new = add_child(parent, cursor, period);
881 parent->hit = period;
890 u64 period);
895 u64 period)
914 ret = append_chain(rnode, cursor, period);
647 add_child(struct callchain_node *parent, struct callchain_cursor *cursor, u64 period) argument
815 split_add_child(struct callchain_node *parent, struct callchain_cursor *cursor, struct callchain_list *to_split, u64 idx_parents, u64 idx_local, u64 period) argument
893 append_chain_children(struct callchain_node *root, struct callchain_cursor *cursor, u64 period) argument
940 append_chain(struct callchain_node *root, struct callchain_cursor *cursor, u64 period) argument
1003 callchain_append(struct callchain_root *root, struct callchain_cursor *cursor, u64 period) argument
1218 u64 period = callchain_cumul_hits(node); local
1247 u64 period = callchain_cumul_hits(node); local
[all...]
/linux-master/drivers/usb/host/
H A Duhci-q.c432 * Link a high-period interrupt QH into the schedule at the end of its
448 * Link a period-1 interrupt or async QH into the schedule at the
519 * Unlink a high-period interrupt QH from the schedule
531 * Unlink a period-1 interrupt or async QH from the schedule
608 * Find the highest existing bandwidth load for a given phase and period.
610 static int uhci_highest_load(struct uhci_hcd *uhci, int phase, int period) argument
614 for (phase += period; phase < MAX_PHASE; phase += period)
630 minimax_load = uhci_highest_load(uhci, qh->phase, qh->period);
633 int max_phase = min_t(int, MAX_PHASE, qh->period);
[all...]
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ptp.c178 static int ptp_pps_on(struct otx2_ptp *ptp, int on, u64 period) argument
191 req->period = period;
344 u64 period = 0; local
369 period = rq->perout.period.sec * NSEC_PER_SEC +
370 rq->perout.period.nsec;
371 ptp_pps_on(ptp, on, period);
373 ptp_pps_on(ptp, on, period);
/linux-master/arch/loongarch/kernel/
H A Dperf_event.c305 u64 period = hwc->sample_period; local
307 if (unlikely((left + period) & (1ULL << 63))) {
308 /* left underflowed by more than period. */
309 left = period;
311 hwc->last_period = period;
313 } else if (unlikely((left + period) <= period)) {
314 /* left underflowed by less than period. */
315 left += period;
317 hwc->last_period = period;
[all...]
/linux-master/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_buffer.c103 uint32_t period_gyro, period_accel, period; local
116 period = period_gyro;
118 period = period_accel;
120 st->fifo.period = period;
199 * dividing this computed latency by the smallest period, which corresponds
207 uint32_t period_gyro, period_accel, period; local
235 /* use the shortest period */
237 period = period_gyro;
239 period
[all...]
/linux-master/arch/x86/events/amd/
H A Dibs.c53 * could happen if the period is small enough), and consume our STOPPED bit
104 s64 period = hwc->sample_period; local
110 if (unlikely(left <= -period)) {
111 left = period;
113 hwc->last_period = period;
118 left += period;
120 hwc->last_period = period;
125 * If the hw period that triggers the sw overflow is too short
127 * Thus we shorten the next-to-last period and set the last
128 * period t
334 perf_ibs_set_period(struct perf_ibs *perf_ibs, struct hw_perf_event *hwc, u64 *period) argument
430 u64 period, config = 0; local
1033 u64 *buf, *config, period, new_config = 0; local
[all...]
/linux-master/arch/xtensa/kernel/
H A Dperf_event.c172 s64 period = hwc->sample_period; local
175 if (left <= -period) {
176 left = period;
178 hwc->last_period = period;
181 left += period;
183 hwc->last_period = period;
/linux-master/drivers/perf/
H A Driscv_pmu.c208 s64 period = hwc->sample_period; local
212 if (unlikely(left <= -period)) {
213 left = period;
215 hwc->last_period = period;
220 left += period;
222 hwc->last_period = period;
227 * Limit the maximum period to prevent the counter value

Completed in 435 milliseconds

1234567891011>>