| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/ |
| H A D | mali_spinlock_reentrant.c | 18 struct mali_spinlock_reentrant *spinlock; in mali_spinlock_reentrant_init() local 20 spinlock = _mali_osk_calloc(1, sizeof(struct mali_spinlock_reentrant)); in mali_spinlock_reentrant_init() 21 if (NULL == spinlock) { in mali_spinlock_reentrant_init() 25 spinlock->lock = _mali_osk_spinlock_irq_init(_MALI_OSK_LOCKFLAG_ORDERED, lock_order); in mali_spinlock_reentrant_init() 26 if (NULL == spinlock->lock) { in mali_spinlock_reentrant_init() 27 mali_spinlock_reentrant_term(spinlock); in mali_spinlock_reentrant_init() 31 return spinlock; in mali_spinlock_reentrant_init() 34 void mali_spinlock_reentrant_term(struct mali_spinlock_reentrant *spinlock) in mali_spinlock_reentrant_term() argument 36 MALI_DEBUG_ASSERT_POINTER(spinlock); in mali_spinlock_reentrant_term() 37 MALI_DEBUG_ASSERT(0 == spinlock->counter && 0 == spinlock->owner); in mali_spinlock_reentrant_term() [all …]
|
| H A D | mali_spinlock_reentrant.h | 18 * Reentrant spinlock. 27 * Create a new reentrant spinlock. 30 * @return New reentrant spinlock. 35 * Terminate reentrant spinlock and free any associated resources. 37 * @param spinlock Reentrant spinlock to terminate. 39 void mali_spinlock_reentrant_term(struct mali_spinlock_reentrant *spinlock); 42 * Wait for reentrant spinlock to be signaled. 44 * @param spinlock Reentrant spinlock. 47 void mali_spinlock_reentrant_wait(struct mali_spinlock_reentrant *spinlock, u32 tid); 50 * Signal reentrant spinlock. [all …]
|
| /OK3568_Linux_fs/kernel/fs/ocfs2/dlm/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | dlmdomain.c | 17 #include <linux/spinlock.h> 95 * spinlock lock ordering: if multiple locks are needed, obey this ordering: 97 * struct dlm_ctxt->spinlock 98 * struct dlm_lock_resource->spinlock 101 * dlm_master_list_entry->spinlock 102 * dlm_lock->spinlock 162 assert_spin_locked(&dlm->spinlock); in __dlm_insert_lockres() 185 assert_spin_locked(&dlm->spinlock); in __dlm_lookup_lockres_full() 217 assert_spin_locked(&dlm->spinlock); in __dlm_lookup_lockres() 221 spin_lock(&res->spinlock); in __dlm_lookup_lockres() [all …]
|
| H A D | dlmunlock.c | 23 #include <linux/spinlock.h> 78 * taken: res->spinlock and lock->spinlock taken and dropped 116 spin_lock(&res->spinlock); in dlmunlock_common() 120 spin_unlock(&res->spinlock); in dlmunlock_common() 127 spin_lock(&lock->spinlock); in dlmunlock_common() 166 spin_unlock(&lock->spinlock); in dlmunlock_common() 167 spin_unlock(&res->spinlock); in dlmunlock_common() 170 spin_lock(&res->spinlock); in dlmunlock_common() 171 spin_lock(&lock->spinlock); in dlmunlock_common() 232 spin_unlock(&lock->spinlock); in dlmunlock_common() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/hwtracing/coresight/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | coresight-tmc-etf.c | 163 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs() 165 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs() 167 /* Allocating the memory here while outside of the spinlock */ in tmc_enable_etf_sink_sysfs() 173 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs() 216 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_sysfs() 218 /* Free memory outside the spinlock if need be */ in tmc_enable_etf_sink_sysfs() 234 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_enable_etf_sink_perf() 277 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_enable_etf_sink_perf() 312 spin_lock_irqsave(&drvdata->spinlock, flags); in tmc_disable_etf_sink() 315 spin_unlock_irqrestore(&drvdata->spinlock, flags); in tmc_disable_etf_sink() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/hwspinlock/ |
| H A 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 "Rockchip Hardware Spinlock device" 35 Say y here to support the Rockchip Hardware Spinlock device, which 42 tristate "SIRF Hardware Spinlock device" 45 Say y here to support the SIRF Hardware Spinlock device, which 50 spinlock or just want a bare minimum kernel. 53 tristate "SPRD Hardware Spinlock device" [all …]
|
| /OK3568_Linux_fs/kernel/include/asm-generic/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/ |
| H A D | mali_osk_locks.h | 18 #include <linux/spinlock.h> 45 spinlock_t spinlock; member 54 spinlock_t spinlock; member 95 …ore use _mali_osk_spin_lock, init function should be used to allocate memory and initial spinlock*/ 104 spin_lock_init(&lock->spinlock); in _mali_osk_spinlock_init() 109 /** @brief Lock a spinlock */ 113 spin_lock(&lock->spinlock); in _mali_osk_spinlock_lock() 117 /** @brief Unlock a spinlock */ 122 spin_unlock(&lock->spinlock); in _mali_osk_spinlock_unlock() 137 * called to initial spinlock and flags in struct _mali_osk_spinlock_irq_t. */ [all …]
|
| /OK3568_Linux_fs/kernel/sound/drivers/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/comedi/drivers/ |
| H A D | das800.c | 238 spin_lock_irqsave(&dev->spinlock, irq_flags); in das800_enable() 246 spin_unlock_irqrestore(&dev->spinlock, irq_flags); in das800_enable() 253 spin_lock_irqsave(&dev->spinlock, irq_flags); in das800_disable() 256 spin_unlock_irqrestore(&dev->spinlock, irq_flags); in das800_disable() 381 spin_lock_irqsave(&dev->spinlock, irq_flags); in das800_ai_do_cmd() 384 spin_unlock_irqrestore(&dev->spinlock, irq_flags); in das800_ai_do_cmd() 405 spin_lock_irqsave(&dev->spinlock, irq_flags); in das800_ai_do_cmd() 407 spin_unlock_irqrestore(&dev->spinlock, irq_flags); in das800_ai_do_cmd() 444 spin_lock_irqsave(&dev->spinlock, irq_flags); in das800_interrupt() 447 * Don't release spinlock yet since we want to make sure in das800_interrupt() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/accessibility/speakup/ |
| H A D | synth.c | 29 * 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 D | speakup_apollo.c | 140 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 142 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 146 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 152 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 158 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 164 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 172 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 176 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 186 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 188 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
|
| H A D | speakup_decext.c | 158 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 160 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 164 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 167 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 173 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 179 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 187 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 189 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 201 spin_lock_irqsave(&speakup_info.spinlock, in do_catch_up() 205 spin_unlock_irqrestore(&speakup_info.spinlock, in do_catch_up()
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-ml-ioh.c | 76 * @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() 259 spin_lock_irqsave(&chip->spinlock, flags); in ioh_irq_type() 299 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_irq_type() [all …]
|
| H A D | gpio-pch.c | 85 * @spinlock: Used for register access protection 95 spinlock_t spinlock; member 104 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_set() 112 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_set() 130 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_output() 144 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_direction_output() 155 spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_input() 160 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_direction_input() 262 spin_lock_irqsave(&chip->spinlock, flags); in pch_irq_type() 274 spin_unlock_irqrestore(&chip->spinlock, flags); in pch_irq_type() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/rc/ |
| H A D | ite-cir.c | 210 * spinlock held */ 273 /* grab the spinlock */ in ite_cir_isr() 293 /* drop the spinlock, since the ir-core layer in ite_cir_isr() 304 /* reacquire the spinlock */ in ite_cir_isr() 322 /* drop the spinlock */ in ite_cir_isr() 467 /* drop the spinlock */ in ite_tx_ir() 473 /* get the spinlock again */ in ite_tx_ir() 500 /* drop the spinlock while we sleep */ in ite_tx_ir() 506 /* reacquire the spinlock */ in ite_tx_ir() 573 /* set the carrier parameters; to be called with the spinlock held */ [all …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | refcount.c | 8 #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
|