Home
last modified time | relevance | path

Searched +full:wait +full:- +full:retry +full:- +full:us (Results 1 – 25 of 259) sorted by relevance

1234567891011

/freebsd/sys/contrib/device-tree/Bindings/i2c/
H A Di2c-arb-gpio-challenge.txt1 GPIO-based I2C Arbitration Using a Challenge & Response Mechanism
7 the standard I2C multi-master rules. Using GPIOs is generally useful in
21 others can see. These are all active low with pull-ups enabled. We'll
24 - OUR_CLAIM: output from us signaling to other hosts that we want the bus
25 - THEIR_CLAIMS: output from others signaling that they want the bus
37 4. Otherwise, wait for a few milliseconds and see if THEIR_CLAIMS are released.
38 5. If not, back off, release the claim and wait for a few more milliseconds.
39 6. Go back to 1 (until retry time has expired).
43 - compatible: i2c-arb-gpio-challenge
44 - our-claim-gpio: The GPIO that we use to claim the bus.
[all …]
/freebsd/contrib/ntp/ntpd/
H A Drefclock_acts.c2 * refclock_acts - clock driver for the NIST/USNO/PTB/NPL Computer Time
25 * This driver supports the US (NIST, USNO) and European (PTB, NPL,
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
76 * Phone: (303) 494-4774 (Boulder, CO); (808) 335-4721 (Hawaii)
85 * 47999 90-04-18 21:39:15 50 0 +.1 045.0 UTC(NIST) *<CR><LF>
89 * the on-tim
205 int retry; /* retry index */ global() member
[all...]
/freebsd/sys/contrib/device-tree/src/arm/samsung/
H A Dexynos5250-snow-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/clock/maxim,max77686.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/sound/samsung-i2
[all...]
/freebsd/sys/arm/freescale/imx/
H A Dimx_i2c.c1 /*-
2 * Copyright (C) 2008-2009 Semihalf, Michal Hajduk
36 * This driver currently implements only master-mode operations.
38 * This driver supports multi-master i2c buses, by detecting bus arbitration
41 * transfer cycles resulting in arbitration loss in mid-transfer. The caller
133 {"fsl,imx21-i2c", 1},
134 {"fsl,imx6q-i2c", 1},
135 {"fsl,imx-i2c", 1},
156 if ((lvl) <= (sc)->debug) \
157 device_printf((sc)->dev, fmt, ##args)
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stoptheworld_linux_libcdep.cpp1 //===-- sanitizer_stoptheworld_linux_libcdep.cpp --------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
43 #include <sys/wait.h> // for signal-related stuff
74 // work, so it cannot be spawned as a pthread. Instead, we use the low-level
83 // because clone() does not set up a thread-local storage for it. Any
84 // thread-local variables used by libc will be shared between the tracer task
147 // Either the thread is dead, or something prevented us from attaching. in SuspendThread()
155 // wait on it. Note: if the thread receives a signal concurrently, in SuspendThread()
[all …]
/freebsd/sys/nlm/
H A Dnlm_advlock.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
60 int ns_svid; /* on-the-wire SVID for this file */
112 p = td ? td->td_proc : NULL; in nlm_msg()
131 struct nfsmount *nmp = nf->nf_nmp; in nlm_down()
135 mtx_lock(&nmp->nm_mtx); in nlm_down()
136 if (!(nmp->nm_state & NFSSTA_LOCKTIMEO)) { in nlm_down()
137 nmp->nm_state |= NFSSTA_LOCKTIMEO; in nlm_down()
138 mtx_unlock(&nmp->nm_mtx); in nlm_down()
139 vfs_event_signal(&nmp->nm_mountp->mnt_stat.f_fsid, in nlm_down()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5210/
H A Dar5210reg.h1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2004 Atheros Communications, Inc.
24 * Processor for IEEE 802.11a 5-GHz Wireless LANs.
72 #define AR_SLOT_TIME 0x8010 /* Length of a back-off */
73 #define AR_TIME_OUT 0x8014 /* Timeout to wait for ACK and CTS */
75 #define AR_RETRY_LMT 0x801c /* Short and long frame retry limit */
97 #define AR_RETRY_CNT 0x8084 /* Current short or long retry cnt */
98 #define AR_BACKOFF 0x8088 /* Back-off status */
[all …]
/freebsd/sys/dev/hyperv/hvsock/
H A Dhv_sock.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
78 #define HVSOCK_SEND_BUF_SZ (PAGE_SIZE - sizeof(struct vmpipe_proto_header))
122 /* 00000000-facb-11e6-bd58-64006a7986d3 */
150 "0x%x-0x%x-0x%x-0x%x-0x%x-0x%x-0x%x-0x%x-0x%x-0x%x-0x%x\n", in hvsock_print_guid()
160 return !memcmp(&id->hv_guid[4], in is_valid_srv_id()
161 &srv_id_template.hv_guid[4], sizeof(struct hyperv_guid) - 4); in is_valid_srv_id()
227 if (!so || !so->so_pcb) { in hvs_remove_socket_from_list()
241 if (!so || !so->so_pcb) { in hvs_insert_socket_on_list()
259 if (p->so != NULL && in __hvs_find_socket_on_list()
[all …]
/freebsd/sys/dev/aic7xxx/
H A Daic7xxx.seq1 /*-
4 * Copyright (c) 1994-2001 Justin T. Gibbs.
5 * Copyright (c) 2000-2001 Adaptec Inc.
19 * 3. Neither the names of the above-listed copyright holders nor the names
54 * on just in case the reselection wins so that we can retry the selection at
58 * use byte 27 of the SCB as a pseudo-next pointer and to thread a list
59 * of SCBs that are awaiting selection. Since 0-0xfe are valid SCB indexes,
61 * this list every time a request sense occurs or after completing a non-tagged
76 if ((ahc->features & AHC_ULTRA2) != 0) {
80 if ((ahc->features & AHC_TWIN) != 0) {
[all …]
H A Daic79xx.seq1 /*-
4 * Copyright (c) 1994-2001, 2004 Justin T. Gibbs.
5 * Copyright (c) 2000-2002 Adaptec Inc.
19 * 3. Neither the names of the above-listed copyright holders nor the names
49 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
56 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
71 * If the kernel has caught up with us, thaw the queue.
98 cmp SCB_NEXT_COMPLETE[1], SCB_LIST_NULL jne . - 1;
122 if ((ahd->bugs & AHD_FAINT_LED_BUG) != 0) {
126 * and re-selections. Make the LED status
[all …]
/freebsd/stand/i386/libi386/
H A Dtextvidc.c1 /*-
3 * Copyright (c) 1997 Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp)
90 cp->c_flags |= C_PRESENTIN; in vidc_probe()
94 cp->c_flags |= C_PRESENTOUT; in vidc_probe()
142 n = 8 - ((curx + 8) % 8); in vidc_rawputchar()
162 cury--; in vidc_rawputchar()
169 curx--; in vidc_rawputchar()
185 cury--; in vidc_rawputchar()
211 /* Move cursor to x rows and y cols (0-based). */
307 * (the coordinates are 1-based).
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dwps_upnp_event.c2 * UPnP WPS Device - Event processing
3 * Copyright (c) 2000-2003 Intel Corporation
4 * Copyright (c) 2006-2007 Sony Corporation
5 * Copyright (c) 2008-2009 Atheros Communications
6 * Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi>
36 /* How long to wait before sending event */
52 unsigned int retry; /* which retry */ member
59 /* event_clean -- clean sockets etc. of event
60 * Leaves data, retry count etc. alone.
64 if (e->s->current_event == e) in event_clean()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar5212reg.h1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
58 #define AR_ISR_RAC 0x00c0 /* ISR read-and-clear access */
59 /* Shadow copies with read-and-clear access */
97 #define AR_Q_TXE_M 0x000003FF /* Mask for TXE (QCU 0-9) */
99 #define AR_Q_TXD_M 0x000003FF /* Mask for TXD (QCU 0-9) */
169 #define AR_D0_LCL_IFS 0x1040 /* MAC DCU-specific IFS settings */
170 #define AR_D1_LCL_IFS 0x1044 /* MAC DCU-specific IFS settings */
[all …]
H A Dar5212_xmit.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
52 if (ahp->ah_txTrigLev >= ahp->ah_maxTxTrigLev) in ar5212UpdateTxTrigLevel()
58 omask = ath_hal_setInterrupts(ah, ahp->ah_maskReg &~ HAL_INT_GLOBAL); in ar5212UpdateTxTrigLevel()
64 if (curLevel < ahp->ah_maxTxTrigLev) in ar5212UpdateTxTrigLevel()
67 newLevel--; in ar5212UpdateTxTrigLevel()
73 ahp->ah_txTrigLev = newLevel; in ar5212UpdateTxTrigLevel()
75 /* re-enable chip interrupts */ in ar5212UpdateTxTrigLevel()
[all …]
/freebsd/contrib/kyua/utils/fs/
H A Doperations.cpp47 #include <sys/wait.h>
122 # define UMOUNT "do-not-use-this-value"
136 /// \return -1 to indicate error, although this should never happen.
142 return -1; in unmount()
154 /// Executes 'mount -t tmpfs' (or a similar variant).
170 mount_args[last++] = "-ttmpfs"; in run_mount_tmpfs()
172 size_arg = F("-osize=%s") % size; in run_mount_tmpfs()
181 mount_args[last++] = "-ttmpfs"; in run_mount_tmpfs()
183 size_arg = F("-osize=%s") % size; in run_mount_tmpfs()
192 mount_args[last++] = "-ttmpfs"; in run_mount_tmpfs()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5211/
H A Dar5211reg.h1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2006 Atheros Communications, Inc.
62 /* Shadow copies with read-and-clear access */
148 #define AR_D0_LCL_IFS 0x1040 /* DCU-specific IFS settings */
149 #define AR_D1_LCL_IFS 0x1044 /* DCU-specific IFS settings */
150 #define AR_D2_LCL_IFS 0x1048 /* DCU-specific IFS settings */
151 #define AR_D3_LCL_IFS 0x104c /* DCU-specific IFS settings */
152 #define AR_D4_LCL_IFS 0x1050 /* DCU-specific IFS settings */
[all …]
/freebsd/sys/dev/acpica/
H A Dacpi_cmbat.c1 /*-
50 /* Number of times to retry initialization before giving up. */
136 sc->dev = dev; in acpi_cmbat_attach()
138 timespecclear(&sc->bst_lastupdated); in acpi_cmbat_attach()
201 * battery status will get the new value for us. in acpi_cmbat_notify_handler()
203 timespecclear(&sc->bst_lastupdated); in acpi_cmbat_notify_handler()
264 if (!acpi_cmbat_info_expired(&sc->bst_lastupdated)) in acpi_cmbat_get_bst()
270 "error fetching current battery status -- %s\n", in acpi_cmbat_get_bst()
282 if (acpi_PkgInt32(res, 0, &sc->bst.state) != 0) in acpi_cmbat_get_bst()
284 if (acpi_PkgInt32(res, 1, &sc->bst.rate) != 0) in acpi_cmbat_get_bst()
[all …]
/freebsd/sys/netinet/
H A Dsctp_constants.h1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved.
5 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
6 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
44 /* Address limit - This variable is calculated
48 * for the init-ack and then finally a third one for the
52 * INIT-ACK plus all the values from INIT and INIT-ACK
56 * that will be 21600 bytes. In the INIT-ACK we will
57 * see the INIT-ACK 21600 + 43200 in the cookie. This leaves
[all …]
/freebsd/tools/regression/compat32/aarch64/
H A Dswp_test_impl.S2 * SPDX-License-Identifier: BSD-2-Clause
30 * 0 - Sync word
31 * 1 - Thread id
32 * 2 - Shared word
39 ldr r1, =(.L.mainmsgEnd - .L.mainmsg - 1)
56 * Wait for the first new thread to ack its existence by
79 * Wait for the first new thread to ack its existence by
118 ldr r1, =(.L.secondarymsgEnd - .L.secondarymsg - 1)
161 ldr r1, =(.L.idsepEnd - .L.idsep - 1)
194 * Yield to lower the chance that we end up re-acquiring, the other two
[all …]
/freebsd/sys/dev/drm2/ttm/
H A Dttm_execbuf_util.c3 * Copyright (c) 2006-2009 VMware, Inc., Palo Alto, CA., USA
20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
39 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation_locked()
40 if (!entry->reserved) in ttm_eu_backoff_reservation_locked()
43 if (entry->removed) { in ttm_eu_backoff_reservation_locked()
45 entry->removed = false; in ttm_eu_backoff_reservation_locked()
48 entry->reserved = false; in ttm_eu_backoff_reservation_locked()
49 atomic_set(&bo->reserved, 0); in ttm_eu_backoff_reservation_locked()
59 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_del_from_lru_locked()
60 if (!entry->reserved) in ttm_eu_del_from_lru_locked()
[all …]
/freebsd/contrib/unbound/services/
H A Dauthzone.h2 * services/authzone.h - authoritative zone that is locally hosted.
122 /** fallback to the internet on failure or ttl-expiry of auth zone */
172 * if the list if NULL the node would be an empty non-terminal,
174 * non-terminal are not needed; they just don't exist.
194 * The structure consists of different tasks. Each can be unowned (-1) or
195 * owner by a worker (worker-num). A worker can pick up a task and then do
209 * tasks. First hold the tree-lock in auth_zones, find the auth_xfer,
227 /** task to wait for next-probe-timeout,
268 /** retry time (from SOA), time to wait with next_probe
270 time_t retry; member
[all …]
/freebsd/sys/dev/isci/
H A Disci_controller.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
64 * disable interrupts, and wait for current ongoing processing to
99 isci_controller->is_started = TRUE; in scif_cb_controller_start_complete()
101 /* Set bits for all domains. We will clear them one-by-one once in scif_cb_controller_start_complete()
106 isci_controller->initial_discovery_mask = (1 << SCI_MAX_DOMAINS) - 1; in scif_cb_controller_start_complete()
111 isci_controller->domain[index].sci_object; in scif_cb_controller_start_complete()
122 isci_controller, &isci_controller->domain[index]); in scif_cb_controller_start_complete()
148 isci_controller->is_started = FALSE; in scif_cb_controller_stop_complete()
[all …]
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_xmit.c46 if (AH9300(ah)->ah_tx_trig_level >= MAX_TX_FIFO_THRESHOLD && in ar9300_update_tx_trig_level()
55 omask = ar9300_set_interrupts(ah, ahp->ah_mask_reg &~ HAL_INT_GLOBAL, 0); in ar9300_update_tx_trig_level()
66 new_level--; in ar9300_update_tx_trig_level()
75 /* re-enable chip interrupts */ in ar9300_update_tx_trig_level()
78 AH9300(ah)->ah_tx_trig_level = new_level; in ar9300_update_tx_trig_level()
89 return (AH9300(ah)->ah_tx_trig_level); in ar9300_get_tx_trig_level()
100 HAL_CAPABILITIES *p_cap = &AH_PRIVATE(ah)->ah_caps; in ar9300_set_tx_queue_props()
102 if (q >= p_cap->halTotalQueues) { in ar9300_set_tx_queue_props()
106 return ath_hal_setTxQProps(ah, &ahp->ah_txq[q], q_info); in ar9300_set_tx_queue_props()
116 HAL_CAPABILITIES *p_cap = &AH_PRIVATE(ah)->ah_caps; in ar9300_get_tx_queue_props()
[all …]
/freebsd/usr.bin/ctlstat/
H A Dctlstat.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
33 * $Id: //depot/users/kenm/FreeBSD-test2/usr.bin/ctlstat/ctlstat.c#4 $
82 static const char *ctlstat_usage = "Usage: ctlstat [-CDPdjht] [-l lunnum]"
83 "[-c count] [-n numdevs] [-w wait]\n";
109 #define F_CPU(ctx) ((ctx)->flags & CTLSTAT_FLAG_CPU)
110 #define F_HDR(ctx) ((ctx)->flags & CTLSTAT_FLAG_HEADER)
111 #define F_FIRST(ctx) ((ctx)->flags & CTLSTAT_FLAG_FIRST_RUN)
112 #define F_TOTALS(ctx) ((ctx)->flags & CTLSTAT_FLAG_TOTALS)
113 #define F_DMA(ctx) ((ctx)->flags & CTLSTAT_FLAG_DMA_TIME)
[all …]
/freebsd/sys/cam/
H A Dcam_periph.c1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
110 &periph_mapmem_thresh, 0, "Threshold for user-space buffer mapping");
144 if (((drv->flags & CAM_PERIPH_DRV_EARLY) != 0 && initialized > 0) || in periphdriver_register()
146 (*drv->init)(); in periphdriver_register()
156 if (((drv->flags & CAM_PERIPH_DRV_EARLY) != 0 && initialized > 0) || in periphdriver_unregister()
158 if (drv->deinit == NULL) { in periphdriver_unregister()
160 drv->driver_name); in periphdriver_unregister()
163 error = drv->deinit(); in periphdriver_unregister()
172 ("Periph driver '%s' was not registered", drv->driver_name)); in periphdriver_unregister()
[all …]

1234567891011