Home
last modified time | relevance | path

Searched full:lock (Results 1 – 25 of 1261) sorted by relevance

12345678910>>...51

/openbmc/openbmc-test-automation/openpower/ext_interfaces/
H A Dtest_lock_management.robot3 Documentation Test lock management feature of management console on BMC.
28 Acquire Read Write Lock
31 [Template] Acquire Lock On Resource
42 Acquire Read Lock On Read Lock
43 [Documentation] Acquire read lock on another read lock.
45 [Template] Acquire Lock On Another Lock
51 Fail To Acquire Lock On Another Lock
52 [Documentation] Fail to acquire another lock.
54 [Template] Verify Acquire Lock Fails On Another Lock
62 Acquire Lock After Reboot
[all …]
/openbmc/qemu/util/
H A Dqemu-coroutine-lock.c24 * The lock-free mutex implementation is based on OSv
41 void coroutine_fn qemu_co_queue_wait_impl(CoQueue *queue, QemuLockable *lock, in qemu_co_queue_wait_impl() argument
51 if (lock) { in qemu_co_queue_wait_impl()
52 qemu_lockable_unlock(lock); in qemu_co_queue_wait_impl()
69 if (lock) { in qemu_co_queue_wait_impl()
70 qemu_lockable_lock(lock); in qemu_co_queue_wait_impl()
74 bool qemu_co_enter_next_impl(CoQueue *queue, QemuLockable *lock) in qemu_co_enter_next_impl() argument
84 if (lock) { in qemu_co_enter_next_impl()
85 qemu_lockable_unlock(lock); in qemu_co_enter_next_impl()
88 if (lock) { in qemu_co_enter_next_impl()
[all …]
H A Datomic64.c47 QemuSpin *lock = addr_to_lock(ptr); \
50 qemu_spin_lock(lock); \
52 qemu_spin_unlock(lock); \
63 QemuSpin *lock = addr_to_lock(ptr); \ in GEN_READ()
65 qemu_spin_lock(lock); \ in GEN_READ()
67 qemu_spin_unlock(lock); \ in GEN_READ()
81 QemuSpin *lock = lock_array + i * lock_size; local
83 qemu_spin_init(lock);
H A Dqemu-co-shared-resource.c33 /* State fields protected by lock */
37 QemuMutex lock; member
46 qemu_mutex_init(&s->lock); in shres_create()
54 qemu_mutex_destroy(&s->lock); in shres_destroy()
58 /* Called with lock held. */
72 QEMU_LOCK_GUARD(&s->lock); in co_get_from_shres()
74 qemu_co_queue_wait(&s->queue, &s->lock); in co_get_from_shres()
80 QEMU_LOCK_GUARD(&s->lock); in co_put_to_shres()
H A Dthread-pool.c42 /* Moving state out of THREAD_QUEUED is protected by lock. After
49 /* Access to this list is protected by lock. */
59 QemuMutex lock; member
67 /* The following variables are protected by lock. */
81 qemu_mutex_lock(&pool->lock); in worker_thread()
91 ret = qemu_cond_timedwait(&pool->request_cond, &pool->lock, 10000); in worker_thread()
109 qemu_mutex_unlock(&pool->lock); in worker_thread()
119 qemu_mutex_lock(&pool->lock); in worker_thread()
130 qemu_mutex_unlock(&pool->lock); in worker_thread()
138 /* Runs with lock taken. */ in do_spawn_thread()
[all …]
H A Dstats64.c21 qatomic_add(&s->lock, 2); in stat64_rdlock()
24 while (qatomic_read(&s->lock) & 1) { in stat64_rdlock()
31 qatomic_sub(&s->lock, 2); in stat64_rdunlock()
36 return qatomic_cmpxchg(&s->lock, 0, 1) == 0; in stat64_wrtrylock()
41 qatomic_dec(&s->lock); in stat64_wrunlock()
50 /* 64-bit writes always take the lock, so we can read in in stat64_get()
80 /* 64-bit reads always take the lock, so they don't care about the in stat64_add32_carry()
108 * stat64_get does not notice (it takes the lock) and the only ill in stat64_min_slow()
137 * stat64_get does not notice (it takes the lock) and the only ill in stat64_max_slow()
/openbmc/skeleton/flashbios/
H A Dflash_bios_obj.c68 on_lock(SharedResource *lock, in on_lock() argument
73 gboolean locked = shared_resource_get_lock(lock); in on_lock()
76 const gchar* name = shared_resource_get_name(lock); in on_lock()
82 shared_resource_set_lock(lock,true); in on_lock()
83 shared_resource_set_name(lock,name); in on_lock()
85 shared_resource_complete_lock(lock,invocation); in on_lock()
90 on_is_locked(SharedResource *lock, in on_is_locked() argument
94 gboolean locked = shared_resource_get_lock(lock); in on_is_locked()
95 const gchar* name = shared_resource_get_name(lock); in on_is_locked()
96 shared_resource_complete_is_locked(lock,invocation,locked,name); in on_is_locked()
[all …]
/openbmc/phosphor-user-manager/
H A Dshadowlock.hpp23 /** @class Lock
26 class Lock class
29 Lock(const Lock&) = delete;
30 Lock& operator=(const Lock&) = delete;
31 Lock(Lock&&) = delete;
32 Lock& operator=(Lock&&) = delete;
35 Lock() in Lock() function in phosphor::user::shadow::Lock
39 lg2::error("Failed to lock shadow file"); in Lock()
43 ~Lock() in ~Lock()
/openbmc/phosphor-host-ipmid/user_channel/
H A Dshadowlock.hpp19 /** @class Lock
22 class Lock class
25 Lock(const Lock&) = delete;
26 Lock& operator=(const Lock&) = delete;
27 Lock(Lock&&) = delete;
28 Lock& operator=(Lock&&) = delete;
31 Lock() in Lock() function in phosphor::user::shadow::Lock
39 ~Lock() in ~Lock()
/openbmc/qemu/include/qemu/
H A Dseqlock.h32 /* Lock out other writers and update the count. */
49 /* Lock out other writers and update the count. */
50 static inline void seqlock_write_lock_impl(QemuSeqLock *sl, QemuLockable *lock) in seqlock_write_lock_impl() argument
52 qemu_lockable_lock(lock); in seqlock_write_lock_impl()
55 #define seqlock_write_lock(sl, lock) \ argument
56 seqlock_write_lock_impl(sl, QEMU_MAKE_LOCKABLE(lock))
58 /* Update the count and release the lock. */
59 static inline void seqlock_write_unlock_impl(QemuSeqLock *sl, QemuLockable *lock) in seqlock_write_unlock_impl() argument
62 qemu_lockable_unlock(lock); in seqlock_write_unlock_impl()
64 #define seqlock_write_unlock(sl, lock) \ argument
[all …]
H A Dlockable.h23 QemuLockUnlockFunc *lock; member
68 .lock = qemu_lockable_ ## name ## _lock, \ in QML_FUNC_()
75 * @x: a lock object (currently one of QemuMutex, QemuRecMutex,
95 * @x: a lock object (currently one of QemuMutex, QemuRecMutex,
110 x->lock(x->object);
140 * WITH_QEMU_LOCK_GUARD - Lock a lock object for scope
142 * @x: a lock object (currently one of QemuMutex, CoMutex, QemuSpin).
144 * This macro defines a lock scope such that entering the scope takes the lock
145 * and leaving the scope releases the lock. Return statements are allowed
146 * within the scope and release the lock. Break and continue statements leave
[all …]
H A Dcoroutine.h55 /* Context that is holding the lock. Useful to avoid spinning
56 * when two coroutines on the same AioContext try to get the lock. :)
118 #define qemu_co_queue_wait(queue, lock) \ argument
119 qemu_co_queue_wait_impl(queue, QEMU_MAKE_LOCKABLE(lock), 0)
120 #define qemu_co_queue_wait_flags(queue, lock, flags) \ argument
121 qemu_co_queue_wait_impl(queue, QEMU_MAKE_LOCKABLE(lock), (flags))
122 void coroutine_fn qemu_co_queue_wait_impl(CoQueue *queue, QemuLockable *lock,
142 * qemu_co_queue_next, this function releases the lock during aio_co_wake
149 #define qemu_co_enter_next(queue, lock) \ argument
150 qemu_co_enter_next_impl(queue, QEMU_MAKE_LOCKABLE(lock))
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/
H A DLockOut.events.yaml9 description: The name or identifier of the Lock Out device.
11 description: A Lock Out device has been enabled.
12 message: The Lock Out device '{Identifier}' has been enabled.
18 description: The name or identifier of the Lock Out device.
20 description: A Lock Out device has been disabled.
21 message: The Lock Out device '{Identifier}' has been disabled.
/openbmc/telemetry/src/utils/
H A Dunique_call.hpp12 struct Lock struct in utils::UniqueCall
18 if (lock.expired()) in operator ()()
20 auto l = std::make_shared<Lock>(); in operator ()()
21 lock = l; in operator ()()
27 std::weak_ptr<Lock> lock; member in utils::UniqueCall
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/openwsman/openwsman/
H A D0001-lock.c-Define-PTHREAD_MUTEX_RECURSIVE_NP-if-undefine.patch4 Subject: [PATCH] lock.c: Define PTHREAD_MUTEX_RECURSIVE_NP if undefined
13 src/lib/u/lock.c | 2 +-
16 diff --git a/src/lib/u/lock.c b/src/lib/u/lock.c
18 --- a/src/lib/u/lock.c
19 +++ b/src/lib/u/lock.c
/openbmc/openbmc/poky/meta/classes/
H A Dreport-error.bbclass76 lock = bb.utils.lockfile(datafile + '.lock')
78 bb.utils.unlockfile(lock)
109 lock = bb.utils.lockfile(datafile + '.lock')
113 bb.utils.unlockfile(lock)
127 lock = bb.utils.lockfile(datafile + '.lock')
129 bb.utils.unlockfile(lock)
142 lock = bb.utils.lockfile(datafile + '.lock')
144 bb.utils.unlockfile(lock)
147 lock = bb.utils.lockfile(datafile + '.lock')
149 bb.utils.unlockfile(lock)
/openbmc/qemu/tests/qemu-iotests/
H A D153.out14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
18 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,read-only=on: Failed to get shared "write" lock
26 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
30 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
34 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
39 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
44 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
48 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
52 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
56 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
[all …]
H A D296.out5 {"error": {"class": "GenericError", "desc": "Failed to get shared \"consistent read\" lock"}}
6 {"error": {"class": "GenericError", "desc": "Failed to get shared \"consistent read\" lock"}}
10 qemu-img: Failed to get shared "consistent read" lock
15 {"error": {"class": "GenericError", "desc": "Failed to get shared \"consistent read\" lock"}}
16 {"error": {"class": "GenericError", "desc": "Failed to get shared \"consistent read\" lock"}}
22 {"error": {"class": "GenericError", "desc": "Failed to get \"write\" lock"}}
/openbmc/qemu/hw/display/
H A Dvirtio-dmabuf.c18 static GMutex lock; variable
34 g_mutex_lock(&lock); in virtio_add_resource()
46 g_mutex_unlock(&lock); in virtio_add_resource()
90 g_mutex_lock(&lock); in virtio_remove_resource()
92 g_mutex_unlock(&lock); in virtio_remove_resource()
101 g_mutex_lock(&lock); in get_shared_object()
105 g_mutex_unlock(&lock); in get_shared_object()
141 g_mutex_lock(&lock); in virtio_free_resources()
145 g_mutex_unlock(&lock); in virtio_free_resources()
/openbmc/u-boot/arch/arm/mach-mvebu/
H A Defuse.c75 val.lock = readl(&efuse->bit64); in do_prog_efuse()
77 if (val.lock & 1) in do_prog_efuse()
82 val.lock |= new_val->lock; in do_prog_efuse()
88 writel(val.lock, &efuse->bit64); in do_prog_efuse()
110 /* only write a fuse line with lock bit */ in prog_efuse()
111 if (!new_val->lock) in prog_efuse()
166 val->lock = readl(&efuse->bit64); in mvebu_read_efuse()
178 .lock = 1, in mvebu_lock_efuse()
191 * 2: bit 64 (lock)
212 *val = fuse_line.lock; in fuse_read()
[all …]
/openbmc/telemetry/src/
H A Dsensor.cpp40 uniqueCall([this](auto lock) { async_read(std::move(lock)); }); in async_read() argument
43 void Sensor::async_read(std::shared_ptr<utils::UniqueCall::Lock> lock) in async_read() argument
50 [lock, id = sensorId, weakSelf = weak_from_this()]( in async_read()
60 if (auto self = weakSelf.lock()) in async_read()
75 if (auto listener = weakListener.lock()) in registerForUpdates()
93 if (auto listener = weakListener.lock()) in unregisterFromUpdates()
100 listener.lock().get() == listenerToUnregister); in unregisterFromUpdates()
116 if (auto listener = weakListener.lock()) in updateValue()
147 if (auto self = weakSelf.lock()) in signalProc()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils/
H A D0002-Bump-onig-from-6.4.0-to-6.5.1.patch9 Cargo.lock | 10 +++++-----
11 fuzz/Cargo.lock | 22 ++++++++--------------
14 diff --git a/Cargo.lock b/Cargo.lock
16 --- a/Cargo.lock
17 +++ b/Cargo.lock
58 diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock
60 --- a/fuzz/Cargo.lock
61 +++ b/fuzz/Cargo.lock
/openbmc/u-boot/arch/arm/mach-zynqmp/
H A Dmp.c12 #define LOCK 0 macro
65 if (mode == LOCK) { in set_r5_halt_mode()
80 if (mode == LOCK) { in set_r5_tcm_mode()
101 if (mode == LOCK) in set_r5_reset()
115 if (mode == LOCK) in release_r5_reset()
141 set_r5_reset(LOCK); in cpu_disable()
211 set_r5_tcm_mode(LOCK); in initialize_tcm()
212 set_r5_halt_mode(HALT, LOCK); in initialize_tcm()
214 release_r5_reset(LOCK); in initialize_tcm()
268 set_r5_reset(LOCK); in cpu_release()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/p910nd/p910nd/
H A Dfix-var-lock.patch1 Use /var/lock instead of /var/lock/subsys
13 -/var/run/p9100d.pid, /var/lock/subsys/p9100d, /etc/hosts.allow, /etc/hosts.deny
14 +/var/run/p9100d.pid, /var/lock/p9100d, /etc/hosts.allow, /etc/hosts.deny
26 -#define LOCKFILE "/var/lock/subsys/p910%cd"
27 +#define LOCKFILE "/var/lock/p910%cd"
/openbmc/openbmc/meta-security/recipes-ids/tripwire/files/
H A Dtwpol-yocto.txt844 /var/lock/subsys -> $(SEC_CONFIG) ;
845 #/var/lock/subsys/amd -> $(SEC_CONFIG) ;
846 /var/lock/subsys/anacron -> $(SEC_CONFIG) ;
847 /var/lock/subsys/apmd -> $(SEC_CONFIG) ;
848 #/var/lock/subsys/arpwatch -> $(SEC_CONFIG) ;
849 /var/lock/subsys/atd -> $(SEC_CONFIG) ;
850 /var/lock/subsys/autofs -> $(SEC_CONFIG) ;
851 #/var/lock/subsys/bcm5820 -> $(SEC_CONFIG) ;
852 #/var/lock/subsys/bgpd -> $(SEC_CONFIG) ;
853 #/var/lock/subsys/bootparamd -> $(SEC_CONFIG) ;
[all …]

12345678910>>...51