Home
last modified time | relevance | path

Searched refs:sync (Results 1 – 25 of 793) sorted by relevance

12345678910>>...32

/linux/drivers/gpu/drm/i915/selftests/
H A Di915_syncmap.c101 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()
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()
143 return check_syncmap_free(&sync); in igt_syncmap_init()
[all …]
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dchild.h29 #define CHILD_FAIL_IF(x, sync) \ argument
34 (sync)->child_gave_up = true; \
35 prod_parent(sync); \
40 #define PARENT_FAIL_IF(x, sync) \ argument
45 (sync)->parent_gave_up = true; \
46 prod_child(sync); \
51 #define PARENT_SKIP_IF_UNSUPPORTED(x, sync, msg) \ argument
54 (sync)->parent_gave_up = true; \
55 prod_child(sync); \
60 int init_child_sync(struct child_sync *sync) in init_child_sync() argument
[all …]
/linux/arch/powerpc/platforms/powermac/
H A Dcache.S45 sync
52 sync
58 sync
60 sync
81 sync
88 sync
91 sync
96 sync
106 3: sync
110 3: sync
[all …]
/linux/io_uring/
H A Dsync.c15 #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...]
/linux/arch/powerpc/kernel/
H A Dl2cr_6xx.S100 sync
107 sync
118 sync
120 sync
156 sync
158 sync
182 sync
196 sync
198 sync
202 21: sync
[all …]
H A Dcpu_setup_ppc970.S28 sync
31 sync
34 sync
37 sync
50 sync
104 sync
111 sync
155 sync
158 sync
162 sync
[all …]
H A Dcpu_setup_6xx.S102 1: sync
104 sync
106 sync
118 sync
120 sync /* on 604e/604r */
122 sync
132 sync
173 sync
175 sync
202 sync
[all …]
/linux/drivers/clk/tegra/
H A Dclk-audio-sync.c15 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_determine_rate() local
25 if (req->rate > sync->max_rate) in clk_sync_source_determine_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()
59 sync->max_rate = max_rate; in tegra_clk_register_sync_source()
[all …]
/linux/arch/powerpc/platforms/52xx/
H A Dmpc52xx_sleep.S16 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 …]
H A Dlite5200_sleep.S32 sync; \
99 sync; isync;
101 sync; isync;
116 sync
120 sync
125 sync
138 sync
149 sync
159 sync
162 sync
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dradeon_sync.c41 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()
62 void radeon_sync_fence(struct radeon_sync *sync, in radeon_sync_fence() argument
70 other = sync->sync_to[fence->ring]; in radeon_sync_fence()
71 sync->sync_to[fence->ring] = radeon_fence_later(fence, other); in radeon_sync_fence()
74 other = sync->last_vm_update; in radeon_sync_fence()
75 sync->last_vm_update = radeon_fence_later(fence, other); in radeon_sync_fence()
90 struct radeon_sync *sync, in radeon_sync_resv() argument
[all …]
H A Drv770_dma.c48 struct radeon_sync sync; in rv770_copy_dma() local
55 radeon_sync_create(&sync); in rv770_copy_dma()
62 radeon_sync_free(rdev, &sync, NULL); in rv770_copy_dma()
66 radeon_sync_resv(rdev, &sync, resv, false); in rv770_copy_dma()
67 radeon_sync_rings(rdev, &sync, ring->idx); in rv770_copy_dma()
86 radeon_sync_free(rdev, &sync, NULL); in rv770_copy_dma()
91 radeon_sync_free(rdev, &sync, fence); in rv770_copy_dma()
H A Devergreen_dma.c113 struct radeon_sync sync; in evergreen_copy_dma() local
120 radeon_sync_create(&sync); in evergreen_copy_dma()
127 radeon_sync_free(rdev, &sync, NULL); in evergreen_copy_dma()
131 radeon_sync_resv(rdev, &sync, resv, false); in evergreen_copy_dma()
132 radeon_sync_rings(rdev, &sync, ring->idx); in evergreen_copy_dma()
151 radeon_sync_free(rdev, &sync, NULL); in evergreen_copy_dma()
156 radeon_sync_free(rdev, &sync, fence); in evergreen_copy_dma()
/linux/tools/testing/selftests/kvm/
H A Dmemslot_perf_test.c153 "Unexpected sync ucall, got %lx", in vcpu_worker()
292 struct sync_area *sync; in prepare_vm()
353 sync = (typeof(sync))vm_gpa2hva(data, MEM_SYNC_GPA, NULL); in prepare_vm()
354 sync->guest_page_size = data->vm->page_size; in prepare_vm()
355 atomic_init(&sync->start_flag, false); in prepare_vm()
356 atomic_init(&sync->exit_flag, false); in prepare_vm()
357 atomic_init(&sync->sync_flag, false); in prepare_vm()
386 static void let_guest_run(struct sync_area *sync) in let_guest_run()
388 atomic_store_explicit(&sync in let_guest_run()
291 struct sync_area *sync; prepare_vm() local
385 let_guest_run(struct sync_area * sync) let_guest_run() argument
392 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_spin_until_start() local
398 make_guest_exit(struct sync_area * sync) make_guest_exit() argument
405 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; _guest_should_exit() local
418 host_perform_sync(struct sync_area * sync) host_perform_sync() argument
431 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_perform_sync() local
449 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_code_test_memslot_move() local
478 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_code_test_memslot_map() local
510 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_code_test_memslot_unmap() local
545 struct sync_area *sync = (typeof(sync))MEM_SYNC_GPA; guest_code_test_memslot_rw() local
578 test_memslot_move_prepare(struct vm_data * data,struct sync_area * sync,uint64_t * maxslots,bool isactive) test_memslot_move_prepare() argument
614 test_memslot_move_prepare_active(struct vm_data * data,struct sync_area * sync,uint64_t * maxslots) test_memslot_move_prepare_active() argument
621 test_memslot_move_prepare_inactive(struct vm_data * data,struct sync_area * sync,uint64_t * maxslots) test_memslot_move_prepare_inactive() argument
627 test_memslot_move_loop(struct vm_data * data,struct sync_area * sync) test_memslot_move_loop() argument
680 test_memslot_map_loop(struct vm_data * data,struct sync_area * sync) test_memslot_map_loop() argument
719 test_memslot_unmap_loop_common(struct vm_data * data,struct sync_area * sync,uint64_t chunk) test_memslot_unmap_loop_common() argument
746 test_memslot_unmap_loop(struct vm_data * data,struct sync_area * sync) test_memslot_unmap_loop() argument
757 test_memslot_unmap_loop_chunked(struct vm_data * data,struct sync_area * sync) test_memslot_unmap_loop_chunked() argument
765 test_memslot_rw_loop(struct vm_data * data,struct sync_area * sync) test_memslot_rw_loop() argument
808 struct sync_area *sync; test_execute() local
[all...]
/linux/arch/parisc/kernel/
H A Dperf_asm.S46 sync ; follow ERS
163 sync
199 sync
211 sync
223 sync
307 sync
331 sync
343 sync
391 sync
403 sync
[all …]
/linux/arch/powerpc/platforms/44x/
H A Dmisc_44x.S18 sync
20 sync
23 sync
25 sync
32 sync
34 sync
37 sync
39 sync
/linux/drivers/gpu/drm/xe/
H A Dxe_sync.h23 struct xe_sync_entry *sync,
28 int xe_sync_entry_add_deps(struct xe_sync_entry *sync,
30 void xe_sync_entry_signal(struct xe_sync_entry *sync,
32 void xe_sync_entry_cleanup(struct xe_sync_entry *sync);
34 xe_sync_in_fence_get(struct xe_sync_entry *sync, int num_sync,
37 static inline bool xe_sync_is_ufence(struct xe_sync_entry *sync) in xe_sync_is_ufence() argument
39 return !!sync->ufence; in xe_sync_is_ufence()
43 struct xe_user_fence *xe_sync_ufence_get(struct xe_sync_entry *sync);
/linux/drivers/gpu/drm/sti/
H A Dsti_vtg.c190 static void vtg_set_hsync_vsync_pos(struct sti_vtg_sync_params *sync, in vtg_set_hsync_vsync_pos() argument
217 sync->hsync = (stop << 16) | start; in vtg_set_hsync_vsync_pos()
235 sync->vsync_line_top = (fallsync_top << 16) | risesync_top; in vtg_set_hsync_vsync_pos()
236 sync->vsync_off_top = (fallsync_offs_top << 16) | risesync_offs_top; in vtg_set_hsync_vsync_pos()
239 sync->vsync_line_bot = sync->vsync_line_top; in vtg_set_hsync_vsync_pos()
240 sync->vsync_off_bot = sync->vsync_off_top; in vtg_set_hsync_vsync_pos()
245 struct sti_vtg_sync_params *sync, in vtg_set_mode() argument
260 vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_HDMI - 1], HDMI_DELAY, mode); in vtg_set_mode()
263 vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_HDDCS - 1], 0, mode); in vtg_set_mode()
266 vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_HDF - 1], AWG_DELAY_HD, mode); in vtg_set_mode()
[all …]
/linux/arch/mips/alchemy/common/
H A Dsleeper.S74 sync
76 sync
103 sync
105 sync
107 sync
129 sync
131 sync
146 sync
175 sync
181 sync
[all …]
/linux/net/caif/
H A Dcfserl.c25 spinlock_t sync; member
49 spin_lock_init(&this->sync); in cfserl_create()
67 spin_lock(&layr->sync); in cfserl_receive()
74 spin_unlock(&layr->sync); in cfserl_receive()
94 spin_unlock(&layr->sync); in cfserl_receive()
112 spin_unlock(&layr->sync); in cfserl_receive()
131 spin_unlock(&layr->sync); in cfserl_receive()
142 spin_unlock(&layr->sync); in cfserl_receive()
156 spin_unlock(&layr->sync); in cfserl_receive()
158 spin_lock(&layr->sync); in cfserl_receive()
[all …]
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_sched.c38 job->sync = args->sync; in nouveau_job_init()
45 if (job->sync) in nouveau_job_init()
58 if (job->sync) { in nouveau_job_init()
142 struct drm_nouveau_sync *sync, in sync_find_fence() argument
145 u32 stype = sync->flags & DRM_NOUVEAU_SYNC_TYPE_MASK; in sync_find_fence()
154 point = sync->timeline_value; in sync_find_fence()
157 sync->handle, point, in sync_find_fence()
172 struct drm_nouveau_sync *sync = &job->in_sync.data[i]; in nouveau_job_add_deps() local
174 ret = sync_find_fence(job, sync, &in_fence); in nouveau_job_add_deps()
178 sync->handle); in nouveau_job_add_deps()
[all …]
/linux/tools/testing/selftests/net/bench/page_pool/
H A Dtime_bench.c257 struct time_bench_sync *sync = cpu->sync; in invoke_test_on_cpu_func() local
266 atomic_inc(&sync->nr_tests_running); in invoke_test_on_cpu_func()
267 wait_for_completion(&sync->start_event); in invoke_test_on_cpu_func()
281 atomic_dec(&sync->nr_tests_running); in invoke_test_on_cpu_func()
331 struct time_bench_sync *sync, in time_bench_run_concurrent() argument
342 atomic_set(&sync->nr_tests_running, 0); in time_bench_run_concurrent()
343 init_completion(&sync->start_event); in time_bench_run_concurrent()
350 c->sync = sync; /* Send sync variable along */ in time_bench_run_concurrent()
371 while (atomic_read(&sync->nr_tests_running) < running) { in time_bench_run_concurrent()
376 complete_all(&sync->start_event); in time_bench_run_concurrent()
[all …]
/linux/include/trace/events/
H A Dcompaction.h103 unsigned long zone_end, bool sync),
105 TP_ARGS(cc, zone_start, zone_end, sync),
112 __field(bool, sync)
120 __entry->sync = sync;
128 __entry->sync ? "sync" : "async")
133 unsigned long zone_end, bool sync,
136 TP_ARGS(cc, zone_start, zone_end, sync, status),
143 __field(bool, sync)
152 __entry->sync = sync;
161 __entry->sync ? "sync" : "async",
/linux/rust/kernel/sync/lock/
H A Dglobal.rs9 sync::lock::{Backend, Guard, Lock},
10 sync::{LockClassKey, LockedBy},
272 impl $crate::sync::lock::GlobalLockBackend for $name {
277 fn get_lock_class() -> Pin<&'static $crate::sync::LockClassKey> {
283 $pub static $name: $crate::sync::lock::GlobalLock<$name> = {
290 unsafe { $crate::sync::lock::GlobalLock::new(init) }
300 $crate::sync::lock::mutex::MutexBackend
303 $crate::sync::lock::spinlock::SpinLockBackend
/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Ddac507d.c33 u32 sync = 0; in dac507d_ctrl() local
37 sync |= NVVAL(NV507D, DAC_SET_POLARITY, HSYNC, asyh->or.nhsync); in dac507d_ctrl()
38 sync |= NVVAL(NV507D, DAC_SET_POLARITY, VSYNC, asyh->or.nvsync); in dac507d_ctrl()
45 DAC_SET_POLARITY(or), sync); in dac507d_ctrl()

12345678910>>...32