Home
last modified time | relevance | path

Searched +full:poll +full:- +full:timeout +full:- +full:ms (Results 1 – 25 of 156) sorted by relevance

1234567

/freebsd/sys/contrib/device-tree/Bindings/serial/
H A Dpl011.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
13 - $ref: /schemas/arm/primecell.yaml#
14 - $ref: serial.yaml#
22 - arm,pl011
24 - compatible
29 - const: arm,pl011
30 - const: arm,primecell
[all …]
/freebsd/tests/sys/kern/
H A Dprace.c1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
9 * handler and repeatedly calls either ppoll() or pselect() with a 1 ms
10 * timeout, while the parent repeatedly sends SIGINT to the child at
22 #include <poll.h>
28 #include <atf-c.h>
39 child(int rd, bool poll) in child() argument
41 struct timespec timeout = { .tv_nsec = 1000000 }; in child() local
57 /* sleep for 1 ms with signals unblocked */ in child()
58 ret = poll ? ppoll(NULL, 0, &timeout, &set0) : in child()
[all …]
/freebsd/contrib/less/
H A Dos.c2 * Copyright (C) 1984-2024 Mark Nudelman
50 #include <poll.h>
96 /* In old versions of MacOS, poll() does not work with /dev/tty. */ in init_poll()
114 int timeout = (waiting_for_data && !(scanning_eof && follow_mode == FOLLOW_NAME)) ? -1 : waiting_for_data_delay; in check_poll()
124 poll(poller, 2, timeout); in check_poll()
139 /* Break out of F loop on HUP due to --exit-follo in check_poll()
116 int timeout = (waiting_for_data && !(scanning_eof && follow_mode == FOLLOW_NAME)) ? -1 : waiting_for_data_delay; check_poll() local
490 sleep_ms(int ms) sleep_ms() argument
[all...]
/freebsd/contrib/netbsd-tests/lib/libc/gen/
H A Dt_sleep.c3 /*-
34 #include <atf-c.h>
37 #include <poll.h>
46 #define BILLION 1000000000LL /* nano-seconds per second */
47 #define MILLION 1000000LL /* nano-seconds per milli-second */
51 #define KEVNT_TIMEOUT 10300 /* measured in milli-seconds */
52 #define FUZZ (40 * MILLION) /* scheduling fuzz accepted - 40 ms */
58 * starts at 1sec (since it cannot handle sub-second intervals).
102 if (nanosleep(delay, remain) == -1) in do_nanosleep()
116 if (select(0, NULL, NULL, NULL, &tv) == -1) in do_select()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Drefclock_acts.c2 * refclock_acts - clock driver for the NIST/USNO/PTB/NPL Computer Time
33 * This driver requires a modem with a Hayes-compatible command set and
35 * modem setup string is hard-coded in the driver and may require
41 * followed by the number itself, including the long-distance prefix
43 * when (a) fudge flag1 is set by ntpdc, (b) at each poll interval
45 * poll interval whether or not other synchronization sources are
69 * driver will send a single character 'T' at each poll event. If
76 * Phone: (303) 494-4774 (Boulder, CO); (808) 335-4721 (Hawaii)
85 * 47999 90-0
[all...]
H A Drefclock_pst.c2 * refclock_pst - clock driver for PSTI/Traconex WWV/WWVH receivers
22 * but actual experience suggests that 10 ms would be a conservative
25 * The DIPswitches should be set for 9600 bps line speed, 24-hour day-
26 * of-year format and UTC time zone. Automatic correction for DST should
32 * be set only to within 11 ms, the fudge time1 parameter can be used
35 * Using the poll sequence QTQDQM, the response timecode is in three
41 * on-time = first <cr>
43 * a = AM/PM indicator (' ' for 24-hour mode)
46 * s = daylight-savin
[all...]
H A Drefclock_wwvb.c2 * refclock_wwvb - clock driver for Spectracom WWVB and GPS receivers
36 * The WWVB and GPS clocks should be configured for 24-hour display,
42 * to a 'T' poll character or left running continuously.
53 * on-time = first <cr>
65 * on-time = <cr>
77 * The q is normally ' ' when the time error is less than 1 ms and a
79 * 100, 500 and greater than 500 ms respectively. The l is normally ' ',
87 * This driver does not need to be told which format is in use - it
98 * the PPS signal fails for one or more poll intervals, the driver
99 * reverts to the timecode. If the timecode fails for one or more poll
[all...]
H A Drefclock_arbiter.c2 * refclock_arbiter - clock driver for Arbiter 1088A/B Satellite
31 * The timecode format supported by this driver is selected by the poll
33 * repeated once per second until turned off by the "B0" poll sequence.
39 * on-time = <cr>
53 * Format TQ (IEEE P1344 estimated worst-case time quality)
60 * 7 clock unlocked, accuracy < 1 ms
61 * 8 clock unlocked, accuracy < 10 ms
62 * 9 clock unlocked, accuracy < 100 ms
81 * deviation mode and connected to a 1-PPS signal, the last two numbers
93 #define PRECISION (-2
[all...]
H A Dntp_refclock.c2 * ntp_refclock - processing support for reference clocks
53 * In addition, there may be a driver-specific unit structure used for
57 * which is used for all peer-specific processing and contains a
82 #if MAXSTAGE & (MAXSTAGE - 1)
89 pp->coderecv = (pp->coderecv + 1) % MAXSTAGE; in clk_add_sample()
90 if (pp->coderecv == pp->codeproc) in clk_add_sample()
91 pp->codeproc = (pp->codepro in clk_add_sample()
1520 struct timespec timeout; refclock_pps() local
1667 struct timespec timeout; refclock_ppsaugment() local
[all...]
H A Drefclock_heath.c2 * refclock_heath - clock driver for Heath GC-1000
3 * (but no longer the GC-1001 Model II, which apparently never worked)
25 * This driver supports the Heath GC-1000 Most Accurate Clock, with
27 * robust than other supported receivers. Its claimed accuracy is 100 ms
32 * sunset without warning. Since the indicated precision is 100 ms,
35 * clock_max of 128 ms.
37 * There were two GC-1000 versions supported by this driver. The original
38 * GC-1000 with RS-23
[all...]
H A Drefclock_fg.c2 * refclock_fg - clock driver for the Forum Graphic GPS datating station
27 #define PRECISION (-10) /* precision assumed (about 1 ms) */
47 int pollnum; /* Use peer.poll instead? */
66 fg_poll, /* transmit poll message */
74 * fg_init - Initialization of FG GPS.
89 * fg_start - open the device and initialize data for processing
110 fd = refclock_open(&peer->srcadr, device, SPEED232, LDISC_CLK); in fg_start()
120 pp = peer->procptr; in fg_start()
121 pp->unitpt in fg_start()
[all...]
/freebsd/sys/dev/ixgbe/
H A Dixgbe_82598.c2 SPDX-License-Identifier: BSD-3-Clause
4 Copyright (c) 2001-2020, Intel Corporation
71 * ixgbe_set_pcie_completion_timeout - set pci-e completion timeout
74 * The defaults for 82598 should be in the range of 50us to 50ms,
75 * however the hardware default for these parts is 500us to 1ms which is less
76 * than the 10ms recommended by the pci-e spec. To address this we need to
77 * increase the value to either 10ms to 250ms for capability version 1 config,
78 * or 16ms to 55ms for version 2.
85 /* only take action if timeout value is defaulted to 0 */ in ixgbe_set_pcie_completion_timeout()
91 * timeout of 10ms to 250ms through the GCR register in ixgbe_set_pcie_completion_timeout()
[all …]
H A Dixgbe_82599.c2 SPDX-License-Identifier: BSD-3-Clause
4 Copyright (c) 2001-2020, Intel Corporation
63 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_82599()
71 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && in ixgbe_init_mac_link_ops_82599()
73 mac->ops.disable_tx_laser = in ixgbe_init_mac_link_ops_82599()
75 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599()
77 mac->ops.flap_tx_laser = ixgbe_flap_tx_laser_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
80 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
81 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
82 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
[all …]
/freebsd/usr.bin/whois/
H A Dwhois.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
34 #include <sys/poll.h>
52 #define DKNICHOST "whois.dk-hostmaster.dk"
62 #define QNICHOST_TAIL ".whois-servers.net"
64 #define VNICHOST "whois.verisign-grs.com"
74 #define ishost(h) (isalnum((unsigned char)h) || h == '.' || h == '-')
85 { "-ARIN", ANICHOST },
86 { "-NICAT", "at" QNICHOST_TAIL },
87 { "-NORID", "no" QNICHOST_TAIL },
[all …]
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_sis.c1 /*-
2 * Copyright 2016-2023 Microchip Technology, Inc. and/or its subsidiaries.
37 db_reg = PCI_MEM_GET32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_disable_msix()
40 PCI_MEM_PUT32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_disable_msix()
42 OS_SLEEP(1000); /* 1 ms delay for PCI W/R ordering issue */ in sis_disable_msix()
54 db_reg = PCI_MEM_GET32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_enable_intx()
57 PCI_MEM_PUT32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_enable_intx()
59 OS_SLEEP(1000); /* 1 ms delay for PCI W/R ordering issue */ in sis_enable_intx()
74 db_reg = PCI_MEM_GET32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_disable_intx()
77 PCI_MEM_PUT32(softs, &softs->ioa_reg->host_to_ioa_db, in sis_disable_intx()
[all …]
/freebsd/libexec/getty/
H A Dsubr.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
39 #include <poll.h>
78 for (sp = gettystrs; sp->field; sp++) in gettable()
79 if (sp->value != NULL) { in gettable()
84 l = strlen(sp->value) + 1; in gettable()
86 strlcpy(p, sp->value, l); in gettable()
91 sp->value = p; in gettable()
102 case -1: in gettable()
105 case -2: in gettable()
[all …]
/freebsd/sys/dev/msk/
H A Dif_mskreg.h17 * are provided to you under the BSD-type license terms provided
22 * - Redistributions of source code must retain the above copyright
24 * - Redistributions in binary form must reproduce the above
28 * - Neither the name of Marvell nor the names of its contributors
48 /*-
49 * SPDX-License-Identifier: BSD-4-Clause AND BSD-3-Clause
65 * 4. Neither the name of the author nor the names of any co-contributors
82 /*-
110 * D-Link PCI vendor ID
154 * D-Link gigabit ethernet device ID
[all …]
/freebsd/sys/dev/imcsmb/
H A Dimcsmb.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2017-2018 Panasas
87 sc->dev = dev; in imcsmb_attach()
88 sc->imcsmb_pci = device_get_parent(dev); in imcsmb_attach()
89 sc->regs = device_get_ivars(dev); in imcsmb_attach()
92 sc->smbus = device_add_child(dev, "smbus", DEVICE_UNIT_ANY); in imcsmb_attach()
93 if (sc->smbus == NULL) { in imcsmb_attach()
157 rc = imcsmb_pci_request_bus(sc->imcsmb_pci); in imcsmb_callback()
161 imcsmb_pci_release_bus(sc->imcsmb_pci); in imcsmb_callback()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dlibslirp.h1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
113 /* Modify a timer to expire at @expire_time (ms) */
119 /* Kick the io-thread, to signal that new events may be processed because some TCP buffer
219 * MAC address allocated for an out-of-band management controller, to be
220 * retrieved through NC-SI.
245 /* This is called by the application when it is about to sleep through poll().
246 * *timeout is set to the amount of virtual time (in ms) that the application intends to
253 void slirp_pollfds_fill(Slirp *slirp, uint32_t *timeout,
261 * select_error should be passed 1 if poll() returned an error. */
[all …]
/freebsd/crypto/openssh/
H A Dmisc.c4 * Copyright (c) 2005-2020 Damien Miller. All rights reserved.
37 #include <poll.h>
104 for (i--; i > 0; i--) { in rtrim()
131 /* set/unset filedescriptor to non-blocking */
138 if (val == -1) { in set_nonblock()
140 return (-1); in set_nonblock()
148 if (fcntl(fd, F_SETFL, val) == -1) { in set_nonblock()
151 return (-1); in set_nonblock()
162 if (val == -1) { in unset_nonblock()
164 return (-1); in unset_nonblock()
[all …]
/freebsd/sys/dev/sfxge/
H A Dsfxge_mcdi.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2010-2016 Solarflare Communications Inc.
56 #define SFXGE_MCDI_POLL_INTERVAL_MAX 100000 /* 100ms in 1us units */
61 device_t dev = sc->dev; in sfxge_mcdi_timeout()
80 enp = sc->enp; in sfxge_mcdi_poll()
103 /* Exponentially back off the poll frequency. */ in sfxge_mcdi_poll()
119 mcdi = &sc->mcdi; in sfxge_mcdi_execute()
123 KASSERT(mcdi->state == SFXGE_MCDI_INITIALIZED, in sfxge_mcdi_execute()
126 /* Issue request and poll for completion. */ in sfxge_mcdi_execute()
[all …]
/freebsd/contrib/libpcap/
H A Dpcap-dag.c2 * pcap-dag.c: Packet capture interface for Endace DAG cards.
18 #include "pcap-int.h"
35 #include "pcap-dag.h"
175 int dag_timeout; /* timeout specified to pcap_open_live.
182 /* Timeout caller must use in event loops */
218 for (prev = NULL, curr = pcap_dags; curr != NULL && curr->p != p; prev = curr, curr = curr->next) { in delete_pcap_dag()
222 if (curr != NULL && curr->p == p) { in delete_pcap_dag()
224 prev->next = curr->next; in delete_pcap_dag()
226 pcap_dags = curr->next; in delete_pcap_dag()
239 struct pcap_dag *pd = p->priv; in dag_platform_cleanup()
[all …]
/freebsd/lib/libradius/
H A Dlibradius.337 …uct rad_handle *h" "const char *host" "int port" "const char *secret" "int timeout" "int max_tries"
39 …t rad_handle *h" "const char *host" "int port" "const char *secret" "int timeout" "int max_tries" …
153 returns 0 on success, or \-1 if an error occurs.
165 domain name or as a dotted-quad IP address in text form.
185 .Dv NUL Ns -terminated
189 The timeout for receiving replies from the server is passed to the
190 .Fa timeout
204 returns 0 on success, or \-1 if an error occurs.
212 When multiple servers are given, they are tried in round-robin
231 returns 0 on success, or \-1 on if an error occurs.
[all …]
/freebsd/contrib/atf/atf-sh/
H A Datf-check.cpp47 #include "atf-c++/check.hpp"
48 #include "atf-c++/detail/application.hpp"
49 #include "atf-c++/detail/auto_array.hpp"
50 #include "atf-c++/detail/env.hpp"
51 #include "atf-c++/detail/exceptions.hpp"
52 #include "atf-c++/detail/fs.hpp"
53 #include "atf-c++/detail/process.hpp"
54 #include "atf-c++/detail/sanity.hpp"
55 #include "atf-c++/detail/text.hpp"
61 // ------------------------------------------------------------------------
[all …]
/freebsd/sys/dev/pms/RefTisa/sallsdk/spc/
H A Dsahw.c2 *Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved.
83 * \return -void-
112 if (agNULL != agRoot->sdkData) in saHwReset()
114 saRoot = (agsaLLRoot_t*) agRoot->sdkData; in saHwReset()
115 sysIntsActive = saRoot->sysIntsActive; in saHwReset()
131 if (agNULL != agRoot->sdkData) in saHwReset()
163 fatal_error.regDumpBusBaseNum0 = saRoot->mainConfigTable.regDumpPCIBAR; in saHwReset()
164 fatal_error.regDumpBusBaseNum1 = saRoot->mainConfigTable.regDumpPCIBAR; in saHwReset()
165 fatal_error.regDumpLen0 = saRoot->mainConfigTable.FatalErrorDumpLength0; in saHwReset()
166 fatal_error.regDumpLen1 = saRoot->mainConfigTable.FatalErrorDumpLength1; in saHwReset()
[all …]

1234567