Home
last modified time | relevance | path

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

12

/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()
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 Dcheckpoint.c42 static inline void trace_lock_elapsed_time_start(struct f2fs_rwsem *sem, in trace_lock_elapsed_time_start() argument
52 static inline void trace_lock_elapsed_time_end(struct f2fs_rwsem *sem, in trace_lock_elapsed_time_end() argument
93 static bool need_uplift_priority(struct f2fs_rwsem *sem, bool is_write) in need_uplift_priority() argument
118 uplift_priority(struct f2fs_rwsem * sem,struct f2fs_lock_context * lc,bool is_write) uplift_priority() argument
139 restore_priority(struct f2fs_rwsem * sem,struct f2fs_lock_context * lc,bool is_write) restore_priority() argument
153 f2fs_down_read_trace(struct f2fs_rwsem * sem,struct f2fs_lock_context * lc) f2fs_down_read_trace() argument
160 f2fs_down_read_trylock_trace(struct f2fs_rwsem * sem,struct f2fs_lock_context * lc) f2fs_down_read_trylock_trace() argument
171 f2fs_up_read_trace(struct f2fs_rwsem * sem,struct f2fs_lock_context * lc) f2fs_up_read_trace() argument
178 f2fs_down_write_trace(struct f2fs_rwsem * sem,struct f2fs_lock_context * lc) f2fs_down_write_trace() argument
185 f2fs_down_write_trylock_trace(struct f2fs_rwsem * sem,struct f2fs_lock_context * lc) f2fs_down_write_trylock_trace() argument
196 f2fs_up_write_trace(struct f2fs_rwsem * sem,struct f2fs_lock_context * lc) f2fs_up_write_trace() argument
[all...]
H A Df2fs.h2416 init_f2fs_rwsem(sem) global() argument
2419 __init_f2fs_rwsem(sem,sbi,name) global() argument
2426 do_init_f2fs_rwsem(struct f2fs_rwsem * sem,const char * sem_name,struct lock_class_key * key,struct f2fs_sb_info * sbi,enum f2fs_lock_name name) do_init_f2fs_rwsem() argument
2438 f2fs_rwsem_is_locked(struct f2fs_rwsem * sem) f2fs_rwsem_is_locked() argument
2443 f2fs_rwsem_is_contended(struct f2fs_rwsem * sem) f2fs_rwsem_is_contended() argument
2448 f2fs_down_read(struct f2fs_rwsem * sem) f2fs_down_read() argument
2457 f2fs_down_read_trylock(struct f2fs_rwsem * sem) f2fs_down_read_trylock() argument
2462 f2fs_up_read(struct f2fs_rwsem * sem) f2fs_up_read() argument
2467 f2fs_down_write(struct f2fs_rwsem * sem) f2fs_down_write() argument
2473 f2fs_down_read_nested(struct f2fs_rwsem * sem,int subclass) f2fs_down_read_nested() argument
2478 f2fs_down_write_nested(struct f2fs_rwsem * sem,int subclass) f2fs_down_write_nested() argument
2483 f2fs_down_read_nested(sem,subclass) global() argument
2484 f2fs_down_write_nested(sem,subclass) global() argument
2487 f2fs_down_write_trylock(struct f2fs_rwsem * sem) f2fs_down_write_trylock() argument
2492 f2fs_up_write(struct f2fs_rwsem * sem) f2fs_up_write() argument
[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; acpi_os_wait_semaphore() local
835 sem_t *sem = (sem_t *) handle; acpi_os_signal_semaphore() local
[all...]
/linux/drivers/misc/
H A Dntsync.c60 } sem; member
320 static void try_wake_any_sem(struct ntsync_obj *sem) in try_wake_any_sem()
394 static int release_sem_state(struct ntsync_obj *sem, __u32 count) in release_sem_state()
408 static int ntsync_sem_release(struct ntsync_obj *sem, void __user *argp) in ntsync_sem_release()
587 static int ntsync_sem_read(struct ntsync_obj *sem, void __user *argp) in ntsync_sem_read()
736 struct ntsync_obj *sem; in ntsync_create_sem() local
/linux/tools/testing/selftests/drivers/ntsync/
H A Dntsync.c29 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 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.c26 static sem_t *sem; variable
/linux/drivers/acpi/
H A Dosl.c1234 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; acpi_os_wait_semaphore() local
1323 struct semaphore *sem = (struct semaphore *)handle; acpi_os_signal_semaphore() local
[all...]
/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/tools/testing/selftests/memfd/
H A Dmemfd_test.c1353 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 Dxilinx_hwicap.h60 struct mutex sem; member
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_hw.c310 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 Ddevcom.c42 struct rw_semaphore sem; member
[all...]
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_api_cmd.h183 struct semaphore sem; member
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dgmc_v11_0.c229 u32 sem, req, ack; gmc_v11_0_flush_gpu_tlb() local
/linux/arch/arm/mach-versatile/
H A Dspc.c103 struct semaphore sem; member

12