/linux-master/drivers/gpu/drm/radeon/ |
H A D | radeon_semaphore.c | 35 struct radeon_semaphore **semaphore) 39 *semaphore = kmalloc(sizeof(struct radeon_semaphore), GFP_KERNEL); 40 if (*semaphore == NULL) { 44 &(*semaphore)->sa_bo, 8, 8); 46 kfree(*semaphore); 47 *semaphore = NULL; 50 (*semaphore)->waiters = 0; 51 (*semaphore)->gpu_addr = radeon_sa_bo_gpu_addr((*semaphore)->sa_bo); 53 *((uint64_t *)radeon_sa_bo_cpu_addr((*semaphore) 34 radeon_semaphore_create(struct radeon_device *rdev, struct radeon_semaphore **semaphore) argument 58 radeon_semaphore_emit_signal(struct radeon_device *rdev, int ridx, struct radeon_semaphore *semaphore) argument 75 radeon_semaphore_emit_wait(struct radeon_device *rdev, int ridx, struct radeon_semaphore *semaphore) argument 92 radeon_semaphore_free(struct radeon_device *rdev, struct radeon_semaphore **semaphore, struct radeon_fence *fence) argument [all...] |
H A D | uvd_v3_1.c | 30 * uvd_v3_1_semaphore_emit - emit semaphore command 34 * @semaphore: semaphore to emit commands for 37 * Emit a semaphore command (either wait or signal) to the UVD ring. 41 struct radeon_semaphore *semaphore, 44 uint64_t addr = semaphore->gpu_addr; 39 uvd_v3_1_semaphore_emit(struct radeon_device *rdev, struct radeon_ring *ring, struct radeon_semaphore *semaphore, bool emit_wait) argument
|
H A D | radeon_sync.c | 55 * radeon_sync_fence - use the semaphore to sync to a fence 60 * Sync to the fence using the semaphore objects 87 * Sync to the fence using the semaphore objects 130 struct radeon_semaphore *semaphore; local 149 r = radeon_semaphore_create(rdev, &semaphore); 153 sync->semaphores[count++] = semaphore; 160 /* emit the signal semaphore */ 161 if (!radeon_semaphore_emit_signal(rdev, i, semaphore)) { 171 if (!radeon_semaphore_emit_wait(rdev, ring, semaphore)) {
|
H A D | radeon_test.c | 318 struct radeon_semaphore *semaphore = NULL; local 321 r = radeon_semaphore_create(rdev, &semaphore); 323 DRM_ERROR("Failed to create semaphore\n"); 332 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); 344 radeon_semaphore_emit_wait(rdev, ringA->idx, semaphore); 354 DRM_ERROR("Fence 1 signaled without waiting for semaphore.\n"); 363 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore); 375 DRM_ERROR("Fence 2 signaled without waiting for semaphore.\n"); 384 radeon_semaphore_emit_signal(rdev, ringB->idx, semaphore); 394 radeon_semaphore_free(rdev, &semaphore, NUL 412 struct radeon_semaphore *semaphore = NULL; local [all...] |
/linux-master/include/linux/ |
H A D | semaphore.h | 6 * Please see kernel/locking/semaphore.c for documentation of these functions 15 struct semaphore { struct 35 struct semaphore _name = __SEMAPHORE_INITIALIZER(_name, _n) 37 static inline void sema_init(struct semaphore *sem, int val) 40 *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); 41 lockdep_init_map(&sem->lock.dep_map, "semaphore->lock", &__key, 0); 44 extern void down(struct semaphore *sem); 45 extern int __must_check down_interruptible(struct semaphore *sem); 46 extern int __must_check down_killable(struct semaphore *sem); 47 extern int __must_check down_trylock(struct semaphore *se [all...] |
H A D | hil_mlc.h | 37 #include <linux/semaphore.h> 136 struct semaphore csem; /* Raised when loop idle */ 139 struct semaphore osem; /* Raised when outpacket dispatched */ 143 struct semaphore isem; /* Raised when a packet arrives */
|
/linux-master/kernel/locking/ |
H A D | semaphore.c | 7 * A counting semaphore may be acquired 'n' times before sleeping. 15 * The spinlock controls access to the other members of the semaphore. 18 * parts of the kernel expect to be able to use down() on a semaphore in 24 * semaphore. If it's zero, there may be tasks waiting on the wait_list. 32 #include <linux/semaphore.h> 37 static noinline void __down(struct semaphore *sem); 38 static noinline int __down_interruptible(struct semaphore *sem); 39 static noinline int __down_killable(struct semaphore *sem); 40 static noinline int __down_timeout(struct semaphore *sem, long timeout); 41 static noinline void __up(struct semaphore *se [all...] |
H A D | Makefile | 6 obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
|
/linux-master/include/drm/ |
H A D | task_barrier.h | 23 #include <linux/semaphore.h> 42 struct semaphore enter_turnstile; 43 struct semaphore exit_turnstile; 46 static inline void task_barrier_signal_turnstile(struct semaphore *turnstile,
|
/linux-master/drivers/net/wireless/st/cw1200/ |
H A D | scan.h | 12 #include <linux/semaphore.h> 22 struct semaphore lock;
|
/linux-master/include/linux/mux/ |
H A D | driver.h | 16 #include <linux/semaphore.h> 45 struct semaphore lock; /* protects the state of the mux */
|
/linux-master/drivers/acpi/acpica/ |
H A D | exsystem.c | 21 * PARAMETERS: semaphore - Semaphore to wait on 26 * DESCRIPTION: Implements a semaphore wait with a check to see if the 27 * semaphore is available immediately. If it is not, the 31 acpi_status acpi_ex_system_wait_semaphore(acpi_semaphore semaphore, u16 timeout) argument 37 status = acpi_os_wait_semaphore(semaphore, 1, ACPI_DO_NOT_WAIT); 47 status = acpi_os_wait_semaphore(semaphore, 1, timeout); 268 * We are going to simply delete the existing semaphore and
|
/linux-master/arch/openrisc/kernel/ |
H A D | or32_ksyms.c | 20 #include <linux/semaphore.h>
|
/linux-master/drivers/staging/rtl8712/ |
H A D | rtl871x_event.h | 20 #include <linux/semaphore.h>
|
H A D | osdep_service.h | 23 #include <linux/semaphore.h>
|
/linux-master/drivers/tty/ |
H A D | tty_mutex.c | 5 #include <linux/semaphore.h>
|
/linux-master/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_wq.h | 11 #include <linux/semaphore.h> 65 struct semaphore alloc_blocks_lock;
|
H A D | hinic_hw_io.h | 12 #include <linux/semaphore.h> 47 struct semaphore idx_lock;
|
H A D | hinic_dev.h | 12 #include <linux/semaphore.h> 91 struct semaphore mgmt_lock;
|
/linux-master/drivers/input/serio/ |
H A D | hp_sdc_mlc.c | 43 #include <linux/semaphore.h> 150 /* Try to down the semaphore */ 193 if (priv->trans.act.semaphore != &mlc->csem) 203 priv->trans.act.semaphore = &mlc->csem; 217 priv->trans.act.semaphore = &mlc->osem; 228 /* Try to down the semaphore -- it should be up. */ 245 priv->trans.act.semaphore = &mlc->osem; 286 priv->trans.act.semaphore = &mlc->osem; 316 hp_sdc_mlc_priv.trans.act.semaphore = &mlc->osem;
|
/linux-master/drivers/input/misc/ |
H A D | hp_sdc_rtc.c | 48 #include <linux/semaphore.h> 58 static struct semaphore i8042tregs; 68 struct semaphore tsem; 87 t.act.semaphore = &tsem; 159 t.act.semaphore = &i8042tregs;
|
/linux-master/arch/microblaze/kernel/ |
H A D | sys_microblaze.c | 30 #include <linux/semaphore.h>
|
/linux-master/include/video/ |
H A D | udlfb.h | 29 struct semaphore limit_sem;
|
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | vdec_msg_queue.h | 11 #include <linux/semaphore.h>
|
/linux-master/tools/testing/selftests/powerpc/ptrace/ |
H A D | child.h | 9 #include <semaphore.h> 16 /* The parent waits on this semaphore. */ 22 /* The child waits on this semaphore. */
|