/linux/tools/testing/selftests/powerpc/dscr/ |
H A D | dscr_default_test.c | 75 pthread_rwlock_t *rw_lock; member 83 pthread_rwlock_t *rw_lock = args->rw_lock; in dscr_default_random_thread() local 96 FAIL_IF_EXIT(pthread_rwlock_rdlock(rw_lock)); in dscr_default_random_thread() 100 FAIL_IF_EXIT(pthread_rwlock_unlock(rw_lock)); in dscr_default_random_thread() 108 FAIL_IF_EXIT(pthread_rwlock_wrlock(rw_lock)); in dscr_default_random_thread() 112 FAIL_IF_EXIT(pthread_rwlock_unlock(rw_lock)); in dscr_default_random_thread() 124 pthread_rwlock_t rw_lock; in dscr_default_random_test() local 131 FAIL_IF(pthread_rwlock_init(&rw_lock, &rwlock_attr)); in dscr_default_random_test() 138 threads[i].rw_lock = &rw_lock; in dscr_default_random_test() 149 FAIL_IF(pthread_rwlock_destroy(&rw_lock)); in dscr_default_random_test()
|
/linux/drivers/parisc/ |
H A D | pdc_stable.c | 230 read_lock(&entry->rw_lock); in pdcspath_hwpath_read() 233 read_unlock(&entry->rw_lock); in pdcspath_hwpath_read() 313 write_lock(&entry->rw_lock); in pdcspath_hwpath_write() 322 write_unlock(&entry->rw_lock); in pdcspath_hwpath_write() 350 read_lock(&entry->rw_lock); in pdcspath_layer_read() 353 read_unlock(&entry->rw_lock); in pdcspath_layer_read() 410 write_lock(&entry->rw_lock); in pdcspath_layer_write() 418 write_unlock(&entry->rw_lock); in pdcspath_layer_write() 1000 write_lock(&entry->rw_lock); in pdcs_register_pathentries() 1016 write_lock(&entry->rw_lock); in pdcs_register_pathentries() [all …]
|
/linux/fs/ntfs3/ |
H A D | record.c | 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() 161 down_read(rw_lock); in mi_read() 163 if (rw_lock) in mi_read() [all …]
|
H A D | fsntfs.c | 443 up_write(&wnd->rw_lock); in ntfs_look_for_free_space() 458 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_check_for_free_space() 461 up_read(&wnd->rw_lock); in ntfs_check_for_free_space() 469 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_MFT); in ntfs_check_for_free_space() 472 up_read(&wnd->rw_lock); in ntfs_check_for_free_space() 535 up_write(&sbi->used.bitmap.rw_lock); in ntfs_extend_mft() 571 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_MFT); in ntfs_look_free_mft() 728 up_write(&wnd->rw_lock); in ntfs_look_free_mft() 742 down_write_nested(&wnd->rw_lock, BITMAP_MUTEX_MFT); in ntfs_mark_rec_free() 762 up_write(&wnd->rw_lock); in ntfs_mark_rec_free() [all …]
|
H A D | run.c | 1089 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in run_unpack_ex() 1092 up_read(&wnd->rw_lock); in run_unpack_ex() 1099 if (down_write_trylock(&wnd->rw_lock)) { in run_unpack_ex() 1103 up_write(&wnd->rw_lock); in run_unpack_ex()
|
H A D | bitmap.c | 650 init_rwsem(&wnd->rw_lock); in wnd_init() 1451 down_read_nested(&wnd->rw_lock, BITMAP_MUTEX_CLUSTERS); in ntfs_trim_fs() 1504 up_read(&wnd->rw_lock); in ntfs_trim_fs()
|
H A D | ntfs_fs.h | 145 struct rw_semaphore rw_lock; member
|
/linux/drivers/leds/ |
H A 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/drivers/power/sequencing/ |
H A D | core.c | 237 struct rw_semaphore rw_lock; member 514 init_rwsem(&pwrseq->rw_lock); in pwrseq_device_register() 547 guard(rwsem_write)(&pwrseq->rw_lock); in pwrseq_device_unregister() 626 guard(rwsem_read)(&pwrseq->rw_lock); in pwrseq_match_device() 798 lockdep_assert_held_read(&pwrseq->rw_lock); in pwrseq_unit_enable() 835 lockdep_assert_held_read(&pwrseq->rw_lock); in pwrseq_unit_disable() 904 guard(rwsem_read)(&pwrseq->rw_lock); in pwrseq_power_on() 953 guard(rwsem_read)(&pwrseq->rw_lock); in pwrseq_power_off()
|
/linux/tools/testing/selftests/rcutorture/configs/lock/ |
H A D | LOCK04.boot | 1 locktorture.torture_type=rw_lock
|
/linux/Documentation/translations/zh_CN/locking/ |
H A D | spinlocks.rst | 57 (rw_lock)有时是有用的。它们允许多个读者同时出现在同一个临界区,但是如果有人想
|
/linux/drivers/md/bcache/ |
H A D | btree.h | 248 static inline void rw_lock(bool w, struct btree *b, int level) in rw_lock() function 354 rw_lock(_w, _b, _b->level); \
|
H A D | btree.c | 1036 rw_lock(write, b, level); in bch_btree_node_get() 2091 rw_lock(0, c->root, c->root->level); in bch_btree_check() 2453 rw_lock(true, b, b->level); in bch_btree_insert_check_key()
|
H A D | writeback.c | 992 rw_lock(0, b, b->level); in bch_sectors_dirty_init()
|
H A D | sysfs.c | 673 rw_lock(false, b, b->level); in bch_root_usage()
|
/linux/drivers/firmware/arm_ffa/ |
H A D | driver.c | 865 rwlock_t rw_lock; member 880 read_lock(&partition->rw_lock); in __do_sched_recv_cb() 883 read_unlock(&partition->rw_lock); in __do_sched_recv_cb() 1086 write_lock(&partition->rw_lock); in ffa_sched_recv_cb_update() 1090 write_unlock(&partition->rw_lock); in ffa_sched_recv_cb_update() 1097 write_unlock(&partition->rw_lock); in ffa_sched_recv_cb_update() 1435 rwlock_init(&info->rw_lock); in ffa_setup_partitions() 1456 rwlock_init(&info->rw_lock); in ffa_setup_partitions()
|
/linux/Documentation/locking/ |
H A D | locktorture.rst | 58 - "rw_lock":
|
H A D | spinlocks.rst | 57 (rw_lock) versions of the spinlocks are sometimes useful. They allow multiple
|
/linux/Documentation/translations/it_IT/locking/ |
H A D | locktorture.rst | 65 - "rw_lock":
|