/openbmc/linux/kernel/locking/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/drivers/tty/ |
H 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() 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 …]
|
/openbmc/linux/include/linux/ |
H A 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 …]
|
H 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() 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 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
|
H A D | semaphore.h | 37 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
|
/openbmc/linux/tools/perf/util/ |
H 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()
|
/openbmc/linux/tools/include/linux/ |
H A 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()
|
/openbmc/linux/arch/ia64/include/uapi/asm/ |
H A D | intrinsics.h | 36 #define IA64_FETCHADD(tmp,v,n,sz,sem) \ argument 52 #define ia64_fetchadd(i,v,sem) \ argument
|
H A D | cmpxchg.h | 69 #define ia64_cmpxchg(sem, ptr, old, new, size) \ argument
|
/openbmc/qemu/util/ |
H A D | qemu-thread-win32.c | 191 void qemu_sem_init(QemuSemaphore *sem, int init) in qemu_sem_init() 198 void qemu_sem_destroy(QemuSemaphore *sem) in qemu_sem_destroy() 205 void qemu_sem_post(QemuSemaphore *sem) in qemu_sem_post() 211 int qemu_sem_timedwait(QemuSemaphore *sem, int ms) in qemu_sem_timedwait() 226 void qemu_sem_wait(QemuSemaphore *sem) in qemu_sem_wait()
|
H A D | qemu-thread-posix.c | 256 void qemu_sem_init(QemuSemaphore *sem, int init) in qemu_sem_init() 267 void qemu_sem_destroy(QemuSemaphore *sem) in qemu_sem_destroy() 273 void qemu_sem_post(QemuSemaphore *sem) in qemu_sem_post() 285 int qemu_sem_timedwait(QemuSemaphore *sem, int ms) in qemu_sem_timedwait() 310 void qemu_sem_wait(QemuSemaphore *sem) in qemu_sem_wait()
|
/openbmc/linux/ipc/ |
H 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 …]
|
/openbmc/linux/tools/power/acpi/os_specific/service_layers/ |
H 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
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | reset.c | 51 u32 sem; in mlx4_reset() local
|
/openbmc/u-boot/drivers/dma/ |
H A D | apbh_dma.c | 112 unsigned int sem; in mxs_dma_enable() local 455 int sem; in mxs_dma_finish() local
|
/openbmc/linux/fs/jffs2/ |
H A D | jffs2_fs_i.h | 27 struct mutex sem; member
|
/openbmc/qemu/include/qemu/ |
H A D | thread-context.h | 37 QemuSemaphore sem; member
|
/openbmc/linux/arch/x86/platform/intel/ |
H 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
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_rng.c | 42 QemuSemaphore sem; member
|
/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | hardware_disable_test.c | 28 sem_t *sem; variable
|
/openbmc/linux/drivers/acpi/ |
H A 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
|
/openbmc/linux/drivers/gpu/drm/gma500/ |
H A D | mmu.h | 15 struct rw_semaphore sem; member
|