Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/bpf/progs/
H A Dtask_kfunc_failure.c35 struct task_struct *acquired; in BPF_PROG() local
43 acquired = bpf_task_acquire(v->task); in BPF_PROG()
44 if (!acquired) in BPF_PROG()
47 bpf_task_release(acquired); in BPF_PROG()
56 struct task_struct *acquired, *stack_task = (struct task_struct *)&clone_flags; in BPF_PROG() local
59 acquired = bpf_task_acquire((struct task_struct *)&stack_task); in BPF_PROG()
60 if (!acquired) in BPF_PROG()
63 bpf_task_release(acquired); in BPF_PROG()
72 struct task_struct *acquired; in BPF_PROG() local
75 acquired = bpf_task_acquire(task); in BPF_PROG()
[all …]
H A Dtask_kfunc_success.c42 struct task_struct *acquired = NULL; in test_acquire_release() local
58 acquired = bpf_task_acquire(task); in test_acquire_release()
59 if (acquired) in test_acquire_release()
60 bpf_task_release(acquired); in test_acquire_release()
70 struct task_struct *acquired = NULL; in BPF_PROG() local
74 acquired = bpf_task_acquire___one(task); in BPF_PROG()
80 acquired = bpf_task_acquire___two(task, &fake_ctx); in BPF_PROG()
85 acquired = bpf_task_acquire___three(&fake_ctx); in BPF_PROG()
90 if (acquired) in BPF_PROG()
91 bpf_task_release(acquired); 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 Dverifier_vfs_reject.c19 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 Dverifier_vfs_accept.c18 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 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 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 Dtask_kfunc_common.h60 struct task_struct *acquired, *old; in tasks_kfunc_map_insert() local
78 acquired = bpf_task_acquire(p); in tasks_kfunc_map_insert()
79 if (!acquired) in tasks_kfunc_map_insert()
82 old = bpf_kptr_xchg(&v->task, acquired); in tasks_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/include/linux/
H A Dlocal_lock_internal.h28 u8 acquired; in context_lock_struct() local
117 lockdep_assert(__tl->acquired == 0); \
118 WRITE_ONCE(__tl->acquired, 1); \
151 if (READ_ONCE(__tl->acquired)) { \
155 WRITE_ONCE(__tl->acquired, 1); \
168 if (READ_ONCE(__tl->acquired)) { \
172 WRITE_ONCE(__tl->acquired, 1); \
180 #define __local_lock_is_locked(lock) READ_ONCE(this_cpu_ptr(lock)->acquired)
192 lockdep_assert(__tl->acquired == 1); \
193 WRITE_ONCE(__tl->acquired, 0); \
/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/reset/
H A Dcore.c62 bool acquired; member
274 if (!rstc->acquired) in reset_control_array_rearm()
401 if (!rstc->acquired) in reset_control_reset()
469 if (!rstc->acquired) in reset_control_rearm()
537 if (!rstc->acquired) { in reset_control_assert()
615 if (!rstc->acquired) { in reset_control_deassert()
731 if (rstc->acquired) in reset_control_acquire()
743 if (rc->acquired) in reset_control_acquire()
749 rstc->acquired = true; in reset_control_acquire()
803 rstc->acquired = false; in reset_control_release()
[all …]
/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/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()
H A Doutp.h26 u8 acquired:2; member
/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/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 …]
H A Dfutex-requeue-pi.rst71 /* the kernel acquired the mutex for us */
121 the lock can be acquired at this stage as well, if so, the next
/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).
/linux/Documentation/RCU/
H A DUP.rst125 Any lock that is acquired within an RCU callback must be acquired
127 For example, if "mylock" is acquired by an RCU callback, then
/linux/arch/arm/boot/dts/gemini/
H A Dgemini-sl93512r.dts5 * "Gemini324 EV-Board" before Storm acquired Storlink Semiconductor.
6 * The series were later acquired by Cortina Systems.
/linux/Documentation/driver-api/soundwire/
H A Dlocking.rst33 Below examples show how locks are acquired.

123