/freebsd/sys/contrib/dev/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 …]
|
/freebsd/sys/kern/ |
H A D | kern_et.c | 179 et_start(struct eventtimer *et, sbintime_t first, sbintime_t period) in et_start() argument 184 KASSERT(period >= 0, ("et_start: negative period")); in et_start() 185 KASSERT((et->et_flags & ET_FLAGS_PERIODIC) || period == 0, in et_start() 187 KASSERT((et->et_flags & ET_FLAGS_ONESHOT) || period != 0, in et_start() 189 if (period != 0) { in et_start() 190 if (period < et->et_min_period) in et_start() 191 period = et->et_min_period; in et_start() 192 else if (period > et->et_max_period) in et_start() 193 period = et->et_max_period; in et_start() 195 if (period == 0 || first != 0) { in et_start() [all …]
|
/freebsd/sys/dev/pwm/ |
H A D | pwm_backlight.c | 70 uint64_t period; member 133 sc->channel->duty = sc->channel->period * sc->levels[sc->default_level] / 100; in pwm_backlight_attach() 138 device_printf(dev, "Configured period time: %ju\n", (uintmax_t)sc->channel->period); in pwm_backlight_attach() 145 (unsigned int *)&sc->channel->period, in pwm_backlight_attach() 147 if (sc->channel->duty > sc->channel->period) in pwm_backlight_attach() 148 sc->channel->duty = sc->channel->period; in pwm_backlight_attach() 150 device_printf(dev, "Configured period time: %ju\n", (uintmax_t)sc->channel->period); in pwm_backlight_attach() 158 sc->channel->period, sc->channel->duty); in pwm_backlight_attach() 163 sc->channel->period / sc->channel->duty); in pwm_backlight_attach() 224 sc->channel->duty = sc->channel->period * in pwm_backlight_update_status() [all …]
|
/freebsd/sys/contrib/device-tree/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>".
|
/freebsd/sys/x86/isa/ |
H A D | clock.c | 107 uint32_t period; member 124 static void set_i8254_freq(int mode, uint32_t period); 141 if (i8254_timecounter && sc->period != 0) { in clkintr() 326 set_i8254_freq(int mode, uint32_t period) in set_i8254_freq() argument 338 new_count = min(((uint64_t)i8254_freq * period + in set_i8254_freq() 389 set_i8254_freq(attimer_sc->mode, attimer_sc->period); in i8254_restore() 451 set_i8254_freq(attimer_sc->mode, attimer_sc->period); in sysctl_machdep_i8254_freq() 474 if (sc->period == 0) in i8254_get_timecount() 505 attimer_start(struct eventtimer *et, sbintime_t first, sbintime_t period) in attimer_start() argument 510 if (period != 0) { in attimer_start() [all …]
|
/freebsd/contrib/ldns/ |
H A D | duration.c | 248 time_t period = 0; in ldns_duration2time() local 251 period += (duration->seconds); in ldns_duration2time() 252 period += (duration->minutes)*60; in ldns_duration2time() 253 period += (duration->hours)*3600; in ldns_duration2time() 254 period += (duration->days)*86400; in ldns_duration2time() 255 period += (duration->weeks)*86400*7; in ldns_duration2time() 256 period += (duration->months)*86400*31; in ldns_duration2time() 257 period += (duration->years)*86400*365; in ldns_duration2time() 265 return period; in ldns_duration2time()
|
/freebsd/usr.sbin/pwm/ |
H A D | pwm.c | 77 u_int period, duty; in main() local 87 period = duty = -1; in main() 115 period = strtoul(optarg, NULL, 10); in main() 180 state.period, in main() 190 state.period = period; in main() 197 state.duty = (uint64_t)state.period * duty / 100; in main()
|
/freebsd/tools/test/stress2/misc/ |
H A D | namecache2.sh | 136 struct timespec period; 171 period.tv_sec = 0; 172 period.tv_nsec = 500; 173 nanosleep(&period, 0); 178 period.tv_sec = 0; 179 period.tv_nsec = 500; 180 nanosleep(&period, 0);
|
/freebsd/sys/dev/pwm/controller/rockchip/ |
H A D | rk_pwm.c | 114 unsigned int period; member 206 sc->period = NS_PER_SEC / in rk_pwm_attach() 264 rk_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) in rk_pwm_channel_config() argument 277 period_freq = NS_PER_SEC / period; in rk_pwm_channel_config() 283 device_printf(sc->dev, "duty < period\n"); in rk_pwm_channel_config() 293 /* XXX Expand API to allow for 64 bit period/duty. */ in rk_pwm_channel_config() 294 period_out = (sc->clk_freq * period) / NS_PER_SEC; in rk_pwm_channel_config() 319 sc->period = period; in rk_pwm_channel_config() 326 rk_pwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_in argument [all...] |
/freebsd/contrib/ntp/adjtimed/ |
H A D | adjtimed.c | 280 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/sys/dev/pwm/controller/allwinner/ |
H A D | aw_pwm.c | 84 unsigned int period; member 178 sc->period = NS_PER_SEC / in aw_pwm_attach() 243 aw_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) in aw_pwm_channel_config() argument 254 period_freq = NS_PER_SEC / period; in aw_pwm_channel_config() 267 * FIXME. There is a great loss of precision when the period and the in aw_pwm_channel_config() 269 * be equal even if the period and the duty are significantly different. in aw_pwm_channel_config() 273 device_printf(sc->dev, "duty < period\n"); in aw_pwm_channel_config() 316 sc->period = period; in aw_pwm_channel_config() 323 aw_pwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_in argument [all...] |
/freebsd/usr.bin/calendar/ |
H A D | pom.c | 172 double period = FSECSPERDAY / 2.0; in potm_minute() local 179 p1 = onday + (period / SECSPERDAY); in potm_minute() 180 period /= 2; in potm_minute() 182 while (period > 30) { /* half a minute */ in potm_minute() 190 p1 += (period / SECSPERDAY); in potm_minute() 192 p1 -= (period / SECSPERDAY); in potm_minute() 193 period /= 2; in potm_minute()
|
/freebsd/usr.sbin/periodic/ |
H A D | periodic.conf | 349 local var="$1" periodvar value period 357 periodvar=${var%enable}period 358 eval period=\"\$$periodvar\" 361 case "$period" in 367 case "$period" in 373 case "$period" in 380 case "$period" in
|
/freebsd/sys/dev/sound/pci/ |
H A D | hdspe-pcm.c | 47 uint32_t period; member 569 if (length > (sc->period * 4 * 2)) in buffer_copy() 570 length = (sc->period * 4 * 2); in buffer_copy() 833 long long period; in hdspechan_setspeed() local 872 period = HDSPE_FREQ_AIO; in hdspechan_setspeed() 891 period /= speed; in hdspechan_setspeed() 892 hdspe_write_4(sc, HDSPE_FREQ_REG, period); in hdspechan_setspeed() 933 for (i = 0; latency_map[i].period != 0; i++) { in hdspechan_setblocksize() 934 if (latency_map[i].period == blocksize) in hdspechan_setblocksize() 940 for (i = 0; latency_map[i].period != 0; i++) { in hdspechan_setblocksize() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/ptp/ |
H A D | ptp-qoriq.txt | 16 - 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. 21 - fsl,tmr-fiper3 Fixed interval period pulse generator. 35 tclk_period = desired clock period nanoseconds 81 fsl,tclk-period = <10>;
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | thermal.c | 127 u32 period, duration, enabled; in ath10k_thermal_set_throttling() local 141 period = ar->thermal.quiet_period; in ath10k_thermal_set_throttling() 142 duration = (period * ar->thermal.throttle_state) / 100; in ath10k_thermal_set_throttling() 145 ret = ath10k_wmi_pdev_set_quiet_mode(ar, period, duration, in ath10k_thermal_set_throttling() 150 period, duration, enabled, ret); in ath10k_thermal_set_throttling()
|
/freebsd/sys/arm/ti/am335x/ |
H A D | am335x_ehrpwm.c | 239 am335x_ehrpwm_cfg_period(struct am335x_ehrpwm_softc *sc, u_int period) in am335x_ehrpwm_cfg_period() argument 245 if (period < 2 * NS_PER_SEC / PWM_CLOCK) { in am335x_ehrpwm_cfg_period() 263 if (period / pwmtick < 65536) { in am335x_ehrpwm_cfg_period() 264 tbprd = period / pwmtick; in am335x_ehrpwm_cfg_period() 296 sc->sc_clkfreq, sc->sc_clktick, sc->sc_period, period); in am335x_ehrpwm_cfg_period() 319 am335x_ehrpwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) in am335x_ehrpwm_channel_config() argument 330 status = am335x_ehrpwm_cfg_period(sc, period); in am335x_ehrpwm_channel_config() 340 u_int *period, u_int *duty) in am335x_ehrpwm_channel_get_config() argument 348 *period = sc->sc_period; in am335x_ehrpwm_channel_get_config()
|
H A D | am335x_ecap.c | 106 am335x_pwm_config_ecap(int unit, int period, int duty) in am335x_pwm_config_ecap() argument 116 if (duty > period) in am335x_pwm_config_ecap() 119 if (period == 0) in am335x_pwm_config_ecap() 130 ECAP_WRITE4(sc, ECAP_CAP3, period - 1); in am335x_pwm_config_ecap()
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_pwm.c | 64 uint32_t period; /* channel 1 */ member 148 W_RNG(sc, sc->period); in bcm_pwm_reconf() 149 if (sc->ratio > sc->period) in bcm_pwm_reconf() 150 sc->ratio = sc->period; in bcm_pwm_reconf() 189 r = sc->freq / sc->period; in bcm_pwm_pwm_freq_proc() 239 error = sysctl_handle_int(oidp, &sc->period, sizeof(sc->period), req); in bcm_pwm_period_proc() 257 if (r > sc->period) // XXX >= ? in bcm_pwm_ratio_proc() 458 sc->period = 10000; /* 12.5 khz */ in bcm_pwm_attach()
|
/freebsd/stand/i386/libi386/ |
H A D | time.c | 107 delay(int period) in delay() argument 112 v86.ecx = period >> 16; in delay() 113 v86.edx = period & 0xffff; in delay()
|
/freebsd/sys/contrib/device-tree/Bindings/pwm/ |
H A D | pwm-sifive.txt | 4 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/sys/contrib/device-tree/Bindings/sound/ |
H A D | ti,tas5086.txt | 14 - 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/tools/regression/netinet/ip_id_period/ |
H A D | ip_id_period.py | 55 period = count - id_lastseen[id] variable 56 if id not in id_minperiod or period < id_minperiod[id]: 57 id_minperiod[id] = period
|
/freebsd/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | file_clock.h | 52 typedef nano period; typedef 55 typedef nano period; 58 typedef chrono::duration<rep, period> duration;
|
/freebsd/contrib/dialog/ |
H A D | timebox.c | 51 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()
|