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

/linux-4.1.27/kernel/locking/
H A Drwsem.h2 static inline void rwsem_set_owner(struct rw_semaphore *sem) rwsem_set_owner() argument
7 static inline void rwsem_clear_owner(struct rw_semaphore *sem) rwsem_clear_owner() argument
13 static inline void rwsem_set_owner(struct rw_semaphore *sem) rwsem_set_owner() argument
17 static inline void rwsem_clear_owner(struct rw_semaphore *sem) rwsem_clear_owner() argument
H A Drwsem.c19 void __sched down_read(struct rw_semaphore *sem) down_read() argument
32 int down_read_trylock(struct rw_semaphore *sem) down_read_trylock() argument
46 void __sched down_write(struct rw_semaphore *sem) down_write() argument
60 int down_write_trylock(struct rw_semaphore *sem) down_write_trylock() argument
77 void up_read(struct rw_semaphore *sem) up_read() argument
89 void up_write(struct rw_semaphore *sem) up_write() argument
102 void downgrade_write(struct rw_semaphore *sem) downgrade_write() argument
116 void down_read_nested(struct rw_semaphore *sem, int subclass) down_read_nested() argument
126 void _down_write_nest_lock(struct rw_semaphore *sem, struct lockdep_map *nest) _down_write_nest_lock() argument
137 void down_read_non_owner(struct rw_semaphore *sem) down_read_non_owner() argument
146 void down_write_nested(struct rw_semaphore *sem, int subclass) down_write_nested() argument
157 void up_read_non_owner(struct rw_semaphore *sem) up_read_non_owner() argument
H A Dsemaphore.c53 void down(struct semaphore *sem) down() argument
75 int down_interruptible(struct semaphore *sem) down_interruptible() argument
101 int down_killable(struct semaphore *sem) down_killable() argument
130 int down_trylock(struct semaphore *sem) down_trylock() argument
155 int down_timeout(struct semaphore *sem, long timeout) down_timeout() argument
178 void up(struct semaphore *sem) up() argument
204 static inline int __sched __down_common(struct semaphore *sem, long state, __down_common() argument
236 static noinline void __sched __down(struct semaphore *sem) __down() argument
241 static noinline int __sched __down_interruptible(struct semaphore *sem) __down_interruptible() argument
246 static noinline int __sched __down_killable(struct semaphore *sem) __down_killable() argument
251 static noinline int __sched __down_timeout(struct semaphore *sem, long timeout) __down_timeout() argument
256 static noinline void __sched __up(struct semaphore *sem) __up() argument
H A Drwsem-spinlock.c23 int rwsem_is_locked(struct rw_semaphore *sem) rwsem_is_locked() argument
39 void __init_rwsem(struct rw_semaphore *sem, const char *name, __init_rwsem() argument
65 __rwsem_do_wake(struct rw_semaphore *sem, int wakewrite) __rwsem_do_wake() argument
115 __rwsem_wake_one_writer(struct rw_semaphore *sem) __rwsem_wake_one_writer() argument
128 void __sched __down_read(struct rw_semaphore *sem) __down_read() argument
172 int __down_read_trylock(struct rw_semaphore *sem) __down_read_trylock() argument
194 void __sched __down_write_nested(struct rw_semaphore *sem, int subclass) __down_write_nested() argument
230 void __sched __down_write(struct rw_semaphore *sem) __down_write() argument
238 int __down_write_trylock(struct rw_semaphore *sem) __down_write_trylock() argument
259 void __up_read(struct rw_semaphore *sem) __up_read() argument
274 void __up_write(struct rw_semaphore *sem) __up_write() argument
291 void __downgrade_write(struct rw_semaphore *sem) __downgrade_write() argument
H A Drwsem-xadd.c73 void __init_rwsem(struct rw_semaphore *sem, const char *name, __init_rwsem() argument
122 __rwsem_do_wake(struct rw_semaphore *sem, enum rwsem_wake_type wake_type) __rwsem_do_wake() argument
214 struct rw_semaphore __sched *rwsem_down_read_failed(struct rw_semaphore *sem) rwsem_down_read_failed() argument
258 static inline bool rwsem_try_write_lock(long count, struct rw_semaphore *sem) rwsem_try_write_lock() argument
280 static inline bool rwsem_try_write_lock_unqueued(struct rw_semaphore *sem) rwsem_try_write_lock_unqueued() argument
298 static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem) rwsem_can_spin_on_owner() argument
328 bool rwsem_spin_on_owner(struct rw_semaphore *sem, struct task_struct *owner) rwsem_spin_on_owner() argument
364 static bool rwsem_optimistic_spin(struct rw_semaphore *sem) rwsem_optimistic_spin() argument
413 static bool rwsem_optimistic_spin(struct rw_semaphore *sem) rwsem_optimistic_spin() argument
423 struct rw_semaphore __sched *rwsem_down_write_failed(struct rw_semaphore *sem) rwsem_down_write_failed() argument
495 struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem) rwsem_wake() argument
517 struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem) rwsem_downgrade_wake() argument
/linux-4.1.27/fs/jffs2/
H A Djffs2_fs_i.h27 struct mutex sem; member in struct:jffs2_inode_info
/linux-4.1.27/include/linux/
H A Dsemaphore.h32 static inline void sema_init(struct semaphore *sem, int val) sema_init() argument
H A Drwsem.h53 static inline int rwsem_is_locked(struct rw_semaphore *sem) rwsem_is_locked() argument
100 static inline int rwsem_is_contended(struct rw_semaphore *sem) rwsem_is_contended() argument
H A Dkey.h139 struct rw_semaphore sem; /* change vs change sem */ member in struct:key
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-designware-baytrail.c32 static int get_sem(struct device *dev, u32 *sem) get_sem() argument
67 u32 sem; baytrail_i2c_acquire() local
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Dreset.c51 u32 sem; mlx4_reset() local
/linux-4.1.27/arch/xtensa/include/asm/
H A Drwsem.h30 static inline void __down_read(struct rw_semaphore *sem) __down_read() argument
38 static inline int __down_read_trylock(struct rw_semaphore *sem) __down_read_trylock() argument
55 static inline void __down_write(struct rw_semaphore *sem) __down_write() argument
67 static inline int __down_write_trylock(struct rw_semaphore *sem) __down_write_trylock() argument
80 static inline void __up_read(struct rw_semaphore *sem) __up_read() argument
93 static inline void __up_write(struct rw_semaphore *sem) __up_write() argument
104 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) rwsem_atomic_add() argument
112 static inline void __downgrade_write(struct rw_semaphore *sem) __downgrade_write() argument
125 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) rwsem_atomic_update() argument
/linux-4.1.27/arch/ia64/include/asm/
H A Drwsem.h41 __down_read (struct rw_semaphore *sem) __down_read() argument
53 __down_write (struct rw_semaphore *sem) __down_write() argument
70 __up_read (struct rw_semaphore *sem) __up_read() argument
82 __up_write (struct rw_semaphore *sem) __up_write() argument
99 __down_read_trylock (struct rw_semaphore *sem) __down_read_trylock() argument
114 __down_write_trylock (struct rw_semaphore *sem) __down_write_trylock() argument
125 __downgrade_write (struct rw_semaphore *sem) __downgrade_write() argument
/linux-4.1.27/drivers/gpu/drm/gma500/
H A Dgtt.h36 struct rw_semaphore sem; member in struct:psb_gtt
H A Dmmu.h22 struct rw_semaphore sem; member in struct:psb_mmu_driver
/linux-4.1.27/arch/x86/include/asm/
H A Drwsem.h63 static inline void __down_read(struct rw_semaphore *sem) __down_read() argument
80 static inline int __down_read_trylock(struct rw_semaphore *sem) __down_read_trylock() argument
102 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) __down_write_nested() argument
119 static inline void __down_write(struct rw_semaphore *sem) __down_write() argument
127 static inline int __down_write_trylock(struct rw_semaphore *sem) __down_write_trylock() argument
153 static inline void __up_read(struct rw_semaphore *sem) __up_read() argument
171 static inline void __up_write(struct rw_semaphore *sem) __up_write() argument
189 static inline void __downgrade_write(struct rw_semaphore *sem) __downgrade_write() argument
209 static inline void rwsem_atomic_add(long delta, struct rw_semaphore *sem) rwsem_atomic_add() argument
219 static inline long rwsem_atomic_update(long delta, struct rw_semaphore *sem) rwsem_atomic_update() argument
/linux-4.1.27/arch/sparc/include/asm/
H A Drwsem.h26 static inline void __down_read(struct rw_semaphore *sem) __down_read() argument
32 static inline int __down_read_trylock(struct rw_semaphore *sem) __down_read_trylock() argument
48 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) __down_write_nested() argument
58 static inline void __down_write(struct rw_semaphore *sem) __down_write() argument
63 static inline int __down_write_trylock(struct rw_semaphore *sem) __down_write_trylock() argument
75 static inline void __up_read(struct rw_semaphore *sem) __up_read() argument
87 static inline void __up_write(struct rw_semaphore *sem) __up_write() argument
97 static inline void rwsem_atomic_add(long delta, struct rw_semaphore *sem) rwsem_atomic_add() argument
105 static inline void __downgrade_write(struct rw_semaphore *sem) __downgrade_write() argument
117 static inline long rwsem_atomic_update(long delta, struct rw_semaphore *sem) rwsem_atomic_update() argument
/linux-4.1.27/arch/s390/include/asm/
H A Drwsem.h52 static inline void __down_read(struct rw_semaphore *sem) __down_read() argument
72 static inline int __down_read_trylock(struct rw_semaphore *sem) __down_read_trylock() argument
93 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) __down_write_nested() argument
111 static inline void __down_write(struct rw_semaphore *sem) __down_write() argument
119 static inline int __down_write_trylock(struct rw_semaphore *sem) __down_write_trylock() argument
139 static inline void __up_read(struct rw_semaphore *sem) __up_read() argument
160 static inline void __up_write(struct rw_semaphore *sem) __up_write() argument
182 static inline void __downgrade_write(struct rw_semaphore *sem) __downgrade_write() argument
203 static inline void rwsem_atomic_add(long delta, struct rw_semaphore *sem) rwsem_atomic_add() argument
221 static inline long rwsem_atomic_update(long delta, struct rw_semaphore *sem) rwsem_atomic_update() argument
/linux-4.1.27/arch/sh/include/asm/
H A Drwsem.h25 static inline void __down_read(struct rw_semaphore *sem) __down_read() argument
33 static inline int __down_read_trylock(struct rw_semaphore *sem) __down_read_trylock() argument
50 static inline void __down_write(struct rw_semaphore *sem) __down_write() argument
62 static inline int __down_write_trylock(struct rw_semaphore *sem) __down_write_trylock() argument
75 static inline void __up_read(struct rw_semaphore *sem) __up_read() argument
88 static inline void __up_write(struct rw_semaphore *sem) __up_write() argument
99 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) rwsem_atomic_add() argument
107 static inline void __downgrade_write(struct rw_semaphore *sem) __downgrade_write() argument
117 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) __down_write_nested() argument
125 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) rwsem_atomic_update() argument
/linux-4.1.27/arch/alpha/include/asm/
H A Drwsem.h24 static inline void __down_read(struct rw_semaphore *sem) __down_read() argument
51 static inline int __down_read_trylock(struct rw_semaphore *sem) __down_read_trylock() argument
66 static inline void __down_write(struct rw_semaphore *sem) __down_write() argument
93 static inline int __down_write_trylock(struct rw_semaphore *sem) __down_write_trylock() argument
102 static inline void __up_read(struct rw_semaphore *sem) __up_read() argument
127 static inline void __up_write(struct rw_semaphore *sem) __up_write() argument
156 static inline void __downgrade_write(struct rw_semaphore *sem) __downgrade_write() argument
180 static inline void rwsem_atomic_add(long val, struct rw_semaphore *sem) rwsem_atomic_add() argument
199 static inline long rwsem_atomic_update(long val, struct rw_semaphore *sem) rwsem_atomic_update() argument
/linux-4.1.27/include/asm-generic/
H A Drwsem.h34 static inline void __down_read(struct rw_semaphore *sem) __down_read() argument
40 static inline int __down_read_trylock(struct rw_semaphore *sem) __down_read_trylock() argument
56 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) __down_write_nested() argument
66 static inline void __down_write(struct rw_semaphore *sem) __down_write() argument
71 static inline int __down_write_trylock(struct rw_semaphore *sem) __down_write_trylock() argument
83 static inline void __up_read(struct rw_semaphore *sem) __up_read() argument
95 static inline void __up_write(struct rw_semaphore *sem) __up_write() argument
105 static inline void rwsem_atomic_add(long delta, struct rw_semaphore *sem) rwsem_atomic_add() argument
113 static inline void __downgrade_write(struct rw_semaphore *sem) __downgrade_write() argument
126 static inline long rwsem_atomic_update(long delta, struct rw_semaphore *sem) rwsem_atomic_update() argument
/linux-4.1.27/drivers/media/usb/as102/
H A Das102_drv.h73 struct mutex sem; member in struct:as102_dev_t
/linux-4.1.27/drivers/gpu/host1x/
H A Dcdma.h70 struct semaphore sem; /* signalled when event occurs */ member in struct:host1x_cdma
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dni_usb6501.c169 struct semaphore sem; member in struct:ni6501_private
H A Dusbduxfast.c164 struct semaphore sem; member in struct:usbduxfast_private
H A Ddt9812.c236 struct semaphore sem; member in struct:dt9812_private
H A Dusbdux.c213 struct semaphore sem; member in struct:usbdux_private
H A Dusbduxsigma.c175 struct semaphore sem; member in struct:usbduxsigma_private
/linux-4.1.27/drivers/input/joystick/
H A Dturbografx.c84 struct mutex sem; member in struct:tgfx
/linux-4.1.27/drivers/tty/
H A Dtty_ldsem.c77 static inline long ldsem_atomic_update(long delta, struct ld_semaphore *sem) ldsem_atomic_update() argument
87 static inline int ldsem_cmpxchg(long *old, long new, struct ld_semaphore *sem) ldsem_cmpxchg() argument
102 void __init_ldsem(struct ld_semaphore *sem, const char *name, __init_ldsem() argument
119 static void __ldsem_wake_readers(struct ld_semaphore *sem) __ldsem_wake_readers() argument
149 static inline int writer_trylock(struct ld_semaphore *sem) writer_trylock() argument
163 static void __ldsem_wake_writer(struct ld_semaphore *sem) __ldsem_wake_writer() argument
179 static void __ldsem_wake(struct ld_semaphore *sem) __ldsem_wake() argument
187 static void ldsem_wake(struct ld_semaphore *sem) ldsem_wake() argument
200 down_read_failed(struct ld_semaphore *sem, long count, long timeout) down_read_failed() argument
268 down_write_failed(struct ld_semaphore *sem, long count, long timeout) down_write_failed() argument
321 static inline int __ldsem_down_read_nested(struct ld_semaphore *sem, __ldsem_down_read_nested() argument
340 static inline int __ldsem_down_write_nested(struct ld_semaphore *sem, __ldsem_down_write_nested() argument
363 int __sched ldsem_down_read(struct ld_semaphore *sem, long timeout) ldsem_down_read() argument
372 int ldsem_down_read_trylock(struct ld_semaphore *sem) ldsem_down_read_trylock() argument
389 int __sched ldsem_down_write(struct ld_semaphore *sem, long timeout) ldsem_down_write() argument
398 int ldsem_down_write_trylock(struct ld_semaphore *sem) ldsem_down_write_trylock() argument
415 void ldsem_up_read(struct ld_semaphore *sem) ldsem_up_read() argument
429 void ldsem_up_write(struct ld_semaphore *sem) ldsem_up_write() argument
443 int ldsem_down_read_nested(struct ld_semaphore *sem, int subclass, long timeout) ldsem_down_read_nested() argument
449 int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass, ldsem_down_write_nested() argument
/linux-4.1.27/drivers/macintosh/
H A Drack-meter.c72 struct mutex sem; member in struct:rackmeter
/linux-4.1.27/drivers/net/irda/
H A Dsir-dev.h24 struct semaphore sem; member in struct:sir_fsm
/linux-4.1.27/drivers/net/wireless/mwifiex/
H A Dmain.c453 struct semaphore *sem = adapter->card_sem; mwifiex_fw_dpc() local
1102 mwifiex_add_card(void *card, struct semaphore *sem, mwifiex_add_card() argument
1203 int mwifiex_remove_card(struct mwifiex_adapter *adapter, struct semaphore *sem) mwifiex_remove_card() argument
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dnv04.c507 u32 reassign, chid, get, sem; nv04_fifo_intr() local
/linux-4.1.27/kernel/
H A Dtaskstats.c68 struct rw_semaphore sem; member in struct:listener_list
/linux-4.1.27/drivers/char/xilinx_hwicap/
H A Dxilinx_hwicap.h60 struct mutex sem; member in struct:hwicap_drvdata
/linux-4.1.27/arch/arm/mach-vexpress/
H A Dspc.c109 struct semaphore sem; member in struct:ve_spc_drvdata
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
H A Dosunixxf.c645 sem_t *sem; acpi_os_create_semaphore() local
693 sem_t *sem = (sem_t *) handle; acpi_os_delete_semaphore() local
724 sem_t *sem = (sem_t *) handle; acpi_os_wait_semaphore() local
837 sem_t *sem = (sem_t *) handle; acpi_os_signal_semaphore() local
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcmd.c485 struct semaphore *sem; cmd_work_handler() local
1108 struct semaphore *sem; mlx5_cmd_comp_handler() local
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_hw.c318 qlcnic_pcie_sem_lock(struct qlcnic_adapter *adapter, int sem, u32 id_reg) qlcnic_pcie_sem_lock() argument
354 qlcnic_pcie_sem_unlock(struct qlcnic_adapter *adapter, int sem) qlcnic_pcie_sem_unlock() argument
/linux-4.1.27/drivers/pci/pcie/
H A Daspm.c717 static void __pci_disable_link_state(struct pci_dev *pdev, int state, bool sem, __pci_disable_link_state() argument
/linux-4.1.27/ipc/
H A Dsem.c93 struct sem { struct
240 struct sem *sem = sma->sem_base + i; merge_queues() local
275 struct sem *sem; sem_wait_array() local
301 struct sem *sem; sem_lock() local
387 struct sem *sem = sma->sem_base + locknum; sem_unlock() local
1118 struct sem *sem = sma->sem_base + i; freeary() local
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_hw.c322 netxen_pcie_sem_lock(struct netxen_adapter *adapter, int sem, u32 id_reg) netxen_pcie_sem_lock() argument
342 netxen_pcie_sem_unlock(struct netxen_adapter *adapter, int sem) netxen_pcie_sem_unlock() argument
/linux-4.1.27/drivers/infiniband/hw/mlx5/
H A Dmlx5_ib.h355 struct semaphore sem; member in struct:umr_common
/linux-4.1.27/drivers/acpi/
H A Dosl.c1252 struct semaphore *sem = NULL; acpi_os_create_semaphore() local
1277 struct semaphore *sem = (struct semaphore *)handle; acpi_os_delete_semaphore() local
1297 struct semaphore *sem = (struct semaphore *)handle; acpi_os_wait_semaphore() local
1338 struct semaphore *sem = (struct semaphore *)handle; acpi_os_signal_semaphore() local
/linux-4.1.27/drivers/media/dvb-core/
H A Ddvb_frontend.c107 struct semaphore sem; member in struct:dvb_frontend_private
/linux-4.1.27/fs/afs/
H A Dinternal.h280 struct rw_semaphore sem; /* access lock */ member in struct:afs_server
/linux-4.1.27/drivers/iommu/
H A Damd_iommu.c797 static int wait_on_sem(volatile u64 *sem) wait_on_sem() argument
1000 volatile u64 sem = 0; iommu_queue_command_sync() local
1036 volatile u64 sem = 0; iommu_completion_wait() local
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.c618 u32 sem; be_POST_stage_get() local
/linux-4.1.27/include/linux/mlx5/
H A Ddriver.h258 struct semaphore sem; member in struct:mlx5_cmd
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
H A Dcore.h725 struct semaphore sem; member in struct:ath6kl
/linux-4.1.27/drivers/net/wireless/
H A Dairo.c1206 struct semaphore sem; member in struct:airo_info
/linux-4.1.27/fs/reiserfs/
H A Dreiserfs.h831 reiserfs_down_read_safe(struct rw_semaphore *sem, struct super_block *s) reiserfs_down_read_safe() argument

Completed in 1539 milliseconds