Home
last modified time | relevance | path

Searched full:acquired (Results 1 – 25 of 700) sorted by relevance

12345678910>>...28

/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dtask_kfunc_failure.c34 struct task_struct *acquired; in BPF_PROG() local
42 acquired = bpf_task_acquire(v->task); in BPF_PROG()
43 if (!acquired) in BPF_PROG()
46 bpf_task_release(acquired); in BPF_PROG()
55 struct task_struct *acquired, *stack_task = (struct task_struct *)&clone_flags; in BPF_PROG() local
58 acquired = bpf_task_acquire((struct task_struct *)&stack_task); in BPF_PROG()
59 if (!acquired) in BPF_PROG()
62 bpf_task_release(acquired); in BPF_PROG()
71 struct task_struct *acquired; in BPF_PROG() local
74 acquired = bpf_task_acquire(task); in BPF_PROG()
[all …]
Dcgrp_kfunc_failure.c35 struct cgroup *acquired; in BPF_PROG() local
43 acquired = bpf_cgroup_acquire(v->cgrp); in BPF_PROG()
44 if (acquired) in BPF_PROG()
45 bpf_cgroup_release(acquired); in BPF_PROG()
54 struct cgroup *acquired; in BPF_PROG() local
56 acquired = bpf_cgroup_acquire(cgrp); in BPF_PROG()
61 bpf_cgroup_release(acquired); in BPF_PROG()
70 struct cgroup *acquired, *stack_cgrp = (struct cgroup *)&path; in BPF_PROG() local
73 acquired = bpf_cgroup_acquire((struct cgroup *)&stack_cgrp); in BPF_PROG()
74 if (acquired) in BPF_PROG()
[all …]
Dtask_kfunc_success.c40 struct task_struct *acquired = NULL; in test_acquire_release() local
56 acquired = bpf_task_acquire(task); in test_acquire_release()
57 if (acquired) in test_acquire_release()
58 bpf_task_release(acquired); in test_acquire_release()
68 struct task_struct *acquired = NULL; in BPF_PROG() local
72 acquired = bpf_task_acquire___one(task); in BPF_PROG()
78 acquired = bpf_task_acquire___two(task, &fake_ctx); in BPF_PROG()
83 acquired = bpf_task_acquire___three(&fake_ctx); in BPF_PROG()
88 if (acquired) in BPF_PROG()
89 bpf_task_release(acquired); in BPF_PROG()
[all …]
Dtest_task_under_cgroup.c24 struct task_struct *acquired; in BPF_PROG() local
29 acquired = bpf_task_acquire(task); in BPF_PROG()
30 if (!acquired) in BPF_PROG()
33 if (local_pid == acquired->tgid) in BPF_PROG()
40 if (bpf_task_under_cgroup(acquired, cgrp)) in BPF_PROG()
41 remote_pid = acquired->tgid; in BPF_PROG()
46 bpf_task_release(acquired); in BPF_PROG()
Dtask_kfunc_common.h45 struct task_struct *acquired, *old; in tasks_kfunc_map_insert() local
63 acquired = bpf_task_acquire(p); in tasks_kfunc_map_insert()
64 if (!acquired) in tasks_kfunc_map_insert()
67 old = bpf_kptr_xchg(&v->task, acquired); in tasks_kfunc_map_insert()
Dcgrp_kfunc_common.h46 struct cgroup *acquired, *old; in cgrps_kfunc_map_insert() local
64 acquired = bpf_cgroup_acquire(cgrp); in cgrps_kfunc_map_insert()
65 if (!acquired) { in cgrps_kfunc_map_insert()
70 old = bpf_kptr_xchg(&v->cgrp, acquired); in cgrps_kfunc_map_insert()
Dcgrp_kfunc_success.c35 struct cgroup *acquired; in BPF_PROG() local
40 acquired = bpf_cgroup_acquire(cgrp); in BPF_PROG()
41 if (!acquired) in BPF_PROG()
44 bpf_cgroup_release(acquired); in BPF_PROG()
/Linux-v6.6/drivers/gpu/drm/
Ddrm_agpsupport.c56 * Verifies the AGP device has been initialized and acquired and fills in the
63 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_info()
100 * Verifies the AGP device hasn't been acquired before and calls
109 if (dev->agp->acquired) in drm_legacy_agp_acquire()
114 dev->agp->acquired = 1; in drm_legacy_agp_acquire()
124 * Verifies the AGP device hasn't been acquired before and calls
139 * Verifies the AGP device has been acquired and calls \c agp_backend_release.
143 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_release()
146 dev->agp->acquired = 0; in drm_legacy_agp_release()
160 * \param dev DRM device that has previously acquired AGP.
[all …]
/Linux-v6.6/drivers/reset/
Dcore.c34 * @acquired: Only one reset_control may be acquired for a given rcdev and id.
47 bool acquired; member
230 if (!rstc->acquired) in reset_control_array_rearm()
350 if (!rstc->acquired) in reset_control_reset()
418 if (!rstc->acquired) in reset_control_rearm()
478 if (!rstc->acquired) { in reset_control_assert()
479 WARN(1, "reset %s (ID: %u) is not acquired\n", in reset_control_assert()
548 if (!rstc->acquired) { in reset_control_deassert()
549 WARN(1, "reset %s (ID: %u) is not acquired\n", in reset_control_deassert()
625 * that exclusive resets are requested as acquired by default. In order for a
[all …]
/Linux-v6.6/include/linux/
Dww_mutex.h58 unsigned int acquired; member
137 ctx->acquired = 0; in ww_acquire_init()
182 * Releases a w/w acquire context. This must be called _after_ all acquired w/w
191 DEBUG_LOCKS_WARN_ON(ctx->acquired); in ww_acquire_fini()
201 ctx->acquired = ~0U; in ww_acquire_fini()
207 * @lock: the mutex to be acquired
217 * returning -EALREADY. Returns 0 if the mutex was successfully acquired.
226 * acquired it. The task may not exit without first unlocking the mutex. Also,
232 * A mutex acquired with this function must be released with ww_mutex_unlock.
238 * @lock: the mutex to be acquired
[all …]
Dreset.h46 bool optional, bool acquired);
49 bool optional, bool acquired);
53 bool shared, bool optional, bool acquired);
59 bool optional, bool acquired);
62 bool shared, bool optional, bool acquired);
68 bool acquired);
120 bool optional, bool acquired) in __of_reset_control_get() argument
128 bool acquired) in __reset_control_get() argument
165 bool shared, bool optional, bool acquired) in __reset_control_bulk_get() argument
178 bool acquired) in __devm_reset_control_get() argument
[all …]
/Linux-v6.6/kernel/locking/
Dsemaphore.c7 * A counting semaphore may be acquired 'n' times before sleeping.
45 * @sem: the semaphore to be acquired
70 * @sem: the semaphore to be acquired
75 * If the semaphore is successfully acquired, this function returns 0.
96 * @sem: the semaphore to be acquired
101 * -EINTR. If the semaphore is successfully acquired, this function returns
123 * @sem: the semaphore to be acquired
126 * been acquired successfully or 1 if it cannot be acquired.
151 * @sem: the semaphore to be acquired
157 * this function returns -ETIME. It returns 0 if the semaphore was acquired.
Dww_mutex.h177 * Associate the ww_mutex @ww with the context @ww_ctx under which we acquired
208 DEBUG_LOCKS_WARN_ON(ww_ctx->acquired > 0); in ww_mutex_lock_acquired()
217 ww_ctx->acquired++; in ww_mutex_lock_acquired()
272 * Among waiters with context, only the first one can have other locks acquired
273 * already (ctx->acquired > 0), because __ww_mutex_add_waiter() and
283 if (waiter->ww_ctx->acquired > 0 && __ww_ctx_less(waiter->ww_ctx, ww_ctx)) { in __ww_mutex_die()
324 if (ww_ctx->acquired > 0 && __ww_ctx_less(hold_ctx, ww_ctx)) { in __ww_mutex_wound()
343 * We just acquired @lock under @ww_ctx, if there are more important contexts
415 if (ww_ctx->acquired > 0) { in __ww_mutex_kill()
448 if (ctx->acquired == 0) in __ww_mutex_check_kill()
[all …]
Dmutex.c262 * @lock: the mutex to be acquired
268 * acquired it. Recursive locking is not allowed. The task
322 if (ww_ctx->acquired > 0 && READ_ONCE(ww->ctx)) in ww_mutex_spin_on_owner()
594 if (ww_ctx->acquired == 0) in __mutex_lock_common()
660 goto acquired; in __mutex_lock_common()
702 acquired: in __mutex_lock_common()
763 * possible. Returns 1 if the mutex has been acquired successfully, 0 otherwise.
768 * A mutex acquired with this function must be released with ww_mutex_unlock.
782 if (ww_ctx->acquired == 0) in ww_mutex_trylock()
873 if (!ret && ctx && ctx->acquired > 1) in ww_mutex_lock()
[all …]
Dlock_events_list.h59 LOCK_EVENT(rwsem_opt_lock) /* # of opt-acquired write locks */
62 LOCK_EVENT(rwsem_rlock) /* # of read locks acquired */
64 LOCK_EVENT(rwsem_rlock_fast) /* # of fast read locks acquired */
67 LOCK_EVENT(rwsem_wlock) /* # of write locks acquired */
Dmcs_spinlock.h20 int locked; /* 1 if lock acquired */
28 * lock is acquired. Additionally, some architectures such as
60 * If the lock has already been acquired, then this will proceed to spin
82 * Lock acquired, don't need to set node->locked to 1. Threads in mcs_spin_lock()
/Linux-v6.6/tools/perf/pmu-events/arch/x86/snowridgex/
Duncore-interconnect.json597 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 0",
601 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 0 : Number of CMS Agent 0 AD cr…
606 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 1",
610 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 1 : Number of CMS Agent 0 AD cr…
615 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 2",
619 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 2 : Number of CMS Agent 0 AD cr…
624 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 3",
628 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 3 : Number of CMS Agent 0 AD cr…
633 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 4",
637 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 4 : Number of CMS Agent 0 AD cr…
[all …]
/Linux-v6.6/tools/perf/pmu-events/arch/x86/knightslanding/
Duncore-cache.json59 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 0",
67 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 1",
75 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 2",
83 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 3",
91 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 4",
99 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 5",
107 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 6",
115 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 7",
123 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 0-7",
131 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 8",
[all …]
/Linux-v6.6/Documentation/locking/
Dww-mutex-design.rst65 acquired when starting the lock acquisition. This ticket is stored in the
79 killed its transaction after having dropped all already acquired locks.
84 contending lock (after having dropped all other already acquired locks) will
85 work correctly. After all if no other ww mutex has been acquired yet there's
94 - When full debugging is enabled ww_mutex_lock_slow checks that all acquired
97 slowpath until the contended lock can be acquired).
262 objects acquired with the fixed list. But the w/w mutex debug checks will catch
347 other locks acquired already (ctx->acquired > 0). Note that this waiter
/Linux-v6.6/Documentation/filesystems/
Ddirectory-locking.rst84 the order until we had acquired all locks).
86 (3) locks on non-directory objects are acquired only after locks on
87 directory objects, and are acquired in inode pointer order.
121 to (2) the order hadn't changed since we had acquired filesystem lock.
135 we had acquired filesystem lock and rename() would fail with -ELOOP in that
/Linux-v6.6/Documentation/devicetree/bindings/gnss/
Dsirfstar.yaml15 2004 and used in a lot of dedicated GPS devices. In 2009 SiRF was acquired
17 acquired by Samsung, while some products remained with CSR. In 2014 CSR
18 was acquired by Qualcomm who still sell some of the SiRF products.
/Linux-v6.6/tools/perf/pmu-events/arch/x86/icelakex/
Duncore-interconnect.json597 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 0",
601 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 0 : Number of CMS Agent 0 AD cr…
606 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 1",
610 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 1 : Number of CMS Agent 0 AD cr…
615 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 2",
619 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 2 : Number of CMS Agent 0 AD cr…
624 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 3",
628 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 3 : Number of CMS Agent 0 AD cr…
633 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 4",
637 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 4 : Number of CMS Agent 0 AD cr…
[all …]
/Linux-v6.6/drivers/gpu/drm/i915/
Dintel_wakeref.h78 * Returns: 0 if the wakeref was acquired successfully, or a negative error
114 * Returns: true if the wakeref was acquired, false otherwise.
188 * Locks the wakeref to prevent it being acquired or released. New users
190 * cannot be acquired or released.
203 * Releases a previously acquired intel_wakeref_lock().
/Linux-v6.6/drivers/acpi/acpica/
Dexmutex.c55 * This handles the case where several mutexes have been acquired in acpi_ex_unlink_mutex()
166 /* Acquired the mutex: update mutex object */ in acpi_ex_acquire_mutex_object()
253 "Acquired: Mutex SyncLevel %u, Thread SyncLevel %u, Depth %u\n", in acpi_ex_acquire_mutex()
269 * DESCRIPTION: Release a previously acquired Mutex, low level interface.
334 * DESCRIPTION: Release a previously acquired Mutex.
354 /* The mutex must have been previously acquired in order to release it */ in acpi_ex_release_mutex()
358 "Cannot release Mutex [%4.4s], not acquired", in acpi_ex_release_mutex()
379 "Thread %u cannot release Mutex [%4.4s] acquired by thread %u", in acpi_ex_release_mutex()
404 * Get the previous sync_level from the head of the acquired mutex list. in acpi_ex_release_mutex()
406 * acquired, but are not released in reverse order. in acpi_ex_release_mutex()
Devglock.c174 u8 acquired = FALSE; in acpi_ev_acquire_global_lock() local
217 ACPI_ACQUIRE_GLOBAL_LOCK(acpi_gbl_FACS, acquired); in acpi_ev_acquire_global_lock()
218 if (acquired) { in acpi_ev_acquire_global_lock()
221 "Acquired hardware Global Lock\n")); in acpi_ev_acquire_global_lock()
273 /* Lock must be already acquired */ in acpi_ev_release_global_lock()
277 "Cannot release the ACPI Global Lock, it has not been acquired")); in acpi_ev_release_global_lock()

12345678910>>...28