Home
last modified time | relevance | path

Searched refs:locks (Results 1 - 25 of 162) sorted by relevance

1234567

/kernel/linux/linux-5.10/kernel/locking/
H A Dtest-ww_mutex.c344 struct ww_mutex *locks; member
382 struct ww_mutex *locks = stress->locks; in stress_inorder_work() local
401 err = ww_mutex_lock(&locks[order[n]], &ctx); in stress_inorder_work()
409 ww_mutex_unlock(&locks[order[contended]]); in stress_inorder_work()
412 ww_mutex_unlock(&locks[order[n]]); in stress_inorder_work()
415 ww_mutex_lock_slow(&locks[order[contended]], &ctx); in stress_inorder_work()
439 LIST_HEAD(locks); in stress_reorder_work()
454 ll->lock = &stress->locks[order[n]]; in stress_reorder_work()
455 list_add(&ll->link, &locks); in stress_reorder_work()
522 struct ww_mutex *locks; stress() local
[all...]
H A Dlocktorture.c371 } locks[3], *ll, *ln; in __acquires() local
374 locks[0].lock = &torture_ww_mutex_0; in __acquires()
375 list_add(&locks[0].link, &list); in __acquires()
377 locks[1].lock = &torture_ww_mutex_1; in __acquires()
378 list_add(&locks[1].link, &list); in __acquires()
380 locks[2].lock = &torture_ww_mutex_2; in __acquires()
381 list_add(&locks[2].link, &list); in __acquires()
924 * of threads as the writer-only locks default. in lock_torture_init()
1002 * Create the kthreads and start torturing (oh, those poor little locks). in lock_torture_init()
/kernel/linux/linux-6.6/kernel/locking/
H A Dtest-ww_mutex.c384 struct ww_mutex *locks; member
422 struct ww_mutex *locks = stress->locks; in stress_inorder_work() local
441 err = ww_mutex_lock(&locks[order[n]], &ctx); in stress_inorder_work()
449 ww_mutex_unlock(&locks[order[contended]]); in stress_inorder_work()
452 ww_mutex_unlock(&locks[order[n]]); in stress_inorder_work()
455 ww_mutex_lock_slow(&locks[order[contended]], &ctx); in stress_inorder_work()
479 LIST_HEAD(locks); in stress_reorder_work()
494 ll->lock = &stress->locks[order[n]]; in stress_reorder_work()
495 list_add(&ll->link, &locks); in stress_reorder_work()
562 struct ww_mutex *locks; stress() local
[all...]
/kernel/linux/linux-5.10/lib/
H A Dbucket_locks.c10 * the number of locks per CPU to allocate. The size is rounded up
14 int __alloc_bucket_spinlocks(spinlock_t **locks, unsigned int *locks_mask, in __alloc_bucket_spinlocks() argument
43 *locks = tlocks; in __alloc_bucket_spinlocks()
50 void free_bucket_spinlocks(spinlock_t *locks) in free_bucket_spinlocks() argument
52 kvfree(locks); in free_bucket_spinlocks()
/kernel/linux/linux-6.6/lib/
H A Dbucket_locks.c10 * the number of locks per CPU to allocate. The size is rounded up
14 int __alloc_bucket_spinlocks(spinlock_t **locks, unsigned int *locks_mask, in __alloc_bucket_spinlocks() argument
43 *locks = tlocks; in __alloc_bucket_spinlocks()
50 void free_bucket_spinlocks(spinlock_t *locks) in free_bucket_spinlocks() argument
52 kvfree(locks); in free_bucket_spinlocks()
/kernel/linux/linux-5.10/include/linux/
H A Dblockgroup_lock.h24 struct bgl_lock locks[NR_BG_LOCKS]; member
32 spin_lock_init(&bgl->locks[i].lock); in bgl_lock_init()
38 return &bgl->locks[block_group & (NR_BG_LOCKS-1)].lock; in bgl_lock_ptr()
H A Dspinlock.h467 * Decrements @atomic by 1. If the result is 0, returns true and locks
479 int __alloc_bucket_spinlocks(spinlock_t **locks, unsigned int *lock_mask,
484 #define alloc_bucket_spinlocks(locks, lock_mask, max_size, cpu_mult, gfp) \
489 ret = __alloc_bucket_spinlocks(locks, lock_mask, max_size, \
490 cpu_mult, gfp, #locks, &key); \
494 void free_bucket_spinlocks(spinlock_t *locks);
/kernel/linux/linux-6.6/include/linux/
H A Dblockgroup_lock.h24 struct bgl_lock locks[NR_BG_LOCKS]; member
32 spin_lock_init(&bgl->locks[i].lock); in bgl_lock_init()
38 return &bgl->locks[block_group & (NR_BG_LOCKS-1)].lock; in bgl_lock_ptr()
H A Dspinlock.h468 * Decrements @atomic by 1. If the result is 0, returns true and locks
489 int __alloc_bucket_spinlocks(spinlock_t **locks, unsigned int *lock_mask,
494 #define alloc_bucket_spinlocks(locks, lock_mask, max_size, cpu_mult, gfp) \
499 ret = __alloc_bucket_spinlocks(locks, lock_mask, max_size, \
500 cpu_mult, gfp, #locks, &key); \
504 void free_bucket_spinlocks(spinlock_t *locks);
/kernel/linux/linux-5.10/fs/btrfs/
H A Dlocking.c20 * The locks use a custom scheme that allows to do more operations than are
35 * The extent buffer locks (also called tree locks) manage access to eb data
64 * tree. This can happen when btrfs_cow_block locks the tree and needs to
489 * Set all locked nodes in the path to blocking locks. This should be done
497 if (!p->nodes[i] || !p->locks[i]) in btrfs_set_path_blocking()
504 if (p->locks[i] == BTRFS_READ_LOCK) { in btrfs_set_path_blocking()
506 p->locks[i] = BTRFS_READ_LOCK_BLOCKING; in btrfs_set_path_blocking()
507 } else if (p->locks[i] == BTRFS_WRITE_LOCK) { in btrfs_set_path_blocking()
509 p->locks[ in btrfs_set_path_blocking()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/
H A Dps.c79 spin_lock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
81 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
99 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
143 spin_lock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
145 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
271 mutex_lock(&rtlpriv->locks.ips_mutex); in rtl_ips_nic_on()
288 mutex_unlock(&rtlpriv->locks.ips_mutex); in rtl_ips_nic_on()
417 mutex_lock(&rtlpriv->locks.lps_mutex); in rtl_lps_enter_core()
427 mutex_unlock(&rtlpriv->locks.lps_mutex); in rtl_lps_enter_core()
437 mutex_lock(&rtlpriv->locks in rtl_lps_leave_core()
[all...]
H A Dcore.c139 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_start()
143 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_start()
167 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_stop()
182 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_stop()
228 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_add_interface()
315 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_add_interface()
325 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_remove_interface()
350 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_remove_interface()
591 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_config()
792 mutex_unlock(&rtlpriv->locks in rtl_op_config()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/
H A Dps.c79 spin_lock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
81 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
99 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
143 spin_lock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
145 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
271 mutex_lock(&rtlpriv->locks.ips_mutex); in rtl_ips_nic_on()
288 mutex_unlock(&rtlpriv->locks.ips_mutex); in rtl_ips_nic_on()
417 mutex_lock(&rtlpriv->locks.lps_mutex); in rtl_lps_enter_core()
427 mutex_unlock(&rtlpriv->locks.lps_mutex); in rtl_lps_enter_core()
437 mutex_lock(&rtlpriv->locks in rtl_lps_leave_core()
[all...]
H A Dcore.c139 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_start()
143 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_start()
167 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_stop()
182 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_stop()
228 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_add_interface()
315 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_add_interface()
325 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_remove_interface()
350 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_remove_interface()
591 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_config()
792 mutex_unlock(&rtlpriv->locks in rtl_op_config()
[all...]
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dmodule.c253 const Elf_Shdr *s, *text = NULL, *alt = NULL, *locks = NULL, in module_finalize() local
264 locks = s; in module_finalize()
290 if (locks && text) { in module_finalize()
291 void *lseg = (void *)locks->sh_addr; in module_finalize()
294 lseg, lseg + locks->sh_size, in module_finalize()
/kernel/linux/linux-6.6/drivers/pci/
H A Dvgaarb.c47 unsigned int locks; /* what it locks */ member
81 * In theory, we could hand out locks on IO and MEM separately to in vga_str_to_iostate()
273 if (conflict->locks & lwants) in __vga_tryget()
344 vgadev->locks |= (rsrc & VGA_RSRC_LEGACY_MASK); in __vga_tryget()
360 unsigned int old_locks = vgadev->locks; in __vga_put()
388 vgadev->locks &= ~VGA_RSRC_LEGACY_IO; in __vga_put()
390 vgadev->locks &= ~VGA_RSRC_LEGACY_MEM; in __vga_put()
396 if (old_locks != vgadev->locks) in __vga_put()
535 * locks ar
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_helper_restricted.c26 } locks SEC(".maps");
52 lock = bpf_map_lookup_elem(&locks, &key); in spin_lock_work()
/kernel/linux/linux-6.6/net/unix/
H A Ddiag.c214 spin_lock(&net->unx.table.locks[slot]); in unix_diag_dump()
224 spin_unlock(&net->unx.table.locks[slot]); in unix_diag_dump()
230 spin_unlock(&net->unx.table.locks[slot]); in unix_diag_dump()
245 spin_lock(&net->unx.table.locks[i]); in unix_lookup_by_ino()
249 spin_unlock(&net->unx.table.locks[i]); in unix_lookup_by_ino()
253 spin_unlock(&net->unx.table.locks[i]); in unix_lookup_by_ino()
/kernel/linux/linux-5.10/tools/lib/lockdep/
H A Dpreload.c22 struct lockdep_map dep_map; /* Since all locks are dynamic, we need
29 * locks will point to a generic locking function instead of the
38 /* This is where we store our locks */
39 static struct rb_root locks = RB_ROOT; variable
103 struct rb_node **node = &locks.rb_node; in __get_lock_node()
139 * Some programs attempt to initialize and use locks in their in alloc_lock()
141 * result in locks being initialized and locked. in alloc_lock()
206 rb_insert_color(&l->node, &locks); in __get_lock()
215 rb_erase(&lock->node, &locks); in __del_lock()
227 * code in init sections that tries to touch locks befor in pthread_mutex_init()
[all...]
/kernel/linux/linux-5.10/fs/cifs/
H A Dsmb2file.c148 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in smb2_unlock_range()
186 * all locks from the tmp list to the head of in smb2_unlock_range()
190 &cfile->llist->locks); in smb2_unlock_range()
208 cifs_move_llist(&tmp_llist, &cfile->llist->locks); in smb2_unlock_range()
230 list_for_each_entry(li, &fdlocks->locks, llist) { in smb2_push_mand_fdlocks()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dlocking.c219 * This releases any locks held in the path starting at level and going all the
237 if (!path->locks[i]) in btrfs_unlock_up_safe()
239 btrfs_tree_unlock_rw(path->nodes[i], path->locks[i]); in btrfs_unlock_up_safe()
240 path->locks[i] = 0; in btrfs_unlock_up_safe()
316 * DREW locks
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dhw.c37 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl8723be_return_beacon_queue_skb()
49 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl8723be_return_beacon_queue_skb()
119 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
122 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
127 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
129 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
132 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
158 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
160 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
165 spin_lock_bh(&rtlpriv->locks in _rtl8723be_set_fw_clock_on()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
H A Dhw.c75 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl88ee_return_beacon_queue_skb()
87 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl88ee_return_beacon_queue_skb()
114 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
117 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
122 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
124 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
127 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
152 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
154 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
161 spin_lock_bh(&rtlpriv->locks in _rtl88ee_set_fw_clock_on()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
H A Dhw.c75 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl88ee_return_beacon_queue_skb()
87 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl88ee_return_beacon_queue_skb()
114 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
117 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
122 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
124 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
127 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
152 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
154 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
161 spin_lock_bh(&rtlpriv->locks in _rtl88ee_set_fw_clock_on()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dhw.c37 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl8723be_return_beacon_queue_skb()
49 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl8723be_return_beacon_queue_skb()
119 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
122 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
127 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
129 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
132 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
158 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
160 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
165 spin_lock_bh(&rtlpriv->locks in _rtl8723be_set_fw_clock_on()
[all...]

Completed in 23 milliseconds

1234567