/linux/tools/testing/selftests/bpf/progs/ |
H A D | cgrp_kfunc_failure.c | 35 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 …]
|
H A D | task_kfunc_success.c | 41 struct task_struct *acquired = NULL; in test_acquire_release() local 57 acquired = bpf_task_acquire(task); in test_acquire_release() 58 if (acquired) in test_acquire_release() 59 bpf_task_release(acquired); in test_acquire_release() 69 struct task_struct *acquired = NULL; in BPF_PROG() local 73 acquired = bpf_task_acquire___one(task); in BPF_PROG() 79 acquired = bpf_task_acquire___two(task, &fake_ctx); in BPF_PROG() 84 acquired = bpf_task_acquire___three(&fake_ctx); in BPF_PROG() 89 if (acquired) in BPF_PROG() 90 bpf_task_release(acquired); in BPF_PROG() [all …]
|
H A D | verifier_vfs_accept.c | 18 struct file *acquired; in BPF_PROG() local 20 acquired = bpf_get_task_exe_file(bpf_get_current_task_btf()); in BPF_PROG() 21 if (!acquired) in BPF_PROG() 24 bpf_put_file(acquired); in BPF_PROG() 32 struct file *acquired; in BPF_PROG() local 34 acquired = bpf_get_task_exe_file(bpf_get_current_task_btf()); in BPF_PROG() 35 if (!acquired) in BPF_PROG() 38 bpf_put_file(acquired); in BPF_PROG() 47 struct file *acquired; in BPF_PROG() local 49 acquired = bpf_get_task_exe_file(task); in BPF_PROG() [all …]
|
H A D | verifier_vfs_reject.c | 19 struct file *acquired; in BPF_PROG() local 22 acquired = bpf_get_task_exe_file(NULL); in BPF_PROG() 23 if (!acquired) in BPF_PROG() 26 bpf_put_file(acquired); in BPF_PROG() 35 struct file *acquired; in BPF_PROG() local 40 acquired = bpf_get_task_exe_file(task); in BPF_PROG() 41 if (!acquired) in BPF_PROG() 44 bpf_put_file(acquired); in BPF_PROG() 52 struct file *acquired; in BPF_PROG() local 60 acquired = bpf_get_task_exe_file(parent); in BPF_PROG() [all …]
|
H A D | test_task_under_cgroup.c | 24 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()
|
H A D | cgrp_kfunc_common.h | 46 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()
|
H A D | cgrp_kfunc_success.c | 35 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/include/linux/ |
H A D | ww_mutex.h | 58 unsigned int acquired; member 147 ctx->acquired = 0; in ww_acquire_init() 195 * Releases a w/w acquire context. This must be called _after_ all acquired w/w 205 DEBUG_LOCKS_WARN_ON(ctx->acquired); in ww_acquire_fini() 215 ctx->acquired = ~0U; in ww_acquire_fini() 221 * @lock: the mutex to be acquired 231 * returning -EALREADY. Returns 0 if the mutex was successfully acquired. 240 * acquired it. The task may not exit without first unlocking the mutex. Also, 246 * A mutex acquired with this function must be released with ww_mutex_unlock. 252 * @lock: the mutex to be acquired [all …]
|
H A D | local_lock_internal.h | 21 u8 acquired; member 106 lockdep_assert(tl->acquired == 0); \ 107 WRITE_ONCE(tl->acquired, 1); \ 137 if (READ_ONCE(tl->acquired)) { \ 141 WRITE_ONCE(tl->acquired, 1); \ 154 if (READ_ONCE(tl->acquired)) { \ 158 WRITE_ONCE(tl->acquired, 1); \ 175 lockdep_assert(tl->acquired == 1); \ 176 WRITE_ONCE(tl->acquired, 0); \
|
/linux/kernel/locking/ |
H A D | semaphore.c | 7 * A counting semaphore may be acquired 'n' times before sleeping. 82 * @sem: the semaphore to be acquired 107 * @sem: the semaphore to be acquired 112 * If the semaphore is successfully acquired, this function returns 0. 133 * @sem: the semaphore to be acquired 138 * -EINTR. If the semaphore is successfully acquired, this function returns 160 * @sem: the semaphore to be acquired 163 * been acquired successfully or 1 if it cannot be acquired. 188 * @sem: the semaphore to be acquired 194 * this function returns -ETIME. It returns 0 if the semaphore was acquired.
|
H A D | ww_mutex.h | 177 * 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() 325 if (ww_ctx->acquired > 0 && __ww_ctx_less(hold_ctx, ww_ctx)) { in __ww_mutex_wound() 344 * We just acquired @lock under @ww_ctx, if there are more important contexts 423 if (ww_ctx->acquired > 0) { in __ww_mutex_kill() 456 if (ctx->acquired == 0) in __ww_mutex_check_kill() [all …]
|
H A D | mutex.c | 254 * @lock: the mutex to be acquired 260 * acquired it. Recursive locking is not allowed. The task 314 if (ww_ctx->acquired > 0 && READ_ONCE(ww->ctx)) in ww_mutex_spin_on_owner() 593 if (ww_ctx->acquired == 0) in __mutex_lock_common() 659 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() 874 if (!ret && ctx && ctx->acquired > in ww_mutex_lock() [all...] |
H A D | mcs_spinlock.h | 22 * lock is acquired. Additionally, some architectures such as 52 * If the lock has already been acquired, then this will proceed to spin 74 * Lock acquired, don't need to set node->locked to 1. Threads in mcs_spin_lock()
|
/linux/drivers/reset/ |
H A D | core.c | 44 * @acquired: Only one reset_control may be acquired for a given rcdev and id. 57 bool acquired; member 256 if (!rstc->acquired) in reset_control_array_rearm() 376 if (!rstc->acquired) in reset_control_reset() 444 if (!rstc->acquired) in reset_control_rearm() 504 if (!rstc->acquired) { in reset_control_assert() 505 WARN(1, "reset %s (ID: %u) is not acquired\n", in reset_control_assert() 574 if (!rstc->acquired) { in reset_control_deassert() 575 WARN(1, "reset %s (ID: %u) is not acquired\n", in reset_control_deassert() 651 * that exclusive resets are requested as acquired by default. In order for a [all …]
|
/linux/tools/perf/pmu-events/arch/x86/snowridgex/ |
H A D | uncore-interconnect.json | 731 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 0", 737 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 0 : Number of CMS Agent 0 AD cr… 742 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 1", 748 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 1 : Number of CMS Agent 0 AD cr… 753 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 2", 759 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 2 : Number of CMS Agent 0 AD cr… 764 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 3", 770 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 3 : Number of CMS Agent 0 AD cr… 775 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 4", 781 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 4 : Number of CMS Agent 0 AD cr… [all …]
|
H A D | uncore-cache.json | 3 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 0", 9 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 0 : Number of CMS Agent 0 AD cr… 14 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 1", 20 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 1 : Number of CMS Agent 0 AD cr… 25 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 2", 31 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 2 : Number of CMS Agent 0 AD cr… 36 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 3", 42 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 3 : Number of CMS Agent 0 AD cr… 47 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 4", 53 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 4 : Number of CMS Agent 0 AD cr… [all …]
|
/linux/Documentation/locking/ |
H A D | ww-mutex-design.rst | 65 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
|
H A D | lockdep-design.rst | 78 '.' acquired while irqs disabled and not in irq context 79 '-' acquired in irq context 80 '+' acquired with irqs enabled 81 '?' acquired in irq context with irqs enabled. 89 || \--> acquired in softirq context 91 \----> acquired in hardirq context 94 For a given STATE, whether the lock is ever acquired in that STATE 118 is irq-unsafe means it was ever acquired with irq enabled. 128 cannot be ever acquired with irq enabled (irq-unsafe). Otherwise, a 130 was acquired but before released, if the context is interrupted this [all …]
|
/linux/drivers/acpi/acpica/ |
H A D | exmutex.c | 55 * 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()
|
H A D | evglock.c | 174 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()
|
/linux/Documentation/devicetree/bindings/gnss/ |
H A D | sirfstar.yaml | 15 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/drivers/net/ethernet/intel/e1000e/ |
H A D | phy.c | 285 * and storing the retrieved information in data. Release any acquired 311 * at the offset. Release any acquired semaphores before exiting. 335 * already acquired. Note, this function sets phy.addr to 1 so the caller 352 * @locked: semaphore has already been acquired or not 355 * and stores the retrieved information in data. Release any acquired 394 * Release the acquired semaphore before exiting. 408 * in data. Assumes semaphore already acquired. 420 * @locked: semaphore has already been acquired or not 423 * at the offset. Release any acquired semaphores before exiting. 459 * at the offset. Release any acquired semaphores before exiting. [all …]
|
/linux/tools/perf/pmu-events/arch/x86/knightslanding/ |
H A D | uncore-cache.json | 66 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 0", 75 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 1", 84 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 2", 93 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 3", 102 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 4", 111 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 5", 120 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 6", 129 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 7", 138 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 0-7", 147 "BriefDescription": "CMS Agent0 AD Credits Acquired For Transgress 8", [all …]
|
/linux/tools/perf/pmu-events/arch/x86/icelakex/ |
H A D | uncore-interconnect.json | 731 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 0", 737 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 0 : Number of CMS Agent 0 AD cr… 742 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 1", 748 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 1 : Number of CMS Agent 0 AD cr… 753 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 2", 759 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 2 : Number of CMS Agent 0 AD cr… 764 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 3", 770 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 3 : Number of CMS Agent 0 AD cr… 775 "BriefDescription": "CMS Agent0 AD Credits Acquired : For Transgress 4", 781 …blicDescription": "CMS Agent0 AD Credits Acquired : For Transgress 4 : Number of CMS Agent 0 AD cr… [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_agp.c | 169 if (rdev->agp->acquired) in radeon_agp_head_acquire() 174 rdev->agp->acquired = 1; in radeon_agp_head_acquire() 180 if (!rdev->agp || !rdev->agp->acquired) in radeon_agp_head_release() 183 rdev->agp->acquired = 0; in radeon_agp_head_release() 189 if (!rdev->agp || !rdev->agp->acquired) in radeon_agp_head_enable() 202 if (!rdev->agp || !rdev->agp->acquired) in radeon_agp_head_info() 369 if (rdev->agp && rdev->agp->acquired) { in radeon_agp_fini()
|