Home
last modified time | relevance | path

Searched refs:acquired (Results 1 – 25 of 110) sorted by relevance

12345

/linux/tools/testing/selftests/bpf/progs/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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()
H A 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()
H A 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()
H A 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/drivers/reset/
H A Dcore.c44 * @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\ in reset_control_deassert()
776 __reset_control_get_internal(struct reset_controller_dev * rcdev,unsigned int index,bool shared,bool acquired) __reset_control_get_internal() argument
1002 __of_reset_control_get(struct device_node * node,const char * id,int index,bool shared,bool optional,bool acquired) __of_reset_control_get() argument
1099 __reset_control_get_from_lookup(struct device * dev,const char * con_id,bool shared,bool optional,bool acquired) __reset_control_get_from_lookup() argument
1142 __reset_control_get(struct device * dev,const char * id,int index,bool shared,bool optional,bool acquired) __reset_control_get() argument
1158 __reset_control_bulk_get(struct device * dev,int num_rstcs,struct reset_control_bulk_data * rstcs,bool shared,bool optional,bool acquired) __reset_control_bulk_get() argument
1234 __devm_reset_control_get(struct device * dev,const char * id,int index,bool shared,bool optional,bool acquired) __devm_reset_control_get() argument
1270 __devm_reset_control_bulk_get(struct device * dev,int num_rstcs,struct reset_control_bulk_data * rstcs,bool shared,bool optional,bool acquired) __devm_reset_control_bulk_get() argument
1373 of_reset_control_array_get(struct device_node * np,bool shared,bool optional,bool acquired) of_reset_control_array_get() argument
[all...]
/linux/include/linux/
H A 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 …]
H A Dww_mutex.h58 unsigned int acquired; member
137 ctx->acquired = 0; in ww_acquire_init()
191 DEBUG_LOCKS_WARN_ON(ctx->acquired); in ww_acquire_fini()
201 ctx->acquired = ~0U; in ww_acquire_fini()
/linux/kernel/locking/
H A 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 in __ww_mutex_check_kill()
[all...]
H A Dmutex.c322 if (ww_ctx->acquired > 0 && READ_ONCE(ww->ctx)) in ww_mutex_spin_on_owner()
599 if (ww_ctx->acquired == 0) in __mutex_lock_common()
665 goto acquired; in __mutex_lock_common()
707 acquired: in __mutex_lock_common()
787 if (ww_ctx->acquired == 0) in ww_mutex_trylock()
878 if (!ret && ctx && ctx->acquired > 1) in ww_mutex_lock()
894 if (!ret && ctx && ctx->acquired > 1) in ww_mutex_lock_interruptible()
H A Dww_rt_mutex.c24 if (ww_ctx->acquired == 0) in ww_mutex_trylock()
56 if (ww_ctx->acquired == 0) in __ww_rt_mutex_lock()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_agp.c169 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()
/linux/drivers/acpi/acpica/
H A 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()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Doutp.c95 OUTP_TRACE(outp, "release %02x &= %02x %p", outp->acquired, ~user, ior); in nvkm_outp_release_or()
97 outp->acquired &= ~user; in nvkm_outp_release_or()
98 if (!outp->acquired) { in nvkm_outp_release_or()
111 outp->acquired |= user; in nvkm_outp_acquire_ior()
149 OUTP_TRACE(outp, "acquire %02x |= %02x %p", outp->acquired, user, ior); in nvkm_outp_acquire_or()
151 outp->acquired |= user; in nvkm_outp_acquire_or()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pci/
H A Dagp.c46 if (pci->agp.acquired) { in nvkm_agp_fini()
48 pci->agp.acquired = false; in nvkm_agp_fini()
93 pci->agp.acquired = true; in nvkm_agp_init()
/linux/include/acpi/platform/
H A Dacenv.h248 #define ACPI_ACQUIRE_GLOBAL_LOCK(Glptr, acquired) acquired = 1 argument
/linux/tools/perf/Documentation/
H A Dperf-lock.txt70 Sorting key. Possible values: acquired (default), contended,
76 customize that using this. Possible values: acquired, contended,
87 $ perf lock report -t -F acquired,contended,avg_wait
89 Name acquired contended avg wait (ns)
/linux/Documentation/locking/
H A 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
H A Dlockdep-design.rst78 '.' 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/Documentation/sound/cards/
H A Dimg-spdif-in.rst39 acquired
49 This control is used to change the threshold at which a lock is acquired.
/linux/fs/bcachefs/
H A Dsix.c473 bool acquired; in six_lock_slowpath() local
478 * acquired the lock - should_sleep_fn() might have in six_lock_slowpath()
483 acquired = wait->lock_acquired; in six_lock_slowpath()
484 if (!acquired) in six_lock_slowpath()
488 if (unlikely(acquired)) in six_lock_slowpath()
529 * removed from the lock waitlist until the lock has been successfully acquired,
/linux/tools/memory-model/litmus-tests/
H A DMP+polockonce+poacquiresilsil.litmus9 * the smp_load_acquire() executed before the lock was acquired (loosely
H A DMP+polockmbonce+poacquiresilsil.litmus10 * executed before the lock was acquired (loosely speaking).

12345