Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/kernel/locking/
A Drwsem.c68 # define DEBUG_RWSEMS_WARN_ON(c, sem) do { \ argument
78 # define DEBUG_RWSEMS_WARN_ON(c, sem) argument
345 #define rwsem_first_waiter(sem) \ argument
747 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
961 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
1498 #define DEBUG_RWSEMS_WARN_ON(c, sem) argument
1517 void __sched down_read(struct rw_semaphore *sem) in down_read()
1557 int down_read_trylock(struct rw_semaphore *sem) in down_read_trylock()
1613 void up_read(struct rw_semaphore *sem) in up_read()
1623 void up_write(struct rw_semaphore *sem) in up_write()
[all …]
A 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()
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()
224 void __sched percpu_down_write(struct percpu_rw_semaphore *sem) in percpu_down_write()
[all …]
A 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()
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()
262 static noinline int __sched __down_killable(struct semaphore *sem) in __down_killable()
[all …]
/linux-6.3-rc2/drivers/tty/
A 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()
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-6.3-rc2/include/linux/
A 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()
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 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()
A 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
A Dsemaphore.h31 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
/linux-6.3-rc2/tools/perf/util/
A 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.3-rc2/arch/ia64/include/uapi/asm/
A Dintrinsics.h36 #define IA64_FETCHADD(tmp,v,n,sz,sem) \ argument
52 #define ia64_fetchadd(i,v,sem) \ argument
A Dcmpxchg.h69 #define ia64_cmpxchg(sem, ptr, old, new, size) \ argument
/linux-6.3-rc2/ipc/
A 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.3-rc2/tools/power/acpi/os_specific/service_layers/
A 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.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A Dreset.c51 u32 sem; in mlx4_reset() local
/linux-6.3-rc2/fs/jffs2/
A Djffs2_fs_i.h27 struct mutex sem; member
/linux-6.3-rc2/arch/x86/platform/intel/
A 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.3-rc2/drivers/acpi/
A 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.3-rc2/tools/testing/selftests/kvm/
A Dhardware_disable_test.c28 sem_t *sem; variable
/linux-6.3-rc2/drivers/gpu/drm/gma500/
A Dmmu.h15 struct rw_semaphore sem; member
/linux-6.3-rc2/drivers/infiniband/core/
A Diwpm_util.h71 struct semaphore sem; member
/linux-6.3-rc2/drivers/media/usb/as102/
A Das102_drv.h64 struct mutex sem; member
/linux-6.3-rc2/drivers/net/ethernet/sfc/siena/
A Defx.h206 static inline bool efx_rwsem_assert_write_locked(struct rw_semaphore *sem) in efx_rwsem_assert_write_locked()
/linux-6.3-rc2/drivers/net/ethernet/sfc/
A Defx.h231 static inline bool efx_rwsem_assert_write_locked(struct rw_semaphore *sem) in efx_rwsem_assert_write_locked()
/linux-6.3-rc2/drivers/net/ethernet/sfc/falcon/
A Defx.h265 static inline bool ef4_rwsem_assert_write_locked(struct rw_semaphore *sem) in ef4_rwsem_assert_write_locked()
/linux-6.3-rc2/drivers/input/joystick/
A Dturbografx.c66 struct mutex sem; member

Completed in 45 milliseconds

123