Home
last modified time | relevance | path

Searched defs:sem (Results 1 – 25 of 60) sorted by relevance

123

/linux-6.1.9/kernel/locking/
Drwsem.c68 # 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 …]
Dpercpu-rwsem.c14 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 …]
Dsemaphore.c54 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.1.9/drivers/tty/
Dtty_ldsem.c57 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.1.9/include/linux/
Drwsem.h69 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()
159 static __always_inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended()
229 # define down_write_nest_lock(sem, nest_lock) \ argument
244 # define down_read_nested(sem, subclass) down_read(sem) argument
245 # define down_read_killable_nested(sem, subclass) down_read_killable(sem) argument
246 # define down_write_nest_lock(sem, nest_lock) down_write(sem) argument
[all …]
Dpercpu-rwsem.h47 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()
Dtty_ldisc.h31 #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
Dsemaphore.h31 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
/linux-6.1.9/tools/perf/util/
Drwsem.c5 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.1.9/arch/ia64/include/uapi/asm/
Dintrinsics.h40 #define IA64_FETCHADD(tmp,v,n,sz,sem) \ argument
56 #define ia64_fetchadd(i,v,sem) \ argument
Dcmpxchg.h73 #define ia64_cmpxchg(sem, ptr, old, new, size) \ argument
/linux-6.1.9/ipc/
Dsem.c95 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.1.9/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c630 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.1.9/drivers/net/ethernet/mellanox/mlx4/
Dreset.c51 u32 sem; in mlx4_reset() local
/linux-6.1.9/fs/jffs2/
Djffs2_fs_i.h27 struct mutex sem; member
/linux-6.1.9/arch/x86/platform/intel/
Diosf_mbi.c247 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.1.9/drivers/acpi/
Dosl.c1202 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.1.9/tools/testing/selftests/kvm/
Dhardware_disable_test.c28 sem_t *sem; variable
/linux-6.1.9/drivers/gpu/drm/gma500/
Dmmu.h15 struct rw_semaphore sem; member
/linux-6.1.9/drivers/net/ethernet/sfc/siena/
Defx.h206 static inline bool efx_rwsem_assert_write_locked(struct rw_semaphore *sem) in efx_rwsem_assert_write_locked()
/linux-6.1.9/drivers/media/usb/as102/
Das102_drv.h64 struct mutex sem; member
/linux-6.1.9/drivers/infiniband/core/
Diwpm_util.h71 struct semaphore sem; member
/linux-6.1.9/drivers/net/ethernet/sfc/
Defx.h231 static inline bool efx_rwsem_assert_write_locked(struct rw_semaphore *sem) in efx_rwsem_assert_write_locked()
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/
Defx.h265 static inline bool ef4_rwsem_assert_write_locked(struct rw_semaphore *sem) in ef4_rwsem_assert_write_locked()
/linux-6.1.9/drivers/input/joystick/
Dturbografx.c66 struct mutex sem; member

123