Searched defs:semaphore (Results 1 - 17 of 17) sorted by relevance

/drivers/gpu/drm/radeon/
H A Duvd_v3_1.c31 * uvd_v3_1_semaphore_emit - emit semaphore command
35 * @semaphore: semaphore to emit commands for
38 * Emit a semaphore command (either wait or signal) to the UVD ring.
42 struct radeon_semaphore *semaphore,
45 uint64_t addr = semaphore->gpu_addr;
40 uvd_v3_1_semaphore_emit(struct radeon_device *rdev, struct radeon_ring *ring, struct radeon_semaphore *semaphore, bool emit_wait) argument
H A Dradeon_semaphore.c35 struct radeon_semaphore **semaphore)
40 *semaphore = kmalloc(sizeof(struct radeon_semaphore), GFP_KERNEL);
41 if (*semaphore == NULL) {
44 r = radeon_sa_bo_new(rdev, &rdev->ring_tmp_bo, &(*semaphore)->sa_bo,
47 kfree(*semaphore);
48 *semaphore = NULL;
51 (*semaphore)->waiters = 0;
52 (*semaphore)->gpu_addr = radeon_sa_bo_gpu_addr((*semaphore)->sa_bo);
54 cpu_addr = radeon_sa_bo_cpu_addr((*semaphore)
34 radeon_semaphore_create(struct radeon_device *rdev, struct radeon_semaphore **semaphore) argument
64 radeon_semaphore_emit_signal(struct radeon_device *rdev, int ridx, struct radeon_semaphore *semaphore) argument
81 radeon_semaphore_emit_wait(struct radeon_device *rdev, int ridx, struct radeon_semaphore *semaphore) argument
106 radeon_semaphore_sync_fence(struct radeon_semaphore *semaphore, struct radeon_fence *fence) argument
175 radeon_semaphore_sync_rings(struct radeon_device *rdev, struct radeon_semaphore *semaphore, int ring) argument
238 radeon_semaphore_free(struct radeon_device *rdev, struct radeon_semaphore **semaphore, struct radeon_fence *fence) argument
[all...]
H A Dradeon_test.c312 struct radeon_semaphore *semaphore = NULL; local
315 r = radeon_semaphore_create(rdev, &semaphore);
317 DRM_ERROR("Failed to create semaphore\n");
326 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore);
338 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore);
348 DRM_ERROR("Fence 1 signaled without waiting for semaphore.\n");
357 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore);
369 DRM_ERROR("Fence 2 signaled without waiting for semaphore.\n");
378 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore);
388 radeon_semaphore_free(rdev, &semaphore, NUL
406 struct radeon_semaphore *semaphore = NULL; local
[all...]
H A Duvd_v1_0.c455 * uvd_v1_0_semaphore_emit - emit semaphore command
459 * @semaphore: semaphore to emit commands for
462 * Emit a semaphore command (either wait or signal) to the UVD ring.
466 struct radeon_semaphore *semaphore,
469 uint64_t addr = semaphore->gpu_addr;
464 uvd_v1_0_semaphore_emit(struct radeon_device *rdev, struct radeon_ring *ring, struct radeon_semaphore *semaphore, bool emit_wait) argument
H A Dr600_dma.c303 * r600_dma_semaphore_ring_emit - emit a semaphore on the dma ring
307 * @semaphore: radeon semaphore object
308 * @emit_wait: wait or signal semaphore
310 * Add a DMA semaphore packet to the ring wait on or signal
315 struct radeon_semaphore *semaphore,
318 u64 addr = semaphore->gpu_addr;
313 r600_dma_semaphore_ring_emit(struct radeon_device *rdev, struct radeon_ring *ring, struct radeon_semaphore *semaphore, bool emit_wait) argument
H A Dradeon_vce.c637 * radeon_vce_semaphore_emit - emit a semaphore command
641 * @semaphore: address of semaphore
647 struct radeon_semaphore *semaphore,
650 uint64_t addr = semaphore->gpu_addr;
645 radeon_vce_semaphore_emit(struct radeon_device *rdev, struct radeon_ring *ring, struct radeon_semaphore *semaphore, bool emit_wait) argument
H A Dcik_sdma.c218 * cik_sdma_semaphore_ring_emit - emit a semaphore on the dma ring
222 * @semaphore: radeon semaphore object
223 * @emit_wait: wait or signal semaphore
225 * Add a DMA semaphore packet to the ring wait on or signal
230 struct radeon_semaphore *semaphore,
233 u64 addr = semaphore->gpu_addr;
228 cik_sdma_semaphore_ring_emit(struct radeon_device *rdev, struct radeon_ring *ring, struct radeon_semaphore *semaphore, bool emit_wait) argument
H A Dr600.c2839 * r600_semaphore_ring_emit - emit a semaphore on the CP ring
2843 * @semaphore: radeon semaphore object
2846 * Emits a semaphore signal/wait packet to the CP ring and prevents the PFP
2847 * from running ahead of semaphore waits.
2851 struct radeon_semaphore *semaphore,
2854 uint64_t addr = semaphore->gpu_addr;
2866 /* Prevent the PFP from running ahead of the semaphore wait */
2849 r600_semaphore_ring_emit(struct radeon_device *rdev, struct radeon_ring *ring, struct radeon_semaphore *semaphore, bool emit_wait) argument
H A Dr100.c864 struct radeon_semaphore *semaphore,
862 r100_semaphore_ring_emit(struct radeon_device *rdev, struct radeon_ring *ring, struct radeon_semaphore *semaphore, bool emit_wait) argument
H A Dcik.c3924 * cik_semaphore_ring_emit - emit a semaphore on the CP ring
3928 * @semaphore: radeon semaphore object
3931 * Emits a semaphore signal/wait packet to the CP ring and prevents the PFP
3932 * from running ahead of semaphore waits.
3936 struct radeon_semaphore *semaphore,
3939 uint64_t addr = semaphore->gpu_addr;
3947 /* Prevent the PFP from running ahead of the semaphore wait */
3934 cik_semaphore_ring_emit(struct radeon_device *rdev, struct radeon_ring *ring, struct radeon_semaphore *semaphore, bool emit_wait) argument
H A Dradeon.h507 * like the indirect buffer or semaphore, which both have their
586 struct radeon_semaphore **semaphore);
588 struct radeon_semaphore *semaphore);
590 struct radeon_semaphore *semaphore);
591 void radeon_semaphore_sync_fence(struct radeon_semaphore *semaphore,
594 struct radeon_semaphore *semaphore,
598 struct radeon_semaphore *semaphore,
601 struct radeon_semaphore **semaphore,
817 struct radeon_semaphore *semaphore; member in struct:radeon_ib
1710 struct radeon_semaphore *semaphore,
[all...]
/drivers/acpi/acpica/
H A Dexsystem.c55 * PARAMETERS: semaphore - Semaphore to wait on
60 * DESCRIPTION: Implements a semaphore wait with a check to see if the
61 * semaphore is available immediately. If it is not, the
65 acpi_status acpi_ex_system_wait_semaphore(acpi_semaphore semaphore, u16 timeout) argument
71 status = acpi_os_wait_semaphore(semaphore, 1, ACPI_DO_NOT_WAIT);
82 status = acpi_os_wait_semaphore(semaphore, 1, timeout);
299 * We are going to simply delete the existing semaphore and
/drivers/gpu/drm/i915/
H A Dintel_ringbuffer.h68 ring->semaphore.signal_ggtt[RCS] = GEN8_SIGNAL_OFFSET(ring, RCS); \
69 ring->semaphore.signal_ggtt[VCS] = GEN8_SIGNAL_OFFSET(ring, VCS); \
70 ring->semaphore.signal_ggtt[BCS] = GEN8_SIGNAL_OFFSET(ring, BCS); \
71 ring->semaphore.signal_ggtt[VECS] = GEN8_SIGNAL_OFFSET(ring, VECS); \
72 ring->semaphore.signal_ggtt[VCS2] = GEN8_SIGNAL_OFFSET(ring, VCS2); \
73 ring->semaphore.signal_ggtt[ring->id] = MI_SEMAPHORE_SYNC_INVALID; \
233 } semaphore; member in struct:intel_engine_cs
/drivers/staging/comedi/drivers/
H A Dquatech_daqp_cs.c52 #include <linux/semaphore.h>
65 enum { semaphore, buffer } interrupt_mode; enumerator in enum:daqp_private::__anon6306
178 devpriv->interrupt_mode = semaphore;
186 * 'semaphore', just signal the devpriv->eos completion and return
204 case semaphore:
326 devpriv->interrupt_mode = semaphore;
/drivers/scsi/
H A Dqla1280.h152 uint16_t semaphore; /* Semaphore */ member in struct:device_reg
/drivers/scsi/qla4xxx/
H A Dql4_fw.h119 __le32 semaphore; member in struct:isp_reg::__anon6121::__anon6123
/drivers/scsi/qla2xxx/
H A Dqla_def.h449 uint16_t semaphore; /* Semaphore */ member in struct:device_reg_2xxx

Completed in 360 milliseconds