Home
last modified time | relevance | path

Searched refs:_lock (Results 1 – 25 of 35) sorted by relevance

12

/linux/drivers/clk/spear/
H A Dspear1310_clock.c227 static DEFINE_SPINLOCK(_lock);
405 &_lock); in spear1310_clk_init()
413 SPEAR1310_PLL_CLK_MASK, 0, &_lock); in spear1310_clk_init()
417 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1310_clk_init()
424 SPEAR1310_PLL_CLK_MASK, 0, &_lock); in spear1310_clk_init()
428 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1310_clk_init()
435 SPEAR1310_PLL_CLK_MASK, 0, &_lock); in spear1310_clk_init()
439 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1310_clk_init()
445 ARRAY_SIZE(pll4_rtbl), &_lock, &clk1, NULL); in spear1310_clk_init()
479 &_lock); in spear1310_clk_init()
[all …]
H A Dspear6xx_clock.c15 static DEFINE_SPINLOCK(_lock);
126 PERIP1_CLK_ENB, RTC_CLK_ENB, 0, &_lock); in spear6xx_clk_init()
136 &_lock, &clk1, NULL); in spear6xx_clk_init()
142 &_lock, &clk1, NULL); in spear6xx_clk_init()
157 HCLK_RATIO_MASK, 0, &_lock); in spear6xx_clk_init()
162 &_lock, &clk1); in spear6xx_clk_init()
169 &_lock); in spear6xx_clk_init()
173 UART0_CLK_ENB, 0, &_lock); in spear6xx_clk_init()
177 UART1_CLK_ENB, 0, &_lock); in spear6xx_clk_init()
182 &_lock, &clk1); in spear6xx_clk_init()
[all …]
H A Dspear3xx_clock.c18 static DEFINE_SPINLOCK(_lock);
299 I2S_REF_PCLK_MASK, 0, &_lock); in spear320_clk_init()
319 SPEAR320_UARTX_PCLK_MASK, 0, &_lock); in spear320_clk_init()
326 0, &_lock); in spear320_clk_init()
332 0, &_lock); in spear320_clk_init()
342 0, &_lock); in spear320_clk_init()
351 SPEAR320_UARTX_PCLK_MASK, 0, &_lock); in spear320_clk_init()
360 SPEAR320_UARTX_PCLK_MASK, 0, &_lock); in spear320_clk_init()
367 SPEAR320_UARTX_PCLK_MASK, 0, &_lock); in spear320_clk_init()
374 SPEAR320_UARTX_PCLK_MASK, 0, &_lock); in spear320_clk_init()
[all …]
/linux/drivers/clk/sunxi-ng/
H A Dccu_nm.h43 _gate, _lock, _flags) \ argument
46 .lock = _lock, \
66 _gate, _lock, _flags) \ argument
69 .lock = _lock, \
91 _gate, _lock, _flags) \ argument
94 .lock = _lock, \
119 _gate, _lock, _flags, \ argument
123 .lock = _lock, \
149 _gate, _lock, _flags) \ argument
158 _gate, _lock, _flags, \
[all …]
H A Dccu_nkm.h41 _gate, _lock, _flags) \ argument
44 .lock = _lock, \
62 _gate, _lock, _flags) \ argument
65 .lock = _lock, \
H A Dccu_nk.h36 _gate, _lock, _postdiv, \ argument
40 .lock = _lock, \
H A Dccu_nkmp.h40 _gate, _lock, _flags) \ argument
43 .lock = _lock, \
H A Dccu_mult.h46 _mshift, _mwidth, _gate, _lock, \ argument
50 .lock = _lock, \
/linux/include/linux/
H A Dcleanup.h391 #define DEFINE_GUARD(_name, _type, _lock, _unlock) \ argument
392 DEFINE_CLASS(_name, _type, if (!__GUARD_IS_ERR(_T)) { _unlock; }, ({ _lock; _T; }), _type _T); \
395 #define DEFINE_GUARD_COND_4(_name, _ext, _lock, _cond) \ argument
398 ({ void *_t = _T; int _RET = (_lock); if (_T && !(_cond)) _t = ERR_PTR(_RET); _t; }), \
408 #define DEFINE_GUARD_COND_3(_name, _ext, _lock) \ argument
409 DEFINE_GUARD_COND_4(_name, _ext, _lock, _RET)
489 #define __DEFINE_LOCK_GUARD_1(_name, _type, _lock) \ argument
493 _lock; \
497 #define __DEFINE_LOCK_GUARD_0(_name, _lock) \ argument
502 _lock; \
[all …]
H A Dspinlock.h341 # define spin_lock_init(_lock) \ argument
343 spinlock_check(_lock); \
344 *(_lock) = __SPIN_LOCK_UNLOCKED(_lock); \
H A Dseqlock.h123 #define seqcount_LOCKNAME_init(s, _lock, lockname) \ argument
127 __SEQ_LOCK(____s->lock = (_lock)); \
166 __SEQ_LOCK(lockbase##_lock(s->lock)); \
/linux/drivers/md/
H A Ddm-exception-store.c21 static DEFINE_SPINLOCK(_lock);
38 spin_lock(&_lock); in _get_exception_store_type()
45 spin_unlock(&_lock); in _get_exception_store_type()
106 spin_lock(&_lock); in put_type()
108 spin_unlock(&_lock); in put_type()
115 spin_lock(&_lock); in dm_exception_store_type_register()
120 spin_unlock(&_lock); in dm_exception_store_type_register()
128 spin_lock(&_lock); in dm_exception_store_type_unregister()
131 spin_unlock(&_lock); in dm_exception_store_type_unregister()
137 spin_unlock(&_lock); in dm_exception_store_type_unregister()
H A Ddm-log.c21 static DEFINE_SPINLOCK(_lock);
38 spin_lock(&_lock); in _get_dirty_log_type()
44 spin_unlock(&_lock); in _get_dirty_log_type()
106 spin_lock(&_lock); in put_type()
113 spin_unlock(&_lock); in put_type()
120 spin_lock(&_lock); in dm_dirty_log_type_register()
125 spin_unlock(&_lock); in dm_dirty_log_type_register()
133 spin_lock(&_lock); in dm_dirty_log_type_unregister()
136 spin_unlock(&_lock); in dm_dirty_log_type_unregister()
142 spin_unlock(&_lock); in dm_dirty_log_type_unregister()
/linux/arch/x86/include/asm/
H A Dcmpxchg_32.h17 #define __arch_cmpxchg64(_ptr, _old, _new, _lock) \ argument
22 asm_inline volatile(_lock "cmpxchg8b %[ptr]" \
42 #define __arch_try_cmpxchg64(_ptr, _oldp, _new, _lock) \ argument
48 asm_inline volatile(_lock "cmpxchg8b %[ptr]" \
88 #define __arch_cmpxchg64_emu(_ptr, _old, _new, _lock_loc, _lock) \ argument
96 _lock "cmpxchg8b %a[ptr]", X86_FEATURE_CX8) \
117 #define __arch_try_cmpxchg64_emu(_ptr, _oldp, _new, _lock_loc, _lock) \ argument
126 _lock "cmpxchg8b %a[ptr]", X86_FEATURE_CX8) \
H A Dcmpxchg_64.h36 #define __arch_cmpxchg128(_ptr, _old, _new, _lock) \ argument
41 asm_inline volatile(_lock "cmpxchg16b %[ptr]" \
62 #define __arch_try_cmpxchg128(_ptr, _oldp, _new, _lock) \ argument
68 asm_inline volatile(_lock "cmpxchg16b %[ptr]" \
/linux/drivers/clk/tegra/
H A Dclk.h644 _gate_flags, _table, _lock) \ argument
651 .lock = _lock, \
658 .lock = _lock, \
688 _flags, _lock) \ argument
698 _gate_flags, _table, _lock), \
H A Dclk-tegra-periph.c153 #define MUX8_NOGATE_LOCK(_name, _parents, _offset, _clk_id, _lock) \ argument
157 _parents##_idx, 0, _lock)
223 _gate_flags, _clk_id, _lock) \ argument
227 _clk_id, _parents##_idx, 0, _lock)
848 .lock = &_offset ##_lock,\
H A Dclk-tegra124.c97 #define MUX8_NOGATE_LOCK(_name, _parents, _offset, _clk_id, _lock) \ argument
101 _parents##_idx, 0, _lock)
105 _gate_flags, _clk_id, _lock) \ argument
109 _clk_id, _parents##_idx, 0, _lock)
/linux/arch/arm/mach-omap2/
H A Domap_hwmod.c2575 spin_lock_init(&oh->_lock); in _register()
2576 lockdep_set_class(&oh->_lock, &oh->hwmod_key); in _register()
3438 spin_lock_irqsave(&oh->_lock, flags); in omap_hwmod_allocate_module()
3451 spin_unlock_irqrestore(&oh->_lock, flags); in omap_hwmod_allocate_module()
3677 spin_lock_irqsave(&oh->_lock, flags); in omap_hwmod_enable()
3679 spin_unlock_irqrestore(&oh->_lock, flags); in omap_hwmod_enable()
3699 spin_lock_irqsave(&oh->_lock, flags); in omap_hwmod_idle()
3701 spin_unlock_irqrestore(&oh->_lock, flags); in omap_hwmod_idle()
3722 spin_lock_irqsave(&oh->_lock, flags); in omap_hwmod_shutdown()
3724 spin_unlock_irqrestore(&oh->_lock, flags); in omap_hwmod_shutdown()
[all …]
H A Dpowerdomain.h130 spinlock_t _lock; member
H A Domap_hwmod.h593 spinlock_t _lock; member
/linux/drivers/scsi/
H A Dipr.c733 spin_lock(&ioa_cfg->hrrq[i]._lock); in ipr_mask_and_clear_interrupts()
735 spin_unlock(&ioa_cfg->hrrq[i]._lock); in ipr_mask_and_clear_interrupts()
840 spin_lock_irqsave(&hrrq->_lock, hrrq_flags); in ipr_scsi_eh_done()
842 spin_unlock_irqrestore(&hrrq->_lock, hrrq_flags); in ipr_scsi_eh_done()
861 spin_lock(&hrrq->_lock); in ipr_fail_all_ops()
879 spin_unlock(&hrrq->_lock); in ipr_fail_all_ops()
3603 spin_lock(&ioa_cfg->hrrq[i]._lock); in ipr_store_adapter_state()
3605 spin_unlock(&ioa_cfg->hrrq[i]._lock); in ipr_store_adapter_state()
5226 spin_lock(&hrrq->_lock); in ipr_cancel_op()
5235 spin_unlock(&hrrq->_lock); in ipr_cancel_op()
[all …]
/linux/drivers/mtd/chips/
H A Dfwh_lock.h105 mtd->_lock = fwh_lock_varsize; in fixup_use_fwh_lock()
/linux/drivers/clk/
H A Dclk-vt8500.c18 static DEFINE_SPINLOCK(_lock);
242 dev_clk->lock = &_lock; in vtwm_device_clk_init()
706 pll_clk->lock = &_lock; in vtwm_pll_clk_init()
/linux/drivers/mtd/lpddr/
H A Dlpddr2_nvm.c404 ._lock = lpddr2_nvm_lock,

12