Home
last modified time | relevance | path

Searched full:spinlock (Results 1 – 25 of 2046) sorted by relevance

12345678910>>...82

/linux/fs/ocfs2/dlm/
H A Ddlmthread.c40 /* will exit holding res->spinlock, but may drop in function */
46 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags()
52 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags()
54 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags()
78 assert_spin_locked(&res->spinlock); in __dlm_lockres_unused()
109 assert_spin_locked(&dlm->spinlock); in __dlm_lockres_calc_usage()
110 assert_spin_locked(&res->spinlock); in __dlm_lockres_calc_usage()
135 spin_lock(&dlm->spinlock); in dlm_lockres_calc_usage()
136 spin_lock(&res->spinlock); in dlm_lockres_calc_usage()
140 spin_unlock(&res->spinlock); in dlm_lockres_calc_usage()
[all …]
H A Ddlmconvert.c21 #include <linux/spinlock.h>
37 * needs a spinlock held on entry (res->spinlock) and it is the
38 * only one that holds a lock on exit (res->spinlock).
55 * taken: takes and drops res->spinlock
66 spin_lock(&res->spinlock); in dlmconvert_master()
76 spin_unlock(&res->spinlock); in dlmconvert_master()
95 * caller needs: res->spinlock
96 * taken: takes and drops lock->spinlock
97 * held on exit: res->spinlock
111 assert_spin_locked(&res->spinlock); in __dlmconvert_master()
[all …]
H A Ddlmrecovery.c103 assert_spin_locked(&dlm->spinlock); in dlm_set_reco_dead_node()
113 assert_spin_locked(&dlm->spinlock); in dlm_set_reco_master()
121 assert_spin_locked(&dlm->spinlock); in __dlm_reset_recovery()
309 spin_lock(&dlm->spinlock); in dlm_reco_master_ready()
311 spin_unlock(&dlm->spinlock); in dlm_reco_master_ready()
320 spin_lock(&dlm->spinlock); in dlm_is_node_dead()
322 spin_unlock(&dlm->spinlock); in dlm_is_node_dead()
331 spin_lock(&dlm->spinlock); in dlm_is_node_recovered()
333 spin_unlock(&dlm->spinlock); in dlm_is_node_recovered()
381 spin_lock(&dlm->spinlock); in dlm_in_recovery()
[all...]
H A Ddlmunlock.c21 #include <linux/spinlock.h>
76 * taken: res->spinlock and lock->spinlock taken and dropped
114 spin_lock(&res->spinlock); in dlmunlock_common()
118 spin_unlock(&res->spinlock); in dlmunlock_common()
125 spin_lock(&lock->spinlock); in dlmunlock_common()
164 spin_unlock(&lock->spinlock); in dlmunlock_common()
165 spin_unlock(&res->spinlock); in dlmunlock_common()
168 spin_lock(&res->spinlock); in dlmunlock_common()
169 spin_lock(&lock->spinlock); in dlmunlock_common()
230 spin_unlock(&lock->spinlock); in dlmunlock_common()
[all …]
H A Ddlmlock.c22 #include <linux/spinlock.h>
68 * caller needs: res->spinlock
97 * taken: takes and drops res->spinlock
110 spin_lock(&res->spinlock); in dlmlock_master()
117 spin_unlock(&res->spinlock); in dlmlock_master()
165 spin_unlock(&res->spinlock); in dlmlock_master()
193 * taken: takes and drops res->spinlock
212 spin_lock(&res->spinlock); in dlmlock_remote()
215 spin_unlock(&res->spinlock); in dlmlock_remote()
224 spin_unlock(&res->spinlock); in dlmlock_remote()
[all …]
/linux/drivers/hwtracing/coresight/
H A Dcoresight-etm3x-sysfs.c52 spin_lock_irqsave(&drvdata->spinlock, flags); in etmsr_show()
58 spin_unlock_irqrestore(&drvdata->spinlock, flags); in etmsr_show()
79 spin_lock(&drvdata->spinlock); in reset_store()
89 spin_unlock(&drvdata->spinlock); in reset_store()
120 spin_lock(&drvdata->spinlock); in mode_store()
171 spin_unlock(&drvdata->spinlock); in mode_store()
176 spin_unlock(&drvdata->spinlock); in mode_store()
299 * Use spinlock to ensure index doesn't change while it gets in addr_idx_store()
300 * dereferenced multiple times within a spinlock block elsewhere. in addr_idx_store()
302 spin_lock(&drvdata->spinlock); in addr_idx_store()
[all …]
H A Dcoresight-tpda.c213 lockdep_assert_held(&drvdata->spinlock); in __tpda_enable()
230 spin_lock(&drvdata->spinlock); in tpda_enable()
240 spin_unlock(&drvdata->spinlock); in tpda_enable()
263 spin_lock(&drvdata->spinlock); in tpda_disable()
268 spin_unlock(&drvdata->spinlock); in tpda_disable()
302 guard(spinlock)(&drvdata->spinlock); in tpda_trig_sysfs_show()
332 guard(spinlock)(&drvdata->spinlock); in tpda_trig_sysfs_store()
366 guard(spinlock)(&drvdata->spinlock); in global_flush_req_show()
388 guard(spinlock)(&drvdata->spinlock); in global_flush_req_store()
410 guard(spinlock)(&drvdata->spinlock); in syncr_mode_show()
[all …]
H A Dcoresight-tmc-etf.c188 raw_spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
190 raw_spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
192 /* Allocating the memory here while outside of the spinlock */ in tmc_enable_etf_sink_sysfs()
198 raw_spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
240 raw_spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
242 /* Free memory outside the spinlock if need be */ in tmc_enable_etf_sink_sysfs()
259 raw_spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_perf()
302 raw_spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_perf()
338 raw_spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_disable_etf_sink()
341 raw_spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_disable_etf_sink()
[all …]
H A Dcoresight-tpdm.c127 guard(spinlock)(&drvdata->spinlock); in tpdm_simple_dataset_store()
488 spin_lock(&drvdata->spinlock); in tpdm_enable()
490 spin_unlock(&drvdata->spinlock); in tpdm_enable()
495 spin_unlock(&drvdata->spinlock); in tpdm_enable()
502 spin_unlock(&drvdata->spinlock); in tpdm_enable()
553 spin_lock(&drvdata->spinlock); in tpdm_disable()
555 spin_unlock(&drvdata->spinlock); in tpdm_disable()
562 spin_unlock(&drvdata->spinlock); in tpdm_disable()
640 spin_lock(&drvdata->spinlock); in reset_dataset_store()
[all...]
/linux/include/asm-generic/
H A Dqspinlock.h3 * Queued spinlock
5 * A 'generic' spinlock implementation that is based on MCS locks. For an
6 * architecture that's looking for a 'generic' spinlock, please first consider
15 * qspinlock relies on a far greater (compared to asm-generic/spinlock.h) set
47 * queued_spin_is_locked - is the spinlock locked?
48 * @lock: Pointer to queued spinlock structure
62 * queued_spin_value_unlocked - is the spinlock structure unlocked?
63 * @lock: queued spinlock structure
78 * @lock : Pointer to queued spinlock structure
86 * queued_spin_trylock - try to acquire the queued spinlock
[all …]
/linux/drivers/comedi/drivers/
H A Ddas800.c236 spin_lock_irqsave(&dev->spinlock, irq_flags); in das800_enable()
244 spin_unlock_irqrestore(&dev->spinlock, irq_flags); in das800_enable()
251 spin_lock_irqsave(&dev->spinlock, irq_flags); in das800_disable()
254 spin_unlock_irqrestore(&dev->spinlock, irq_flags); in das800_disable()
379 spin_lock_irqsave(&dev->spinlock, irq_flags); in das800_ai_do_cmd()
382 spin_unlock_irqrestore(&dev->spinlock, irq_flags); in das800_ai_do_cmd()
403 spin_lock_irqsave(&dev->spinlock, irq_flags); in das800_ai_do_cmd()
405 spin_unlock_irqrestore(&dev->spinlock, irq_flags); in das800_ai_do_cmd()
442 spin_lock_irqsave(&dev->spinlock, irq_flags); in das800_interrupt()
445 * Don't release spinlock yet since we want to make sure in das800_interrupt()
[all …]
/linux/drivers/watchdog/
H A Dof_xilinx_wdt.c43 spinlock_t spinlock; /* spinlock for register handling */ member
60 spin_lock(&xdev->spinlock); in xilinx_wdt_start()
71 spin_unlock(&xdev->spinlock); in xilinx_wdt_start()
83 spin_lock(&xdev->spinlock); in xilinx_wdt_stop()
92 spin_unlock(&xdev->spinlock); in xilinx_wdt_stop()
106 spin_lock(&xdev->spinlock); in xilinx_wdt_keepalive()
112 spin_unlock(&xdev->spinlock); in xilinx_wdt_keepalive()
137 spin_lock(&xdev->spinlock); in xwdt_selftest()
148 spin_unlock(&xdev->spinlock); in xwdt_selftest()
218 spin_lock_init(&xdev->spinlock); in xwdt_probe()
H A Dxilinx_wwdt.c59 * @spinlock: spinlock for IO register access
68 spinlock_t spinlock; /* spinlock for register handling */ member
82 spin_lock(&xdev->spinlock); in xilinx_wwdt_start()
94 spin_unlock(&xdev->spinlock); in xilinx_wwdt_start()
106 spin_lock(&xdev->spinlock); in xilinx_wwdt_keepalive()
116 spin_unlock(&xdev->spinlock); in xilinx_wwdt_keepalive()
221 spin_lock_init(&xdev->spinlock); in xwwdt_probe()
/linux/lib/
H A Drefcount.c8 #include <linux/spinlock.h>
129 * refcount_dec_and_lock - return holding spinlock if able to decrement
132 * @lock: the spinlock to be locked
141 * Return: true and hold spinlock if able to decrement refcount to 0, false
160 * refcount_dec_and_lock_irqsave - return holding spinlock with disabled
163 * @lock: the spinlock to be locked
166 * Same as refcount_dec_and_lock() above except that the spinlock is acquired
169 * Return: true and hold spinlock if able to decrement refcount to 0, false
/linux/drivers/accessibility/speakup/
H A Dsynth.c29 * This spinlock is used to protect the entire speakup machinery, and
38 * spinlock because speakup needs to disable the keyboard IRQ.
40 .spinlock = __SPIN_LOCK_UNLOCKED(speakup_info.spinlock),
71 spin_lock_irqsave(&speakup_info.spinlock, flags); in _spk_do_catch_up()
73 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in _spk_do_catch_up()
77 spin_lock_irqsave(&speakup_info.spinlock, flags); in _spk_do_catch_up()
80 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in _spk_do_catch_up()
87 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in _spk_do_catch_up()
93 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in _spk_do_catch_up()
105 spin_lock_irqsave(&speakup_info.spinlock, flags); in _spk_do_catch_up()
[all …]
H A Dspeakup_apollo.c153 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
155 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
159 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
165 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
171 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
177 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
185 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
189 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
199 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
201 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
H A Dspeakup_decext.c167 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
169 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
173 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
176 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
182 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
188 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
196 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
198 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
210 spin_lock_irqsave(&speakup_info.spinlock, in do_catch_up()
214 spin_unlock_irqrestore(&speakup_info.spinlock, in do_catch_up()
H A Dkobjects.c39 spin_lock_irqsave(&speakup_info.spinlock, flags); in chars_chartab_show()
74 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in chars_chartab_show()
132 spin_lock_irqsave(&speakup_info.spinlock, flags); in chars_chartab_store()
220 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in chars_chartab_store()
241 spin_lock_irqsave(&speakup_info.spinlock, flags); in keymap_show()
258 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_show()
275 spin_lock_irqsave(&speakup_info.spinlock, flags); in keymap_store()
278 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store()
285 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store()
304 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store()
[all …]
H A Dspeakup_keypc.c189 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
191 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
195 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
198 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
204 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
209 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
223 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
225 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
240 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
243 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
H A Dspeakup_dectlk.c15 #include <linux/spinlock.h>
228 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
231 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
248 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
251 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
257 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
264 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
272 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
274 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
286 spin_lock_irqsave(&speakup_info.spinlock, in do_catch_up()
[all …]
H A Dspeakup_acntpc.c188 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
190 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
194 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
197 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
203 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
208 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
220 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
222 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
234 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
237 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
H A Dspeakup_soft.c195 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_open()
197 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_open()
201 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_open()
209 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_close()
212 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_close()
233 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynthx_read()
243 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynthx_read()
253 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynthx_read()
276 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynthx_read()
311 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynthx_read()
[all …]
/linux/drivers/gpio/
H A Dgpiolib-shared.h9 #include <linux/spinlock.h>
51 spinlock_t spinlock; member
61 spin_lock_irqsave(&_T->lock->spinlock, _T->flags),
65 spin_unlock_irqrestore(&_T->lock->spinlock, _T->flags),
73 lockdep_assert_held(&shared_desc->spinlock); in gpio_shared_lockdep_assert()
/linux/kernel/locking/
H A Dqspinlock.c3 * Queued spinlock
28 * Include queued spinlock definitions and statistics code
34 * The basic principle of a queue-based spinlock can best be understood
35 * by studying a classic queue-based spinlock implementation called the
42 * This queued spinlock implementation is based on the MCS lock, however to
51 * Since a spinlock disables recursion of its own context and there is a limit
110 * queued_spin_lock_slowpath - acquire the queued spinlock
111 * @lock: Pointer to queued spinlock structure
112 * @val: Current value of the queued spinlock 32-bit word
/linux/drivers/char/
H A Dttyprintk.c19 #include <linux/spinlock.h>
23 spinlock_t spinlock; member
113 spin_lock_irqsave(&tpkp->spinlock, flags); in tpk_write()
115 spin_unlock_irqrestore(&tpkp->spinlock, flags); in tpk_write()
147 spin_lock_irqsave(&tpkp->spinlock, flags); in tpk_port_shutdown()
149 spin_unlock_irqrestore(&tpkp->spinlock, flags); in tpk_port_shutdown()
182 spin_lock_init(&tpk_port.spinlock); in ttyprintk_init()

12345678910>>...82