Home
last modified time | relevance | path

Searched refs:rw_lock (Results 1 – 19 of 19) sorted by relevance

/linux/tools/testing/selftests/powerpc/dscr/
H A Ddscr_default_test.c75 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 Dpdc_stable.c230 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 Drecord.c129 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 Dfsntfs.c443 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 Drun.c1089 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 Dbitmap.c650 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 Dntfs_fs.h145 struct rw_semaphore rw_lock; member
/linux/drivers/leds/
H A Dleds-ns2.c51 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 Dcore.c237 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 DLOCK04.boot1 locktorture.torture_type=rw_lock
/linux/Documentation/translations/zh_CN/locking/
H A Dspinlocks.rst57rw_lock)有时是有用的。它们允许多个读者同时出现在同一个临界区,但是如果有人想
/linux/drivers/md/bcache/
H A Dbtree.h248 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 Dbtree.c1036 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 Dwriteback.c992 rw_lock(0, b, b->level); in bch_sectors_dirty_init()
H A Dsysfs.c673 rw_lock(false, b, b->level); in bch_root_usage()
/linux/drivers/firmware/arm_ffa/
H A Ddriver.c865 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 Dlocktorture.rst58 - "rw_lock":
H A Dspinlocks.rst57 (rw_lock) versions of the spinlocks are sometimes useful. They allow multiple
/linux/Documentation/translations/it_IT/locking/
H A Dlocktorture.rst65 - "rw_lock":