Home
last modified time | relevance | path

Searched refs:rw_semaphore (Results 1 – 25 of 215) sorted by relevance

123456789

/openbmc/linux/include/linux/
H A Drwsem.h48 struct rw_semaphore { struct
70 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument
102 struct rw_semaphore name = __RWSEM_INITIALIZER(name)
129 struct rw_semaphore { struct
175 extern void down_read(struct rw_semaphore *sem);
182 extern int down_read_trylock(struct rw_semaphore *sem);
187 extern void down_write(struct rw_semaphore *sem);
193 extern int down_write_trylock(struct rw_semaphore *sem);
198 extern void up_read(struct rw_semaphore *sem);
203 extern void up_write(struct rw_semaphore *sem);
[all …]
H A Drtnetlink.h43 extern struct rw_semaphore pernet_ops_rwsem;
44 extern struct rw_semaphore net_rwsem;
/openbmc/linux/kernel/locking/
H A Drwsem.c747 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
961 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
995 static struct rw_semaphore __sched *
1106 static struct rw_semaphore __sched *
1203 static struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem) in rwsem_wake()
1224 static struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem) in rwsem_downgrade_wake()
1517 void __sched down_read(struct rw_semaphore *sem) in down_read()
1557 int down_read_trylock(struct rw_semaphore *sem) in down_read_trylock()
1613 void up_read(struct rw_semaphore *sem) in up_read()
1623 void up_write(struct rw_semaphore *sem) in up_write()
[all …]
/openbmc/linux/tools/perf/util/
H A Drwsem.h6 struct rw_semaphore { struct
10 int init_rwsem(struct rw_semaphore *sem); argument
11 int exit_rwsem(struct rw_semaphore *sem);
13 int down_read(struct rw_semaphore *sem);
14 int up_read(struct rw_semaphore *sem);
16 int down_write(struct rw_semaphore *sem);
17 int up_write(struct rw_semaphore *sem);
H A Drwsem.c5 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()
H A Dthread.h58 struct rw_semaphore namespaces_lock; in DECLARE_RC_STRUCT()
60 struct rw_semaphore comm_lock; in DECLARE_RC_STRUCT()
236 static inline struct rw_semaphore *thread__namespaces_lock(struct thread *thread) in thread__namespaces_lock()
246 static inline struct rw_semaphore *thread__comm_lock(struct thread *thread) in thread__comm_lock()
H A Denv.h104 struct rw_semaphore lock;
113 struct rw_semaphore lock;
H A Dmaps.h48 struct rw_semaphore lock; in DECLARE_RC_STRUCT()
94 static inline struct rw_semaphore *maps__lock(struct maps *maps) in maps__lock()
/openbmc/linux/tools/include/linux/
H A Drwsem.h7 struct rw_semaphore { struct
11 static inline int init_rwsem(struct rw_semaphore *sem) in init_rwsem() argument
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/drivers/usb/gadget/function/
H A Dstorage_common.h206 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem,
211 ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem,
214 ssize_t fsg_store_file(struct fsg_lun *curlun, struct rw_semaphore *filesem,
216 ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem,
222 ssize_t fsg_store_forced_eject(struct fsg_lun *curlun, struct rw_semaphore *filesem,
H A Dstorage_common.c333 ssize_t fsg_show_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_show_file()
394 ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_ro()
437 ssize_t fsg_store_file(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_file()
468 ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_cdrom()
525 ssize_t fsg_store_forced_eject(struct fsg_lun *curlun, struct rw_semaphore *filesem, in fsg_store_forced_eject()
/openbmc/linux/kernel/
H A Dkcmp.c73 static void kcmp_unlock(struct rw_semaphore *l1, struct rw_semaphore *l2) in kcmp_unlock()
80 static int kcmp_lock(struct rw_semaphore *l1, struct rw_semaphore *l2) in kcmp_lock()
/openbmc/linux/fs/kernfs/
H A Dkernfs-internal.h49 struct rw_semaphore kernfs_rwsem;
50 struct rw_semaphore kernfs_iattr_rwsem;
51 struct rw_semaphore kernfs_supers_rwsem;
/openbmc/linux/lib/
H A Dtest_lockup.c187 down_read((struct rw_semaphore *)lock_rwsem_ptr); in test_lock()
189 down_write((struct rw_semaphore *)lock_rwsem_ptr); in test_lock()
288 up_read((struct rw_semaphore *)lock_rwsem_ptr); in test_unlock()
290 up_write((struct rw_semaphore *)lock_rwsem_ptr); in test_unlock()
484 test_kernel_ptr(lock_rwsem_ptr, sizeof(struct rw_semaphore))) in test_lockup_init()
499 offsetof(struct rw_semaphore, rwbase.rtmutex.wait_lock.magic), in test_lockup_init()
513 offsetof(struct rw_semaphore, wait_lock.magic), in test_lockup_init()
/openbmc/linux/drivers/net/wireguard/
H A Dcookie.h19 struct rw_semaphore secret_lock;
31 struct rw_semaphore lock;
H A Dnoise.h53 struct rw_semaphore lock;
89 struct rw_semaphore lock;
/openbmc/linux/fs/ntfs/
H A Dvolume.h85 struct rw_semaphore mftbmp_lock; /* Lock for serializing accesses to the
95 struct rw_semaphore lcnbmp_lock; /* Lock for serializing accesses to the
/openbmc/linux/fs/jffs2/
H A Djffs2_fs_sb.h135 struct rw_semaphore wbuf_sem; /* Protects the write buffer */
155 struct rw_semaphore xattr_sem;
/openbmc/linux/drivers/cxl/core/
H A Dcore.h84 extern struct rw_semaphore cxl_dpa_rwsem;
85 extern struct rw_semaphore cxl_region_rwsem;
/openbmc/linux/fs/ocfs2/
H A Dinode.h25 struct rw_semaphore ip_alloc_sem;
28 struct rw_semaphore ip_xattr_sem;
/openbmc/linux/tools/perf/util/bpf_skel/vmlinux/
H A Dvmlinux.h62 struct rw_semaphore { struct
89 struct rw_semaphore mmap_lock;
/openbmc/linux/fs/jfs/
H A Djfs_incore.h56 struct rw_semaphore rdwrlock;
65 struct rw_semaphore xattr_sem;
/openbmc/linux/drivers/iommu/iommufd/
H A Diommufd_private.h39 struct rw_semaphore domains_rwsem;
44 struct rw_semaphore iova_rwsem;
127 struct rw_semaphore destroy_rwsem;
/openbmc/linux/fs/smb/server/
H A Dconnection.h53 struct rw_semaphore session_lock;
147 extern struct rw_semaphore conn_list_lock;
/openbmc/linux/include/sound/
H A Dseq_virmidi.h50 struct rw_semaphore filelist_sem;

123456789