/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() 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 D | semaphore.c | 46 static inline void hung_task_sem_set_holder(struct semaphore *sem) in hung_task_sem_set_holder() 51 static inline void hung_task_sem_clear_if_holder(struct semaphore *sem) in hung_task_sem_clear_if_holder() 57 unsigned long sem_last_holder(struct semaphore *sem) in sem_last_holder() 62 static inline void hung_task_sem_set_holder(struct semaphore *sem) in hung_task_sem_set_holder() 65 static inline void hung_task_sem_clear_if_holder(struct semaphore *sem) in hung_task_sem_clear_if_holder() 68 unsigned long sem_last_holder(struct semaphore *sem) in sem_last_holder() 74 static inline void __sem_acquire(struct semaphore *sem) in __sem_acquire() 91 void __sched down(struct semaphore *sem) in down() 114 int __sched down_interruptible(struct semaphore *sem) in down_interruptible() 141 int __sched down_killable(struct semaphore *sem) in down_killable() [all …]
|
/linux/include/linux/ |
H A D | rwsem.h | 73 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 D | semaphore.h | 49 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
|
/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() 41 #define down_read_nested(sem, subclass) down_read(sem) argument 42 #define down_write_nested(sem, subclass) down_write(sem) argument
|
/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 …]
|
/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
|
/linux/drivers/misc/ |
H A D | ntsync.c | 59 } sem; member 319 static void try_wake_any_sem(struct ntsync_obj *sem) in try_wake_any_sem() 393 static int release_sem_state(struct ntsync_obj *sem, __u32 count) in release_sem_state() 407 static int ntsync_sem_release(struct ntsync_obj *sem, void __user *argp) in ntsync_sem_release() 586 static int ntsync_sem_read(struct ntsync_obj *sem, void __user *argp) in ntsync_sem_read() 744 struct ntsync_obj *sem; in ntsync_create_sem() local
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | reset.c | 51 u32 sem; in mlx4_reset() local
|
/linux/fs/jffs2/ |
H A D | jffs2_fs_i.h | 27 struct mutex sem; member
|
/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
|
/linux/drivers/media/usb/as102/ |
H A D | as102_drv.h | 64 struct mutex sem; member
|
/linux/drivers/infiniband/core/ |
H A D | iwpm_util.h | 71 struct semaphore sem; member
|
H A D | netlink.c | 50 struct rw_semaphore sem; member
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | efx.h | 206 static inline bool efx_rwsem_assert_write_locked(struct rw_semaphore *sem) in efx_rwsem_assert_write_locked()
|
/linux/drivers/input/joystick/ |
H A D | turbografx.c | 66 struct mutex sem; member
|
/linux/include/soc/arc/ |
H A D | mcip.h | 66 msg:1, sem:1, ipi:1, slv:1, member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | devcom.c | 33 struct rw_semaphore sem; member
|
/linux/drivers/macintosh/ |
H A D | rack-meter.c | 69 struct mutex sem; member
|
/linux/drivers/char/xilinx_hwicap/ |
H A D | xilinx_hwicap.h | 60 struct mutex sem; member
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_hw.c | 310 qlcnic_pcie_sem_lock(struct qlcnic_adapter *adapter, int sem, u32 id_reg) in qlcnic_pcie_sem_lock() 346 qlcnic_pcie_sem_unlock(struct qlcnic_adapter *adapter, int sem) in qlcnic_pcie_sem_unlock()
|
/linux/fs/f2fs/ |
H A D | f2fs.h | 2182 #define init_f2fs_rwsem(sem) \ argument 2189 static inline void __init_f2fs_rwsem(struct f2fs_rwsem *sem, in __init_f2fs_rwsem() 2198 static inline int f2fs_rwsem_is_locked(struct f2fs_rwsem *sem) in f2fs_rwsem_is_locked() 2203 static inline int f2fs_rwsem_is_contended(struct f2fs_rwsem *sem) in f2fs_rwsem_is_contended() 2208 static inline void f2fs_down_read(struct f2fs_rwsem *sem) in f2fs_down_read() 2217 static inline int f2fs_down_read_trylock(struct f2fs_rwsem *sem) in f2fs_down_read_trylock() 2222 static inline void f2fs_up_read(struct f2fs_rwsem *sem) in f2fs_up_read() 2227 static inline void f2fs_down_write(struct f2fs_rwsem *sem) in f2fs_down_write() 2233 static inline void f2fs_down_read_nested(struct f2fs_rwsem *sem, int subclass) in f2fs_down_read_nested() 2238 static inline void f2fs_down_write_nested(struct f2fs_rwsem *sem, int subclass) in f2fs_down_write_nested() [all …]
|
/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_api_cmd.h | 183 struct semaphore sem; member
|
/linux/kernel/ |
H A D | taskstats.c | 55 struct rw_semaphore sem; member
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | gmc_v10_0.c | 262 u32 sem, req, ack; in gmc_v10_0_flush_gpu_tlb() local
|