/linux-6.6.21/kernel/locking/ |
D | rwsem.c | 68 # define DEBUG_RWSEMS_WARN_ON(c, sem) do { \ argument 78 # define DEBUG_RWSEMS_WARN_ON(c, sem) argument 140 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner() 146 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner() 155 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags() 170 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned() 179 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned() 187 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned() 208 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() 219 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() [all …]
|
D | percpu-rwsem.c | 14 int __percpu_init_rwsem(struct percpu_rw_semaphore *sem, in __percpu_init_rwsem() 33 void percpu_free_rwsem(struct percpu_rw_semaphore *sem) in percpu_free_rwsem() 48 static bool __percpu_down_read_trylock(struct percpu_rw_semaphore *sem) in __percpu_down_read_trylock() 84 static inline bool __percpu_down_write_trylock(struct percpu_rw_semaphore *sem) in __percpu_down_write_trylock() 92 static bool __percpu_rwsem_trylock(struct percpu_rw_semaphore *sem, bool reader) in __percpu_rwsem_trylock() 124 struct percpu_rw_semaphore *sem = key; in percpu_rwsem_wake_function() local 141 static void percpu_rwsem_wait(struct percpu_rw_semaphore *sem, bool reader) in percpu_rwsem_wait() 167 bool __sched __percpu_down_read(struct percpu_rw_semaphore *sem, bool try) in __percpu_down_read() 195 bool percpu_is_read_locked(struct percpu_rw_semaphore *sem) in percpu_is_read_locked() 209 static bool readers_active_check(struct percpu_rw_semaphore *sem) in readers_active_check() [all …]
|
D | semaphore.c | 54 void __sched down(struct semaphore *sem) in down() 77 int __sched down_interruptible(struct semaphore *sem) in down_interruptible() 104 int __sched down_killable(struct semaphore *sem) in down_killable() 134 int __sched down_trylock(struct semaphore *sem) in down_trylock() 159 int __sched down_timeout(struct semaphore *sem, long timeout) in down_timeout() 183 void __sched up(struct semaphore *sem) in up() 209 static inline int __sched ___down_common(struct semaphore *sem, long state, in ___down_common() 240 static inline int __sched __down_common(struct semaphore *sem, long state, in __down_common() 252 static noinline void __sched __down(struct semaphore *sem) in __down() 257 static noinline int __sched __down_interruptible(struct semaphore *sem) in __down_interruptible() [all …]
|
/linux-6.6.21/drivers/tty/ |
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() 156 down_read_failed(struct ld_semaphore *sem, long count, long timeout) in down_read_failed() 230 down_write_failed(struct ld_semaphore *sem, long count, long timeout) in down_write_failed() 295 static int __ldsem_down_read_nested(struct ld_semaphore *sem, in __ldsem_down_read_nested() 314 static int __ldsem_down_write_nested(struct ld_semaphore *sem, in __ldsem_down_write_nested() [all …]
|
/linux-6.6.21/include/linux/ |
D | rwsem.h | 70 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() 107 #define init_rwsem(sem) \ argument 120 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended() 148 #define init_rwsem(sem) \ argument 155 static __always_inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() 160 static __always_inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended() 237 # define down_write_nest_lock(sem, nest_lock) \ argument 252 # define down_read_nested(sem, subclass) down_read(sem) argument 253 # define down_read_killable_nested(sem, subclass) down_read_killable(sem) argument 254 # define down_write_nest_lock(sem, nest_lock) down_write(sem) argument [all …]
|
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() 128 static inline bool percpu_is_write_locked(struct percpu_rw_semaphore *sem) in percpu_is_write_locked() 138 #define percpu_init_rwsem(sem) \ argument 144 #define percpu_rwsem_is_held(sem) lockdep_is_held(sem) argument 145 #define percpu_rwsem_assert_held(sem) lockdep_assert_held(sem) argument 147 static inline void percpu_rwsem_release(struct percpu_rw_semaphore *sem, in percpu_rwsem_release() 153 static inline void percpu_rwsem_acquire(struct percpu_rw_semaphore *sem, in percpu_rwsem_acquire()
|
D | tty_ldisc.h | 31 #define init_ldsem(sem) \ argument 52 # define ldsem_down_read_nested(sem, subclass, timeout) \ argument 54 # define ldsem_down_write_nested(sem, subclass, timeout) \ argument
|
D | semaphore.h | 37 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
|
/linux-6.6.21/tools/perf/util/ |
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-6.6.21/tools/include/linux/ |
D | rwsem.h | 11 static inline int init_rwsem(struct rw_semaphore *sem) in init_rwsem() 16 static inline int exit_rwsem(struct rw_semaphore *sem) in exit_rwsem() 21 static inline int down_read(struct rw_semaphore *sem) in down_read() 26 static inline int up_read(struct rw_semaphore *sem) in up_read() 31 static inline int down_write(struct rw_semaphore *sem) in down_write() 36 static inline int up_write(struct rw_semaphore *sem) in up_write()
|
/linux-6.6.21/arch/ia64/include/uapi/asm/ |
D | intrinsics.h | 36 #define IA64_FETCHADD(tmp,v,n,sz,sem) \ argument 52 #define ia64_fetchadd(i,v,sem) \ argument
|
D | cmpxchg.h | 69 #define ia64_cmpxchg(sem, ptr, old, new, size) \ argument
|
/linux-6.6.21/ipc/ |
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-6.6.21/tools/power/acpi/os_specific/service_layers/ |
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-6.6.21/drivers/net/ethernet/mellanox/mlx4/ |
D | reset.c | 51 u32 sem; in mlx4_reset() local
|
/linux-6.6.21/fs/jffs2/ |
D | jffs2_fs_i.h | 27 struct mutex sem; member
|
/linux-6.6.21/arch/x86/platform/intel/ |
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-6.6.21/drivers/acpi/ |
D | osl.c | 1202 struct semaphore *sem = NULL; in acpi_os_create_semaphore() local 1227 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_delete_semaphore() local 1247 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_wait_semaphore() local 1291 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_signal_semaphore() local
|
/linux-6.6.21/tools/testing/selftests/kvm/ |
D | hardware_disable_test.c | 28 sem_t *sem; variable
|
/linux-6.6.21/drivers/gpu/drm/gma500/ |
D | mmu.h | 15 struct rw_semaphore sem; member
|
/linux-6.6.21/drivers/media/usb/as102/ |
D | as102_drv.h | 64 struct mutex sem; member
|
/linux-6.6.21/drivers/net/ethernet/sfc/siena/ |
D | efx.h | 206 static inline bool efx_rwsem_assert_write_locked(struct rw_semaphore *sem) in efx_rwsem_assert_write_locked()
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | efx.h | 229 static inline bool efx_rwsem_assert_write_locked(struct rw_semaphore *sem) in efx_rwsem_assert_write_locked()
|
/linux-6.6.21/drivers/infiniband/core/ |
D | iwpm_util.h | 71 struct semaphore sem; member
|
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/ |
D | efx.h | 265 static inline bool ef4_rwsem_assert_write_locked(struct rw_semaphore *sem) in ef4_rwsem_assert_write_locked()
|