Home
last modified time | relevance | path

Searched refs:locks (Results 1 – 185 of 185) sorted by relevance

/linux-4.4.14/Documentation/filesystems/
Ddirectory-locking2 kinds of locks - per-inode (->i_mutex) and per-filesystem
6 always acquire the locks in order by increasing address. We'll call
11 1) read access. Locking rules: caller locks directory we are accessing.
15 3) object removal. Locking rules: caller locks parent, finds victim,
16 locks victim and calls the method.
18 4) rename() that is _not_ cross-directory. Locking rules: caller locks
62 change until rename acquires all locks. (Proof: other cross-directory
64 the order until we had acquired all locks).
66 (3) locks on non-directory objects are acquired only after locks on
69 non-directory object, except renames, which take locks on source and
[all …]
Dmandatory-locking.txt32 processes. File locks are applied using the flock() and fcntl() system calls
34 normally a process' responsibility to check for locks on a file it wishes to
54 interface for applying locks just as if they were normal, advisory locks.
90 another process has outstanding mandatory locks. This is in direct
96 HP-UX even disallows open() with O_TRUNC for a file with advisory locks, not
97 just mandatory locks. That would appear to contravene POSIX.1.
100 prevent mandatory locks from being applied to an mmap()'ed file, but HP-UX
101 also disallows advisory locks for such a file. SVID actually specifies the
105 only from mandatory locks - that is what is currently implemented.
108 mandatory locks, so reads and writes to locked files always block when they
[all …]
Ddlmfs.txt57 destroyed and locks within them accessed.
71 Two levels of locks are supported - Shared Read, and Exclusive.
124 Only or higher level locks on the resource.
Dgfs2-glocks.txt6 has two main (internal) locks:
18 held locks, then they will be contiguous entries at the head
21 used only during recovery, and even then only for journal locks.
70 prevent a situation where locks are being bounced around the cluster
117 In general we prefer to lock local locks prior to cluster locks.
Dpath-lookup.txt28 because of the locks and atomic operations required for every dentry element
35 (including dcache look-up) completely "store-free" (so, no locks, atomics, or
182 As explained above, we would like to do path walking without taking locks or
207 locks or refcounts on dentry elements.
215 it. ref-walk is simple and obvious, and may sleep, take locks, etc while path
281 live locks). It is costly to have a full restart, but fortunately they are
329 stack (which is essentially CPU-local), and we also have to take locks and
DLocking217 write_begin: locks the page yes
351 [1]: ->fl_release_private for flock or POSIX locks is currently allowed
377 detection, since the code has to chase down the owners of locks that may
380 fact that these locks are held ensures that the file_locks do not
472 need to acquire and release the appropriate locks in your ->llseek().
509 FS recursion Held locks when called
Dlocks.txt42 is to make flock() and fcntl() locks oblivious to each other. Both can
D00-INDEX90 locks.txt
Dexofs.txt174 - Handled by VFS locks:
Dporting345 dcache_lock is gone, replaced by fine grained locks. See fs/dcache.c
346 for details of what locks to replace dcache_lock with in order to protect
Dvfs.txt235 All methods are called without any locks being held, unless otherwise
370 Again, all methods are called without any locks being held, unless
839 Again, all methods are called without any locks being held, unless
989 Must be constant and idempotent, and should not take locks if
999 "rcu-walk", ie. without any locks or references on things.
Doverlayfs.txt187 metadata. Similarly any file locks obtained before copy_up will not
Dseq_file.txt172 other locks while the iterator is active.
Dhpfs.txt192 locks up when repairing filesystem.
Dproc.txt593 locks Kernel locks
1730 All locks associated with a file descriptor are shown in its fdinfo too.
Dxfs-delayed-logging-design.txt266 committed item tracking needs it's own locks, lists and state fields in the log
/linux-4.4.14/include/linux/
Dblockgroup_lock.h41 struct bgl_lock locks[NR_BG_LOCKS]; member
49 spin_lock_init(&bgl->locks[i].lock); in bgl_lock_init()
59 return &bgl->locks[(block_group) & (NR_BG_LOCKS-1)].lock; in bgl_lock_ptr()
Dn_r3964.h122 unsigned int locks; /* only used in rx_buffer */ member
Drhashtable.h73 spinlock_t *locks; member
321 return &tbl->locks[hash & tbl->locks_mask]; in rht_bucket_lock()
Disdn.h413 int locks; /* Number of locks for this driver */ member
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
Dps.c97 spin_lock(&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()
117 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
166 spin_lock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
168 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl_ps_set_rf_state()
297 spin_lock(&rtlpriv->locks.ips_lock); in rtl_ips_nic_on()
314 spin_unlock(&rtlpriv->locks.ips_lock); in rtl_ips_nic_on()
444 spin_lock_irqsave(&rtlpriv->locks.lps_lock, flag); in rtl_lps_enter()
456 spin_unlock_irqrestore(&rtlpriv->locks.lps_lock, flag); in rtl_lps_enter()
468 spin_lock_irqsave(&rtlpriv->locks.lps_lock, flag); in rtl_lps_leave()
[all …]
Dcore.c165 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_start()
169 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_start()
193 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_stop()
208 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_stop()
252 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_add_interface()
330 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_add_interface()
340 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_remove_interface()
365 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_remove_interface()
605 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_config()
800 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_config()
[all …]
Dpci.c485 spin_lock_bh(&rtlpriv->locks.waitq_lock); in _rtl_update_earlymode_info()
505 spin_unlock_bh(&rtlpriv->locks.waitq_lock); in _rtl_update_earlymode_info()
538 spin_lock_bh(&rtlpriv->locks.waitq_lock); in _rtl_pci_tx_chk_waitq()
544 spin_unlock_bh(&rtlpriv->locks.waitq_lock); in _rtl_pci_tx_chk_waitq()
547 spin_unlock_bh(&rtlpriv->locks.waitq_lock); in _rtl_pci_tx_chk_waitq()
963 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock , flags); in _rtl_pci_interrupt()
1099 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl_pci_interrupt()
1553 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in rtl_pci_reset_trx_ring()
1582 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in rtl_pci_reset_trx_ring()
1619 spin_lock_bh(&rtlpriv->locks.waitq_lock); in rtl_pci_tx_chk_waitq_insert()
[all …]
Dbase.c552 mutex_init(&rtlpriv->locks.conf_mutex); in rtl_init_core()
553 spin_lock_init(&rtlpriv->locks.ips_lock); in rtl_init_core()
554 spin_lock_init(&rtlpriv->locks.irq_th_lock); in rtl_init_core()
555 spin_lock_init(&rtlpriv->locks.h2c_lock); in rtl_init_core()
556 spin_lock_init(&rtlpriv->locks.rf_ps_lock); in rtl_init_core()
557 spin_lock_init(&rtlpriv->locks.rf_lock); in rtl_init_core()
558 spin_lock_init(&rtlpriv->locks.waitq_lock); in rtl_init_core()
559 spin_lock_init(&rtlpriv->locks.entry_list_lock); in rtl_init_core()
560 spin_lock_init(&rtlpriv->locks.cck_and_rw_pagea_lock); in rtl_init_core()
561 spin_lock_init(&rtlpriv->locks.check_sendpkt_lock); in rtl_init_core()
[all …]
Dusb.c156 spin_lock_irqsave(&rtlpriv->locks.usb_lock, flags); in _usb_read_sync()
160 spin_unlock_irqrestore(&rtlpriv->locks.usb_lock, flags); in _usb_read_sync()
1082 spin_lock_init(&rtlpriv->locks.usb_lock); in rtl_usb_probe()
Dwifi.h2570 struct rtl_locks locks; member
/linux-4.4.14/arch/x86/kernel/
Dmodule.c214 const Elf_Shdr *s, *text = NULL, *alt = NULL, *locks = NULL, in module_finalize() local
224 locks = s; in module_finalize()
234 if (locks && text) { in module_finalize()
235 void *lseg = (void *)locks->sh_addr; in module_finalize()
238 lseg, lseg + locks->sh_size, in module_finalize()
Dalternative.c470 const s32 *locks; member
485 void *locks, void *locks_end, in alternatives_smp_module_add() argument
505 smp->locks = locks; in alternatives_smp_module_add()
510 smp->locks, smp->locks_end, in alternatives_smp_module_add()
515 alternatives_smp_unlock(locks, locks_end, text, text_end); in alternatives_smp_module_add()
550 alternatives_smp_lock(mod->locks, mod->locks_end, in alternatives_enable_smp()
568 for (poff = mod->locks; poff < mod->locks_end; poff++) { in alternatives_text_reserved()
/linux-4.4.14/Documentation/
Drobust-futex-ABI.txt7 futexes, for kernel assist of cleanup of held locks on task exit.
10 linked list in user space, where it can be updated efficiently as locks
17 2) internal kernel code at exit, to handle any listed locks held
30 to do so, then improperly listed locks will not be cleaned up on exit,
32 waiting on the same locks.
86 specified 'offset'. Should a thread die while holding any such locks,
87 the kernel will walk this list, mark any such locks with a bit
104 robust_futexes used by that thread. The thread should link those locks
106 other links between the locks, such as the reverse side of a double
109 By keeping its locks linked this way, on a list starting with a 'head'
[all …]
Dvgaarbiter.txt50 close : close user instance. Release locks made by the user
54 "<card_ID>,decodes=<io_state>,owns=<io_state>,locks=<io_state> (ic,mc)"
60 "locks" indicates what is locked by this card. If the card is
68 lock <io_state> : acquires locks on target ("none" is an invalid io_state)
69 trylock <io_state> : non-blocking acquire locks on target (returns EBUSY if
71 unlock <io_state> : release locks on target
72 unlock all : release all locks on target held by this user (not
84 Note about locks:
86 The driver keeps track of which user has which locks on which card. It
90 Currently, a max of 16 cards can have locks simultaneously issued from
Dpi-futex.txt31 Firstly, sharing locks between multiple tasks is a common programming
45 short-held locks: for example, a highprio audio playback thread is
50 So once we accept that synchronization objects (locks) are an
52 apps have a very fair expectation of being able to use locks, we've got
57 inheritance only apply to kernel-space locks. But user-space locks are
63 locks (such as futex-based pthread mutexes) is priority inheritance:
79 normal futex-based locks: a 0 value means unlocked, and a value==TID
Drobust-futexes.txt7 what futexes are: normal futexes are special types of locks that in the
41 (and in most cases there is none, futexes being fast lightweight locks)
86 robust locks that userspace is holding (maintained by glibc) - which
90 locks to be cleaned up?
97 walks the list [not trusting it], and marks all locks that are owned by
129 - no registration of individual locks is needed: robust mutexes dont
148 million (!) held locks, using the new method [on a 2GHz CPU]:
158 (1 million held locks are unheard of - we expect at most a handful of
159 locks to be held at a time. Nevertheless it's nice to know that this
Dhwspinlock.txt244 numerous locks). Should be called from a process context (this function
251 locks).
259 of hardware locks. It is registered by the underlying hwspinlock
267 * @num_locks: number of locks in this device
293 When registering a bank of locks, the hwspinlock driver only needs to
294 set the priv members of the locks. The rest of the members are set and
Dpreempt-locking.txt82 any locks or interrupts are disabled, since preemption is implicitly disabled
134 are also protected by preemption locks and so may use the versions which do
Dsysrq.txt74 'd' - Shows all locks that are held.
163 umount(u), then reboot(b) when my system locks. It's saved me many a fsck.
Dvolatile-considered-harmful.txt51 by locks, but one also does not want the compiler "optimizing" register
Dmd-cluster.txt31 There are two locks for managing the device:
Diostats.txt94 To avoid introducing performance bottlenecks, no locks are held while
Dclk.txt242 The common clock framework uses two global locks, the prepare lock and the
Dmemory-barriers.txt279 (*) Even in cases where bitfields are protected by locks, all fields
281 in a given bitfield are protected by different locks, the compiler's
1789 (*) spin locks
1790 (*) R/W spin locks
1832 locks do not imply any sort of barrier.
2116 through *H occur in, other than the constraints imposed by the separate locks
2222 locks. Locks, however, are quite expensive, and so it may be preferable to
2429 so for _all_ general drivers locks should be used and mmiowb() must be
2485 likely, then interrupt-disabling locks should be used to guarantee ordering.
Dstable_api_nonsense.txt63 - Some functions may not be implemented at all, (i.e. some locks
Dintel_txt.txt71 protection, memory configuration/alias checks and locks, crash
Datomic_ops.txt174 locks, or atomic operations if variable a can change at runtime!
Dkernel-parameters.txt2315 [NFSv4] Attempt to recover locks that were lost due
2319 after the locks are lost.
2321 attempting to recover these locks, then set this
2324 not to attempt recovery of lost locks.
3529 and the less frequently locks need to be acquired.
DDMA-API.txt120 in_interrupt, not holding SMP locks), pass GFP_KERNEL to allow
Dkernel-docs.txt356 Keywords: locks, locking, spinlock, semaphore, atomic, race
DDMA-API-HOWTO.txt452 holding SMP locks), GFP_ATOMIC otherwise. Like dma_alloc_coherent(),
Ddevices.txt3317 device. In order to avoid deadlocks, it is recommended that the locks
/linux-4.4.14/Documentation/locking/
Dlockdep-design.txt10 The basic object the validator operates upon is a 'class' of locks.
12 A class of locks is a group of locks that are logically the same with
13 respect to locking rules, even if the locks may have multiple (possibly
84 Furthermore, two locks may not be taken in different order:
92 validator will still track all dependencies between locks.)
108 any rule violation between the new lock and any of the held locks.
126 could interrupt _any_ of the irq-unsafe or hardirq-unsafe locks, which
138 locks in this fixed order on each of the objects.
217 sequence of locks taken after each other) only once. A simple stack of
218 held locks is maintained, and a lightweight 64-bit hash value is
[all …]
Dmutex-design.txt12 or similar theoretical text books. Mutexes are sleeping locks which
24 and implemented in kernel/locking/mutex.c. These locks use a three
80 While formally kernel mutexes are sleepable locks, it is path (ii) that
97 - Memory areas where held locks reside must not be freed.
109 list of all locks held in the system, printout of them.
111 - Detects self-recursing locks and prints out all relevant info.
113 locks and tasks (and only those tasks).
147 most locks in the kernel. E.g: on x86-64 it is 40 bytes, almost twice
Dspinlocks.txt1 Lesson 1: Spin locks
48 to mostly read from the shared variables, the reader-writer locks
53 NOTE! reader-writer locks require more atomic memory operations than
133 Note that you can be clever with read-write locks and interrupts. For
135 you can use a non-irq version of read locks everywhere - because they
139 For an example of being clever with rw-locks, see the "waitqueue_lock"
142 wake up. So read-locks are safe (which is good: they are very common
143 indeed), while write-locks need to protect themselves against interrupts.
Dww-mutex-design.txt37 needs to back off and drop all the locks it is currently holding, i.e. the
47 trying to acquire locks doesn't grab a new reservation id, but keeps the one it
60 after having dropped all already acquired locks. These functions have the
65 contending lock (after having dropped all other already acquired locks) will
93 Three different ways to acquire locks within the same w/w class. Common
211 and edges can only be changed when holding the locks of all involved nodes. w/w
309 normal mutex locks, which are far more common. As such there is only a small
312 In general, not much contention is expected. The locks are typically used to
D00-INDEX6 - info on collecting statistics on locks (and contention).
Dlglock.txt1 lglock - local/global locks for mostly local access patterns
28 - by expensive access to all CPUs locks - effectively
50 The lg_global_lock/unlock locks all underlying spinlocks of all
78 locks are not explicitly initialized - see lockdep-design.txt)
Dlockstat.txt6 As the name suggests, it provides statistics on locks.
136 Dealing with nested locks, subclasses may appear:
167 View the top contending locks:
Dlocktorture.txt34 locks. If the user did not specify nwriters_stress, then
38 be tortured. This module can torture the following locks,
134 The following script may be used to torture locks:
Drt-mutex.txt28 well-designed applications to use userspace locks in critical parts of
72 takes/releases locks that have lower-prio waiters. Without this
Drt-mutex-design.txt78 PI chain - The PI chain is an ordered series of locks and processes that cause
80 blocked on one of its locks. This is described in more detail
83 mutex - In this document, to differentiate from locks that implement
84 PI and spin locks that are used in the PI code, from now on
85 the PI locks will be called a mutex.
88 referring to spin locks that are used to protect parts of the PI
89 algorithm. These locks disable preemption for UP (when
304 PI chain, and have the code holding spin locks while looking at a large
306 a maximum lock depth, but also only holds at most two different locks at a
408 at most two locks at a time, and is very efficient.
[all …]
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dfw.c71 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl8723e_fill_h2c_command()
78 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, in _rtl8723e_fill_h2c_command()
88 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, in _rtl8723e_fill_h2c_command()
91 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl8723e_fill_h2c_command()
94 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl8723e_fill_h2c_command()
248 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl8723e_fill_h2c_command()
250 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl8723e_fill_h2c_command()
Dhw.c2164 spin_lock(&rtlpriv->locks.rf_ps_lock); in rtl8723e_gpio_radio_on_off_checking()
2166 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl8723e_gpio_radio_on_off_checking()
2170 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl8723e_gpio_radio_on_off_checking()
2202 spin_lock(&rtlpriv->locks.rf_ps_lock); in rtl8723e_gpio_radio_on_off_checking()
2204 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl8723e_gpio_radio_on_off_checking()
2209 spin_lock(&rtlpriv->locks.rf_ps_lock); in rtl8723e_gpio_radio_on_off_checking()
2211 spin_unlock(&rtlpriv->locks.rf_ps_lock); in rtl8723e_gpio_radio_on_off_checking()
Dphy.c68 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl8723e_phy_query_rf_reg()
78 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl8723e_phy_query_rf_reg()
100 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl8723e_phy_set_rf_reg()
124 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl8723e_phy_set_rf_reg()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dfw.c69 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl8723be_fill_h2c_command()
76 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, in _rtl8723be_fill_h2c_command()
86 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, in _rtl8723be_fill_h2c_command()
89 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl8723be_fill_h2c_command()
92 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl8723be_fill_h2c_command()
213 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl8723be_fill_h2c_command()
215 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl8723be_fill_h2c_command()
Dhw.c56 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl8723be_return_beacon_queue_skb()
68 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl8723be_return_beacon_queue_skb()
136 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
139 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
144 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
146 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
149 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
175 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
177 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
182 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8723be_set_fw_clock_on()
[all …]
Dphy.c63 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl8723be_phy_query_rf_reg()
69 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl8723be_phy_query_rf_reg()
89 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl8723be_phy_set_rf_reg()
101 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl8723be_phy_set_rf_reg()
2349 spin_lock(&rtlpriv->locks.iqk_lock); in rtl8723be_phy_iq_calibrate()
2351 spin_unlock(&rtlpriv->locks.iqk_lock); in rtl8723be_phy_iq_calibrate()
2464 spin_lock(&rtlpriv->locks.iqk_lock); in rtl8723be_phy_iq_calibrate()
2466 spin_unlock(&rtlpriv->locks.iqk_lock); in rtl8723be_phy_iq_calibrate()
Ddm.c328 spin_lock_bh(&rtlpriv->locks.entry_list_lock); in rtl8723be_dm_check_rssi_monitor()
339 spin_unlock_bh(&rtlpriv->locks.entry_list_lock); in rtl8723be_dm_check_rssi_monitor()
1255 spin_lock_bh(&rtlpriv->locks.entry_list_lock); in rtl8723be_dm_common_info_self_update()
1259 spin_unlock_bh(&rtlpriv->locks.entry_list_lock); in rtl8723be_dm_common_info_self_update()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dfw.c383 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl92d_fill_h2c_command()
390 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, in _rtl92d_fill_h2c_command()
401 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, in _rtl92d_fill_h2c_command()
404 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl92d_fill_h2c_command()
407 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl92d_fill_h2c_command()
526 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl92d_fill_h2c_command()
528 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl92d_fill_h2c_command()
557 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl92d_cmd_send_packet()
563 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl92d_cmd_send_packet()
Dphy.h115 spin_lock_irqsave(&rtlpriv->locks.cck_and_rw_pagea_lock, *flag); in rtl92d_acquire_cckandrw_pagea_ctl()
124 spin_unlock_irqrestore(&rtlpriv->locks.cck_and_rw_pagea_lock, in rtl92d_release_cckandrw_pagea_ctl()
Dhw.c2123 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92de_gpio_radio_on_off_checking()
2125 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92de_gpio_radio_on_off_checking()
2129 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92de_gpio_radio_on_off_checking()
2149 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92de_gpio_radio_on_off_checking()
2151 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92de_gpio_radio_on_off_checking()
2155 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92de_gpio_radio_on_off_checking()
2157 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92de_gpio_radio_on_off_checking()
Dphy.c341 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl92d_phy_query_rf_reg()
345 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl92d_phy_query_rf_reg()
365 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl92d_phy_set_rf_reg()
376 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl92d_phy_set_rf_reg()
/linux-4.4.14/lib/
Drhashtable.c83 tbl->locks = vmalloc(size * sizeof(spinlock_t)); in alloc_bucket_locks()
86 tbl->locks = kmalloc_array(size, sizeof(spinlock_t), in alloc_bucket_locks()
88 if (!tbl->locks) in alloc_bucket_locks()
91 spin_lock_init(&tbl->locks[i]); in alloc_bucket_locks()
101 kvfree(tbl->locks); in bucket_table_free()
221 spin_lock_bh(old_tbl->locks); in rhashtable_rehash_attach()
225 spin_unlock_bh(old_tbl->locks); in rhashtable_rehash_attach()
237 spin_unlock_bh(old_tbl->locks); in rhashtable_rehash_attach()
DKconfig.debug773 enabled then all held locks will also be reported. This
957 exception of simply not acquiring all the required locks.
964 bool "Lock debugging: detect incorrect freeing of live locks"
/linux-4.4.14/Documentation/DocBook/
D.filesystems.xml.cmd2 …he.c include/linux/dcache.h fs/inode.c fs/bad_inode.c fs/super.c fs/locks.c fs/locks.c fs/mpage.c …
Dfilesystems.xml.db76 API-locks-mandatory-area
81 API-locks-lock-inode-wait
87 API-locks-mandatory-locked
Drapidio.xml.db82 API-rio-clear-locks
Dgpu.xml.db243 API-drm-modeset-drop-locks
/linux-4.4.14/fs/cifs/
Dsmb2file.c140 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in smb2_unlock_range()
177 &cfile->llist->locks); in smb2_unlock_range()
195 cifs_move_llist(&tmp_llist, &cfile->llist->locks); in smb2_unlock_range()
217 list_for_each_entry(li, &fdlocks->locks, llist) { in smb2_push_mand_fdlocks()
Dfile.c261 if (!list_empty(&cur->locks)) { in cifs_has_mand_locks()
292 INIT_LIST_HEAD(&fdlocks->locks); in cifs_new_fileinfo()
422 list_for_each_entry_safe(li, tmp, &cifs_file->llist->locks, llist) { in cifsFileInfo_put()
847 list_for_each_entry(li, &fdlocks->locks, llist) { in cifs_find_fid_lock_conflict()
931 list_add_tail(&lock->llist, &cfile->llist->locks); in cifs_lock_add()
957 list_add_tail(&lock->llist, &cfile->llist->locks); in cifs_lock_add_if()
1081 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in cifs_push_mandatory_locks()
1409 list_for_each_entry_safe(li, tmp, &cfile->llist->locks, llist) { in cifs_unlock_range()
1450 &cfile->llist->locks); in cifs_unlock_range()
1468 &cfile->llist->locks); in cifs_unlock_range()
Dsmb2pdu.h894 struct smb2_lock_element locks[1]; member
Dcifsglob.h1033 struct list_head locks; /* locks held by fid above */ member
/linux-4.4.14/Documentation/filesystems/nfs/
Dfault_injection.txt17 work over NFS (open files, take locks, ...).
23 process the first n items it finds. So if you want to forget 5 locks, echo '5'
46 Clearing this list will force the client to reclaim its locks (files are
69 forgetall locks.
Dnfsd-admin-interfaces.txt26 nfsd is shut down by a write of 0 to nfsd/threads. All locks and state
/linux-4.4.14/drivers/gpu/vga/
Dvgaarb.c62 unsigned int locks; /* what does it locks */ member
235 if (conflict->locks & lwants) in __vga_tryget()
307 vgadev->locks |= (rsrc & VGA_RSRC_LEGACY_MASK); in __vga_tryget()
322 unsigned int old_locks = vgadev->locks; in __vga_put()
348 vgadev->locks &= ~VGA_RSRC_LEGACY_IO; in __vga_put()
350 vgadev->locks &= ~VGA_RSRC_LEGACY_MEM; in __vga_put()
355 if (old_locks != vgadev->locks) in __vga_put()
603 vga_iostate_to_str(vgadev->locks)); in vga_arbiter_add_pci_device()
656 decodes_unlocked = vgadev->locks & decodes_removed; in vga_update_device_decodes()
890 vga_iostate_to_str(vgadev->locks), in vga_arb_read()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dfw.c281 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl88e_fill_h2c_command()
288 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, in _rtl88e_fill_h2c_command()
298 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, in _rtl88e_fill_h2c_command()
301 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl88e_fill_h2c_command()
304 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl88e_fill_h2c_command()
423 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl88e_fill_h2c_command()
425 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl88e_fill_h2c_command()
Dhw.c95 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl88ee_return_beacon_queue_skb()
107 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl88ee_return_beacon_queue_skb()
132 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
135 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
140 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
142 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
145 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
170 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
172 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
179 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl88ee_set_fw_clock_on()
[all …]
Ddm.c756 spin_lock_bh(&rtlpriv->locks.entry_list_lock); in rtl88e_dm_pwdb_monitor()
765 spin_unlock_bh(&rtlpriv->locks.entry_list_lock); in rtl88e_dm_pwdb_monitor()
1523 spin_lock_bh(&rtlpriv->locks.entry_list_lock); in rtl88e_dm_hw_ant_div()
1560 spin_unlock_bh(&rtlpriv->locks.entry_list_lock); in rtl88e_dm_hw_ant_div()
1609 spin_lock_bh(&rtlpriv->locks.entry_list_lock); in rtl88e_set_next_mac_address_target()
1631 spin_unlock_bh(&rtlpriv->locks.entry_list_lock); in rtl88e_set_next_mac_address_target()
Dphy.c116 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl88e_phy_query_rf_reg()
123 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl88e_phy_query_rf_reg()
143 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl88e_phy_set_rf_reg()
158 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl88e_phy_set_rf_reg()
/linux-4.4.14/tools/lib/lockdep/
Dpreload.c37 static struct rb_root locks = RB_ROOT; variable
101 struct rb_node **node = &locks.rb_node; in __get_lock_node()
206 rb_insert_color(&l->node, &locks); in __get_lock()
215 rb_erase(&lock->node, &locks); in __del_lock()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dfw.c297 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl92ee_fill_h2c_command()
304 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, in _rtl92ee_fill_h2c_command()
314 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, in _rtl92ee_fill_h2c_command()
317 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl92ee_fill_h2c_command()
320 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl92ee_fill_h2c_command()
451 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl92ee_fill_h2c_command()
453 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl92ee_fill_h2c_command()
Dhw.c111 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl92ee_set_fw_clock_on()
114 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl92ee_set_fw_clock_on()
119 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl92ee_set_fw_clock_on()
121 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl92ee_set_fw_clock_on()
124 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl92ee_set_fw_clock_on()
150 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl92ee_set_fw_clock_on()
152 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl92ee_set_fw_clock_on()
158 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl92ee_set_fw_clock_on()
160 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl92ee_set_fw_clock_on()
200 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl92ee_set_fw_clock_off()
[all …]
Ddm.c522 spin_lock_bh(&rtlpriv->locks.entry_list_lock); in rtl92ee_dm_check_rssi_monitor()
537 spin_unlock_bh(&rtlpriv->locks.entry_list_lock); in rtl92ee_dm_check_rssi_monitor()
1092 spin_lock_bh(&rtlpriv->locks.entry_list_lock); in rtl92ee_dm_common_info_self_update()
1096 spin_unlock_bh(&rtlpriv->locks.entry_list_lock); in rtl92ee_dm_common_info_self_update()
Dphy.c115 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl92ee_phy_query_rf_reg()
121 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl92ee_phy_query_rf_reg()
142 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl92ee_phy_set_rf_reg()
152 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl92ee_phy_set_rf_reg()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
Dfw_common.c300 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl92c_fill_h2c_command()
306 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, in _rtl92c_fill_h2c_command()
316 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, in _rtl92c_fill_h2c_command()
319 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl92c_fill_h2c_command()
322 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl92c_fill_h2c_command()
474 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl92c_fill_h2c_command()
476 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl92c_fill_h2c_command()
/linux-4.4.14/fs/btrfs/
Dctree.c60 if (!p->nodes[i] || !p->locks[i]) in btrfs_set_path_blocking()
62 btrfs_set_lock_blocking_rw(p->nodes[i], p->locks[i]); in btrfs_set_path_blocking()
63 if (p->locks[i] == BTRFS_READ_LOCK) in btrfs_set_path_blocking()
64 p->locks[i] = BTRFS_READ_LOCK_BLOCKING; in btrfs_set_path_blocking()
65 else if (p->locks[i] == BTRFS_WRITE_LOCK) in btrfs_set_path_blocking()
66 p->locks[i] = BTRFS_WRITE_LOCK_BLOCKING; in btrfs_set_path_blocking()
93 if (p->nodes[i] && p->locks[i]) { in btrfs_clear_path_blocking()
94 btrfs_clear_lock_blocking_rw(p->nodes[i], p->locks[i]); in btrfs_clear_path_blocking()
95 if (p->locks[i] == BTRFS_WRITE_LOCK_BLOCKING) in btrfs_clear_path_blocking()
96 p->locks[i] = BTRFS_WRITE_LOCK; in btrfs_clear_path_blocking()
[all …]
Dextent-tree.c8217 btrfs_tree_unlock_rw(eb, path->locks[level]); in adjust_slots_upwards()
8218 path->locks[level] = 0; in adjust_slots_upwards()
8290 path->locks[root_level] = 0; /* so release_path doesn't try to unlock */ in account_shared_subtree()
8321 path->locks[level] = BTRFS_READ_LOCK_BLOCKING; in account_shared_subtree()
8382 BUG_ON(!path->locks[level]); in walk_down_proc()
8397 if (path->locks[level] && !wc->keep_locks) { in walk_down_proc()
8398 btrfs_tree_unlock_rw(eb, path->locks[level]); in walk_down_proc()
8399 path->locks[level] = 0; in walk_down_proc()
8406 BUG_ON(!path->locks[level]); in walk_down_proc()
8422 if (path->locks[level] && level > 0) { in walk_down_proc()
[all …]
Dfile.c987 (path->locks[0] == BTRFS_WRITE_LOCK_BLOCKING || in __btrfs_drop_extents()
988 path->locks[0] == BTRFS_WRITE_LOCK) && in __btrfs_drop_extents()
Dbackref.c1444 path->locks[0] = 0;
Dctree.h597 int locks[BTRFS_MAX_LEVEL]; member
Drelocation.c2693 path->locks[upper->level] = 0;
/linux-4.4.14/drivers/staging/lustre/
Dsysfs-fs-lustre301 Controls if client should replay unused locks during recovery
302 If a client tends to have a lot of unused locks in LRU,
304 1 - just locally cancel unused locks (default)
305 0 - replay unused locks.
312 locks are taken) currently allocated in this namespace.
318 Displays number or locks allocated in this namespace.
324 Controls and displays LRU size limit for unused locks for this
327 positive number - number of locks to allow in lock LRU list
333 Display number of locks currently sitting in the LRU list
349 When enabled, tries to preemtively cancel locks that would be
[all …]
DREADME.txt61 (or only 100 (default, controlled by lru_size proc parameter) locks
/linux-4.4.14/arch/x86/include/asm/
Dalternative.h68 void *locks, void *locks_end,
76 void *locks, void *locks_end, in alternatives_smp_module_add() argument
/linux-4.4.14/fs/ceph/
DMakefile7 ceph-y := super.o inode.o dir.o file.o locks.o addr.o ioctl.o \
/linux-4.4.14/Documentation/RCU/
DUP.txt73 with no locks held than to have to modify such APIs to allow
87 from a known environment in which no locks are held.
123 callbacks acquire locks directly. However, a great many RCU
124 callbacks do acquire locks -indirectly-, for example, via
Dlockdep-splat.txt26 3 locks held by scsi_scan_6/1552:
69 case. Instead, we hold three locks, one of which might be RCU related.
Drcu.txt20 not acquire any locks, perform any atomic instructions, write to
25 acquire locks can also greatly simplify deadlock-avoidance code.
Dchecklist.txt61 any locks or atomic operations. This means that readers will
74 locks (that are acquired by both readers and writers)
295 locks. RCU read-side critical sections are delimited by
423 combination of locks, or whatever other conditions
DarrayRCU.txt54 function does not acquire any locks; instead its caller must hold the
DwhatisRCU.txt424 o Use some solid scheme (such as locks or semaphores) to
612 It is possible to nest rcu_read_lock(), since reader-writer locks may
616 But synchronize_rcu() does not acquire any locks while holding rcu_gp_mutex,
956 become blocking locks, and all irq handlers execute in
DRTFP.txt99 systems made pervasive use of RCU in place of "existence locks", which
1435 David Miller's view on hashed arrays of locks: used to really
/linux-4.4.14/fs/dlm/
DKconfig16 list of resource and locks the local node knows about.
Ddlm_internal.h689 struct list_head locks; member
Dlock.c5828 list_add_tail(&lkb->lkb_ownqueue, &ua->proc->locks); in dlm_user_request()
5954 list_add_tail(&lkb->lkb_ownqueue, &ua->proc->locks); in dlm_user_adopt_orphan()
6146 if (list_empty(&proc->locks)) in del_proc_lock()
6149 lkb = list_entry(proc->locks.next, struct dlm_lkb, lkb_ownqueue); in del_proc_lock()
6221 if (!list_empty(&proc->locks)) { in purge_proc_locks()
6222 lkb = list_entry(proc->locks.next, struct dlm_lkb, in purge_proc_locks()
Duser.c648 INIT_LIST_HEAD(&proc->locks); in device_open()
/linux-4.4.14/Documentation/virtual/kvm/
D00-INDEX12 - notes on KVM locks.
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dfw.c346 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl8821ae_fill_h2c_command()
353 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, in _rtl8821ae_fill_h2c_command()
363 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, in _rtl8821ae_fill_h2c_command()
366 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl8821ae_fill_h2c_command()
369 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl8821ae_fill_h2c_command()
499 spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); in _rtl8821ae_fill_h2c_command()
501 spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); in _rtl8821ae_fill_h2c_command()
Dhw.c53 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl8821ae_return_beacon_queue_skb()
65 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl8821ae_return_beacon_queue_skb()
134 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8821ae_set_fw_clock_on()
137 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8821ae_set_fw_clock_on()
142 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8821ae_set_fw_clock_on()
144 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8821ae_set_fw_clock_on()
147 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8821ae_set_fw_clock_on()
173 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8821ae_set_fw_clock_on()
175 spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8821ae_set_fw_clock_on()
180 spin_lock_bh(&rtlpriv->locks.fw_ps_lock); in _rtl8821ae_set_fw_clock_on()
[all …]
Ddm.c584 spin_lock(&rtlpriv->locks.iqk_lock); in rtl8821ae_dm_init()
586 spin_unlock(&rtlpriv->locks.iqk_lock); in rtl8821ae_dm_init()
697 spin_lock_bh(&rtlpriv->locks.entry_list_lock); in rtl8821ae_dm_check_rssi_monitor()
708 spin_unlock_bh(&rtlpriv->locks.entry_list_lock); in rtl8821ae_dm_check_rssi_monitor()
1023 spin_lock_bh(&rtlpriv->locks.entry_list_lock); in rtl8821ae_dm_common_info_self_update()
1026 spin_unlock_bh(&rtlpriv->locks.entry_list_lock); in rtl8821ae_dm_common_info_self_update()
2502 spin_lock(&rtlpriv->locks.iqk_lock); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2504 spin_unlock(&rtlpriv->locks.iqk_lock); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2508 spin_lock(&rtlpriv->locks.iqk_lock); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2510 spin_unlock(&rtlpriv->locks.iqk_lock); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
Dphy.c170 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl8821ae_phy_query_rf_reg()
176 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl8821ae_phy_query_rf_reg()
197 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl8821ae_phy_set_rf_reg()
208 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl8821ae_phy_set_rf_reg()
4601 spin_lock(&rtlpriv->locks.iqk_lock); in rtl8821ae_phy_iq_calibrate()
4603 spin_unlock(&rtlpriv->locks.iqk_lock); in rtl8821ae_phy_iq_calibrate()
4607 spin_lock(&rtlpriv->locks.iqk_lock); in rtl8821ae_phy_iq_calibrate()
4609 spin_unlock(&rtlpriv->locks.iqk_lock); in rtl8821ae_phy_iq_calibrate()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dphy.c58 spin_lock(&rtlpriv->locks.rf_lock); in rtl92c_phy_query_rf_reg()
71 spin_unlock(&rtlpriv->locks.rf_lock); in rtl92c_phy_query_rf_reg()
132 spin_lock(&rtlpriv->locks.rf_lock); in rtl92ce_phy_set_rf_reg()
159 spin_unlock(&rtlpriv->locks.rf_lock); in rtl92ce_phy_set_rf_reg()
Dhw.c2105 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92ce_gpio_radio_on_off_checking()
2107 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92ce_gpio_radio_on_off_checking()
2111 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92ce_gpio_radio_on_off_checking()
2137 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92ce_gpio_radio_on_off_checking()
2139 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92ce_gpio_radio_on_off_checking()
2144 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92ce_gpio_radio_on_off_checking()
2146 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92ce_gpio_radio_on_off_checking()
/linux-4.4.14/arch/powerpc/lib/
DMakefile21 obj64-$(CONFIG_SMP) += locks.o
/linux-4.4.14/fs/ocfs2/
DMakefile28 locks.o \
/linux-4.4.14/net/ax25/
DTODO4 Do the netrom and rose locks have to be bh-safe?
/linux-4.4.14/drivers/media/dvb-frontends/
Ddib8000.c2998 u16 locks, deeper_interleaver = 0, i; in dib8000_tune() local
3165 locks = (dib8000_read_word(state, 180) >> 6) & 0x3f; /* P_coff_winlen ? */ in dib8000_tune()
3167 *timeout = dib8000_get_timeout(state, 2 * locks, SYMBOL_DEPENDENT_ON); in dib8000_tune()
3172 locks = dib8000_read_lock(fe); in dib8000_tune()
3173 if (locks & (0x3 << 11)) { /* coff-lock and off_cpil_lock achieved */ in dib8000_tune()
3207 locks = dib8000_read_lock(fe); in dib8000_tune()
3208 if (locks & (1<<10)) { /* lmod4_lock */ in dib8000_tune()
3245 locks = 2; /* locks is the tmp local variable name */ in dib8000_tune()
3247 locks = 8; in dib8000_tune()
3249 locks = 2 * deeper_interleaver; in dib8000_tune()
[all …]
/linux-4.4.14/Documentation/ia64/
DREADME41 o SMP locks cleanup/optimization
Dmca.txt10 by locks is indeterminate, including linked lists.
119 special code to cope with our inability to take any locks.
/linux-4.4.14/arch/cris/
DKconfig.debug31 If the system locks up without any debug information you can say Y
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
Dfw_common.c324 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in rtl8723_cmd_send_packet()
333 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in rtl8723_cmd_send_packet()
/linux-4.4.14/drivers/staging/slicoss/
DTODO29 - locking too fine grained, not designed just throw more locks
/linux-4.4.14/Documentation/arm/
D00-INDEX52 - Voting locks, low-level mechanism relying on memory system atomic writes.
/linux-4.4.14/arch/sparc/lib/
DMakefile14 lib-$(CONFIG_SPARC32) += copy_user.o locks.o
/linux-4.4.14/drivers/tty/
Dn_r3964.c529 pBlock->locks = 0; in on_receive_block()
873 pBlock->locks++; in add_msg()
930 block->locks--; in remove_client_block()
931 if (block->locks == 0) { in remove_client_block()
1164 pHeader->locks = 0; in r3964_write()
/linux-4.4.14/scripts/coccinelle/locks/
Ddouble_lock.cocci1 /// Find double locks. False positives may occur when some paths cannot
Dcall_kern.cocci1 /// Find functions that refer to GFP_KERNEL but are called with locks held.
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dhw.c2240 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92cu_gpio_radio_on_off_checking()
2242 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92cu_gpio_radio_on_off_checking()
2246 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92cu_gpio_radio_on_off_checking()
2297 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92cu_gpio_radio_on_off_checking()
2299 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92cu_gpio_radio_on_off_checking()
2321 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92cu_gpio_radio_on_off_checking()
2323 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92cu_gpio_radio_on_off_checking()
2325 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92cu_gpio_radio_on_off_checking()
2327 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92cu_gpio_radio_on_off_checking()
/linux-4.4.14/fs/
DMakefile33 obj-$(CONFIG_FILE_LOCKING) += locks.o
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dhw.c2336 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92se_gpio_radio_on_off_checking()
2338 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92se_gpio_radio_on_off_checking()
2342 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92se_gpio_radio_on_off_checking()
2375 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92se_gpio_radio_on_off_checking()
2377 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92se_gpio_radio_on_off_checking()
2393 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl92se_gpio_radio_on_off_checking()
2395 spin_unlock_irqrestore(&rtlpriv->locks.rf_ps_lock, flag); in rtl92se_gpio_radio_on_off_checking()
Dfw.c148 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl92s_cmd_send_packet()
155 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl92s_cmd_send_packet()
Dphy.c190 spin_lock(&rtlpriv->locks.rf_lock); in rtl92s_phy_query_rf_reg()
197 spin_unlock(&rtlpriv->locks.rf_lock); in rtl92s_phy_query_rf_reg()
220 spin_lock(&rtlpriv->locks.rf_lock); in rtl92s_phy_set_rf_reg()
231 spin_unlock(&rtlpriv->locks.rf_lock); in rtl92s_phy_set_rf_reg()
/linux-4.4.14/Documentation/fb/
Dtridentfb.txt20 1. The driver randomly locks up on 3DImage975 chip with acceleration
/linux-4.4.14/Documentation/devicetree/bindings/clock/ti/
Ddpll.txt53 - ti,lock : DPLL locks in programmed rate
/linux-4.4.14/fs/jffs2/
DREADME.Locking95 GC thread locks it, sends the signal, then unlocks it - while the GC
96 thread itself locks it, zeroes c->gc_task, then unlocks on the exit path.
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
Dldlm_resource.c176 __u64 locks; in lock_count_show() local
178 locks = lprocfs_stats_collector(ns->ns_stats, LDLM_NSS_LOCKS, in lock_count_show()
180 return sprintf(buf, "%lld\n", locks); in lock_count_show()
/linux-4.4.14/Documentation/filesystems/pohmelfs/
Dinfo.txt51 Mcache includes locks (given lock should be granted by server), attributes (they should be
Ddesign_notes.txt11 * Locally coherent cache for data and metadata with (potentially) byte-range locks.
/linux-4.4.14/Documentation/hwmon/
Dsmsc47b39766 Reading the tach LSB locks the tach MSB.
/linux-4.4.14/Documentation/scheduler/
Dsched-domains.txt44 that group. If it manages to find such a runqueue, it locks both our initial
Dcompletion.txt15 misuse of locks. Any time you think of using yield() or some quirky
/linux-4.4.14/drivers/isdn/i4l/
Disdn_common.c75 drv->locks++; in isdn_lock_driver()
93 if (drv->locks > 0) { in isdn_unlock_driver()
94 drv->locks--; in isdn_unlock_driver()
686 while (dev->drv[di]->locks > 0) { in isdn_status_callback()
/linux-4.4.14/Documentation/power/
Dopp.txt90 using RCU read locks. The opp_find_freq_{exact,ceil,floor},
94 RCU locking mechanisms. These functions should *NOT* be called under RCU locks
/linux-4.4.14/Documentation/vm/
Dhwpoison.txt27 * rules, as in get the standard locks, even if that means the
Dpage_migration138 19. The page locks are dropped from the old and new page.
Dnuma70 statistics and locks to mediate access. In addition, Linux constructs for
/linux-4.4.14/Documentation/serial/
Ddriver44 There are three locks. A per-port spinlock, a per-port tmpbuf semaphore,
47 From the core driver perspective, the port->lock locks the following
Dtty.txt223 take line discipline locks. The same is true of calls from the driver side
/linux-4.4.14/Documentation/laptops/
Dasus-laptop.txt107 L2X00D (locks the laptop under certain conditions)
/linux-4.4.14/Documentation/dmaengine/
Dclient.txt134 locks before calling the callback function which may cause a
/linux-4.4.14/Documentation/driver-model/
Ddriver.txt123 the devices a driver controls. This helper locks the driver on each
/linux-4.4.14/Documentation/filesystems/cifs/
DREADME495 posix acls, posix locks, posix paths, symlink support
501 with cifs style mandatory byte range locks (and most
503 byte range locks).
509 forcing the cifs client to only send mandatory locks
510 even if the cifs server would support posix advisory locks.
DCHANGES78 rather than posix (advisory) byte range locks, even though server would
79 support posix byte range locks. Fix query of root inode when prefixpath
850 reconnect byte range locks though). Fix problem caching
1042 3) default file perms are now 2767 (indicating support for mandatory locks) instead of 777 for dire…
/linux-4.4.14/fs/affs/
DChanges150 - Removed some unnecessary locks as Bill
/linux-4.4.14/Documentation/scsi/
Dscsi_fc_transport.txt458 * This routine assumes no locks are held on entry.
471 * This routine assumes no locks are held on entry.
DChangeLog.lpfc231 before locks so that they can GFP_KERNEL instead. Also cleaned
246 * Moved locks deeper in order to change GFP_ATOMIC to GFP_KERNEL.
511 locks in lpfc_fcp.c.
1364 * Removed locks from lpfc_sli_issue_mbox_wait routine
1640 defines from elx_hw.h and removed the spinlock_t locks that
1862 * Removed module locks except for drvr, mem, and clock.
1863 * Removed unused module locks from sourcebase. Kept drvr_lock,
Dscsi_eh.txt181 1. Checks if door locking is needed and locks door.
Dtmscsim.txt126 specific locks (Linux 2.5?)
DChangeLog.megaraid603 vii. Do not use "host_lock', driver has fine-grain locks now to protect all
Dscsi_mid_low_api.txt1052 * called without any locks held.
1366 io_request_lock has been replaced by several finer grained locks. The lock
/linux-4.4.14/Documentation/networking/
DREADME.sb1000180 7.) Everything seems to work fine but my computer locks up after a while
Dz8530drv.txt607 A very common problem is that the PTT locks until the maxkeyup timer
/linux-4.4.14/Documentation/development-process/
D4.Coding257 mutex) in the system, the order in which locks are acquired relative to
259 ensure that locks are always acquired in the same order, that the same
/linux-4.4.14/Documentation/nvdimm/
Dbtt.txt179 e. In-memory data structure: map locks
/linux-4.4.14/Documentation/frv/
Dmmu-layout.txt109 locks an entry in the TLB to translate that slot to the specified page. The number of slots is
/linux-4.4.14/Documentation/filesystems/caching/
Dnetfs-api.txt757 If the cookie is not already disabled, this locks the cookie against other
772 If the cookie is not already enabled, this locks the cookie against other
/linux-4.4.14/Documentation/rapidio/
Drapidio.txt282 devices by clearing device ID locks (calls rio_clear_locks()). For each endpoint
/linux-4.4.14/Documentation/cdrom/
Dide-cd259 - If the system locks up when you try to access the CDROM, the most
Dcdrom-standard.tex943 unlocks the door, any other value locks it.
/linux-4.4.14/Documentation/security/
Dcredentials.txt466 this locks current->cred_replace_mutex and then allocates and constructs a
Dkeys.txt1274 locks will be held over it.
/linux-4.4.14/Documentation/video4linux/
Dvivid.txt1127 - Use per-queue locks and/or per-device locks to improve throughput
/linux-4.4.14/Documentation/networking/dsa/
Ddsa.txt385 interrupts, mutexes, locks etc.. This function is also expected to properly
/linux-4.4.14/Documentation/sysctl/
Dvm.txt773 performance impact. Reclaim code needs to take various locks to find freeable
/linux-4.4.14/Documentation/cgroups/
Dcgroups.txt507 modified, but more specific locks may be more appropriate in that
/linux-4.4.14/init/
DKconfig1755 which requires the taking of locks that may cause latency spikes.
2056 source "kernel/Kconfig.locks"
/linux-4.4.14/Documentation/block/
Dbiodoc.txt623 with multiple locks.
/linux-4.4.14/
DMAINTAINERS4334 F: fs/locks.c