| /kernel/linux/linux-6.6/fs/ocfs2/dlm/ |
| D | dlmthread.c | 40 /* 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 …]
|
| D | dlmmaster.c | 22 #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 …]
|
| D | dlmconvert.c | 21 #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 …]
|
| D | dlmrecovery.c | 103 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 …]
|
| /kernel/linux/linux-5.10/fs/ocfs2/dlm/ |
| D | dlmthread.c | 42 /* 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 …]
|
| D | dlmmaster.c | 24 #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 …]
|
| D | dlmconvert.c | 23 #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 …]
|
| D | dlmrecovery.c | 105 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/ |
| D | Kconfig | 7 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-6.6/include/asm-generic/ |
| D | qspinlock.h | 3 * 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 …]
|
| /kernel/linux/linux-5.10/include/asm-generic/ |
| D | qspinlock.h | 3 * 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-6.6/drivers/hwtracing/coresight/ |
| D | coresight-etm3x-sysfs.c | 52 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 …]
|
| D | coresight-etm4x-sysfs.c | 177 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 …]
|
| D | coresight-tmc-etf.c | 185 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 …]
|
| D | coresight-cti-sysfs.c | 12 #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 …]
|
| /kernel/linux/linux-5.10/drivers/hwtracing/coresight/ |
| D | coresight-etm3x-sysfs.c | 52 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 …]
|
| D | coresight-etm4x-sysfs.c | 176 spin_lock(&drvdata->spinlock); in reset_store() 270 spin_unlock(&drvdata->spinlock); in reset_store() 299 spin_lock(&drvdata->spinlock); in mode_store() 436 spin_unlock(&drvdata->spinlock); in mode_store() 465 spin_lock(&drvdata->spinlock); in pe_store() 467 spin_unlock(&drvdata->spinlock); in pe_store() 472 spin_unlock(&drvdata->spinlock); in pe_store() 500 spin_lock(&drvdata->spinlock); in event_store() 521 spin_unlock(&drvdata->spinlock); in event_store() 549 spin_lock(&drvdata->spinlock); in event_instren_store() [all …]
|
| D | coresight-tmc-etf.c | 161 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 …]
|
| D | coresight-cti-sysfs.c | 12 #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-6.6/drivers/hwspinlock/ |
| D | Kconfig | 7 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
|
| /kernel/liteos_a/kernel/include/ |
| D | los_spinlock.h | 50 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-6.6/rust/kernel/sync/lock/ |
| D | spinlock.rs | 3 //! A kernel spinlock. 9 /// Creates a [`SpinLock`] initialiser with the given name and a newly-created lock class. 16 $crate::sync::SpinLock::new( 21 /// A spinlock. 23 /// Exposes the kernel's [`spinlock_t`]. When multiple CPUs attempt to lock the same spinlock, only 24 /// one at a time is allowed to progress, the others will block (spinning) until the spinlock is 27 /// Instances of [`SpinLock`] need a lock class and to be pinned. The recommended way to create such 33 /// contains an inner struct (`Inner`) that is protected by a spinlock. 36 /// use kernel::{init::InPlaceInit, init::PinInit, new_spinlock, pin_init, sync::SpinLock}; 47 /// d: SpinLock<Inner>, [all …]
|
| /kernel/linux/linux-5.10/sound/drivers/ |
| D | mtpav.c | 128 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-6.6/sound/drivers/ |
| D | mtpav.c | 127 spinlock_t spinlock; member 312 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_output_write() 314 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_output_write() 342 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_input_open() 347 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_input_open() 360 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_input_close() 365 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_input_close() 378 spin_lock_irqsave(&mtp_card->spinlock, flags); in snd_mtpav_input_trigger() 383 spin_unlock_irqrestore(&mtp_card->spinlock, flags); in snd_mtpav_input_trigger() 398 spin_lock_irqsave(&chip->spinlock, flags); in snd_mtpav_output_timer() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| D | drm_lock.c | 65 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 …]
|