Home
last modified time | relevance | path

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

12345678910>>...115

/linux-6.12.1/fs/ocfs2/dlm/
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 …]
Ddlmmaster.c22 #include <linux/spinlock.h>
151 * when it is created, and since the dlm->spinlock is held at
164 assert_spin_locked(&dlm->spinlock); in __dlm_mle_attach_hb_events()
181 spin_lock(&dlm->spinlock); in dlm_mle_detach_hb_events()
183 spin_unlock(&dlm->spinlock); in dlm_mle_detach_hb_events()
191 assert_spin_locked(&dlm->spinlock); in dlm_get_mle_inuse()
202 spin_lock(&dlm->spinlock); in dlm_put_mle_inuse()
207 spin_unlock(&dlm->spinlock); in dlm_put_mle_inuse()
217 assert_spin_locked(&dlm->spinlock); in __dlm_put_mle()
236 spin_lock(&dlm->spinlock); in dlm_put_mle()
[all …]
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 …]
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 …]
Ddlmdomain.c15 #include <linux/spinlock.h>
93 * spinlock lock ordering: if multiple locks are needed, obey this ordering:
95 * struct dlm_ctxt->spinlock
96 * struct dlm_lock_resource->spinlock
99 * dlm_master_list_entry->spinlock
100 * dlm_lock->spinlock
160 assert_spin_locked(&dlm->spinlock); in __dlm_insert_lockres()
183 assert_spin_locked(&dlm->spinlock); in __dlm_lookup_lockres_full()
215 assert_spin_locked(&dlm->spinlock); in __dlm_lookup_lockres()
219 spin_lock(&res->spinlock); in __dlm_lookup_lockres()
[all …]
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 …]
/linux-6.12.1/include/asm-generic/
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-6.12.1/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()
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 …]
Dcoresight-etm4x-sysfs.c177 spin_lock(&drvdata->spinlock); in reset_store()
269 spin_unlock(&drvdata->spinlock); in reset_store()
303 spin_lock(&drvdata->spinlock); in mode_store()
440 spin_unlock(&drvdata->spinlock); in mode_store()
469 spin_lock(&drvdata->spinlock); in pe_store()
471 spin_unlock(&drvdata->spinlock); in pe_store()
476 spin_unlock(&drvdata->spinlock); in pe_store()
504 spin_lock(&drvdata->spinlock); in event_store()
525 spin_unlock(&drvdata->spinlock); in event_store()
553 spin_lock(&drvdata->spinlock); in event_instren_store()
[all …]
Dcoresight-tmc-etf.c185 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
187 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
189 /* Allocating the memory here while outside of the spinlock */ in tmc_enable_etf_sink_sysfs()
195 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
238 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs()
240 /* Free memory outside the spinlock if need be */ in tmc_enable_etf_sink_sysfs()
256 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_perf()
299 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_perf()
334 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_disable_etf_sink()
337 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_disable_etf_sink()
[all …]
Dcoresight-cti-sysfs.c12 #include <linux/spinlock.h>
87 spin_lock(&drvdata->spinlock); in enable_show()
91 spin_unlock(&drvdata->spinlock); in enable_show()
137 spin_lock(&drvdata->spinlock); in powered_show()
139 spin_unlock(&drvdata->spinlock); in powered_show()
184 spin_lock(&drvdata->spinlock); in coresight_cti_reg_show()
187 spin_unlock(&drvdata->spinlock); in coresight_cti_reg_show()
205 spin_lock(&drvdata->spinlock); in coresight_cti_reg_store()
208 spin_unlock(&drvdata->spinlock); in coresight_cti_reg_store()
267 spin_lock(&drvdata->spinlock); in cti_reg32_show()
[all …]
Dcoresight-tpdm.c114 guard(spinlock)(&drvdata->spinlock); in tpdm_simple_dataset_store()
447 spin_lock(&drvdata->spinlock); in tpdm_enable()
449 spin_unlock(&drvdata->spinlock); in tpdm_enable()
454 spin_unlock(&drvdata->spinlock); in tpdm_enable()
460 spin_unlock(&drvdata->spinlock); in tpdm_enable()
508 spin_lock(&drvdata->spinlock); in tpdm_disable()
510 spin_unlock(&drvdata->spinlock); in tpdm_disable()
517 spin_unlock(&drvdata->spinlock); in tpdm_disable()
569 spin_lock(&drvdata->spinlock); in reset_dataset_store()
571 spin_unlock(&drvdata->spinlock); in reset_dataset_store()
[all …]
/linux-6.12.1/rust/kernel/sync/lock/
Dspinlock.rs3 //! A kernel spinlock.
7 /// Creates a [`SpinLock`] initialiser with the given name and a newly-created lock class.
14 $crate::sync::SpinLock::new(
20 /// A spinlock.
22 /// Exposes the kernel's [`spinlock_t`]. When multiple CPUs attempt to lock the same spinlock, only
23 /// one at a time is allowed to progress, the others will block (spinning) until the spinlock is
26 /// Instances of [`SpinLock`] need a lock class and to be pinned. The recommended way to create such
32 /// contains an inner struct (`Inner`) that is protected by a spinlock.
35 /// use kernel::sync::{new_spinlock, SpinLock};
46 /// d: SpinLock<Inner>,
[all …]
/linux-6.12.1/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 "SPRD Hardware Spinlock device"
35 Say y here to support the SPRD Hardware Spinlock device.
40 tristate "STM32 Hardware Spinlock device"
43 Say y here to support the STM32 Hardware Spinlock device.
48 tristate "SUN6I Hardware Spinlock device"
51 Say y here to support the SUN6I Hardware Spinlock device which can be
/linux-6.12.1/sound/drivers/
Dmtpav.c127 spinlock_t spinlock; member
308 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_output_write()
310 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_output_write()
338 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_input_open()
343 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_input_open()
356 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_input_close()
361 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_input_close()
374 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_input_trigger()
379 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_input_trigger()
394 spin_lock_irqsave(&chip->spinlock, flags); in snd_mtpav_output_timer()
[all …]
/linux-6.12.1/drivers/comedi/drivers/
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-6.12.1/drivers/watchdog/
Dxilinx_wwdt.c53 * @spinlock: spinlock for IO register access
60 spinlock_t spinlock; /* spinlock for register handling */ member
79 spin_lock(&xdev->spinlock); in xilinx_wwdt_start()
91 spin_unlock(&xdev->spinlock); in xilinx_wwdt_start()
103 spin_lock(&xdev->spinlock); in xilinx_wwdt_keepalive()
113 spin_unlock(&xdev->spinlock); in xilinx_wwdt_keepalive()
170 spin_lock_init(&xdev->spinlock); in xwwdt_probe()
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()
/linux-6.12.1/drivers/gpio/
Dgpio-ml-ioh.c76 * @spinlock: Used for register access protection
87 spinlock_t spinlock; member
98 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_set()
106 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_set()
124 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_direction_output()
137 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_direction_output()
148 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_direction_input()
153 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_direction_input()
257 spin_lock_irqsave(&chip->spinlock, flags); in ioh_irq_type()
297 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_irq_type()
[all …]
Dgpio-tqmx86.c49 raw_spinlock_t spinlock; member
78 raw_spin_lock_irqsave(&gpio->spinlock, flags); in tqmx86_gpio_set()
81 raw_spin_unlock_irqrestore(&gpio->spinlock, flags); in tqmx86_gpio_set()
116 __must_hold(&gpio->spinlock) in tqmx86_gpio_irq_config()
142 raw_spin_lock_irqsave(&gpio->spinlock, flags); in tqmx86_gpio_irq_mask()
145 raw_spin_unlock_irqrestore(&gpio->spinlock, flags); in tqmx86_gpio_irq_mask()
159 raw_spin_lock_irqsave(&gpio->spinlock, flags); in tqmx86_gpio_irq_unmask()
162 raw_spin_unlock_irqrestore(&gpio->spinlock, flags); in tqmx86_gpio_irq_unmask()
188 raw_spin_lock_irqsave(&gpio->spinlock, flags); in tqmx86_gpio_irq_set_type()
192 raw_spin_unlock_irqrestore(&gpio->spinlock, flags); in tqmx86_gpio_irq_set_type()
[all …]
Dgpio-pch.c89 * @spinlock: Used for register access protection
99 spinlock_t spinlock; member
108 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_set()
116 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_set()
134 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_output()
148 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_direction_output()
159 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_input()
164 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_direction_input()
266 spin_lock_irqsave(&chip->spinlock, flags); in pch_irq_type()
278 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_irq_type()
[all …]
/linux-6.12.1/drivers/media/rc/
Dite-cir.c175 * spinlock held */
232 /* grab the spinlock */ in ite_cir_isr()
253 /* drop the spinlock, since the ir-core layer in ite_cir_isr()
261 /* reacquire the spinlock */ in ite_cir_isr()
278 /* drop the spinlock */ in ite_cir_isr()
415 /* drop the spinlock */ in ite_tx_ir()
422 /* get the spinlock again */ in ite_tx_ir()
448 /* drop the spinlock while we sleep */ in ite_tx_ir()
454 /* reacquire the spinlock */ in ite_tx_ir()
516 /* set the carrier parameters; to be called with the spinlock held */
[all …]
/linux-6.12.1/lib/
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-6.12.1/include/linux/
Dlockref.h9 * are atomic with respect to the spinlock that goes with them. In
11 * the spinlock for the common decrement/increment operations, but they
13 * the spinlock had been taken (using a cmpxchg operation that covers
18 #include <linux/spinlock.h>
46 /* Must be called under spinlock for reliable results */
Dspinlock_types.h5 * include/linux/spinlock_types.h - generic spinlock type definitions
16 /* Non PREEMPT_RT kernels map spinlock to raw_spinlock */
17 typedef struct spinlock { struct
47 /* PREEMPT_RT kernels map spinlock to rt_mutex */
50 typedef struct spinlock { struct

12345678910>>...115