Home
last modified time | relevance | path

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

123

/linux/kernel/locking/
H A 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()
188 static inline struct task_struct *rwsem_owner(struct rw_semaphore *sem) in rwsem_owner()
197 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned()
215 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
[all …]
H 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()
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 …]
H 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()
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/include/linux/
H A Drwsem.h73 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked()
78 static inline void rwsem_assert_held_nolockdep(const struct rw_semaphore *sem) in rwsem_assert_held_nolockdep()
83 static inline void rwsem_assert_held_write_nolockdep(const struct rw_semaphore *sem) in rwsem_assert_held_write_nolockdep()
117 #define init_rwsem(sem) \ argument
130 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended()
158 #define init_rwsem(sem) \ argument
165 static __always_inline int rwsem_is_locked(const struct rw_semaphore *sem) in rwsem_is_locked()
170 static __always_inline void rwsem_assert_held_nolockdep(const struct rw_semaphore *sem) in rwsem_assert_held_nolockdep()
175 static __always_inline void rwsem_assert_held_write_nolockdep(const struct rw_semaphore *sem) in rwsem_assert_held_write_nolockdep()
180 static __always_inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended()
[all …]
H 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()
H 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
H A Dsemaphore.h37 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
/linux/drivers/tty/
H 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()
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/tools/include/linux/
H A Drwsem.h11 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()
41 #define down_read_nested(sem, subclass) down_read(sem) argument
42 #define down_write_nested(sem, subclass) down_write(sem) argument
/linux/tools/perf/util/
H A Drwsem.c9 int init_rwsem(struct rw_semaphore *sem) in init_rwsem()
19 int exit_rwsem(struct rw_semaphore *sem) in exit_rwsem()
29 int down_read(struct rw_semaphore *sem) in down_read()
39 int up_read(struct rw_semaphore *sem) in up_read()
49 int down_write(struct rw_semaphore *sem) in down_write()
59 int up_write(struct rw_semaphore *sem) in up_write()
/linux/drivers/misc/
H A Dntsync.c48 } sem; member
60 static int post_sem_state(struct ntsync_obj *sem, __u32 count) in post_sem_state()
74 static int ntsync_sem_post(struct ntsync_obj *sem, void __user *argp) in ntsync_sem_post()
170 struct ntsync_obj *sem; in ntsync_create_sem() local
/linux/ipc/
H 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/tools/power/acpi/os_specific/service_layers/
H 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/drivers/net/ethernet/mellanox/mlx4/
H A Dreset.c51 u32 sem; in mlx4_reset() local
/linux/fs/jffs2/
H A Djffs2_fs_i.h27 struct mutex sem; member
/linux/arch/x86/platform/intel/
H 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/tools/testing/selftests/kvm/
H A Dhardware_disable_test.c25 sem_t *sem; global() variable
/linux/drivers/gpu/drm/gma500/
H A Dmmu.h15 struct rw_semaphore sem; member
/linux/drivers/media/usb/as102/
H A Das102_drv.h64 struct mutex sem; member
/linux/drivers/infiniband/core/
H A Diwpm_util.h71 struct semaphore sem; member
H A Dnetlink.c50 struct rw_semaphore sem; member
/linux/drivers/net/ethernet/sfc/siena/
H A Defx.h206 static inline bool efx_rwsem_assert_write_locked(struct rw_semaphore *sem) in efx_rwsem_assert_write_locked()
/linux/drivers/input/joystick/
H A Dturbografx.c66 struct mutex sem; member
/linux/include/soc/arc/
H A Dmcip.h66 msg:1, sem:1, ipi:1, slv:1, member
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Ddevcom.c33 struct rw_semaphore sem; member

123