Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 25 of 100) sorted by relevance

1234

/drivers/gpu/drm/radeon/
A Dradeon_semaphore.c40 if (*semaphore == NULL) { in radeon_semaphore_create()
46 kfree(*semaphore); in radeon_semaphore_create()
47 *semaphore = NULL; in radeon_semaphore_create()
50 (*semaphore)->waiters = 0; in radeon_semaphore_create()
51 (*semaphore)->gpu_addr = radeon_sa_bo_gpu_addr((*semaphore)->sa_bo); in radeon_semaphore_create()
66 --semaphore->waiters; in radeon_semaphore_emit_signal()
83 ++semaphore->waiters; in radeon_semaphore_emit_wait()
96 if (semaphore == NULL || *semaphore == NULL) { in radeon_semaphore_free()
99 if ((*semaphore)->waiters > 0) { in radeon_semaphore_free()
104 kfree(*semaphore); in radeon_semaphore_free()
[all …]
A Dradeon_test.c318 struct radeon_semaphore *semaphore = NULL; in radeon_test_ring_sync() local
321 r = radeon_semaphore_create(rdev, &semaphore); in radeon_test_ring_sync()
332 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync()
344 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync()
363 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore); in radeon_test_ring_sync()
394 radeon_semaphore_free(rdev, &semaphore, NULL); in radeon_test_ring_sync()
412 struct radeon_semaphore *semaphore = NULL; in radeon_test_ring_sync2() local
416 r = radeon_semaphore_create(rdev, &semaphore); in radeon_test_ring_sync2()
427 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); in radeon_test_ring_sync2()
439 radeon_semaphore_emit_wait(rdev, ringB->idx, semaphore); in radeon_test_ring_sync2()
[all …]
A Dradeon_sync.c130 struct radeon_semaphore *semaphore; in radeon_sync_rings() local
149 r = radeon_semaphore_create(rdev, &semaphore); in radeon_sync_rings()
153 sync->semaphores[count++] = semaphore; in radeon_sync_rings()
161 if (!radeon_semaphore_emit_signal(rdev, i, semaphore)) { in radeon_sync_rings()
171 if (!radeon_semaphore_emit_wait(rdev, ring, semaphore)) { in radeon_sync_rings()
A Duvd_v3_1.c41 struct radeon_semaphore *semaphore, in uvd_v3_1_semaphore_emit() argument
44 uint64_t addr = semaphore->gpu_addr; in uvd_v3_1_semaphore_emit()
A Duvd_v2_2.c74 struct radeon_semaphore *semaphore, in uvd_v2_2_semaphore_emit() argument
77 uint64_t addr = semaphore->gpu_addr; in uvd_v2_2_semaphore_emit()
A Dradeon_asic.h80 struct radeon_semaphore *semaphore,
326 struct radeon_semaphore *semaphore,
332 struct radeon_semaphore *semaphore,
792 struct radeon_semaphore *semaphore,
812 struct radeon_semaphore *semaphore,
946 struct radeon_semaphore *semaphore,
956 struct radeon_semaphore *semaphore,
962 struct radeon_semaphore *semaphore,
/drivers/input/serio/
A Dhp_sdc_mlc.c193 if (priv->trans.act.semaphore != &mlc->csem) in hp_sdc_mlc_cts()
203 priv->trans.act.semaphore = &mlc->csem; in hp_sdc_mlc_cts()
217 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_cts()
245 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_out()
286 priv->trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_out()
316 hp_sdc_mlc_priv.trans.act.semaphore = &mlc->osem; in hp_sdc_mlc_init()
A Dhp_sdc.c201 if (curr->act.semaphore) in hp_sdc_take()
202 up(curr->act.semaphore); in hp_sdc_take()
328 if (curr->act.semaphore) in hp_sdc_tasklet()
329 up(curr->act.semaphore); in hp_sdc_tasklet()
566 up(curr->act.semaphore); in hp_sdc_put()
833 struct semaphore s_sync; in hp_sdc_init()
903 t_sync.act.semaphore = &s_sync; in hp_sdc_init()
998 struct semaphore tq_init_sem; in hp_sdc_register()
1039 tq_init.act.semaphore = &tq_init_sem; in hp_sdc_register()
/drivers/acpi/acpica/
A Dexsystem.c31 acpi_status acpi_ex_system_wait_semaphore(acpi_semaphore semaphore, u16 timeout) in acpi_ex_system_wait_semaphore() argument
37 status = acpi_os_wait_semaphore(semaphore, 1, ACPI_DO_NOT_WAIT); in acpi_ex_system_wait_semaphore()
47 status = acpi_os_wait_semaphore(semaphore, 1, timeout); in acpi_ex_system_wait_semaphore()
/drivers/input/misc/
A Dhp_sdc_rtc.c58 static struct semaphore i8042tregs;
68 struct semaphore tsem; in hp_sdc_rtc_do_read_bbrtc()
87 t.act.semaphore = &tsem; in hp_sdc_rtc_do_read_bbrtc()
159 t.act.semaphore = &i8042tregs; in hp_sdc_rtc_read_i8042timer()
/drivers/md/dm-vdo/indexer/
A Dsparse-cache.c145 struct semaphore lock;
147 struct semaphore wait;
178 static inline void __down(struct semaphore *semaphore) in __down() argument
184 while (down_interruptible(semaphore) != 0) { in __down()
/drivers/staging/vc04_services/interface/vchiq_arm/
A Dvchiq_arm.h48 struct semaphore free_fragments_sema;
49 struct semaphore free_fragments_mutex;
/drivers/md/bcache/
A Dbcache.h311 struct semaphore sb_write_mutex;
343 struct semaphore in_flight;
541 struct semaphore sb_write_mutex;
667 struct semaphore moving_in_flight;
684 struct semaphore uuid_write_mutex;
/drivers/acpi/
A Dosl.c1228 struct semaphore *sem = NULL; in acpi_os_create_semaphore()
1230 sem = acpi_os_allocate_zeroed(sizeof(struct semaphore)); in acpi_os_create_semaphore()
1253 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_delete_semaphore()
1273 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_wait_semaphore()
1317 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_signal_semaphore()
/drivers/net/ethernet/huawei/hinic/
A Dhinic_hw_mbox.h92 struct semaphore mbox_send_sem;
93 struct semaphore msg_send_sem;
A Dhinic_hw_io.h47 struct semaphore idx_lock;
A Dhinic_dev.h91 struct semaphore mgmt_lock;
/drivers/gpu/drm/i915/
A Di915_request.c133 i915_sw_fence_fini(&rq->semaphore); in i915_fence_release()
658 i915_sw_fence_signaled(&request->semaphore)) in __i915_request_submit()
810 struct i915_request *rq = container_of(fence, typeof(*rq), semaphore); in semaphore_notify()
879 i915_sw_fence_init(&rq->semaphore, semaphore_notify); in __i915_request_ctor()
968 i915_sw_fence_reinit(&i915_request_get(rq)->semaphore); in __i915_request_create()
1240 wait = &to->semaphore; in emit_semaphore_wait()
1818 i915_sw_fence_commit(&rq->semaphore); in __i915_request_queue_bh()
2165 if (!i915_sw_fence_signaled(&rq->semaphore)) in run_status()
/drivers/net/wireless/st/cw1200/
A Dscan.h22 struct semaphore lock;
/drivers/scsi/qla4xxx/
A Dql4_dbg.c71 (uint8_t) offsetof(struct isp_reg, u1.isp4022.semaphore), in qla4xxx_dump_registers()
72 readw(&ha->reg->u1.isp4022.semaphore)); in qla4xxx_dump_registers()
/drivers/gpu/drm/xe/
A Dxe_guc_submit_types.h39 u32 semaphore; member
/drivers/platform/x86/amd/hsmp/
A Dhsmp.h45 struct semaphore hsmp_sem;
/drivers/gpu/drm/ci/xfails/
A Di915-tgl-skips.txt48 perf_pmu@semaphore-wait-idle
A Di915-tgl-fails.txt19 perf_pmu@semaphore-wait-idle,Timeout
/drivers/infiniband/core/
A Diwpm_util.h71 struct semaphore sem;

Completed in 58 milliseconds

1234