/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
H A D | i915_syncmap.c | 101 static int check_syncmap_free(struct i915_syncmap **sync) in check_syncmap_free() argument 103 i915_syncmap_free(sync); in check_syncmap_free() 104 if (*sync) { in check_syncmap_free() 105 pr_err("sync not cleared after free\n"); in check_syncmap_free() 112 static int dump_syncmap(struct i915_syncmap *sync, int err) in dump_syncmap() argument 117 return check_syncmap_free(&sync); in dump_syncmap() 123 if (i915_syncmap_print_to_buf(sync, buf, PAGE_SIZE)) in dump_syncmap() 129 i915_syncmap_free(&sync); in dump_syncmap() 135 struct i915_syncmap *sync = (void *)~0ul; in igt_syncmap_init() local 142 i915_syncmap_init(&sync); in igt_syncmap_init() 163 check_one(struct i915_syncmap **sync, u64 context, u32 seqno) check_one() argument 206 struct i915_syncmap *sync; igt_syncmap_one() local 238 check_leaf(struct i915_syncmap **sync, u64 context, u32 seqno) check_leaf() argument 273 struct i915_syncmap *sync; igt_syncmap_join_above() local 334 struct i915_syncmap *sync; igt_syncmap_join_below() local 404 struct i915_syncmap *sync; igt_syncmap_neighbours() local 448 struct i915_syncmap *sync; igt_syncmap_compact() local 546 struct i915_syncmap *sync; igt_syncmap_random() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/ |
H A D | i915_syncmap.c | 101 static int check_syncmap_free(struct i915_syncmap **sync) in check_syncmap_free() argument 103 i915_syncmap_free(sync); in check_syncmap_free() 104 if (*sync) { in check_syncmap_free() 105 pr_err("sync not cleared after free\n"); in check_syncmap_free() 112 static int dump_syncmap(struct i915_syncmap *sync, int err) in dump_syncmap() argument 117 return check_syncmap_free(&sync); in dump_syncmap() 123 if (i915_syncmap_print_to_buf(sync, buf, PAGE_SIZE)) in dump_syncmap() 129 i915_syncmap_free(&sync); in dump_syncmap() 135 struct i915_syncmap *sync = (void *)~0ul; in igt_syncmap_init() local 142 i915_syncmap_init(&sync); in igt_syncmap_init() 163 check_one(struct i915_syncmap **sync, u64 context, u32 seqno) check_one() argument 206 struct i915_syncmap *sync; igt_syncmap_one() local 238 check_leaf(struct i915_syncmap **sync, u64 context, u32 seqno) check_leaf() argument 273 struct i915_syncmap *sync; igt_syncmap_join_above() local 334 struct i915_syncmap *sync; igt_syncmap_join_below() local 404 struct i915_syncmap *sync; igt_syncmap_neighbours() local 448 struct i915_syncmap *sync; igt_syncmap_compact() local 546 struct i915_syncmap *sync; igt_syncmap_random() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/ |
H A D | child.h | 3 * Helper functions to sync execution between parent and child processes. 29 #define CHILD_FAIL_IF(x, sync) \ 34 (sync)->child_gave_up = true; \ 35 prod_parent(sync); \ 40 #define PARENT_FAIL_IF(x, sync) \ 45 (sync)->parent_gave_up = true; \ 46 prod_child(sync); \ 51 #define PARENT_SKIP_IF_UNSUPPORTED(x, sync) \ 54 (sync)->parent_gave_up = true; \ 55 prod_child(sync); \ 60 init_child_sync(struct child_sync *sync) init_child_sync() argument 79 destroy_child_sync(struct child_sync *sync) destroy_child_sync() argument 85 wait_child(struct child_sync *sync) wait_child() argument 99 prod_child(struct child_sync *sync) prod_child() argument 113 wait_parent(struct child_sync *sync) wait_parent() argument 127 prod_parent(struct child_sync *sync) prod_parent() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/ |
H A D | child.h | 3 * Helper functions to sync execution between parent and child processes. 29 #define CHILD_FAIL_IF(x, sync) \ 34 (sync)->child_gave_up = true; \ 35 prod_parent(sync); \ 40 #define PARENT_FAIL_IF(x, sync) \ 45 (sync)->parent_gave_up = true; \ 46 prod_child(sync); \ 51 #define PARENT_SKIP_IF_UNSUPPORTED(x, sync, msg) \ 54 (sync)->parent_gave_up = true; \ 55 prod_child(sync); \ 60 init_child_sync(struct child_sync *sync) init_child_sync() argument 79 destroy_child_sync(struct child_sync *sync) destroy_child_sync() argument 85 wait_child(struct child_sync *sync) wait_child() argument 99 prod_child(struct child_sync *sync) prod_child() argument 113 wait_parent(struct child_sync *sync) wait_parent() argument 127 prod_parent(struct child_sync *sync) prod_parent() argument [all...] |
/kernel/linux/linux-6.6/io_uring/ |
H A D | sync.c | 15 #include "sync.h" 27 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); in io_sfr_prep() local 32 sync->off = READ_ONCE(sqe->off); in io_sfr_prep() 33 sync->len = READ_ONCE(sqe->len); in io_sfr_prep() 34 sync->flags = READ_ONCE(sqe->sync_range_flags); in io_sfr_prep() 42 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); in io_sync_file_range() local 48 ret = sync_file_range(req->file, sync->off, sync->len, sync->flags); in io_sync_file_range() 55 struct io_sync *sync in io_fsync_prep() local 72 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); io_fsync() local 87 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); io_fallocate_prep() local 101 struct io_sync *sync = io_kiocb_to_cmd(req, struct io_sync); io_fallocate() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powermac/ |
H A D | cache.S | 45 sync 52 sync 58 sync 60 sync 81 sync 88 sync 91 sync 96 sync 106 3: sync 110 3: sync [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/powermac/ |
H A D | cache.S | 45 sync 52 sync 58 sync 60 sync 81 sync 88 sync 91 sync 96 sync 106 3: sync 110 3: sync [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | l2cr_6xx.S | 100 sync 107 sync 118 sync 120 sync 156 sync 158 sync 182 sync 196 sync 198 sync 202 21: sync [all...] |
H A D | cpu_setup_ppc970.S | 28 sync 31 sync 34 sync 37 sync 50 sync 104 sync 111 sync 155 sync 158 sync 162 sync [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | l2cr_6xx.S | 100 sync 107 sync 118 sync 120 sync 156 sync 158 sync 182 sync 196 sync 198 sync 202 21: sync [all...] |
H A D | cpu_setup_ppc970.S | 28 sync 31 sync 34 sync 37 sync 50 sync 104 sync 111 sync 155 sync 158 sync 162 sync [all...] |
H A D | cpu_setup_6xx.S | 102 1: sync 104 sync 106 sync 118 sync 120 sync /* on 604e/604r */ 122 sync 132 sync 173 sync 175 sync 202 sync [all...] |
/kernel/linux/linux-5.10/drivers/clk/tegra/ |
H A D | clk-audio-sync.c | 15 struct tegra_clk_sync_source *sync = to_clk_sync_source(hw); in clk_sync_source_recalc_rate() local 17 return sync->rate; in clk_sync_source_recalc_rate() 23 struct tegra_clk_sync_source *sync = to_clk_sync_source(hw); in clk_sync_source_round_rate() local 25 if (rate > sync->max_rate) in clk_sync_source_round_rate() 34 struct tegra_clk_sync_source *sync = to_clk_sync_source(hw); in clk_sync_source_set_rate() local 36 sync->rate = rate; in clk_sync_source_set_rate() 49 struct tegra_clk_sync_source *sync; in tegra_clk_register_sync_source() local 53 sync = kzalloc(sizeof(*sync), GFP_KERNEL); in tegra_clk_register_sync_source() 54 if (!sync) { in tegra_clk_register_sync_source() [all...] |
/kernel/linux/linux-6.6/drivers/clk/tegra/ |
H A D | clk-audio-sync.c | 15 struct tegra_clk_sync_source *sync = to_clk_sync_source(hw); in clk_sync_source_recalc_rate() local 17 return sync->rate; in clk_sync_source_recalc_rate() 23 struct tegra_clk_sync_source *sync = to_clk_sync_source(hw); in clk_sync_source_round_rate() local 25 if (rate > sync->max_rate) in clk_sync_source_round_rate() 34 struct tegra_clk_sync_source *sync = to_clk_sync_source(hw); in clk_sync_source_set_rate() local 36 sync->rate = rate; in clk_sync_source_set_rate() 49 struct tegra_clk_sync_source *sync; in tegra_clk_register_sync_source() local 53 sync = kzalloc(sizeof(*sync), GFP_KERNEL); in tegra_clk_register_sync_source() 54 if (!sync) { in tegra_clk_register_sync_source() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_sync.c | 43 * amdgpu_sync_create - zero init sync object 45 * @sync: sync object to initialize 47 * Just clear the sync object for now. 49 void amdgpu_sync_create(struct amdgpu_sync *sync) in amdgpu_sync_create() argument 51 hash_init(sync->fences); in amdgpu_sync_create() 52 sync->last_vm_update = NULL; in amdgpu_sync_create() 125 * @sync: sync object to add the fence to 131 static bool amdgpu_sync_add_later(struct amdgpu_sync *sync, struc argument 153 amdgpu_sync_fence(struct amdgpu_sync *sync, struct dma_fence *f) amdgpu_sync_fence() argument 181 amdgpu_sync_vm_fence(struct amdgpu_sync *sync, struct dma_fence *fence) amdgpu_sync_vm_fence() argument 200 amdgpu_sync_resv(struct amdgpu_device *adev, struct amdgpu_sync *sync, struct dma_resv *resv, enum amdgpu_sync_mode mode, void *owner) amdgpu_sync_resv() argument 287 amdgpu_sync_peek_fence(struct amdgpu_sync *sync, struct amdgpu_ring *ring) amdgpu_sync_peek_fence() argument 329 amdgpu_sync_get_fence(struct amdgpu_sync *sync) amdgpu_sync_get_fence() argument 385 amdgpu_sync_wait(struct amdgpu_sync *sync, bool intr) amdgpu_sync_wait() argument 411 amdgpu_sync_free(struct amdgpu_sync *sync) amdgpu_sync_free() argument [all...] |
H A D | amdgpu_sync.h | 42 * Container for fences used to sync command submissions. 49 void amdgpu_sync_create(struct amdgpu_sync *sync); 50 int amdgpu_sync_fence(struct amdgpu_sync *sync, struct dma_fence *f); 51 int amdgpu_sync_vm_fence(struct amdgpu_sync *sync, struct dma_fence *fence); 52 int amdgpu_sync_resv(struct amdgpu_device *adev, struct amdgpu_sync *sync, 55 struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync, 57 struct dma_fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync); 59 int amdgpu_sync_wait(struct amdgpu_sync *sync, bool intr); 60 void amdgpu_sync_free(struct amdgpu_sync *sync);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_sync.c | 35 * radeon_sync_create - zero init sync object 37 * @sync: sync object to initialize 39 * Just clear the sync object for now. 41 void radeon_sync_create(struct radeon_sync *sync) in radeon_sync_create() argument 46 sync->semaphores[i] = NULL; in radeon_sync_create() 49 sync->sync_to[i] = NULL; in radeon_sync_create() 51 sync->last_vm_update = NULL; in radeon_sync_create() 55 * radeon_sync_fence - use the semaphore to sync to a fence 57 * @sync 62 radeon_sync_fence(struct radeon_sync *sync, struct radeon_fence *fence) radeon_sync_fence() argument 88 radeon_sync_resv(struct radeon_device *rdev, struct radeon_sync *sync, struct dma_resv *resv, bool shared) radeon_sync_resv() argument 136 radeon_sync_rings(struct radeon_device *rdev, struct radeon_sync *sync, int ring) radeon_sync_rings() argument 211 radeon_sync_free(struct radeon_device *rdev, struct radeon_sync *sync, struct radeon_fence *fence) radeon_sync_free() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_sync.c | 35 * radeon_sync_create - zero init sync object 37 * @sync: sync object to initialize 39 * Just clear the sync object for now. 41 void radeon_sync_create(struct radeon_sync *sync) in radeon_sync_create() argument 46 sync->semaphores[i] = NULL; in radeon_sync_create() 49 sync->sync_to[i] = NULL; in radeon_sync_create() 51 sync->last_vm_update = NULL; in radeon_sync_create() 55 * radeon_sync_fence - use the semaphore to sync to a fence 57 * @sync 62 radeon_sync_fence(struct radeon_sync *sync, struct radeon_fence *fence) radeon_sync_fence() argument 89 radeon_sync_resv(struct radeon_device *rdev, struct radeon_sync *sync, struct dma_resv *resv, bool shared) radeon_sync_resv() argument 121 radeon_sync_rings(struct radeon_device *rdev, struct radeon_sync *sync, int ring) radeon_sync_rings() argument 196 radeon_sync_free(struct radeon_device *rdev, struct radeon_sync *sync, struct radeon_fence *fence) radeon_sync_free() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/ |
H A D | memslot_perf_test.c | 149 "Unexpected sync ucall, got %lx", in vcpu_worker() 288 struct sync_area *sync; in prepare_vm() local 349 sync = (typeof(sync))vm_gpa2hva(data, MEM_SYNC_GPA, NULL); in prepare_vm() 350 sync->guest_page_size = data->vm->page_size; in prepare_vm() 351 atomic_init(&sync->start_flag, false); in prepare_vm() 352 atomic_init(&sync->exit_flag, false); in prepare_vm() 353 atomic_init(&sync->sync_flag, false); in prepare_vm() 382 static void let_guest_run(struct sync_area *sync) in let_guest_run() argument 384 atomic_store_explicit(&sync in let_guest_run() 389 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_spin_until_start() local 395 make_guest_exit(struct sync_area *sync) make_guest_exit() argument 402 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; _guest_should_exit() local 415 host_perform_sync(struct sync_area *sync) host_perform_sync() argument 428 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_perform_sync() local 446 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_code_test_memslot_move() local 475 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_code_test_memslot_map() local 507 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_code_test_memslot_unmap() local 542 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_code_test_memslot_rw() local 574 test_memslot_move_prepare(struct vm_data *data, struct sync_area *sync, uint64_t *maxslots, bool isactive) test_memslot_move_prepare() argument 605 test_memslot_move_prepare_active(struct vm_data *data, struct sync_area *sync, uint64_t *maxslots) test_memslot_move_prepare_active() argument 612 test_memslot_move_prepare_inactive(struct vm_data *data, struct sync_area *sync, uint64_t *maxslots) test_memslot_move_prepare_inactive() argument 619 test_memslot_move_loop(struct vm_data *data, struct sync_area *sync) test_memslot_move_loop() argument 672 test_memslot_map_loop(struct vm_data *data, struct sync_area *sync) test_memslot_map_loop() argument 710 test_memslot_unmap_loop_common(struct vm_data *data, struct sync_area *sync, uint64_t chunk) test_memslot_unmap_loop_common() argument 737 test_memslot_unmap_loop(struct vm_data *data, struct sync_area *sync) test_memslot_unmap_loop() argument 748 test_memslot_unmap_loop_chunked(struct vm_data *data, struct sync_area *sync) test_memslot_unmap_loop_chunked() argument 757 test_memslot_rw_loop(struct vm_data *data, struct sync_area *sync) test_memslot_rw_loop() argument 800 struct sync_area *sync; test_execute() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/ |
H A D | mpc52xx_sleep.S | 16 sync; isync; 25 sync 30 sync 40 sync; isync; 42 sync; isync; 57 sync; isync; 59 sync; isync; 73 sync 77 sync 82 sync [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/52xx/ |
H A D | mpc52xx_sleep.S | 16 sync; isync; 25 sync 30 sync 40 sync; isync; 42 sync; isync; 57 sync; isync; 59 sync; isync; 73 sync 77 sync 82 sync [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_sync.c | 46 * amdgpu_sync_create - zero init sync object 48 * @sync: sync object to initialize 50 * Just clear the sync object for now. 52 void amdgpu_sync_create(struct amdgpu_sync *sync) in amdgpu_sync_create() argument 54 hash_init(sync->fences); in amdgpu_sync_create() 127 * @sync: sync object to add the fence to 133 static bool amdgpu_sync_add_later(struct amdgpu_sync *sync, struct dma_fence *f) in amdgpu_sync_add_later() argument 137 hash_for_each_possible(sync in amdgpu_sync_add_later() 155 amdgpu_sync_fence(struct amdgpu_sync *sync, struct dma_fence *f) amdgpu_sync_fence() argument 235 amdgpu_sync_resv(struct amdgpu_device *adev, struct amdgpu_sync *sync, struct dma_resv *resv, enum amdgpu_sync_mode mode, void *owner) amdgpu_sync_resv() argument 280 amdgpu_sync_peek_fence(struct amdgpu_sync *sync, struct amdgpu_ring *ring) amdgpu_sync_peek_fence() argument 320 amdgpu_sync_get_fence(struct amdgpu_sync *sync) amdgpu_sync_get_fence() argument 379 amdgpu_sync_push_to_job(struct amdgpu_sync *sync, struct amdgpu_job *job) amdgpu_sync_push_to_job() argument 403 amdgpu_sync_wait(struct amdgpu_sync *sync, bool intr) amdgpu_sync_wait() argument 427 amdgpu_sync_free(struct amdgpu_sync *sync) amdgpu_sync_free() argument [all...] |
H A D | amdgpu_sync.h | 43 * Container for fences used to sync command submissions. 49 void amdgpu_sync_create(struct amdgpu_sync *sync); 50 int amdgpu_sync_fence(struct amdgpu_sync *sync, struct dma_fence *f); 51 int amdgpu_sync_resv(struct amdgpu_device *adev, struct amdgpu_sync *sync, 54 struct dma_fence *amdgpu_sync_peek_fence(struct amdgpu_sync *sync, 56 struct dma_fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync); 58 int amdgpu_sync_push_to_job(struct amdgpu_sync *sync, struct amdgpu_job *job); 59 int amdgpu_sync_wait(struct amdgpu_sync *sync, bool intr); 60 void amdgpu_sync_free(struct amdgpu_sync *sync);
|
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | perf_asm.S | 46 sync ; follow ERS 163 sync 199 sync 211 sync 223 sync 307 sync 331 sync 343 sync 391 sync 403 sync [all...] |
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | perf_asm.S | 46 sync ; follow ERS 163 sync 199 sync 211 sync 223 sync 307 sync 331 sync 343 sync 391 sync 403 sync [all...] |