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

1234

/linux-master/include/linux/
H A Dblockgroup_lock.h24 struct bgl_lock locks[NR_BG_LOCKS]; member in struct:blockgroup_lock
32 spin_lock_init(&bgl->locks[i].lock);
38 return &bgl->locks[block_group & (NR_BG_LOCKS-1)].lock;
H A Dspinlock.h499 * Decrements @atomic by 1. If the result is 0, returns true and locks
520 int __alloc_bucket_spinlocks(spinlock_t **locks, unsigned int *lock_mask,
525 #define alloc_bucket_spinlocks(locks, lock_mask, max_size, cpu_mult, gfp) \
530 ret = __alloc_bucket_spinlocks(locks, lock_mask, max_size, \
531 cpu_mult, gfp, #locks, &key); \
535 void free_bucket_spinlocks(spinlock_t *locks);
/linux-master/include/net/netns/
H A Dunix.h11 spinlock_t *locks; member in struct:unix_table
/linux-master/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, argument
43 *locks = tlocks;
50 void free_bucket_spinlocks(spinlock_t *locks) argument
52 kvfree(locks);
/linux-master/kernel/locking/
H A Dtest-ww_mutex.c384 struct ww_mutex *locks; member in struct:stress
435 struct ww_mutex *locks = stress->locks; local
454 err = ww_mutex_lock(&locks[order[n]], &ctx);
462 ww_mutex_unlock(&locks[order[contended]]);
465 ww_mutex_unlock(&locks[order[n]]);
469 ww_mutex_lock_slow(&locks[order[contended]], &ctx);
493 LIST_HEAD(locks);
508 ll->lock = &stress->locks[order[n]];
509 list_add(&ll->link, &locks);
576 struct ww_mutex *locks; local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_helper_restricted.c26 } locks SEC(".maps");
52 lock = bpf_map_lookup_elem(&locks, &key);
/linux-master/fs/ceph/
H A DMakefile8 ceph-y := super.o inode.o dir.o file.o locks.o addr.o ioctl.o \
/linux-master/net/unix/
H A Ddiag.c214 spin_lock(&net->unx.table.locks[slot]);
224 spin_unlock(&net->unx.table.locks[slot]);
230 spin_unlock(&net->unx.table.locks[slot]);
245 spin_lock(&net->unx.table.locks[i]);
249 spin_unlock(&net->unx.table.locks[i]);
253 spin_unlock(&net->unx.table.locks[i]);
/linux-master/drivers/net/wireless/realtek/rtlwifi/
H A Dps.c79 spin_lock(&rtlpriv->locks.rf_ps_lock);
81 spin_unlock(&rtlpriv->locks.rf_ps_lock);
99 spin_unlock(&rtlpriv->locks.rf_ps_lock);
143 spin_lock(&rtlpriv->locks.rf_ps_lock);
145 spin_unlock(&rtlpriv->locks.rf_ps_lock);
271 mutex_lock(&rtlpriv->locks.ips_mutex);
288 mutex_unlock(&rtlpriv->locks.ips_mutex);
417 mutex_lock(&rtlpriv->locks.lps_mutex);
427 mutex_unlock(&rtlpriv->locks.lps_mutex);
437 mutex_lock(&rtlpriv->locks
[all...]
H A Dcore.c139 mutex_lock(&rtlpriv->locks.conf_mutex);
143 mutex_unlock(&rtlpriv->locks.conf_mutex);
167 mutex_lock(&rtlpriv->locks.conf_mutex);
182 mutex_unlock(&rtlpriv->locks.conf_mutex);
228 mutex_lock(&rtlpriv->locks.conf_mutex);
315 mutex_unlock(&rtlpriv->locks.conf_mutex);
325 mutex_lock(&rtlpriv->locks.conf_mutex);
350 mutex_unlock(&rtlpriv->locks.conf_mutex);
591 mutex_lock(&rtlpriv->locks.conf_mutex);
785 mutex_unlock(&rtlpriv->locks
[all...]
H A Dpci.c406 spin_lock_bh(&rtlpriv->locks.waitq_lock);
426 spin_unlock_bh(&rtlpriv->locks.waitq_lock);
456 spin_lock(&rtlpriv->locks.waitq_lock);
462 spin_unlock(&rtlpriv->locks.waitq_lock);
465 spin_unlock(&rtlpriv->locks.waitq_lock);
869 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags);
1013 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags);
1464 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags);
1497 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags);
1534 spin_lock_bh(&rtlpriv->locks
[all...]
/linux-master/fs/ocfs2/
H A DMakefile27 locks.o \
/linux-master/arch/x86/kernel/
H A Dmodule.c278 const Elf_Shdr *s, *alt = NULL, *locks = NULL, local
288 locks = s;
353 if (locks) {
354 void *lseg = (void *)locks->sh_addr;
358 lseg, lseg + locks->sh_size,
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Dphy.h89 spin_lock_irqsave(&rtlpriv->locks.cck_and_rw_pagea_lock, *flag);
98 spin_unlock_irqrestore(&rtlpriv->locks.cck_and_rw_pagea_lock,
H A Dfw.c295 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag);
302 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock,
313 spin_lock_irqsave(&rtlpriv->locks.h2c_lock,
316 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag);
319 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag);
437 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag);
439 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag);
468 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags);
474 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags);
/linux-master/scripts/
H A Dsetlocalversion117 # First, with git-status, but --no-optional-locks is only supported in
123 git --no-optional-locks status -uno --porcelain 2>/dev/null ||
/linux-master/fs/btrfs/
H A Dlocking.c230 * This releases any locks held in the path starting at level and going all the
248 if (!path->locks[i])
250 btrfs_tree_unlock_rw(path->nodes[i], path->locks[i]);
251 path->locks[i] = 0;
327 * DREW locks
/linux-master/drivers/pci/
H A Dvgaarb.c47 unsigned int locks; /* what it locks */ member in struct:vga_device
81 * In theory, we could hand out locks on IO and MEM separately to
273 if (conflict->locks & lwants)
344 vgadev->locks |= (rsrc & VGA_RSRC_LEGACY_MASK);
360 unsigned int old_locks = vgadev->locks;
388 vgadev->locks &= ~VGA_RSRC_LEGACY_IO;
390 vgadev->locks &= ~VGA_RSRC_LEGACY_MEM;
396 if (old_locks != vgadev->locks)
535 * locks ar
[all...]
/linux-master/net/ipv6/ila/
H A Dila.h101 spinlock_t *locks; /* Bucket locks for entry manipulation */ member in struct:ila_net::__anon1548
/linux-master/fs/smb/client/
H A Dsmb2file.c221 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) {
259 * all locks from the tmp list to the head of
263 &cfile->llist->locks);
281 cifs_move_llist(&tmp_llist, &cfile->llist->locks);
303 list_for_each_entry(li, &fdlocks->locks, llist) {
/linux-master/tools/perf/util/
H A Dmem-events.h63 u32 locks; /* count of 'lock' transactions */ member in struct:c2c_stats
/linux-master/arch/powerpc/lib/
H A DMakefile60 obj64-$(CONFIG_SMP) += locks.o
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dhw.c37 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags);
49 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags);
119 spin_lock_bh(&rtlpriv->locks.fw_ps_lock);
122 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock);
127 spin_lock_bh(&rtlpriv->locks.fw_ps_lock);
129 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock);
132 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock);
158 spin_lock_bh(&rtlpriv->locks.fw_ps_lock);
160 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock);
165 spin_lock_bh(&rtlpriv->locks
[all...]
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
H A Dhw.c75 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags);
87 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags);
114 spin_lock_bh(&rtlpriv->locks.fw_ps_lock);
117 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock);
122 spin_lock_bh(&rtlpriv->locks.fw_ps_lock);
124 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock);
127 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock);
152 spin_lock_bh(&rtlpriv->locks.fw_ps_lock);
154 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock);
161 spin_lock_bh(&rtlpriv->locks
[all...]
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
H A Dfw_common.c204 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag);
210 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock,
220 spin_lock_irqsave(&rtlpriv->locks.h2c_lock,
223 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag);
226 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag);
377 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag);
379 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag);

Completed in 471 milliseconds

1234