Home
last modified time | relevance | path

Searched +full:spin +full:- +full:up (Results 1 – 25 of 202) sorted by relevance

123456789

/freebsd/contrib/ofed/opensm/include/complib/
H A Dcl_spinlock.h3 * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
4 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
38 * Declaration of spin lock object.
83 * spin lock.
91 * [in] Pointer to a spin lock structure whose state to initialize.
101 * spin lock function except cl_spinlock_init.
112 * The cl_spinlock_init function initializes a spin lock for use.
120 * [in] Pointer to a spin lock structure to initialize.
[all …]
/freebsd/share/man/man9/
H A Dlocking.91 .\" Copyright (c) 2007 Julian Elischer (julian - freebsd org )
45 then a thread attempting to acquire the mutex will spin rather than yielding
52 .Ss Spin Mutexes
53 Spin mutexes are a variation of basic mutexes; the main difference between
54 the two is that spin mutexes never block.
55 Instead, they spin while waiting for the lock to be released.
56 To avoid deadlock, a thread that holds a spin mutex must never yield its CPU.
57 Unlike ordinary mutexes, spin mutexes disable interrupts when acquired.
60 Spin mutexes should be used only when absolutely necessary,
98 .Ss Read-Mostly Locks
[all …]
H A DLOCK_PROFILING.91 .\"-
2 .\" Copyright (c) 2004 Dag-Erling Smørgrav
50 .Bl -bullet
59 The total number of non-recursive acquisitions.
62 when this point was reached, requiring a spin or a sleep.
77 .Bl -tag -width indent
86 .Bl -tag -width ".Va cnt_hold"
115 filled up.
117 Disable or enable the lock profiling code for the spin locks.
118 This defaults to 0 (do profiling for the spin locks).
[all …]
H A Dsleepqueue.91 .\" Copyright (c) 2000-2004 John H. Baldwin <jhb@FreeBSD.org>
95 The implementation of each wait channel splits its sleepqueue into 2 sub-queues
119 A sleep queue chain contains a spin mutex and a list of sleep queues that hash
121 Active sleep queues are protected by their chain's spin mutex.
180 parameter specifies the sub-queue, in which the contending thread will be
185 .Bl -tag -width ".Dv SLEEPQ_CONDVAR" -compact
201 .Bl -tag -width ".Dv SLEEPQ_INTERRUPTIBLE" -compact
205 .Bl -tag -width ".Dv SLEEPQ_STOP_ON_BDRY" -compact
210 Wake it up instead.
251 function is used for non-interruptible sleeps that do not have a timeout.
[all …]
H A Dsleep.987 handle event-based thread blocking.
109 are woken up later by
230 reference a default, i.e. non-spin, mutex.
239 reference a spin mutex.
314 is based on an absolute real-time clock value,
320 If the real-time clock is adjusted, these functions will set
332 a non-zero error code is returned.
342 Zero can also be returned when the real-time clock is adjusted;
345 Otherwise, a non-zero error code is returned.
351 .Bl -tag -width Er
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_wait_release.h2 * kmp_wait_release.h -- Wait/Release implementation
5 //===----------------------------------------------------------------------===//
9 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
11 //===----------------------------------------------------------------------===//
20 #include "ompt-specific.h"
151 this->waiting_threads[0] = thr;
167 if (Sleepable && !(this->sleepLoc))
168 return (traits_type::tcr(*(this->get())) & ~KMP_BARRIER_SLEEP_STATE) ==
171 return traits_type::tcr(*(this->get())) == checker;
182 return traits_type::tcr(*(this->get())) != checker;
[all …]
/freebsd/sys/kern/
H A Dsubr_lock.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
60 * Uncomment to validate that spin argument to acquire/release routines matches
83 /* Check for double-init and zero object. */ in lock_init()
87 /* Look up lock class to find its index. */ in lock_init()
90 lock->lo_flags = i << LO_CLASSSHIFT; in lock_init()
96 lock->lo_name = name; in lock_init()
97 lock->lo_flags |= flags | LO_INITIALIZED; in lock_init()
109 lock->lo_flags &= ~LO_INITIALIZED; in lock_destroy()
121 struct lock_delay_config *lc = la->config; in lock_delay()
[all …]
H A Dkern_mutex.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
93 #define mtx_unowned(m) ((m)->mtx_lock == MTX_UNOWNED)
95 #define mtx_destroyed(m) ((m)->mtx_lock == MTX_DESTROYED)
113 * Lock classes for sleep and spin mutexes.
130 .lc_name = "spin mutex",
165 "mtx spin debugging");
180 * System-wide mutexes
267 x = m->mtx_lock; in owner_mtx()
288 curthread, m->lock_object.lo_name, file, line)); in __mtx_lock_flags()
[all …]
/freebsd/lib/libthr/
H A Dlibthr.350 The library is tightly integrated with the run-time link editor
51 .Xr ld-elf.so.1 1
62 The run-time linker
63 .Xr ld-elf.so.1 1
64 has some code to ensure backward-compatibility with older versions of
70 .Li -lpthread ,
71 the run-time dependency
83 is more resource-consuming than the previous.
91 First, on SMP systems, a spin loop
99 If the spin loop
[all …]
/freebsd/share/man/man4/
H A Dmps.44 .\" Copyright (c) 2015-2017 Avago Technologies
5 .\" Copyright (c) 2015-2017 Broadcom Ltd.
45 .Nd "LSI Fusion-MPT 2 IT/IR 6Gb/s Serial Attached SCSI/SATA driver"
49 .Bd -ragged -offset indent
57 .Bd -literal -offset indent
64 Fusion-MPT 2 IT/IR
72 .Bl -bullet -compact
103 .Bd -literal -offset indent
111 .Bd -literal -offset indent
115 To disable MSI-X interrupts for all
[all …]
H A Dmpr.44 .\" Copyright (c) 2015-2017 Avago Technologies
5 .\" Copyright (c) 2015-2022 Broadcom Ltd.
45 .Nd "LSI Fusion-MPT 3/3.5 IT/IR 12Gb/s Serial Attached SCSI/SATA/PCIe driver"
49 .Bd -ragged -offset indent
57 .Bd -literal -offset indent
64 Fusion-MPT 3/3.5 IT/IR
72 .Bl -bullet -compact
113 .Bd -literal -offset indent
121 .Bd -literal -offset indent
125 To disable MSI-X interrupts for all
[all …]
/freebsd/lib/libdpv/
H A Ddprompt.c1 /*-
2 * Copyright (c) 2013-2014 Devin Teske <dteske@FreeBSD.org>
62 int pbar_size = PBAR_SIZE_DEFAULT; /* Mini-progressbar size */
71 static char spin[SPIN_SIZE + 1] = "/-\\|"; variable
73 static char *spin_cp = spin;
81 * Returns a pointer to the current spin character in the spin string and
90 spin_cp = spin; in spin_char()
94 if (++spin_cp >= (spin + SPIN_SIZE)) in spin_char()
95 spin_cp = spin; in spin_char()
127 /* Calculate width of dialog(3) or [X]dialog(1) --gauge box */ in dprompt_init()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/arm/
H A Dqcom.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
18 Each board must specify a top-level board compatible string with the following
21 compatible = "qcom,<SoC>[-<soc_versio
[all...]
/freebsd/sys/dev/qcom_tlmm/
H A Dqcom_tlmm_pinmux.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
31 * specific way of configuring up pins.
64 * For now we're hard-coded to doing IPQ4018 stuff here, but
73 { "bias-disable", PIN_ID_BIAS_DISABLE, 0 },
74 { "bias-high-impedance", PIN_ID_BIAS_HIGH_IMPEDANCE, 0 },
75 { "bias-bus-hold", PIN_ID_BIAS_BUS_HOLD, 0 },
76 { "bias-pull-up", PIN_ID_BIAS_PULL_UP, 0 },
77 { "bias-pull-down", PIN_ID_BIAS_PULL_DOWN, 0 },
78 { "bias-pull-pin-default", PIN_ID_BIAS_PULL_PIN_DEFAULT, 0 },
[all …]
/freebsd/sys/dev/hptnr/
H A DREADME7 v1.1.4 2015-06-09
10 v1.1.3 2015-05-19
13 v1.1.2 2015-05-05
16 v1.1.1 2015-03-26
19 * Support staggered drive spin up.
21 * Error handling to avoid scsi command lost which caused system hang up.
24 v1.0.1 2014-8-19
26 disable spin up feature.
27 * Fix up a bug that disk failed to probe if driver failed to access the
33 v1.0 2013-7-3
[all …]
/freebsd/sys/dev/ppbus/
H A Dif_plip.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1997 Poul-Henning Kamp
41 * IF_LINK0 - Tim Wilkinson.
49 * +---
474 clpoutbyte(u_char byte,int spin,device_t ppbus) clpoutbyte() argument
491 clpinbyte(int spin,device_t ppbus) clpinbyte() argument
658 lpoutbyte(u_char byte,int spin,device_t ppbus) lpoutbyte() argument
684 int i, len, spin; lpoutput() local
[all...]
H A Dppb_1284.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
33 * General purpose routines for the IEEE1284-1994 Standard
56 * Wait for the peripherial up to 40ms
82 ppb->error = PPB_NO_ERROR; in ppb_1284_reset_error()
83 ppb->state = state; in ppb_1284_reset_error()
98 mtx_assert(ppb->ppc_lock, MA_OWNED); in ppb_1284_get_state()
99 return (ppb->state); in ppb_1284_get_state()
114 mtx_assert(ppb->ppc_lock, MA_OWNED); in ppb_1284_set_state()
115 if ((ppb->state != PPB_ERROR) && in ppb_1284_set_state()
[all …]
H A Dlpt.c1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
35 * ON-LINE 386BSD USER MANUAL BEFORE USE. A BOOK DISCUSSING THE INTERNALS
100 #define LPINITRDY 4 /* wait up to 4 seconds for a ready */
165 /* Printer Ready condition - from lpa.c */
202 if (sc->sc_state & HAVEBUS) in lpt_request_ppbus()
207 sc->sc_state |= HAVEBUS; in lpt_request_ppbus()
219 if (sc->sc_state & HAVEBUS) { in lpt_release_ppbus()
222 sc->sc_state &= ~HAVEBUS; in lpt_release_ppbus()
241 } while (temp != data && --timeout); in lpt_port_test()
[all …]
/freebsd/sys/powerpc/aim/
H A Dlocore64.S2 /*-
3 * Copyright (C) 2010-2016 Nathan Whitehorn
76 * that it ends up before any linker-generated call stubs and actually at
78 * (start of image) + 0x60, so put a spin loop there.
89 .long -1
94 /* Invalidate icache for low-memory copy and jump there */
105 lwz %r1,0x40(0) /* Spin on ap_kexec_spin_sem */
141 /* Set 64-bit mode if not yet set before branching to C */
149 /* Set up the TOC pointer */
154 .llong __tocbase + 0x8000 - .
[all …]
/freebsd/sys/contrib/device-tree/src/arm/broadcom/
H A Dbcm2711.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/interrupt-controller/arm-gic.h>
5 #include <dt-bindings/soc/bcm2835-pm.h>
10 #address-cells = <2>;
11 #size-cell
[all...]
/freebsd/sys/riscv/riscv/
H A Dvm_machdep.c1 /*-
2 * Copyright (c) 2015-2018 Ruslan Bukin <br@bsdpad.com>
7 * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme.
61 * Finish a fork operation, with process p2 nearly set up.
62 * Copy and update the pcb, set up the stack so that the child
76 pcb2 = (struct pcb *)(td2->td_kstack + in cpu_fork()
77 td2->td_kstack_pages * PAGE_SIZE) - in cpu_fork()
[all...]
/freebsd/sys/contrib/device-tree/src/arm64/qcom/
H A Dmsm8939.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2020-2023, Linaro Limited
7 #include <dt-bindings/clock/qcom,gcc-msm8939.h>
8 #include <dt-bindings/clock/qcom,rpmcc.h>
9 #include <dt-binding
[all...]
/freebsd/share/man/man4/man4.i386/
H A Dapm.430 .Bl -enum -offset indent
32 When the system wakes up from suspended mode,
36 When the system wakes up from suspended mode,
56 .Bl -tag -width 4n -offset indent
82 Also the system hangs up if HLT instruction is disabled in the kernel
108 .Bl -column "xxxxxxxxxxxxxxxxx" "xxxxxxxxxxxxx" "xxxxxxxx"
128 Many, if not most, of the implementations of APM-bios in laptops
130 You may be putting your LCD-display and batteries at
133 MS-Windows is that they use the real-mode interface.)
143 is active, calling the BIOS setup routine by using hot-keys,
[all …]
/freebsd/sys/dev/isci/scil/
H A Dscic_config_parameters.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0
9 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
22 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
28 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
115 * This field specifies the NOTIFY (ENABLE SPIN UP) primitive
138 * - A value of 1 indicates generation 1 (i.e. 1.5 Gb/s).
139 * - A value of 2 indicates generation 2 (i.e. 3.0 Gb/s).
140 * - A value of 3 indicates generation 3 (i.e. 6.0 Gb/s).
275 * user supplied an invalid interrupt coalescence time, spin up
/freebsd/sys/dev/ice/
H A Dice_osdep.c1 /* SPDX-License-Identifier: BSD-3-Clause */
54 MALLOC_DEFINE(M_ICE_OSDEP, "ice-osdep", "Intel(R) 100Gb Network Driver osdep allocations");
69 * ice_hw_to_dev - Given a hw private struct, find the associated device_t
84 return sc->dev; in ice_hw_to_dev()
88 * ice_debug - Log a debug message if the type is enabled
93 * Check if hw->debug_mask has enabled the given message type. If so, log the
103 if (!(mask & hw->debug_mas in ice_debug()
[all...]

123456789