Home
last modified time | relevance | path

Searched refs:ww_acquire_ctx (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v4.19/include/linux/
Dww_mutex.h31 struct ww_acquire_ctx { struct
53 struct ww_acquire_ctx *ctx; argument
129 static inline void ww_acquire_init(struct ww_acquire_ctx *ctx, in ww_acquire_init()
165 static inline void ww_acquire_done(struct ww_acquire_ctx *ctx) in ww_acquire_done()
182 static inline void ww_acquire_fini(struct ww_acquire_ctx *ctx) in ww_acquire_fini()
230 extern int /* __must_check */ ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx);
263 struct ww_acquire_ctx *ctx);
289 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow()
326 struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow_interruptible()
Dreservation.h164 struct ww_acquire_ctx *ctx) in reservation_object_lock()
186 struct ww_acquire_ctx *ctx) in reservation_object_lock_interruptible()
Dmutex.h23 struct ww_acquire_ctx;
85 struct ww_acquire_ctx *ww_ctx;
/Linux-v4.19/kernel/locking/
Dmutex.c279 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired()
325 __ww_ctx_stamp_after(struct ww_acquire_ctx *a, struct ww_acquire_ctx *b) in __ww_ctx_stamp_after()
341 struct ww_acquire_ctx *ww_ctx) in __ww_mutex_die()
363 struct ww_acquire_ctx *ww_ctx, in __ww_mutex_wound()
364 struct ww_acquire_ctx *hold_ctx) in __ww_mutex_wound()
417 __ww_mutex_check_waiters(struct mutex *lock, struct ww_acquire_ctx *ww_ctx) in __ww_mutex_check_waiters()
438 ww_mutex_set_context_fastpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_set_context_fastpath()
475 bool ww_mutex_spin_on_owner(struct mutex *lock, struct ww_acquire_ctx *ww_ctx, in ww_mutex_spin_on_owner()
524 struct ww_acquire_ctx *ww_ctx, struct mutex_waiter *waiter) in mutex_spin_on_owner()
611 mutex_optimistic_spin(struct mutex *lock, struct ww_acquire_ctx *ww_ctx, in mutex_optimistic_spin()
[all …]
Dtest-ww_mutex.c65 struct ww_acquire_ctx ctx; in __test_mutex()
128 struct ww_acquire_ctx ctx; in test_aa()
173 struct ww_acquire_ctx ctx; in test_abba_work()
200 struct ww_acquire_ctx ctx; in test_abba()
262 struct ww_acquire_ctx ctx; in test_cycle_work()
396 struct ww_acquire_ctx ctx; in stress_inorder_work()
454 struct ww_acquire_ctx ctx; in stress_reorder_work()
Dlocktorture.c386 struct ww_acquire_ctx ctx; in torture_ww_mutex_lock()
/Linux-v4.19/include/drm/ttm/
Dttm_execbuf_util.h62 extern void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket,
99 extern int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket,
116 extern void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
Dttm_bo_driver.h625 struct ww_acquire_ctx *ticket) in __ttm_bo_reserve()
693 struct ww_acquire_ctx *ticket) in ttm_bo_reserve()
718 struct ww_acquire_ctx *ticket) in ttm_bo_reserve_slowpath()
/Linux-v4.19/drivers/gpu/drm/ttm/
Dttm_execbuf_util.c56 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, in ttm_eu_backoff_reservation()
94 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, in ttm_eu_reserve_buffers()
182 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, in ttm_eu_fence_buffer_objects()
/Linux-v4.19/include/drm/
Ddrm_modeset_lock.h45 struct ww_acquire_ctx ww_ctx;
/Linux-v4.19/Documentation/locking/
Dww-mutex-design.txt139 int lock_objs(struct list_head *list, struct ww_acquire_ctx *ctx)
185 int lock_objs(struct list_head *list, struct ww_acquire_ctx *ctx)
223 void unlock_objs(struct list_head *list, struct ww_acquire_ctx *ctx)
284 void lock_objs(struct list_head *list, struct ww_acquire_ctx *ctx)
317 void unlock_objs(struct list_head *list, struct ww_acquire_ctx *ctx)
374 - Using a different ww_class for the mutex than for the ww_acquire_ctx.
378 - Calling ww_acquire_init to initialize a second ww_acquire_ctx before
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_resource.c444 vmw_resource_check_buffer(struct ww_acquire_ctx *ticket, in vmw_resource_check_buffer()
533 vmw_resource_backoff_reservation(struct ww_acquire_ctx *ticket, in vmw_resource_backoff_reservation()
555 static int vmw_resource_do_evict(struct ww_acquire_ctx *ticket, in vmw_resource_do_evict()
819 struct ww_acquire_ctx ticket; in vmw_resource_evict_type()
/Linux-v4.19/drivers/gpu/drm/msm/
Dmsm_gem.h143 struct ww_acquire_ctx ticket;
/Linux-v4.19/drivers/gpu/drm/v3d/
Dv3d_gem.c227 struct ww_acquire_ctx *acquire_ctx) in v3d_unlock_bo_reservations()
250 struct ww_acquire_ctx *acquire_ctx) in v3d_lock_bo_reservations()
502 struct ww_acquire_ctx acquire_ctx; in v3d_submit_cl_ioctl()
/Linux-v4.19/drivers/gpu/drm/virtio/
Dvirtgpu_ioctl.c56 static int virtio_gpu_object_list_validate(struct ww_acquire_ctx *ticket, in virtio_gpu_object_list_validate()
116 struct ww_acquire_ctx ticket; in virtio_gpu_execbuffer_ioctl()
228 struct ww_acquire_ctx ticket; in virtio_gpu_resource_create_ioctl()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dradeon_object.h144 struct ww_acquire_ctx *ticket,
Dradeon_gem.c547 struct ww_acquire_ctx ticket; in radeon_gem_va_update_vm()
Dradeon_object.c531 struct ww_acquire_ctx *ticket, in radeon_bo_list_validate()
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vm.h321 void amdgpu_vm_bo_trace_cs(struct amdgpu_vm *vm, struct ww_acquire_ctx *ticket);
Damdgpu_virt.c80 struct ww_acquire_ctx ticket; in amdgpu_map_static_csa()
Damdgpu_gem.c164 struct ww_acquire_ctx ticket; in amdgpu_gem_object_close()
563 struct ww_acquire_ctx ticket; in amdgpu_gem_va_ioctl()
Damdgpu_amdkfd_gpuvm.c643 struct ww_acquire_ctx ticket; /* Reservation ticket */
1762 struct ww_acquire_ctx ticket; in validate_invalid_user_pages()
/Linux-v4.19/drivers/gpu/drm/etnaviv/
Detnaviv_gem_submit.c119 struct ww_acquire_ctx *ticket) in submit_lock_objects()
417 struct ww_acquire_ctx ticket; in etnaviv_ioctl_gem_submit()
/Linux-v4.19/drivers/gpu/drm/vc4/
Dvc4_gem.c557 struct ww_acquire_ctx *acquire_ctx) in vc4_unlock_bo_reservations()
580 struct ww_acquire_ctx *acquire_ctx) in vc4_lock_bo_reservations()
659 struct ww_acquire_ctx *acquire_ctx, in vc4_queue_submit()
1123 struct ww_acquire_ctx acquire_ctx; in vc4_submit_cl_ioctl()
/Linux-v4.19/drivers/gpu/drm/qxl/
Dqxl_drv.h173 struct ww_acquire_ctx ticket;

12