Searched refs:rw_lock (Results 1 – 16 of 16) sorted by relevance
/linux-5.19.10/drivers/parisc/ |
D | pdc_stable.c | 87 rwlock_t rw_lock; /* to protect path entry access */ member 230 read_lock(&entry->rw_lock); in pdcspath_hwpath_read() 233 read_unlock(&entry->rw_lock); in pdcspath_hwpath_read() 314 write_lock(&entry->rw_lock); in pdcspath_hwpath_write() 323 write_unlock(&entry->rw_lock); in pdcspath_hwpath_write() 351 read_lock(&entry->rw_lock); in pdcspath_layer_read() 354 read_unlock(&entry->rw_lock); in pdcspath_layer_read() 412 write_lock(&entry->rw_lock); in pdcspath_layer_write() 420 write_unlock(&entry->rw_lock); in pdcspath_layer_write() 549 read_lock(&pathentry->rw_lock); in pdcs_auto_read() [all …]
|
/linux-5.19.10/fs/ntfs3/ |
D | record.c | 124 struct rw_semaphore *rw_lock = NULL; in mi_read() local 128 rw_lock = &mft_ni->file.run_lock; in mi_read() 129 down_read(rw_lock); in mi_read() 134 if (rw_lock) in mi_read() 135 up_read(rw_lock); in mi_read() 147 if (rw_lock) { in mi_read() 149 down_write(rw_lock); in mi_read() 153 if (rw_lock) { in mi_read() 154 up_write(rw_lock); in mi_read() 160 if (rw_lock) in mi_read() [all …]
|
D | run.c | 1037 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in run_unpack_ex() 1040 up_read(&wnd->rw_lock); in run_unpack_ex() 1047 if (down_write_trylock(&wnd->rw_lock)) { in run_unpack_ex() 1068 up_write(&wnd->rw_lock); in run_unpack_ex()
|
D | fsntfs.c | 366 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_look_for_free_space() 447 up_write(&wnd->rw_lock); in ntfs_look_for_free_space() 502 down_write_nested(&sbi->used.bitmap.rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_extend_mft() 506 up_write(&sbi->used.bitmap.rw_lock); in ntfs_extend_mft() 542 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_MFT); in ntfs_look_free_mft() 699 up_write(&wnd->rw_lock); in ntfs_look_free_mft() 711 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_MFT); in ntfs_mark_rec_free() 730 up_write(&wnd->rw_lock); in ntfs_mark_rec_free() 2435 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in mark_as_free_ex() 2468 up_write(&wnd->rw_lock); in mark_as_free_ex()
|
D | bitmap.c | 657 init_rwsem(&wnd->rw_lock); in wnd_init() 1433 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_trim_fs() 1488 up_read(&wnd->rw_lock); in ntfs_trim_fs()
|
D | attrib.c | 199 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in attr_allocate_clusters() 201 up_write(&wnd->rw_lock); in attr_allocate_clusters()
|
D | ntfs_fs.h | 136 struct rw_semaphore rw_lock; member
|
/linux-5.19.10/drivers/leds/ |
D | leds-ns2.c | 51 rwlock_t rw_lock; /* Lock GPIOs. */ member 88 write_lock_irqsave(&led->rw_lock, flags); in ns2_led_set_mode() 100 write_unlock_irqrestore(&led->rw_lock, flags); in ns2_led_set_mode() 208 rwlock_init(&led->rw_lock); in ns2_led_register()
|
/linux-5.19.10/tools/testing/selftests/rcutorture/configs/lock/ |
D | LOCK04.boot | 1 locktorture.torture_type=rw_lock
|
/linux-5.19.10/Documentation/translations/zh_CN/locking/ |
D | spinlocks.rst | 57 (rw_lock)有时是有用的。它们允许多个读者同时出现在同一个临界区,但是如果有人想
|
/linux-5.19.10/drivers/md/bcache/ |
D | btree.h | 248 static inline void rw_lock(bool w, struct btree *b, int level) in rw_lock() function 353 rw_lock(_w, _b, _b->level); \
|
D | btree.c | 1007 rw_lock(write, b, level); in bch_btree_node_get() 2029 rw_lock(0, c->root, c->root->level); in bch_btree_check() 2391 rw_lock(true, b, b->level); in bch_btree_insert_check_key()
|
D | writeback.c | 947 rw_lock(0, c->root, c->root->level); in bch_sectors_dirty_init()
|
D | sysfs.c | 671 rw_lock(false, b, b->level); in bch_root_usage()
|
/linux-5.19.10/Documentation/locking/ |
D | locktorture.rst | 58 - "rw_lock":
|
D | spinlocks.rst | 57 (rw_lock) versions of the spinlocks are sometimes useful. They allow multiple
|