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

12345678

/freebsd-12-stable/sys/arm/ti/am335x/
H A Dam335x_pwm.h33 int am335x_pwm_config_ecap(int unit, int period, int duty);
H A Dam335x_ehrpwm.c244 am335x_ehrpwm_cfg_period(struct am335x_ehrpwm_softc *sc, u_int period) argument
249 /* Can't do a period shorter than 2 clock ticks. */
250 if (period < 2 * NS_PER_SEC / PWM_CLOCK) {
259 * that we can express the requested period as a 16-bit tick count.
268 if (period / pwmtick < 65536) {
269 tbprd = period / pwmtick;
277 /* Handle requested period too long for available clock divisors. */
283 * clock divisors and period register.
300 "clkfreq %u Hz clktick %u ns period got %u requested %u\n",
302 sc->sc_clkfreq, sc->sc_clktick, sc->sc_period, period);
327 int clkdiv, error, freq, i, period; local
447 uint32_t period; local
486 am335x_ehrpwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) argument
506 am335x_ehrpwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_int *duty) argument
[all...]
H A Dam335x_ecap.c101 * API function to set period/duty cycles for ECAPx
104 am335x_pwm_config_ecap(int unit, int period, int duty) argument
114 if (duty > period)
117 if (period == 0)
128 ECAP_WRITE4(sc, ECAP_CAP3, period - 1);
/freebsd-12-stable/sys/dev/pwm/
H A Dpwmc.h37 u_int period; member in struct:pwm_state
H A Dofw_pwm.h39 uint64_t period; member in struct:pwm_channel
/freebsd-12-stable/usr.bin/indent/
H A Dindent_codes.h72 #define period 32 macro
/freebsd-12-stable/contrib/ldns/
H A Dduration.c200 uint32_t period = (uint32_t) duration; local
203 while (period > 0) {
205 period /= 10;
321 time_t period = 0; local
324 period += (duration->seconds);
325 period += (duration->minutes)*60;
326 period += (duration->hours)*3600;
327 period += (duration->days)*86400;
328 period += (duration->weeks)*86400*7;
329 period
[all...]
/freebsd-12-stable/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
69 print("id: %d period: %d" % (id_tuple[1], id_tuple[0]))
76 print("id: %d period: %d" % (id_tuple[1], id_tuple[0]))
/freebsd-12-stable/stand/i386/libi386/
H A Dtime.c104 * Use the BIOS Wait function to pause for (period) microseconds.
110 delay(int period) argument
115 v86.ecx = period >> 16;
116 v86.edx = period & 0xffff;
/freebsd-12-stable/sys/kern/
H A Dkern_et.c179 * period - period of subsequent periodic ticks.
182 et_start(struct eventtimer *et, sbintime_t first, sbintime_t period) argument
187 KASSERT(period >= 0, ("et_start: negative period"));
188 KASSERT((et->et_flags & ET_FLAGS_PERIODIC) || period == 0,
189 ("et_start: period specified for oneshot-only timer"));
190 KASSERT((et->et_flags & ET_FLAGS_ONESHOT) || period != 0,
191 ("et_start: period not specified for periodic-only timer"));
192 if (period !
[all...]
/freebsd-12-stable/usr.sbin/pwm/
H A Dpwm.c70 fprintf(stderr, "\tpwm [-f dev] [-D | -E] [-p period] [-d duty[%%]]\n");
79 u_int period, duty; local
89 period = duty = -1;
112 period = strtoul(optarg, NULL, 10);
176 printf("period: %u\nduty: %u\nenabled:%d\n",
177 state.period,
186 state.period = period;
189 state.duty = (uint64_t)state.period * duty / 100;
/freebsd-12-stable/usr.sbin/periodic/
H A Dperiodic.conf346 periodvar=${var%enable}period
363 local var="$1" periodvar value period
371 periodvar=${var%enable}period
372 eval period=\"\$$periodvar\"
375 case "$period" in
381 case "$period" in
387 case "$period" in
394 case "$period" in
/freebsd-12-stable/sys/x86/isa/
H A Dclock.c105 uint32_t period; member in struct:attimer_softc
122 static void set_i8254_freq(int mode, uint32_t period);
138 if (i8254_timecounter && sc->period != 0) {
323 set_i8254_freq(int mode, uint32_t period) argument
335 new_count = min(((uint64_t)i8254_freq * period +
386 set_i8254_freq(attimer_sc->mode, attimer_sc->period);
467 set_i8254_freq(attimer_sc->mode, attimer_sc->period);
489 if (sc->period == 0)
520 attimer_start(struct eventtimer *et, sbintime_t first, sbintime_t period) argument
525 if (period !
[all...]
/freebsd-12-stable/sys/sys/
H A Dtimeet.h50 sbintime_t first, sbintime_t period);
99 int et_start(struct eventtimer *et, sbintime_t first, sbintime_t period);
/freebsd-12-stable/contrib/ntp/adjtimed/
H A Dadjtimed.c280 struct itimerval period, remains; local
293 * Apply a slew rate of slew_rate over a period of dt/slew_rate seconds.
301 period.it_value.tv_sec = dt / slew_rate;
302 period.it_value.tv_usec = (dt % slew_rate) * (MILLION / slew_rate);
304 * Note: we assume the kernel will convert the specified period into ticks
312 period.it_value.tv_sec, period.it_value.tv_usec);
315 period.it_value.tv_sec, period.it_value.tv_usec);
327 * (do this after changing the rate because the period ha
[all...]
/freebsd-12-stable/sys/arm64/rockchip/
H A Drk_pwm.c118 unsigned int period; member in struct:rk_pwm_softc
210 sc->period = NS_PER_SEC /
268 rk_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) argument
281 period_freq = NS_PER_SEC / period;
287 device_printf(sc->dev, "duty < period\n");
297 /* XXX Expand API to allow for 64 bit period/duty. */
298 period_out = (sc->clk_freq * period) / NS_PER_SEC;
323 sc->period = period;
330 rk_pwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_in argument
[all...]
/freebsd-12-stable/sys/dev/sound/pci/
H A Dhdspe-pcm.c47 uint32_t period; member in struct:hdspe_latency
291 for (i = 0; i < sc->period * 2 /* fragments */; i++) {
491 long long period; local
527 period = HDSPE_FREQ_AIO;
546 period /= speed;
547 hdspe_write_4(sc, HDSPE_FREQ_REG, period);
585 for (i = 0; latency_map[i].period != 0; i++) {
586 if (latency_map[i].period == blocksize) {
593 for (i = 0; latency_map[i].period != 0; i++) {
595 threshold = hl->period
[all...]
/freebsd-12-stable/usr.bin/calendar/
H A Dpom.c186 double period = FSECSPERDAY / 2.0; local
193 p1 = onday + (period / SECSPERDAY);
194 period /= 2;
196 while (period > 30) { /* half a minute */
197 // printf("period:%g - p1:%g - ", period, p1);
204 p1 += (period / SECSPERDAY);
206 p1 -= (period / SECSPERDAY);
207 period /= 2;
208 // printf("newdir:%d - p1:%10.10f - period
[all...]
/freebsd-12-stable/sys/arm/allwinner/
H A Daw_pwm.c89 unsigned int period; member in struct:aw_pwm_softc
183 sc->period = NS_PER_SEC /
248 aw_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) argument
259 period_freq = NS_PER_SEC / period;
272 * FIXME. There is a great loss of precision when the period and the
274 * be equal even if the period and the duty are significantly different.
278 device_printf(sc->dev, "duty < period\n");
321 sc->period = period;
328 aw_pwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_in argument
[all...]
/freebsd-12-stable/contrib/ntp/libntp/
H A Dadjtime.c256 * 1 second period until the desired delta is achieved.
273 * execution period (1s). If slightly less than 1s (0.95-0.99), then olddelta
274 * residual error (introduced by execution period jitter) will be reduced.
299 struct _clockperiod period; local
315 * Get the current clock period (nanoseconds)
317 if (ClockPeriod (CLOCK_REALTIME, 0, &period, 0) == -1)
323 count = 1e9 * ADJUST_PERIOD / period.nsec;
335 increment_limit = CORR_SLEW_LIMIT * period.nsec;
/freebsd-12-stable/sys/powerpc/powerpc/
H A Dclock.c90 sbintime_t first, sbintime_t period);
231 decr_et_start(struct eventtimer *et, sbintime_t first, sbintime_t period) argument
239 if (period != 0) {
241 s->div = (decr_et.et_frequency * period) >> 32;
/freebsd-12-stable/release/picobsd/tinyware/passwd/
H A Dlocal_passwd.c128 time_t period; local
134 period = login_getcaptime(lc, "passwordtime", 0, 0);
135 if (period > (time_t)0) {
136 pw->pw_change = time(NULL) + period;
/freebsd-12-stable/contrib/dialog/
H A Dtimebox.c51 int period; member in struct:_box
95 int period, int value,
105 data->period = period;
106 data->value = value % period;
366 obj->value += obj->period;
367 obj->value %= obj->period;
377 if (value < obj->period) {
91 init_object(BOX * data, WINDOW *parent, int x, int y, int width, int height, int period, int value, int code) argument
/freebsd-12-stable/sys/dev/advansys/
H A Dadvlib.c356 tinfo->current.period,
376 /*period*/0,
712 tid_no, /*period*/0, /*offset*/0,
714 if (tinfo->current.period != tinfo->goal.period) {
715 adv_msgout_sdtr(adv, tinfo->goal.period,
967 tid_no, /*period*/0, /*offset*/0,
972 tid_no, /*period*/0, /*offset*/0,
990 tid_no, /*period*/0, /*offset*/0,
992 if (tinfo->current.period !
1079 adv_sdtr_to_period_offset(struct adv_softc *adv, u_int8_t sync_data, u_int8_t *period, u_int8_t *offset, int tid) argument
1093 adv_set_syncrate(struct adv_softc *adv, struct cam_path *path, u_int tid, u_int period, u_int offset, u_int type) argument
1174 adv_period_offset_to_sdtr(struct adv_softc *adv, u_int *period, u_int *offset, int tid) argument
1915 u_int period; local
[all...]
/freebsd-12-stable/sys/arm/broadcom/bcm2835/
H A Dbcm2835_pwm.c67 uint32_t period; /* channel 1 */ member in struct:bcm_pwm_softc
142 * defined by 'period'. So if 'ratio' is 2500 and 'period' is 10000, then the output
151 W_RNG(sc, sc->period);
152 if (sc->ratio > sc->period)
153 sc->ratio = sc->period;
192 r = sc->freq / sc->period;
242 error = sysctl_handle_int(oidp, &sc->period, sizeof(sc->period), req);
260 if (r > sc->period) // XX
[all...]

Completed in 196 milliseconds

12345678