/drivers/tty/ |
H A D | tty_ldsem.c | 77 static inline long ldsem_atomic_update(long delta, struct ld_semaphore *sem) argument 79 return atomic_long_add_return(delta, (atomic_long_t *)&sem->count); 83 * ldsem_cmpxchg() updates @*old with the last-known sem->count value. 85 * Returns 0 if count was not changed; @*old will have most recent sem->count 87 static inline int ldsem_cmpxchg(long *old, long new, struct ld_semaphore *sem) argument 89 long tmp = atomic_long_cmpxchg(&sem->count, *old, new); 102 void __init_ldsem(struct ld_semaphore *sem, const char *name, argument 109 debug_check_no_locks_freed((void *)sem, sizeof(*sem)); 110 lockdep_init_map(&sem 119 __ldsem_wake_readers(struct ld_semaphore *sem) argument 149 writer_trylock(struct ld_semaphore *sem) argument 163 __ldsem_wake_writer(struct ld_semaphore *sem) argument 179 __ldsem_wake(struct ld_semaphore *sem) argument 187 ldsem_wake(struct ld_semaphore *sem) argument 200 down_read_failed(struct ld_semaphore *sem, long count, long timeout) argument 268 down_write_failed(struct ld_semaphore *sem, long count, long timeout) argument 321 __ldsem_down_read_nested(struct ld_semaphore *sem, int subclass, long timeout) argument 340 __ldsem_down_write_nested(struct ld_semaphore *sem, int subclass, long timeout) argument 363 ldsem_down_read(struct ld_semaphore *sem, long timeout) argument 372 ldsem_down_read_trylock(struct ld_semaphore *sem) argument 389 ldsem_down_write(struct ld_semaphore *sem, long timeout) argument 398 ldsem_down_write_trylock(struct ld_semaphore *sem) argument 415 ldsem_up_read(struct ld_semaphore *sem) argument 429 ldsem_up_write(struct ld_semaphore *sem) argument 443 ldsem_down_read_nested(struct ld_semaphore *sem, int subclass, long timeout) argument 449 ldsem_down_write_nested(struct ld_semaphore *sem, int subclass, long timeout) argument [all...] |
/drivers/gpu/drm/radeon/ |
H A D | rv770_dma.c | 47 struct radeon_semaphore *sem = NULL; local 55 r = radeon_semaphore_create(rdev, &sem); 66 radeon_semaphore_free(rdev, &sem, NULL); 70 radeon_semaphore_sync_resv(rdev, sem, resv, false); 71 radeon_semaphore_sync_rings(rdev, sem, ring->idx); 90 radeon_semaphore_free(rdev, &sem, NULL); 95 radeon_semaphore_free(rdev, &sem, fence);
|
H A D | evergreen_dma.c | 113 struct radeon_semaphore *sem = NULL; local 121 r = radeon_semaphore_create(rdev, &sem); 132 radeon_semaphore_free(rdev, &sem, NULL); 136 radeon_semaphore_sync_resv(rdev, sem, resv, false); 137 radeon_semaphore_sync_rings(rdev, sem, ring->idx); 156 radeon_semaphore_free(rdev, &sem, NULL); 161 radeon_semaphore_free(rdev, &sem, fence);
|
H A D | radeon_trace.h | 170 TP_PROTO(int ring, struct radeon_semaphore *sem), 172 TP_ARGS(ring, sem), 182 __entry->waiters = sem->waiters; 183 __entry->gpu_addr = sem->gpu_addr; 192 TP_PROTO(int ring, struct radeon_semaphore *sem), 194 TP_ARGS(ring, sem) 199 TP_PROTO(int ring, struct radeon_semaphore *sem), 201 TP_ARGS(ring, sem)
|
H A D | si_dma.c | 232 struct radeon_semaphore *sem = NULL; local 240 r = radeon_semaphore_create(rdev, &sem); 251 radeon_semaphore_free(rdev, &sem, NULL); 255 radeon_semaphore_sync_resv(rdev, sem, resv, false); 256 radeon_semaphore_sync_rings(rdev, sem, ring->idx); 275 radeon_semaphore_free(rdev, &sem, NULL); 280 radeon_semaphore_free(rdev, &sem, fence);
|
H A D | r600_dma.c | 444 struct radeon_semaphore *sem = NULL; local 452 r = radeon_semaphore_create(rdev, &sem); 463 radeon_semaphore_free(rdev, &sem, NULL); 467 radeon_semaphore_sync_resv(rdev, sem, resv, false); 468 radeon_semaphore_sync_rings(rdev, sem, ring->idx); 487 radeon_semaphore_free(rdev, &sem, NULL); 492 radeon_semaphore_free(rdev, &sem, fence);
|
/drivers/net/ethernet/mellanox/mlx4/ |
H A D | reset.c | 51 u32 sem; local 102 sem = readl(reset + MLX4_SEM_OFFSET); 103 if (!sem) 109 if (sem) {
|
/drivers/staging/comedi/drivers/ |
H A D | usbduxfast.c | 158 struct semaphore sem; member in struct:usbduxfast_private 223 down(&devpriv->sem); 225 up(&devpriv->sem); 464 down(&devpriv->sem); 472 up(&devpriv->sem); 479 up(&devpriv->sem); 496 down(&devpriv->sem); 499 up(&devpriv->sem); 517 up(&devpriv->sem); 524 up(&devpriv->sem); [all...] |
H A D | usbduxsigma.c | 180 struct semaphore sem; member in struct:usbduxsigma_private 206 down(&devpriv->sem); 209 up(&devpriv->sem); 344 down(&devpriv->sem); 347 up(&devpriv->sem); 664 down(&devpriv->sem); 671 up(&devpriv->sem); 676 up(&devpriv->sem); 693 down(&devpriv->sem); 713 up(&devpriv->sem); [all...] |
H A D | usbdux.c | 221 struct semaphore sem; member in struct:usbdux_private 248 down(&devpriv->sem); 251 up(&devpriv->sem); 397 down(&devpriv->sem); 400 up(&devpriv->sem); 694 down(&devpriv->sem); 710 up(&devpriv->sem); 723 down(&devpriv->sem); 795 up(&devpriv->sem); 813 down(&devpriv->sem); [all...] |
H A D | dt9812.c | 237 struct semaphore sem; member in struct:dt9812_private 339 down(&devpriv->sem); 349 up(&devpriv->sem); 361 down(&devpriv->sem); 363 up(&devpriv->sem); 448 down(&devpriv->sem); 497 up(&devpriv->sem); 508 down(&devpriv->sem); 549 up(&devpriv->sem); 612 down(&devpriv->sem); [all...] |
H A D | ni_usb6501.c | 170 struct semaphore sem; member in struct:ni6501_private 187 down(&devpriv->sem); 252 up(&devpriv->sem); 269 down(&devpriv->sem); 342 up(&devpriv->sem); 544 sema_init(&devpriv->sem, 1); 582 down(&devpriv->sem); 589 up(&devpriv->sem);
|
/drivers/gpu/drm/gma500/ |
H A D | gtt.h | 36 struct rw_semaphore sem; member in struct:psb_gtt
|
H A D | mmu.c | 106 down_write(&driver->sem); 108 up_write(&driver->sem); 118 down_write(&driver->sem); 135 up_write(&driver->sem); 145 down_write(&pd->driver->sem); 150 up_write(&pd->driver->sem); 255 down_write(&driver->sem); 275 up_write(&driver->sem); 422 down_read(&driver->sem); 424 up_read(&driver->sem); [all...] |
H A D | mmu.h | 22 struct rw_semaphore sem; member in struct:psb_mmu_driver
|
/drivers/media/usb/as102/ |
H A D | as102_drv.h | 73 struct mutex sem; member in struct:as102_dev_t
|
H A D | as102_drv.c | 148 if (mutex_lock_interruptible(&as102_dev->sem)) 158 mutex_unlock(&as102_dev->sem); 167 if (mutex_lock_interruptible(&as102_dev->sem)) 177 mutex_unlock(&as102_dev->sem); 356 mutex_init(&as102_dev->sem);
|
/drivers/staging/rtl8188eu/include/ |
H A D | rtw_event.h | 27 #include <linux/sem.h>
|
/drivers/staging/rtl8712/ |
H A D | rtl871x_event.h | 33 #include <linux/sem.h>
|
H A D | osdep_service.h | 37 #include <linux/sem.h>
|
/drivers/input/joystick/ |
H A D | turbografx.c | 84 struct mutex sem; member in struct:tgfx 126 err = mutex_lock_interruptible(&tgfx->sem); 136 mutex_unlock(&tgfx->sem); 144 mutex_lock(&tgfx->sem); 150 mutex_unlock(&tgfx->sem); 189 mutex_init(&tgfx->sem);
|
/drivers/acpi/ |
H A D | osl.c | 1246 struct semaphore *sem = NULL; local 1248 sem = acpi_os_allocate_zeroed(sizeof(struct semaphore)); 1249 if (!sem) 1252 sema_init(sem, initial_units); 1254 *handle = (acpi_handle *) sem; 1271 struct semaphore *sem = (struct semaphore *)handle; local 1273 if (!sem) 1278 BUG_ON(!list_empty(&sem->wait_list)); 1279 kfree(sem); 1280 sem 1291 struct semaphore *sem = (struct semaphore *)handle; local 1332 struct semaphore *sem = (struct semaphore *)handle; local [all...] |
/drivers/gpu/host1x/ |
H A D | cdma.h | 70 struct semaphore sem; /* signalled when event occurs */ member in struct:host1x_cdma 71 enum cdma_event event; /* event that sem is waiting for */
|
/drivers/staging/rtl8723au/include/ |
H A D | osdep_service.h | 37 #include <linux/sem.h>
|
/drivers/char/xilinx_hwicap/ |
H A D | xilinx_hwicap.c | 361 status = mutex_lock_interruptible(&drvdata->sem); 432 mutex_unlock(&drvdata->sem); 447 status = mutex_lock_interruptible(&drvdata->sem); 521 mutex_unlock(&drvdata->sem); 533 status = mutex_lock_interruptible(&drvdata->sem); 554 mutex_unlock(&drvdata->sem); 566 mutex_lock(&drvdata->sem); 585 mutex_unlock(&drvdata->sem); 671 mutex_init(&drvdata->sem);
|