Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 615) sorted by relevance

12345678910>>...25

/openbmc/qemu/util/
H A Dqemu-coroutine-lock.c41 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()
89 qemu_lockable_lock(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.c37 QemuMutex lock; member
46 qemu_mutex_init(&s->lock); in shres_create()
54 qemu_mutex_destroy(&s->lock); in shres_destroy()
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 Devent.c35 pthread_mutex_init(&ev->lock, NULL); in qemu_event_init()
48 pthread_mutex_destroy(&ev->lock); in qemu_event_destroy()
76 pthread_mutex_lock(&ev->lock); in qemu_event_set()
80 pthread_mutex_unlock(&ev->lock); in qemu_event_set()
165 pthread_mutex_lock(&ev->lock); in qemu_event_wait()
167 pthread_cond_wait(&ev->cond, &ev->lock); in qemu_event_wait()
169 pthread_mutex_unlock(&ev->lock); in qemu_event_wait()
H A Dthread-pool.c59 QemuMutex lock; member
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()
153 qemu_mutex_lock(&pool->lock); in spawn_thread_bh_fn()
155 qemu_mutex_unlock(&pool->lock); in spawn_thread_bh_fn()
225 QEMU_LOCK_GUARD(&pool->lock); in thread_pool_cancel()
261 qemu_mutex_lock(&pool->lock); in thread_pool_submit_aio()
[all …]
H A Dfilemonitor-inotify.c32 QemuMutex lock; /* protects dirs & idmap */ member
62 qemu_mutex_lock(&mon->lock); in qemu_file_monitor_watch()
65 qemu_mutex_unlock(&mon->lock); in qemu_file_monitor_watch()
156 qemu_mutex_unlock(&mon->lock); in qemu_file_monitor_watch()
191 qemu_mutex_init(&mon->lock); in qemu_file_monitor_new()
212 qemu_mutex_lock(&mon->lock); in qemu_file_monitor_free_idle()
217 qemu_mutex_unlock(&mon->lock); in qemu_file_monitor_free_idle()
219 qemu_mutex_destroy(&mon->lock); in qemu_file_monitor_free_idle()
232 qemu_mutex_lock(&mon->lock); in qemu_file_monitor_free()
238 qemu_mutex_unlock(&mon->lock); in qemu_file_monitor_free()
[all …]
/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/qemu/include/qemu/
H A Dcoroutine.h118 #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,
149 #define qemu_co_enter_next(queue, lock) \ argument
150 qemu_co_enter_next_impl(queue, QEMU_MAKE_LOCKABLE(lock))
151 bool qemu_co_enter_next_impl(CoQueue *queue, QemuLockable *lock);
162 #define qemu_co_enter_all(queue, lock) \ argument
163 qemu_co_enter_all_impl(queue, QEMU_MAKE_LOCKABLE(lock))
[all …]
H A Dseqlock.h50 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))
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
65 seqlock_write_unlock_impl(sl, QEMU_MAKE_LOCKABLE(lock))
H A Dratelimit.h21 QemuMutex lock; member
45 QEMU_LOCK_GUARD(&limit->lock); in ratelimit_calculate_delay()
77 qemu_mutex_init(&limit->lock); in ratelimit_init()
82 qemu_mutex_destroy(&limit->lock); in ratelimit_destroy()
88 QEMU_LOCK_GUARD(&limit->lock); in ratelimit_set_speed()
/openbmc/qemu/block/
H A Dprogress_meter.c33 qemu_mutex_init(&pm->lock); in progress_init()
38 qemu_mutex_destroy(&pm->lock); in progress_destroy()
44 QEMU_LOCK_GUARD(&pm->lock); in progress_get_snapshot()
52 QEMU_LOCK_GUARD(&pm->lock); in progress_work_done()
58 QEMU_LOCK_GUARD(&pm->lock); in progress_set_remaining()
64 QEMU_LOCK_GUARD(&pm->lock); in progress_increase_remaining()
/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/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/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 …]
/openbmc/sdbusplus/src/async/
H A Dmatch.cpp35 std::lock_guard l{lock}; in ~match()
50 std::unique_lock lock{m.lock}; in start() local
68 m.handle_completion(std::move(lock)); in start()
75 std::unique_lock l{lock}; in handle_match()
82 auto lock = std::move(l); in handle_completion() local
99 lock.unlock(); in handle_completion()
H A Dcontext.cpp105 std::lock_guard lock{ctx.lock}; in loop() local
176 std::lock_guard l{lock}; in spawn_complete()
201 std::lock_guard l{lock}; in spawn_watcher()
220 std::lock_guard l{lock}; in caller_run()
258 std::lock_guard l{lock}; in wait_for_wait_process_stopped()
307 std::lock_guard lock{ctx.lock}; in start() local
316 std::unique_lock lock{ctx.lock}; in wait_once() local
321 ctx.caller_wait.wait(lock, [&] { in wait_once()
/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/qemu/tests/qemu-iotests/
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/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/openbmc-test-automation/openpower/ext_interfaces/
H A Dtest_lock_management.robot3 Documentation Test lock management feature of management console on BMC.
43 [Documentation] Acquire read lock on another read lock.
52 [Documentation] Fail to acquire another lock.
91 [Documentation] Fail to acquire read and write lock in single request.
111 [Documentation] Acquire write lock on read lock under CEC level.
133 [Documentation] Release lock when session gets deleted.
143 [Documentation] Fail to release lock with invalid transaction id.
153 [Documentation] Release in-valid lock result in fail.
164 [Documentation] Release multiple lock with valid and invalid transaction.
173 [Documentation] Fail to release lock with string as transaction id data type.
[all …]
/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()
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()
212 *val = fuse_line.lock; in fuse_read()
251 prog_val.lock = val != 0; in fuse_prog()
/openbmc/ipmitool/contrib/
H A Dipmievd.init.redhat48 if [ -f /var/lock/subsys/ipmievd ]; then
53 [ $ret -eq 0 ] && touch /var/lock/subsys/ipmievd
61 [ $ret -eq 0 ] && rm -f /var/lock/subsys/ipmievd
80 [ -f /var/lock/subsys/ipmievd ] && restart || :
/openbmc/qemu/contrib/plugins/
H A Ddrcov.c32 static GMutex lock; variable
92 g_mutex_lock(&lock); in plugin_exit()
104 g_mutex_unlock(&lock); in plugin_exit()
117 g_mutex_lock(&lock); in vcpu_tb_exec()
119 g_mutex_unlock(&lock); in vcpu_tb_exec()
127 g_mutex_lock(&lock); in vcpu_tb_trans()
139 g_mutex_unlock(&lock); in vcpu_tb_trans()
/openbmc/qemu/hw/rtc/
H A Dm48t59-internal.h60 uint8_t lock; member
68 static inline void m48t59_toggle_lock(M48t59State *NVRAM, int lock) in m48t59_toggle_lock() argument
70 NVRAM->lock ^= 1 << lock; in m48t59_toggle_lock()

12345678910>>...25