/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | task_kfunc_failure.c | 34 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 in BPF_PROG() 86 struct task_struct *acquired; BPF_PROG() local 106 struct task_struct *acquired; BPF_PROG() local 121 struct task_struct *acquired; BPF_PROG() local 155 struct task_struct *acquired; BPF_PROG() local 184 struct task_struct *acquired = (struct task_struct *)&clone_flags; BPF_PROG() local 198 struct task_struct *acquired, *old; BPF_PROG() local 240 struct task_struct *acquired; BPF_PROG() local 254 struct task_struct *acquired; BPF_PROG() local [all...] |
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() 84 struct cgroup *acquired; BPF_PROG() local 98 struct cgroup *acquired; BPF_PROG() local 112 struct cgroup *acquired; BPF_PROG() local 126 struct cgroup *acquired; BPF_PROG() local 197 struct cgroup *acquired = (struct cgroup *)&path; BPF_PROG() local 211 struct cgroup *acquired, *old; BPF_PROG() local [all...] |
H A D | task_kfunc_success.c | 40 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() 216 struct task_struct *current, *acquired; BPF_PROG() local 233 struct task_struct *acquired; lookup_compare_pid() local 268 struct task_struct *acquired; is_pid_lookup_valid() local 305 struct task_struct *acquired; BPF_PROG() local [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 | task_kfunc_common.h | 45 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 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()
|
/kernel/linux/linux-5.10/drivers/reset/ |
H A D | core.c | 33 * @acquired: Only one reset_control may be acquired for a given rcdev and id. 46 bool acquired; member 316 if (!rstc->acquired) in reset_control_reset() 380 if (!rstc->acquired) { in reset_control_assert() 381 WARN(1, "reset %s (ID: %u) is not acquired\n", in reset_control_assert() 420 if (!rstc->acquired) { in reset_control_deassert() 421 WARN(1, "reset %s (ID: %u) is not acquired\n", in reset_control_deassert() 467 * that exclusive resets are requested as acquired by default. In order for a 471 * control. Such reset controls are not acquired b 540 __reset_control_get_internal( struct reset_controller_dev *rcdev, unsigned int index, bool shared, bool acquired) __reset_control_get_internal() argument 608 __of_reset_control_get(struct device_node *node, const char *id, int index, bool shared, bool optional, bool acquired) __of_reset_control_get() argument 692 __reset_control_get_from_lookup(struct device *dev, const char *con_id, bool shared, bool optional, bool acquired) __reset_control_get_from_lookup() argument 734 __reset_control_get(struct device *dev, const char *id, int index, bool shared, bool optional, bool acquired) __reset_control_get() argument 786 __devm_reset_control_get(struct device *dev, const char *id, int index, bool shared, bool optional, bool acquired) __devm_reset_control_get() argument 876 of_reset_control_array_get(struct device_node *np, bool shared, bool optional, bool acquired) of_reset_control_array_get() argument [all...] |
/kernel/linux/linux-6.6/drivers/reset/ |
H A D | core.c | 34 * @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\ in reset_control_deassert() 749 __reset_control_get_internal(struct reset_controller_dev *rcdev, unsigned int index, bool shared, bool acquired) __reset_control_get_internal() argument 817 __of_reset_control_get(struct device_node *node, const char *id, int index, bool shared, bool optional, bool acquired) __of_reset_control_get() argument 900 __reset_control_get_from_lookup(struct device *dev, const char *con_id, bool shared, bool optional, bool acquired) __reset_control_get_from_lookup() argument 942 __reset_control_get(struct device *dev, const char *id, int index, bool shared, bool optional, bool acquired) __reset_control_get() argument 958 __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 1035 __devm_reset_control_get(struct device *dev, const char *id, int index, bool shared, bool optional, bool acquired) __devm_reset_control_get() argument 1070 __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 1174 of_reset_control_array_get(struct device_node *np, bool shared, bool optional, bool acquired) of_reset_control_array_get() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_agpsupport.c | 57 * Verifies the AGP device has been initialized and acquired and fills in the 64 if (!dev->agp || !dev->agp->acquired) in drm_agp_info() 101 * Verifies the AGP device hasn't been acquired before and calls 108 if (dev->agp->acquired) in drm_agp_acquire() 113 dev->agp->acquired = 1; in drm_agp_acquire() 127 * Verifies the AGP device hasn't been acquired before and calls 142 * Verifies the AGP device has been acquired and calls \c agp_backend_release. 146 if (!dev->agp || !dev->agp->acquired) in drm_agp_release() 149 dev->agp->acquired = 0; in drm_agp_release() 163 * \param dev DRM device that has previously acquired AG [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_agpsupport.c | 56 * 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 AG [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | reset.h | 24 bool optional, bool acquired); 27 bool optional, bool acquired); 32 bool optional, bool acquired); 38 bool acquired); 85 bool optional, bool acquired) in __of_reset_control_get() 93 bool acquired) in __reset_control_get() 101 bool acquired) in __devm_reset_control_get() 114 bool acquired) in of_reset_control_array_get() 165 * reset-controls returned by this function must be acquired via 82 __of_reset_control_get( struct device_node *node, const char *id, int index, bool shared, bool optional, bool acquired) __of_reset_control_get() argument 90 __reset_control_get( struct device *dev, const char *id, int index, bool shared, bool optional, bool acquired) __reset_control_get() argument 98 __devm_reset_control_get( struct device *dev, const char *id, int index, bool shared, bool optional, bool acquired) __devm_reset_control_get() argument 113 of_reset_control_array_get(struct device_node *np, bool shared, bool optional, bool acquired) of_reset_control_array_get() argument
|
H A D | ww_mutex.h | 34 unsigned int acquired; member 126 ctx->acquired = 0; in ww_acquire_init() 171 * Releases a w/w acquire context. This must be called _after_ all acquired w/w 180 DEBUG_LOCKS_WARN_ON(ctx->acquired); in ww_acquire_fini() 190 ctx->acquired = ~0U; in ww_acquire_fini() 196 * @lock: the mutex to be acquired 206 * returning -EALREADY. Returns 0 if the mutex was successfully acquired. 215 * acquired it. The task may not exit without first unlocking the mutex. Also, 221 * A mutex acquired with this function must be released with ww_mutex_unlock. 227 * @lock: the mutex to be acquired [all...] |
/kernel/linux/linux-6.6/kernel/locking/ |
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() 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 D | ww_rt_mutex.c | 24 if (ww_ctx->acquired == 0) in ww_mutex_trylock() 56 if (ww_ctx->acquired == 0) in __ww_rt_mutex_lock()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | reset.h | 46 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() 128 bool acquired) in __reset_control_get() 165 bool shared, bool optional, bool acquired) in __reset_control_bulk_get() 178 bool acquired) in __devm_reset_control_get() 117 __of_reset_control_get( struct device_node *node, const char *id, int index, bool shared, bool optional, bool acquired) __of_reset_control_get() argument 125 __reset_control_get( struct device *dev, const char *id, int index, bool shared, bool optional, bool acquired) __reset_control_get() argument 163 __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 175 __devm_reset_control_get( struct device *dev, const char *id, int index, bool shared, bool optional, bool acquired) __devm_reset_control_get() argument 184 __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 198 of_reset_control_array_get(struct device_node *np, bool shared, bool optional, bool acquired) of_reset_control_array_get() argument [all...] |
H A D | ww_mutex.h | 58 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...] |
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/kernel/locking/ |
H A D | mutex.c | 270 * @lock: the mutex to be acquired 276 * acquired it. Recursive locking is not allowed. The task 312 * Associate the ww_mutex @ww with the context @ww_ctx under which we acquired 343 DEBUG_LOCKS_WARN_ON(ww_ctx->acquired > 0); in ww_mutex_lock_acquired() 352 ww_ctx->acquired++; in ww_mutex_lock_acquired() 372 * Among waiters with context, only the first one can have other locks acquired 373 * already (ctx->acquired > 0), because __ww_mutex_add_waiter() and 383 if (waiter->ww_ctx->acquired > 0 && in __ww_mutex_die() 423 if (ww_ctx->acquired > 0 && __ww_ctx_stamp_after(hold_ctx, ww_ctx)) { in __ww_mutex_wound() 442 * We just acquired [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | outp.c | 93 OUTP_TRACE(outp, "release %02x &= %02x %p", outp->acquired, ~user, ior); in nvkm_outp_release() 95 outp->acquired &= ~user; in nvkm_outp_release() 96 if (!outp->acquired) { in nvkm_outp_release() 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() 151 outp->acquired |= user; in nvkm_outp_acquire()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | outp.c | 93 OUTP_TRACE(outp, "release %02x &= %02x %p", outp->acquired, ~user, ior); in nvkm_outp_release() 95 outp->acquired &= ~user; in nvkm_outp_release() 96 if (!outp->acquired) { in nvkm_outp_release() 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() 151 outp->acquired |= user; in nvkm_outp_acquire()
|
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
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() 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()
|
/kernel/linux/linux-6.6/drivers/acpi/acpica/ |
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() 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
H A D | agp.c | 46 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
H A D | agp.c | 46 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()
|