Home
last modified time | relevance | path

Searched refs:period (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/freebsd-13.1/sys/kern/
H A Dkern_et.c182 et_start(struct eventtimer *et, sbintime_t first, sbintime_t period) in et_start() argument
187 KASSERT(period >= 0, ("et_start: negative period")); in et_start()
188 KASSERT((et->et_flags & ET_FLAGS_PERIODIC) || period == 0, in et_start()
190 KASSERT((et->et_flags & ET_FLAGS_ONESHOT) || period != 0, in et_start()
192 if (period != 0) { in et_start()
193 if (period < et->et_min_period) in et_start()
194 period = et->et_min_period; in et_start()
195 else if (period > et->et_max_period) in et_start()
196 period = et->et_max_period; in et_start()
198 if (period == 0 || first != 0) { in et_start()
[all …]
/freebsd-13.1/sys/dev/pwm/
H A Dpwm_backlight.c76 uint64_t period; member
139 sc->channel->duty = sc->channel->period * sc->levels[sc->default_level] / 100; in pwm_backlight_attach()
151 (unsigned int *)&sc->channel->period, in pwm_backlight_attach()
153 if (sc->channel->duty > sc->channel->period) in pwm_backlight_attach()
154 sc->channel->duty = sc->channel->period; in pwm_backlight_attach()
164 sc->channel->period, sc->channel->duty); in pwm_backlight_attach()
169 sc->channel->period / sc->channel->duty); in pwm_backlight_attach()
230 sc->channel->duty = sc->channel->period * in pwm_backlight_update_status()
235 sc->channel->duty = sc->channel->period * in pwm_backlight_update_status()
240 sc->channel->period, sc->channel->duty); in pwm_backlight_update_status()
[all …]
/freebsd-13.1/sys/contrib/device-tree/Bindings/input/
H A Drotary-encoder.txt17 - 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>".
H A Dbrcm,bcm-keypad.txt29 - col-debounce-filter-period: The debounce period for the Column filter.
40 - status-debounce-filter-period: The debounce period for the Status filter.
102 col-debounce-filter-period = <5>;
/freebsd-13.1/contrib/ldns/
H A Dduration.c200 uint32_t period = (uint32_t) duration; in digits_in_number() local
203 while (period > 0) { in digits_in_number()
205 period /= 10; in digits_in_number()
321 time_t period = 0; in ldns_duration2time() local
324 period += (duration->seconds); in ldns_duration2time()
325 period += (duration->minutes)*60; in ldns_duration2time()
326 period += (duration->hours)*3600; in ldns_duration2time()
327 period += (duration->days)*86400; in ldns_duration2time()
328 period += (duration->weeks)*86400*7; in ldns_duration2time()
329 period += (duration->months)*86400*31; in ldns_duration2time()
[all …]
/freebsd-13.1/sys/x86/isa/
H A Dclock.c111 uint32_t period; member
144 if (i8254_timecounter && sc->period != 0) { in clkintr()
329 set_i8254_freq(int mode, uint32_t period) in set_i8254_freq() argument
341 new_count = min(((uint64_t)i8254_freq * period + in set_i8254_freq()
485 if (sc->period == 0) in i8254_get_timecount()
521 if (period != 0) { in attimer_start()
523 sc->period = period; in attimer_start()
526 sc->period = first; in attimer_start()
532 set_i8254_freq(sc->mode, sc->period); in attimer_start()
543 sc->period = 0; in attimer_stop()
[all …]
/freebsd-13.1/sys/arm/ti/am335x/
H A Dam335x_ehrpwm.c269 tbprd = period / pwmtick; in am335x_ehrpwm_cfg_period()
348 if (period > USHRT_MAX) in am335x_ehrpwm_sysctl_freq()
351 sc->sc_pwm_period = period; in am335x_ehrpwm_sysctl_freq()
446 uint32_t period; in am335x_ehrpwm_sysctl_period() local
448 period = sc->sc_pwm_period; in am335x_ehrpwm_sysctl_period()
454 if (period < 1) in am335x_ehrpwm_sysctl_period()
457 if (period > USHRT_MAX) in am335x_ehrpwm_sysctl_period()
458 period = USHRT_MAX; in am335x_ehrpwm_sysctl_period()
467 sc->sc_pwm_period = period; in am335x_ehrpwm_sysctl_period()
506 u_int *period, u_int *duty) in am335x_ehrpwm_channel_get_config() argument
[all …]
H A Dam335x_ecap.c104 am335x_pwm_config_ecap(int unit, int period, int duty) in am335x_pwm_config_ecap() argument
114 if (duty > period) in am335x_pwm_config_ecap()
117 if (period == 0) in am335x_pwm_config_ecap()
128 ECAP_WRITE4(sc, ECAP_CAP3, period - 1); in am335x_pwm_config_ecap()
/freebsd-13.1/usr.sbin/pwm/
H A Dpwm.c79 u_int period, duty; in main() local
89 period = duty = -1; in main()
117 period = strtoul(optarg, NULL, 10); in main()
182 state.period, in main()
192 state.period = period; in main()
199 state.duty = (uint64_t)state.period * duty / 100; in main()
/freebsd-13.1/sys/dev/sound/pci/
H A Dhdspe-pcm.c47 uint32_t period; member
489 long long period; in hdspechan_setspeed() local
525 period = HDSPE_FREQ_AIO; in hdspechan_setspeed()
544 period /= speed; in hdspechan_setspeed()
545 hdspe_write_4(sc, HDSPE_FREQ_REG, period); in hdspechan_setspeed()
583 for (i = 0; latency_map[i].period != 0; i++) { in hdspechan_setblocksize()
584 if (latency_map[i].period == blocksize) { in hdspechan_setblocksize()
593 threshold = hl->period + ((latency_map[i + 1].period != 0) ? in hdspechan_setblocksize()
594 ((latency_map[i + 1].period - hl->period) >> 1) : 0); in hdspechan_setblocksize()
604 sc->period = hl->period; in hdspechan_setblocksize()
[all …]
/freebsd-13.1/contrib/ntp/adjtimed/
H A Dadjtimed.c280 struct itimerval period, remains; in AdjustClockRate() local
301 period.it_value.tv_sec = dt / slew_rate; in AdjustClockRate()
302 period.it_value.tv_usec = (dt % slew_rate) * (MILLION / slew_rate); in AdjustClockRate()
312 period.it_value.tv_sec, period.it_value.tv_usec); in AdjustClockRate()
315 period.it_value.tv_sec, period.it_value.tv_usec); in AdjustClockRate()
329 period.it_interval.tv_sec = period.it_interval.tv_usec = 0L; in AdjustClockRate()
330 setitimer(ITIMER_REAL, &period, &remains); in AdjustClockRate()
/freebsd-13.1/sys/arm64/rockchip/
H A Drk_pwm.c119 unsigned int period; member
211 sc->period = NS_PER_SEC / in rk_pwm_attach()
269 rk_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) in rk_pwm_channel_config() argument
282 period_freq = NS_PER_SEC / period; in rk_pwm_channel_config()
299 period_out = (sc->clk_freq * period) / NS_PER_SEC; in rk_pwm_channel_config()
324 sc->period = period; in rk_pwm_channel_config()
331 rk_pwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_int *duty) in rk_pwm_channel_get_config() argument
337 *period = sc->period; in rk_pwm_channel_get_config()
/freebsd-13.1/sys/arm/allwinner/
H A Daw_pwm.c89 unsigned int period; member
183 sc->period = NS_PER_SEC / in aw_pwm_attach()
248 aw_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) in aw_pwm_channel_config() argument
259 period_freq = NS_PER_SEC / period; in aw_pwm_channel_config()
321 sc->period = period; in aw_pwm_channel_config()
328 aw_pwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_int *duty) in aw_pwm_channel_get_config() argument
334 *period = sc->period; in aw_pwm_channel_get_config()
/freebsd-13.1/usr.sbin/periodic/
H A Dperiodic.conf351 periodvar=${var%enable}period
380 case "$period" in
386 case "$period" in
392 case "$period" in
399 case "$period" in
/freebsd-13.1/usr.bin/calendar/
H A Dpom.c186 double period = FSECSPERDAY / 2.0; in potm_minute() local
193 p1 = onday + (period / SECSPERDAY); in potm_minute()
194 period /= 2; in potm_minute()
196 while (period > 30) { /* half a minute */ in potm_minute()
204 p1 += (period / SECSPERDAY); in potm_minute()
206 p1 -= (period / SECSPERDAY); in potm_minute()
207 period /= 2; in potm_minute()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPTOptions.td19 def thread_trace_start_intel_pt_psb_period: Option<"psb-period", "p">,
22 Desc<"This value defines the period in which PSB packets will be "
27 "the PSB period will be defined by the processor. If supported, valid "
28 "values for this period can be found in "
58 def process_trace_start_intel_pt_psb_period: Option<"psb-period", "p">,
61 Desc<"This value defines the period in which PSB packets will be "
66 "the PSB period will be defined by the processor. If supported, valid "
67 "values for this period can be found in "
/freebsd-13.1/sys/arm/broadcom/bcm2835/
H A Dbcm2835_pwm.c67 uint32_t period; /* channel 1 */ member
151 W_RNG(sc, sc->period); in bcm_pwm_reconf()
152 if (sc->ratio > sc->period) in bcm_pwm_reconf()
153 sc->ratio = sc->period; in bcm_pwm_reconf()
192 r = sc->freq / sc->period; in bcm_pwm_pwm_freq_proc()
242 error = sysctl_handle_int(oidp, &sc->period, sizeof(sc->period), req); in bcm_pwm_period_proc()
260 if (r > sc->period) // XXX >= ? in bcm_pwm_ratio_proc()
461 sc->period = 10000; /* 12.5 khz */ in bcm_pwm_attach()
/freebsd-13.1/stand/i386/libi386/
H A Dtime.c110 delay(int period) in delay() argument
115 v86.ecx = period >> 16; in delay()
116 v86.edx = period & 0xffff; in delay()
/freebsd-13.1/sys/contrib/device-tree/Bindings/ptp/
H A Dptp-qoriq.txt16 - fsl,tclk-period Timer reference clock period in nanoseconds.
19 - fsl,tmr-fiper1 Fixed interval period pulse generator.
20 - fsl,tmr-fiper2 Fixed interval period pulse generator.
33 tclk_period = desired clock period nanoseconds
79 fsl,tclk-period = <10>;
/freebsd-13.1/tools/regression/netinet/ip_id_period/
H A Dip_id_period.py56 period = count - id_lastseen[id] variable
57 if id not in id_minperiod or period < id_minperiod[id]:
58 id_minperiod[id] = period
/freebsd-13.1/sys/contrib/device-tree/Bindings/pwm/
H A Dpwm-sifive.txt4 supports one period for all channels in the PWM. All PWMs need to run at
5 the same period. The period also has significant restrictions on the values
6 it can achieve, which the driver rounds to the nearest achievable period.
/freebsd-13.1/sys/contrib/device-tree/Bindings/sound/
H A Dti,tas5086.txt14 - ti,charge-period: This property should contain the time in microseconds
16 split-capacitor charge period. The hardware chip
17 waits for this period of time before starting the
44 ti,charge-period = <156000>;
/freebsd-13.1/contrib/dialog/
H A Dtimebox.c51 int period; member
95 int period, int value, in init_object() argument
105 data->period = period; in init_object()
106 data->value = value % period; in init_object()
379 obj->value += obj->period; in dialog_timebox()
380 obj->value %= obj->period; in dialog_timebox()
390 if (value < obj->period) { in dialog_timebox()
/freebsd-13.1/sys/contrib/device-tree/Bindings/mfd/
H A Dmax77620.txt45 period between each event is programmable within the configuration register.
91 -maxim,shutdown-fps-time-period-us: u32, FPS time period in microseconds
95 -maxim,suspend-fps-time-period-us: u32, FPS time period in microseconds
148 maxim,shutdown-fps-time-period-us = <1280>;
153 maxim,shutdown-fps-time-period-us = <1280>;
158 maxim,shutdown-fps-time-period-us = <1280>;
/freebsd-13.1/contrib/ntp/libntp/
H A Dadjtime.c299 struct _clockperiod period; in adjtime() local
317 if (ClockPeriod (CLOCK_REALTIME, 0, &period, 0) == -1) in adjtime()
323 count = 1e9 * ADJUST_PERIOD / period.nsec; in adjtime()
335 increment_limit = CORR_SLEW_LIMIT * period.nsec; in adjtime()

12345678910>>...16