/linux/kernel/locking/ |
A D | rwsem.c | 67 # define DEBUG_RWSEMS_WARN_ON(c, sem) do { \ argument 77 # define DEBUG_RWSEMS_WARN_ON(c, sem) argument 341 #define rwsem_first_waiter(sem) \ argument 714 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner() 931 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner() 1448 #define DEBUG_RWSEMS_WARN_ON(c, sem) argument 1467 void __sched down_read(struct rw_semaphore *sem) in down_read() 1507 int down_read_trylock(struct rw_semaphore *sem) in down_read_trylock() 1563 void up_read(struct rw_semaphore *sem) in up_read() 1573 void up_write(struct rw_semaphore *sem) in up_write() [all …]
|
A D | percpu-rwsem.c | 12 int __percpu_init_rwsem(struct percpu_rw_semaphore *sem, in __percpu_init_rwsem() 31 void percpu_free_rwsem(struct percpu_rw_semaphore *sem) in percpu_free_rwsem() 46 static bool __percpu_down_read_trylock(struct percpu_rw_semaphore *sem) in __percpu_down_read_trylock() 82 static inline bool __percpu_down_write_trylock(struct percpu_rw_semaphore *sem) in __percpu_down_write_trylock() 90 static bool __percpu_rwsem_trylock(struct percpu_rw_semaphore *sem, bool reader) in __percpu_rwsem_trylock() 122 struct percpu_rw_semaphore *sem = key; in percpu_rwsem_wake_function() local 139 static void percpu_rwsem_wait(struct percpu_rw_semaphore *sem, bool reader) in percpu_rwsem_wait() 165 bool __percpu_down_read(struct percpu_rw_semaphore *sem, bool try) in __percpu_down_read() 199 static bool readers_active_check(struct percpu_rw_semaphore *sem) in readers_active_check() 214 void percpu_down_write(struct percpu_rw_semaphore *sem) in percpu_down_write() [all …]
|
A D | semaphore.c | 53 void down(struct semaphore *sem) in down() 76 int down_interruptible(struct semaphore *sem) in down_interruptible() 103 int down_killable(struct semaphore *sem) in down_killable() 133 int down_trylock(struct semaphore *sem) in down_trylock() 158 int down_timeout(struct semaphore *sem, long timeout) in down_timeout() 182 void up(struct semaphore *sem) in up() 208 static inline int __sched __down_common(struct semaphore *sem, long state, in __down_common() 239 static noinline void __sched __down(struct semaphore *sem) in __down() 244 static noinline int __sched __down_interruptible(struct semaphore *sem) in __down_interruptible() 249 static noinline int __sched __down_killable(struct semaphore *sem) in __down_killable() [all …]
|
/linux/drivers/tty/ |
A D | tty_ldsem.c | 57 void __init_ldsem(struct ld_semaphore *sem, const char *name, in __init_ldsem() 74 static void __ldsem_wake_readers(struct ld_semaphore *sem) in __ldsem_wake_readers() 104 static inline int writer_trylock(struct ld_semaphore *sem) in writer_trylock() 119 static void __ldsem_wake_writer(struct ld_semaphore *sem) in __ldsem_wake_writer() 135 static void __ldsem_wake(struct ld_semaphore *sem) in __ldsem_wake() 143 static void ldsem_wake(struct ld_semaphore *sem) in ldsem_wake() 295 static int __ldsem_down_read_nested(struct ld_semaphore *sem, in __ldsem_down_read_nested() 346 int ldsem_down_read_trylock(struct ld_semaphore *sem) in ldsem_down_read_trylock() 372 int ldsem_down_write_trylock(struct ld_semaphore *sem) in ldsem_down_write_trylock() 389 void ldsem_up_read(struct ld_semaphore *sem) in ldsem_up_read() [all …]
|
/linux/include/linux/ |
A D | rwsem.h | 69 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() 106 #define init_rwsem(sem) \ argument 119 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended() 147 #define init_rwsem(sem) \ argument 154 static __always_inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() 229 # define down_write_nest_lock(sem, nest_lock) \ argument 244 # define down_read_nested(sem, subclass) down_read(sem) argument 246 # define down_write_nest_lock(sem, nest_lock) down_write(sem) argument 247 # define down_write_nested(sem, subclass) down_write(sem) argument 249 # define down_read_non_owner(sem) down_read(sem) argument [all …]
|
A D | percpu-rwsem.h | 47 static inline void percpu_down_read(struct percpu_rw_semaphore *sem) in percpu_down_read() 73 static inline bool percpu_down_read_trylock(struct percpu_rw_semaphore *sem) in percpu_down_read_trylock() 97 static inline void percpu_up_read(struct percpu_rw_semaphore *sem) in percpu_up_read() 132 #define percpu_init_rwsem(sem) \ argument 138 #define percpu_rwsem_is_held(sem) lockdep_is_held(sem) argument 139 #define percpu_rwsem_assert_held(sem) lockdep_assert_held(sem) argument 141 static inline void percpu_rwsem_release(struct percpu_rw_semaphore *sem, in percpu_rwsem_release() 147 static inline void percpu_rwsem_acquire(struct percpu_rw_semaphore *sem, in percpu_rwsem_acquire()
|
A D | tty_ldisc.h | 152 #define init_ldsem(sem) \ argument 173 # define ldsem_down_read_nested(sem, subclass, timeout) \ argument 175 # define ldsem_down_write_nested(sem, subclass, timeout) \ argument
|
A D | semaphore.h | 31 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
|
/linux/tools/perf/util/ |
A D | rwsem.c | 5 int init_rwsem(struct rw_semaphore *sem) in init_rwsem() 10 int exit_rwsem(struct rw_semaphore *sem) in exit_rwsem() 15 int down_read(struct rw_semaphore *sem) in down_read() 20 int up_read(struct rw_semaphore *sem) in up_read() 25 int down_write(struct rw_semaphore *sem) in down_write() 30 int up_write(struct rw_semaphore *sem) in up_write()
|
/linux/arch/ia64/include/uapi/asm/ |
A D | intrinsics.h | 40 #define IA64_FETCHADD(tmp,v,n,sz,sem) \ argument 56 #define ia64_fetchadd(i,v,sem) \ argument
|
A D | cmpxchg.h | 73 #define ia64_cmpxchg(sem, ptr, old, new, size) \ argument
|
/linux/ipc/ |
A D | sem.c | 95 struct sem { struct 96 int semval; /* current value */ argument 104 struct pid *sempid; argument 105 spinlock_t lock; /* spinlock for fine-grained semtimedop */ argument 110 time64_t sem_otime; /* candidate for sem_otime */ argument 126 struct sem sems[]; argument 317 struct sem *sem = &sma->sems[i]; in merge_queues() local 339 struct sem *sem; in complexmode_enter() local 392 struct sem *sem; in sem_lock() local 467 struct sem *sem = &sma->sems[locknum]; in sem_unlock() local [all …]
|
/linux/tools/power/acpi/os_specific/service_layers/ |
A D | osunixxf.c | 630 sem_t *sem; in acpi_os_create_semaphore() local 682 sem_t *sem = (sem_t *) handle; in acpi_os_delete_semaphore() local 718 sem_t *sem = (sem_t *) handle; in acpi_os_wait_semaphore() local 835 sem_t *sem = (sem_t *) handle; in acpi_os_signal_semaphore() local
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | reset.c | 51 u32 sem; in mlx4_reset() local
|
/linux/fs/jffs2/ |
A D | jffs2_fs_i.h | 27 struct mutex sem; member
|
/linux/arch/x86/platform/intel/ |
A D | iosf_mbi.c | 247 static int iosf_mbi_get_sem(u32 *sem) in iosf_mbi_get_sem() 316 u32 sem; in iosf_mbi_block_punit_i2c_access() local
|
/linux/drivers/gpu/drm/gma500/ |
A D | gtt.h | 23 struct rw_semaphore sem; member
|
A D | mmu.h | 15 struct rw_semaphore sem; member
|
/linux/drivers/infiniband/core/ |
A D | iwpm_util.h | 72 struct semaphore sem; member
|
/linux/drivers/media/usb/as102/ |
A D | as102_drv.h | 64 struct mutex sem; member
|
/linux/tools/testing/selftests/kvm/ |
A D | hardware_disable_test.c | 28 sem_t *sem; variable
|
/linux/drivers/net/ethernet/sfc/ |
A D | efx.h | 225 static inline bool efx_rwsem_assert_write_locked(struct rw_semaphore *sem) in efx_rwsem_assert_write_locked()
|
/linux/drivers/acpi/ |
A D | osl.c | 1200 struct semaphore *sem = NULL; in acpi_os_create_semaphore() local 1225 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_delete_semaphore() local 1245 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_wait_semaphore() local 1289 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_signal_semaphore() local
|
/linux/drivers/net/ethernet/sfc/falcon/ |
A D | efx.h | 265 static inline bool ef4_rwsem_assert_write_locked(struct rw_semaphore *sem) in ef4_rwsem_assert_write_locked()
|
/linux/drivers/input/joystick/ |
A D | turbografx.c | 69 struct mutex sem; member
|