| /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/tools/perf/util/ |
| H A D | rwsem.c | 9 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() 40 int up_read(struct rw_semaphore *sem) in up_read() 51 int down_write(struct rw_semaphore *sem) in down_write() 62 int up_write(struct rw_semaphore *sem) in up_write()
|
| /linux/fs/f2fs/ |
| H A D | checkpoint.c | 42 static inline void trace_lock_elapsed_time_start(struct f2fs_rwsem *sem, in trace_lock_elapsed_time_start() 52 static inline void trace_lock_elapsed_time_end(struct f2fs_rwsem *sem, in trace_lock_elapsed_time_end() 93 static bool need_uplift_priority(struct f2fs_rwsem *sem, bool is_write) in need_uplift_priority() 118 static void uplift_priority(struct f2fs_rwsem *sem, struct f2fs_lock_context *lc, in uplift_priority() 139 static void restore_priority(struct f2fs_rwsem *sem, struct f2fs_lock_context *lc, in restore_priority() 153 void f2fs_down_read_trace(struct f2fs_rwsem *sem, struct f2fs_lock_context *lc) in f2fs_down_read_trace() 160 int f2fs_down_read_trylock_trace(struct f2fs_rwsem *sem, struct f2fs_lock_context *lc) in f2fs_down_read_trylock_trace() 171 void f2fs_up_read_trace(struct f2fs_rwsem *sem, struct f2fs_lock_context *lc) in f2fs_up_read_trace() 178 void f2fs_down_write_trace(struct f2fs_rwsem *sem, struct f2fs_lock_context *lc) in f2fs_down_write_trace() 185 int f2fs_down_write_trylock_trace(struct f2fs_rwsem *sem, struct f2fs_lock_context *lc) in f2fs_down_write_trylock_trace() [all …]
|
| H A D | f2fs.h | 2416 #define init_f2fs_rwsem(sem) __init_f2fs_rwsem(sem, NULL, LOCK_NAME_NONE) argument 2419 #define __init_f2fs_rwsem(sem, sbi, name) \ argument 2426 static inline void do_init_f2fs_rwsem(struct f2fs_rwsem *sem, in do_init_f2fs_rwsem() 2438 static inline int f2fs_rwsem_is_locked(struct f2fs_rwsem *sem) in f2fs_rwsem_is_locked() 2443 static inline int f2fs_rwsem_is_contended(struct f2fs_rwsem *sem) in f2fs_rwsem_is_contended() 2448 static inline void f2fs_down_read(struct f2fs_rwsem *sem) in f2fs_down_read() 2457 static inline int f2fs_down_read_trylock(struct f2fs_rwsem *sem) in f2fs_down_read_trylock() 2462 static inline void f2fs_up_read(struct f2fs_rwsem *sem) in f2fs_up_read() 2467 static inline void f2fs_down_write(struct f2fs_rwsem *sem) in f2fs_down_write() 2473 static inline void f2fs_down_read_nested(struct f2fs_rwsem *sem, int subclass) in f2fs_down_read_nested() [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; acpi_os_wait_semaphore() local 835 sem_t *sem = (sem_t *) handle; acpi_os_signal_semaphore() local [all...] |
| /linux/tools/testing/selftests/drivers/ntsync/ |
| H A D | ntsync.c | 29 ret = ioctl(sem, NTSYNC_IOC_SEM_READ, &args); argument 38 int ret = read_sem_state((sem), &__count, &__max); \ in release_sem() argument 17 read_sem_state(int sem,__u32 * count,__u32 * max) read_sem_state() argument 146 int fd, ret, sem; TEST() local [all...] |
| /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/acpi/ |
| H A D | osl.c | 1234 struct semaphore *sem = NULL; in acpi_os_create_semaphore() local 1259 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_delete_semaphore() local 1279 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_wait_semaphore() local 1323 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_signal_semaphore() local
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | hardware_disable_test.c | 24 sem_t *sem; global() variable
|
| /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/tools/testing/selftests/memfd/ |
| H A D | memfd_test.c | 1353 int sem = semget(SEM_KEY, 1, 0600); in sysctl_nested_wait() local 1389 int pid, sem; in sysctl_nested_child() local [all...] |
| /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/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | devcom.c | 42 struct rw_semaphore sem; member
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_hw_api_cmd.h | 183 struct semaphore sem; member
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | gmc_v11_0.c | 229 u32 sem, req, ack; in gmc_v11_0_flush_gpu_tlb() local
|
| /linux/arch/arm/mach-versatile/ |
| H A D | spc.c | 103 struct semaphore sem; member
|
| /linux/drivers/infiniband/ulp/isert/ |
| H A D | ib_isert.h | 210 struct semaphore sem; member
|