Home
last modified time | relevance | path

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

12345678910>>...159

/kernel/linux/linux-4.19/fs/ocfs2/dlm/
Ddlmthread.c59 /* will exit holding res->spinlock, but may drop in function */
65 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags()
71 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags()
73 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags()
97 assert_spin_locked(&res->spinlock); in __dlm_lockres_unused()
128 assert_spin_locked(&dlm->spinlock); in __dlm_lockres_calc_usage()
129 assert_spin_locked(&res->spinlock); in __dlm_lockres_calc_usage()
154 spin_lock(&dlm->spinlock); in dlm_lockres_calc_usage()
155 spin_lock(&res->spinlock); in dlm_lockres_calc_usage()
159 spin_unlock(&res->spinlock); in dlm_lockres_calc_usage()
[all …]
Ddlmmaster.c39 #include <linux/spinlock.h>
168 * when it is created, and since the dlm->spinlock is held at
181 assert_spin_locked(&dlm->spinlock); in __dlm_mle_attach_hb_events()
198 spin_lock(&dlm->spinlock); in dlm_mle_detach_hb_events()
200 spin_unlock(&dlm->spinlock); in dlm_mle_detach_hb_events()
208 assert_spin_locked(&dlm->spinlock); in dlm_get_mle_inuse()
219 spin_lock(&dlm->spinlock); in dlm_put_mle_inuse()
224 spin_unlock(&dlm->spinlock); in dlm_put_mle_inuse()
234 assert_spin_locked(&dlm->spinlock); in __dlm_put_mle()
253 spin_lock(&dlm->spinlock); in dlm_put_mle()
[all …]
Ddlmconvert.c38 #include <linux/spinlock.h>
54 * needs a spinlock held on entry (res->spinlock) and it is the
55 * only one that holds a lock on exit (res->spinlock).
72 * taken: takes and drops res->spinlock
83 spin_lock(&res->spinlock); in dlmconvert_master()
93 spin_unlock(&res->spinlock); in dlmconvert_master()
112 * caller needs: res->spinlock
113 * taken: takes and drops lock->spinlock
114 * held on exit: res->spinlock
128 assert_spin_locked(&res->spinlock); in __dlmconvert_master()
[all …]
Ddlmrecovery.c120 assert_spin_locked(&dlm->spinlock); in dlm_set_reco_dead_node()
130 assert_spin_locked(&dlm->spinlock); in dlm_set_reco_master()
138 assert_spin_locked(&dlm->spinlock); in __dlm_reset_recovery()
146 spin_lock(&dlm->spinlock); in dlm_reset_recovery()
148 spin_unlock(&dlm->spinlock); in dlm_reset_recovery()
333 spin_lock(&dlm->spinlock); in dlm_reco_master_ready()
335 spin_unlock(&dlm->spinlock); in dlm_reco_master_ready()
344 spin_lock(&dlm->spinlock); in dlm_is_node_dead()
346 spin_unlock(&dlm->spinlock); in dlm_is_node_dead()
355 spin_lock(&dlm->spinlock); in dlm_is_node_recovered()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/dlm/
Ddlmthread.c42 /* will exit holding res->spinlock, but may drop in function */
48 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags()
54 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags()
56 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags()
80 assert_spin_locked(&res->spinlock); in __dlm_lockres_unused()
111 assert_spin_locked(&dlm->spinlock); in __dlm_lockres_calc_usage()
112 assert_spin_locked(&res->spinlock); in __dlm_lockres_calc_usage()
137 spin_lock(&dlm->spinlock); in dlm_lockres_calc_usage()
138 spin_lock(&res->spinlock); in dlm_lockres_calc_usage()
142 spin_unlock(&res->spinlock); in dlm_lockres_calc_usage()
[all …]
Ddlmmaster.c24 #include <linux/spinlock.h>
153 * when it is created, and since the dlm->spinlock is held at
166 assert_spin_locked(&dlm->spinlock); in __dlm_mle_attach_hb_events()
183 spin_lock(&dlm->spinlock); in dlm_mle_detach_hb_events()
185 spin_unlock(&dlm->spinlock); in dlm_mle_detach_hb_events()
193 assert_spin_locked(&dlm->spinlock); in dlm_get_mle_inuse()
204 spin_lock(&dlm->spinlock); in dlm_put_mle_inuse()
209 spin_unlock(&dlm->spinlock); in dlm_put_mle_inuse()
219 assert_spin_locked(&dlm->spinlock); in __dlm_put_mle()
238 spin_lock(&dlm->spinlock); in dlm_put_mle()
[all …]
Ddlmconvert.c23 #include <linux/spinlock.h>
39 * needs a spinlock held on entry (res->spinlock) and it is the
40 * only one that holds a lock on exit (res->spinlock).
57 * taken: takes and drops res->spinlock
68 spin_lock(&res->spinlock); in dlmconvert_master()
78 spin_unlock(&res->spinlock); in dlmconvert_master()
97 * caller needs: res->spinlock
98 * taken: takes and drops lock->spinlock
99 * held on exit: res->spinlock
113 assert_spin_locked(&res->spinlock); in __dlmconvert_master()
[all …]
Ddlmrecovery.c105 assert_spin_locked(&dlm->spinlock); in dlm_set_reco_dead_node()
115 assert_spin_locked(&dlm->spinlock); in dlm_set_reco_master()
123 assert_spin_locked(&dlm->spinlock); in __dlm_reset_recovery()
131 spin_lock(&dlm->spinlock); in dlm_reset_recovery()
133 spin_unlock(&dlm->spinlock); in dlm_reset_recovery()
318 spin_lock(&dlm->spinlock); in dlm_reco_master_ready()
320 spin_unlock(&dlm->spinlock); in dlm_reco_master_ready()
329 spin_lock(&dlm->spinlock); in dlm_is_node_dead()
331 spin_unlock(&dlm->spinlock); in dlm_is_node_dead()
340 spin_lock(&dlm->spinlock); in dlm_is_node_recovered()
[all …]
/kernel/linux/linux-5.10/drivers/hwspinlock/
DKconfig7 bool "Hardware Spinlock drivers"
12 tristate "OMAP Hardware Spinlock device"
15 Say y here to support the OMAP Hardware Spinlock device (firstly
21 tristate "Qualcomm Hardware Spinlock device"
32 tristate "SIRF Hardware Spinlock device"
35 Say y here to support the SIRF Hardware Spinlock device, which
40 spinlock or just want a bare minimum kernel.
43 tristate "SPRD Hardware Spinlock device"
46 Say y here to support the SPRD Hardware Spinlock device.
51 tristate "STM32 Hardware Spinlock device"
[all …]
/kernel/linux/linux-5.10/include/asm-generic/
Dqspinlock.h3 * Queued spinlock
18 * queued_spin_is_locked - is the spinlock locked?
19 * @lock: Pointer to queued spinlock structure
33 * queued_spin_value_unlocked - is the spinlock structure unlocked?
34 * @lock: queued spinlock structure
49 * @lock : Pointer to queued spinlock structure
57 * queued_spin_trylock - try to acquire the queued spinlock
58 * @lock : Pointer to queued spinlock structure
75 * queued_spin_lock - acquire a queued spinlock
76 * @lock: Pointer to queued spinlock structure
[all …]
/kernel/linux/linux-4.19/drivers/hwtracing/coresight/
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()
88 spin_unlock(&drvdata->spinlock); in reset_store()
119 spin_lock(&drvdata->spinlock); in mode_store()
170 spin_unlock(&drvdata->spinlock); in mode_store()
175 spin_unlock(&drvdata->spinlock); in mode_store()
298 * Use spinlock to ensure index doesn't change while it gets in addr_idx_store()
299 * dereferenced multiple times within a spinlock block elsewhere. in addr_idx_store()
301 spin_lock(&drvdata->spinlock); in addr_idx_store()
[all …]
Dcoresight-etm4x-sysfs.c176 spin_lock(&drvdata->spinlock); in reset_store()
268 spin_unlock(&drvdata->spinlock); in reset_store()
297 spin_lock(&drvdata->spinlock); in mode_store()
435 spin_unlock(&drvdata->spinlock); in mode_store()
464 spin_lock(&drvdata->spinlock); in pe_store()
466 spin_unlock(&drvdata->spinlock); in pe_store()
471 spin_unlock(&drvdata->spinlock); in pe_store()
499 spin_lock(&drvdata->spinlock); in event_store()
520 spin_unlock(&drvdata->spinlock); in event_store()
548 spin_lock(&drvdata->spinlock); in event_instren_store()
[all …]
Dcoresight-tmc-etf.c131 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
133 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
135 /* Allocating the memory here while outside of the spinlock */ in tmc_enable_etf_sink_sysfs()
141 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
176 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
178 /* Free memory outside the spinlock if need be */ in tmc_enable_etf_sink_sysfs()
191 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_perf()
210 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_perf()
245 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_disable_etf_sink()
247 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_disable_etf_sink()
[all …]
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/
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()
88 spin_unlock(&drvdata->spinlock); in reset_store()
119 spin_lock(&drvdata->spinlock); in mode_store()
170 spin_unlock(&drvdata->spinlock); in mode_store()
175 spin_unlock(&drvdata->spinlock); in mode_store()
298 * Use spinlock to ensure index doesn't change while it gets in addr_idx_store()
299 * dereferenced multiple times within a spinlock block elsewhere. in addr_idx_store()
301 spin_lock(&drvdata->spinlock); in addr_idx_store()
[all …]
Dcoresight-etm4x-sysfs.c176 spin_lock(&drvdata->spinlock); in reset_store()
270 spin_unlock(&drvdata->spinlock); in reset_store()
299 spin_lock(&drvdata->spinlock); in mode_store()
432 spin_unlock(&drvdata->spinlock); in mode_store()
461 spin_lock(&drvdata->spinlock); in pe_store()
463 spin_unlock(&drvdata->spinlock); in pe_store()
468 spin_unlock(&drvdata->spinlock); in pe_store()
496 spin_lock(&drvdata->spinlock); in event_store()
517 spin_unlock(&drvdata->spinlock); in event_store()
545 spin_lock(&drvdata->spinlock); in event_instren_store()
[all …]
Dcoresight-tmc-etf.c161 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
163 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
165 /* Allocating the memory here while outside of the spinlock */ in tmc_enable_etf_sink_sysfs()
171 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
214 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
216 /* Free memory outside the spinlock if need be */ in tmc_enable_etf_sink_sysfs()
232 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_perf()
275 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_perf()
310 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_disable_etf_sink()
313 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_disable_etf_sink()
[all …]
Dcoresight-cti-sysfs.c12 #include <linux/spinlock.h>
88 spin_lock(&drvdata->spinlock); in enable_show()
91 spin_unlock(&drvdata->spinlock); in enable_show()
128 spin_lock(&drvdata->spinlock); in powered_show()
130 spin_unlock(&drvdata->spinlock); in powered_show()
174 spin_lock(&drvdata->spinlock); \
177 spin_unlock(&drvdata->spinlock); \
224 spin_lock(&drvdata->spinlock); in cti_reg32_show()
234 spin_unlock(&drvdata->spinlock); in cti_reg32_show()
253 spin_lock(&drvdata->spinlock); in cti_reg32_store()
[all …]
/kernel/linux/linux-4.19/include/asm-generic/
Dqspinlock.h2 * Queued spinlock
25 * queued_spin_is_locked - is the spinlock locked?
26 * @lock: Pointer to queued spinlock structure
39 * queued_spin_value_unlocked - is the spinlock structure unlocked?
40 * @lock: queued spinlock structure
55 * @lock : Pointer to queued spinlock structure
63 * queued_spin_trylock - try to acquire the queued spinlock
64 * @lock : Pointer to queued spinlock structure
78 * queued_spin_lock - acquire a queued spinlock
79 * @lock: Pointer to queued spinlock structure
[all …]
/kernel/liteos_a/kernel/include/
Dlos_spinlock.h50 typedef struct Spinlock { struct
84 * @brief Lock the spinlock.
91 * @param lock [IN] Type #SPIN_LOCK_S spinlock pointer.
102 * @brief Trying lock the spinlock.
109 * @param lock [IN] Type #SPIN_LOCK_S spinlock pointer.
111 * @retval LOS_OK Got the spinlock.
112 * @retval LOS_NOK Not getting the spinlock.
121 * @brief Unlock the spinlock.
128 * @param lock [IN] Type #SPIN_LOCK_S spinlock pointer.
139 * @brief Lock the spinlock and disable all interrupts.
[all …]
/kernel/linux/linux-4.19/drivers/hwspinlock/
DKconfig7 bool "Hardware Spinlock drivers"
10 tristate "OMAP Hardware Spinlock device"
14 Say y here to support the OMAP Hardware Spinlock device (firstly
20 tristate "Qualcomm Hardware Spinlock device"
32 tristate "SIRF Hardware Spinlock device"
36 Say y here to support the SIRF Hardware Spinlock device, which
41 spinlock or just want a bare minimum kernel.
44 tristate "SPRD Hardware Spinlock device"
48 Say y here to support the SPRD Hardware Spinlock device.
/kernel/linux/linux-4.19/drivers/gpu/drm/
Ddrm_lock.c61 spin_lock_bh(&lock_data->spinlock); in drm_lock_take()
73 spin_unlock_bh(&lock_data->spinlock); in drm_lock_take()
125 spin_lock_bh(&lock_data->spinlock); in drm_legacy_lock_free()
129 spin_unlock_bh(&lock_data->spinlock); in drm_legacy_lock_free()
132 spin_unlock_bh(&lock_data->spinlock); in drm_legacy_lock_free()
185 spin_lock_bh(&master->lock.spinlock); in drm_legacy_lock()
187 spin_unlock_bh(&master->lock.spinlock); in drm_legacy_lock()
212 spin_lock_bh(&master->lock.spinlock); in drm_legacy_lock()
214 spin_unlock_bh(&master->lock.spinlock); in drm_legacy_lock()
291 spin_lock_bh(&lock_data->spinlock); in drm_legacy_idlelock_take()
[all …]
/kernel/linux/linux-5.10/sound/drivers/
Dmtpav.c128 spinlock_t spinlock; member
313 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_output_write()
315 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_output_write()
343 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_input_open()
348 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_input_open()
361 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_input_close()
366 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_input_close()
379 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_input_trigger()
384 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_input_trigger()
399 spin_lock_irqsave(&chip->spinlock, flags); in snd_mtpav_output_timer()
[all …]
/kernel/linux/linux-4.19/arch/xtensa/include/asm/
Dspinlock.h2 * include/asm-xtensa/spinlock.h
18 * spinlock
20 * There is at most one owner of a spinlock. There are not different
21 * types of spinlock owners like there are for rwlocks (see below).
23 * When trying to obtain a spinlock, the function "spins" forever, or busy-
25 * owner will soon give up the spinlock making it available to others. Use
30 * 0 nobody owns the spinlock
31 * 1 somebody owns the spinlock
84 * Read-write locks are really a more flexible spinlock. They allow
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_lock.c65 spin_lock_bh(&lock_data->spinlock); in drm_lock_take()
77 spin_unlock_bh(&lock_data->spinlock); in drm_lock_take()
129 spin_lock_bh(&lock_data->spinlock); in drm_legacy_lock_free()
133 spin_unlock_bh(&lock_data->spinlock); in drm_legacy_lock_free()
136 spin_unlock_bh(&lock_data->spinlock); in drm_legacy_lock_free()
189 spin_lock_bh(&master->lock.spinlock); in drm_legacy_lock()
191 spin_unlock_bh(&master->lock.spinlock); in drm_legacy_lock()
216 spin_lock_bh(&master->lock.spinlock); in drm_legacy_lock()
218 spin_unlock_bh(&master->lock.spinlock); in drm_legacy_lock()
294 spin_lock_bh(&lock_data->spinlock); in drm_legacy_idlelock_take()
[all …]
/kernel/linux/linux-4.19/drivers/staging/speakup/
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 …]

12345678910>>...159