/linux/drivers/media/pci/tw5864/ |
H A D | tw5864-core.c | 87 spin_lock_irqsave(&dev->slock, flags); in tw5864_interrupts_disable() 90 spin_unlock_irqrestore(&dev->slock, flags); in tw5864_interrupts_disable() 131 spin_lock_irqsave(&dev->slock, flags); in tw5864_h264_isr() 151 spin_lock(&input->slock); in tw5864_h264_isr() 156 spin_unlock(&input->slock); in tw5864_h264_isr() 165 spin_unlock_irqrestore(&dev->slock, flags); in tw5864_h264_isr() 189 spin_lock_irqsave(&dev->slock, flags); in tw5864_timer_isr() 191 spin_unlock_irqrestore(&dev->slock, flags); in tw5864_timer_isr() 205 spin_lock_irqsave(&input->slock, flags); in tw5864_timer_isr() 216 spin_unlock_irqrestore(&input->slock, flags); in tw5864_timer_isr() [all …]
|
/linux/arch/arc/include/asm/ |
H A D | spinlock.h | 13 #define arch_spin_is_locked(x) ((x)->slock != __ARCH_SPIN_LOCK_UNLOCKED__) 28 : [slock] "r" (&(lock->slock)), in arch_spin_lock() 58 : [slock] "r" (&(lock->slock)), in arch_spin_trylock() 71 WRITE_ONCE(lock->slock, __ARCH_SPIN_LOCK_UNLOCKED__); in arch_spin_unlock() 237 : "r"(&(lock->slock)), "ir"(__ARCH_SPIN_LOCK_LOCKED__) in arch_spin_lock() 253 : "r"(&(lock->slock)) in arch_spin_trylock() 280 : "r"(&(lock->slock)) in arch_spin_unlock()
|
/linux/include/linux/ |
H A D | spinlock_up.h | 27 #define arch_spin_is_locked(x) ((x)->slock == 0) 31 lock->slock = 0; in arch_spin_lock() 37 char oldval = lock->slock; in arch_spin_trylock() 39 lock->slock = 0; in arch_spin_trylock() 48 lock->slock = 1; in arch_spin_unlock()
|
/linux/drivers/tty/ |
H A D | mxser.c | 276 spinlock_t slock; member 447 spin_lock_irqsave(&info->slock, flags); in mxser_start_tx() 449 spin_unlock_irqrestore(&info->slock, flags); in mxser_start_tx() 471 spin_lock_irqsave(&mp->slock, flags); in mxser_dtr_rts() 478 spin_unlock_irqrestore(&mp->slock, flags); in mxser_dtr_rts() 733 spin_lock_irqsave(&info->slock, flags); in mxser_activate() 737 spin_unlock_irqrestore(&info->slock, flags); in mxser_activate() 754 spin_unlock_irqrestore(&info->slock, flags); in mxser_activate() 803 spin_unlock_irqrestore(&info->slock, flags); in mxser_activate() 833 spin_lock_irqsave(&info->slock, flags); in mxser_shutdown_port() [all …]
|
/linux/arch/arm/include/asm/ |
H A D | spinlock.h | 62 prefetchw(&lock->slock); in arch_spin_lock() 70 : "r" (&lock->slock), "I" (1 << TICKET_SHIFT) in arch_spin_lock() 84 u32 slock; in arch_spin_trylock() local 86 prefetchw(&lock->slock); in arch_spin_trylock() 94 : "=&r" (slock), "=&r" (contended), "=&r" (res) in arch_spin_trylock() 95 : "r" (&lock->slock), "I" (1 << TICKET_SHIFT) in arch_spin_trylock()
|
/linux/drivers/iio/adc/ |
H A D | ti-ads7950.c | 74 struct mutex slock; member 311 mutex_lock(&st->slock); in ti_ads7950_trigger_handler() 320 mutex_unlock(&st->slock); in ti_ads7950_trigger_handler() 331 mutex_lock(&st->slock); in ti_ads7950_scan_direct() 342 mutex_unlock(&st->slock); in ti_ads7950_scan_direct() 411 mutex_lock(&st->slock); in ti_ads7950_set() 421 mutex_unlock(&st->slock); in ti_ads7950_set() 429 mutex_lock(&st->slock); in ti_ads7950_get() 454 mutex_unlock(&st->slock); in ti_ads7950_get() 474 mutex_lock(&st->slock); in _ti_ads7950_set_direction() [all …]
|
/linux/drivers/hte/ |
H A D | hte.c | 62 spinlock_t slock; member 206 spin_lock_irqsave(&ei->slock, flag); in hte_ts_put() 209 spin_unlock_irqrestore(&ei->slock, flag); in hte_ts_put() 211 spin_lock_irqsave(&ei->slock, flag); in hte_ts_put() 221 spin_unlock_irqrestore(&ei->slock, flag); in hte_ts_put() 264 spin_lock_irqsave(&ei->slock, flag); in hte_ts_dis_en_common() 272 spin_unlock_irqrestore(&ei->slock, flag); in hte_ts_dis_en_common() 280 spin_lock_irqsave(&ei->slock, flag); in hte_ts_dis_en_common() 288 spin_unlock_irqrestore(&ei->slock, flag); in hte_ts_dis_en_common() 296 spin_lock_irqsave(&ei->slock, flag); in hte_ts_dis_en_common() [all …]
|
/linux/drivers/media/platform/st/sti/bdisp/ |
H A D | bdisp-v4l2.c | 124 spin_lock_irqsave(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_lock_set() 126 spin_unlock_irqrestore(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_lock_set() 133 spin_lock_irqsave(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_lock_clear() 135 spin_unlock_irqrestore(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_lock_clear() 143 spin_lock_irqsave(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_is_set() 145 spin_unlock_irqrestore(&ctx->bdisp_dev->slock, flags); in bdisp_ctx_state_is_set() 317 spin_lock_irqsave(&bdisp->slock, flags); in bdisp_device_run() 358 spin_unlock_irqrestore(&bdisp->slock, flags); in bdisp_device_run() 397 spin_lock_irqsave(&ctx->bdisp_dev->slock, flags); in bdisp_s_ctrl() 399 spin_unlock_irqrestore(&ctx->bdisp_dev->slock, flags); in bdisp_s_ctrl() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | simple_spinlock.h | 37 return lock.slock == 0; in arch_spin_value_unlocked() 64 : "r" (token), "r" (&lock->slock), [eh] "n" (eh) in __arch_spin_trylock() 123 } while (unlikely(lock->slock != 0)); in arch_spin_lock() 133 lock->slock = 0; in arch_spin_unlock()
|
/linux/drivers/media/dvb-core/ |
H A D | dvb_vb2.c | 73 spin_lock_irqsave(&ctx->slock, flags); in _buffer_queue() 75 spin_unlock_irqrestore(&ctx->slock, flags); in _buffer_queue() 96 spin_lock_irqsave(&ctx->slock, flags); in _stop_streaming() 103 spin_unlock_irqrestore(&ctx->slock, flags); in _stop_streaming() 186 spin_lock_init(&ctx->slock); in dvb_vb2_init() 266 spin_lock_irqsave(&ctx->slock, flags); in dvb_vb2_fill_buffer() 315 spin_unlock_irqrestore(&ctx->slock, flags); in dvb_vb2_fill_buffer() 421 spin_lock_irqsave(&ctx->slock, flags); in dvb_vb2_dqbuf() 425 spin_unlock_irqrestore(&ctx->slock, flags); in dvb_vb2_dqbuf()
|
/linux/drivers/gpio/ |
H A D | gpio-rockchip.c | 173 raw_spin_lock_irqsave(&bank->slock, flags); in rockchip_gpio_set_direction() 175 raw_spin_unlock_irqrestore(&bank->slock, flags); in rockchip_gpio_set_direction() 186 raw_spin_lock_irqsave(&bank->slock, flags); in rockchip_gpio_set() 188 raw_spin_unlock_irqrestore(&bank->slock, flags); in rockchip_gpio_set() 227 raw_spin_lock_irqsave(&bank->slock, flags); in rockchip_gpio_set_debounce() 251 raw_spin_unlock_irqrestore(&bank->slock, flags); in rockchip_gpio_set_debounce() 364 raw_spin_lock_irqsave(&bank->slock, flags); in rockchip_irq_demux() 376 raw_spin_unlock_irqrestore(&bank->slock, flags); in rockchip_irq_demux() 401 raw_spin_lock_irqsave(&bank->slock, flags); in rockchip_irq_set_type() 406 raw_spin_unlock_irqrestore(&bank->slock, flags); in rockchip_irq_set_type() [all …]
|
/linux/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.h | 329 spinlock_t slock; member 416 spin_lock_irqsave(&ctx->gsc_dev->slock, flags); in gsc_ctx_state_lock_set() 418 spin_unlock_irqrestore(&ctx->gsc_dev->slock, flags); in gsc_ctx_state_lock_set() 425 spin_lock_irqsave(&ctx->gsc_dev->slock, flags); in gsc_ctx_state_lock_clear() 427 spin_unlock_irqrestore(&ctx->gsc_dev->slock, flags); in gsc_ctx_state_lock_clear() 472 spin_lock_irqsave(&ctx->gsc_dev->slock, flags); in gsc_ctx_state_is_set() 474 spin_unlock_irqrestore(&ctx->gsc_dev->slock, flags); in gsc_ctx_state_is_set()
|
/linux/drivers/media/pci/cx88/ |
H A D | cx88-mpeg.c | 278 spin_lock_irqsave(&dev->slock, flags); in do_cancel_buffers() 284 spin_unlock_irqrestore(&dev->slock, flags); in do_cancel_buffers() 333 spin_lock(&dev->slock); in cx8802_mpeg_irq() 336 spin_unlock(&dev->slock); in cx8802_mpeg_irq() 342 spin_lock(&dev->slock); in cx8802_mpeg_irq() 344 spin_unlock(&dev->slock); in cx8802_mpeg_irq() 406 spin_lock_init(&dev->slock); in cx8802_init_common() 443 spin_lock_irqsave(&dev->slock, flags); in cx8802_suspend_common() 449 spin_unlock_irqrestore(&dev->slock, flags); in cx8802_suspend_common() 491 spin_lock_irqsave(&dev->slock, flags); in cx8802_resume_common() [all …]
|
/linux/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-core.h | 416 spinlock_t slock; member 533 spin_lock_irqsave(&fimc->slock, flags); in fimc_capture_active() 536 spin_unlock_irqrestore(&fimc->slock, flags); in fimc_capture_active() 544 spin_lock_irqsave(&ctx->fimc_dev->slock, flags); in fimc_ctx_state_set() 546 spin_unlock_irqrestore(&ctx->fimc_dev->slock, flags); in fimc_ctx_state_set() 554 spin_lock_irqsave(&ctx->fimc_dev->slock, flags); in fimc_ctx_state_is_set() 556 spin_unlock_irqrestore(&ctx->fimc_dev->slock, flags); in fimc_ctx_state_is_set()
|
H A D | fimc-lite.h | 155 spinlock_t slock; member 184 spin_lock_irqsave(&fimc->slock, flags); in fimc_lite_active() 187 spin_unlock_irqrestore(&fimc->slock, flags); in fimc_lite_active()
|
H A D | fimc-core.c | 298 spin_lock(&fimc->slock); in fimc_irq_handler() 308 spin_unlock(&fimc->slock); in fimc_irq_handler() 323 spin_unlock(&fimc->slock); in fimc_irq_handler() 561 spin_lock_irqsave(&ctx->fimc_dev->slock, flags); in fimc_s_ctrl() 563 spin_unlock_irqrestore(&ctx->fimc_dev->slock, flags); in fimc_s_ctrl() 827 spin_lock_irqsave(&fimc->slock, flags); in fimc_m2m_suspend() 829 spin_unlock_irqrestore(&fimc->slock, flags); in fimc_m2m_suspend() 834 spin_unlock_irqrestore(&fimc->slock, flags); in fimc_m2m_suspend() 849 spin_lock_irqsave(&fimc->slock, flags); in fimc_m2m_resume() 853 spin_unlock_irqrestore(&fimc->slock, flags); in fimc_m2m_resume() [all …]
|
/linux/drivers/clk/samsung/ |
H A D | clk-exynos-clkout.c | 34 spinlock_t slock; member 141 spin_lock_init(&clkout->slock); in exynos_clkout_probe() 170 clkout->gate.lock = &clkout->slock; in exynos_clkout_probe() 175 clkout->mux.lock = &clkout->slock; in exynos_clkout_probe()
|
/linux/arch/powerpc/lib/ |
H A D | locks.c | 25 lock_value = lock->slock; in splpar_spin_yield() 35 if (lock->slock != lock_value) in splpar_spin_yield()
|
/linux/drivers/scsi/cxlflash/ |
H A D | ocxl_hw.c | 311 spin_lock(&ctx->slock); in ocxlflash_xsl_fault() 315 spin_unlock(&ctx->slock); in ocxlflash_xsl_fault() 506 spin_lock_init(&ctx->slock); in ocxlflash_dev_context_init() 991 spin_lock_irqsave(&ctx->slock, lock_flags); in afu_poll() 996 spin_unlock_irqrestore(&ctx->slock, lock_flags); in afu_poll() 1032 spin_lock_irqsave(&ctx->slock, lock_flags); in afu_read() 1054 spin_unlock_irqrestore(&ctx->slock, lock_flags); in afu_read() 1056 spin_lock_irqsave(&ctx->slock, lock_flags); in afu_read() 1082 spin_unlock_irqrestore(&ctx->slock, lock_flags); in afu_read() 1095 spin_unlock_irqrestore(&ctx->slock, lock_flags); in afu_read() [all …]
|
/linux/drivers/media/common/saa7146/ |
H A D | saa7146_fops.c | 52 assert_spin_locked(&dev->slock); in saa7146_buffer_queue() 77 assert_spin_locked(&dev->slock); in saa7146_buffer_finish() 111 assert_spin_locked(&dev->slock); in saa7146_buffer_next() 162 spin_lock_irqsave(&dev->slock,flags); in saa7146_buffer_timeout() 177 spin_unlock_irqrestore(&dev->slock,flags); in saa7146_buffer_timeout()
|
/linux/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-prng.c | 41 spin_lock_bh(&ss->slock); in sun4i_ss_prng_generate() 64 spin_unlock_bh(&ss->slock); in sun4i_ss_prng_generate()
|
/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-samsung.c | 406 raw_spin_lock_irqsave(&bank->slock, flags); in samsung_pinmux_setup() 413 raw_spin_unlock_irqrestore(&bank->slock, flags); in samsung_pinmux_setup() 466 raw_spin_lock_irqsave(&bank->slock, flags); in samsung_pinconf_rw() 483 raw_spin_unlock_irqrestore(&bank->slock, flags); in samsung_pinconf_rw() 584 raw_spin_lock_irqsave(&bank->slock, flags); in samsung_gpio_set() 586 raw_spin_unlock_irqrestore(&bank->slock, flags); in samsung_gpio_set() 669 raw_spin_lock_irqsave(&bank->slock, flags); in samsung_gpio_direction_input() 671 raw_spin_unlock_irqrestore(&bank->slock, flags); in samsung_gpio_direction_input() 693 raw_spin_lock_irqsave(&bank->slock, flags); in samsung_gpio_direction_output() 696 raw_spin_unlock_irqrestore(&bank->slock, flags); in samsung_gpio_direction_output() [all …]
|
/linux/drivers/phy/samsung/ |
H A D | phy-exynos-mipi-video.c | 224 spinlock_t slock; member 233 spin_lock(&state->slock); in __set_phy_state() 252 spin_unlock(&state->slock); in __set_phy_state() 320 spin_lock_init(&state->slock); in exynos_mipi_video_phy_probe()
|
/linux/drivers/pmdomain/apple/ |
H A D | pmgr-pwrstate.c | 121 spin_lock_irqsave(&ps->genpd.slock, flags); in apple_pmgr_reset_assert() 133 spin_unlock_irqrestore(&ps->genpd.slock, flags); in apple_pmgr_reset_assert() 143 spin_lock_irqsave(&ps->genpd.slock, flags); in apple_pmgr_reset_deassert() 152 spin_unlock_irqrestore(&ps->genpd.slock, flags); in apple_pmgr_reset_deassert()
|
/linux/drivers/media/pci/cx18/ |
H A D | cx18-alsa-pcm.c | 225 spin_lock_irqsave(&cxsc->slock, flags); in snd_cx18_pcm_pointer() 227 spin_unlock_irqrestore(&cxsc->slock, flags); in snd_cx18_pcm_pointer() 259 spin_lock_init(&cxsc->slock); in snd_cx18_pcm_create()
|