Home
last modified time | relevance | path

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

123

/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 Dspear1340_clock.c160 static DEFINE_SPINLOCK(_lock);
462 &_lock); in spear1340_clk_init()
470 SPEAR1340_PLL_CLK_MASK, 0, &_lock); in spear1340_clk_init()
474 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1340_clk_init()
481 SPEAR1340_PLL_CLK_MASK, 0, &_lock); in spear1340_clk_init()
485 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1340_clk_init()
492 SPEAR1340_PLL_CLK_MASK, 0, &_lock); in spear1340_clk_init()
496 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1340_clk_init()
502 ARRAY_SIZE(pll4_rtbl), &_lock, &clk1, NULL); in spear1340_clk_init()
536 &_lock); in spear1340_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.h378 #define DEFINE_GUARD(_name, _type, _lock, _unlock) \ argument
379 DEFINE_CLASS(_name, _type, if (!__GUARD_IS_ERR(_T)) { _unlock; }, ({ _lock; _T; }), _type _T); \
382 #define DEFINE_GUARD_COND_4(_name, _ext, _lock, _cond) \ argument
385 ({ void *_t = _T; int _RET = (_lock); if (_T && !(_cond)) _t = ERR_PTR(_RET); _t; }), \
395 #define DEFINE_GUARD_COND_3(_name, _ext, _lock) \ argument
396 DEFINE_GUARD_COND_4(_name, _ext, _lock, _RET)
476 #define __DEFINE_LOCK_GUARD_1(_name, _type, _lock) \ argument
480 _lock; \
484 #define __DEFINE_LOCK_GUARD_0(_name, _lock) \ argument
489 _lock; \
[all …]
H A Dlocal_lock.h95 #define local_lock_nested_bh(_lock) \ argument
96 __local_lock_nested_bh(this_cpu_ptr(_lock))
98 #define local_unlock_nested_bh(_lock) \ argument
99 __local_unlock_nested_bh(this_cpu_ptr(_lock))
H A Dlockdep.h441 #define LOCK_CONTENDED(_lock, try, lock) \ argument
443 if (!try(_lock)) { \
444 lock_contended(&(_lock)->dep_map, _RET_IP_); \
445 lock(_lock); \
447 lock_acquired(&(_lock)->dep_map, _RET_IP_); \
450 #define LOCK_CONTENDED_RETURN(_lock, try, lock) \ argument
453 if (!try(_lock)) { \
454 lock_contended(&(_lock)->dep_map, _RET_IP_); \
455 ____err = lock(_lock); \
458 lock_acquired(&(_lock)->dep_map, _RET_IP_); \
[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-target.c19 static DECLARE_RWSEM(_lock);
36 down_read(&_lock); in get_target_type()
42 up_read(&_lock); in get_target_type()
65 down_read(&_lock); in dm_put_target_type()
67 up_read(&_lock); in dm_put_target_type()
75 down_read(&_lock); in dm_target_iterate()
78 up_read(&_lock); in dm_target_iterate()
87 down_write(&_lock); in dm_register_target()
95 up_write(&_lock); in dm_register_target()
103 down_write(&_lock); in dm_unregister_target()
[all …]
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/soc/sunxi/
H A Dsunxi_sram.c338 static void sunxi_sram_lock(void *_lock) in sunxi_sram_lock() argument
340 spinlock_t *lock = _lock; in sunxi_sram_lock()
345 static void sunxi_sram_unlock(void *_lock) in sunxi_sram_unlock() argument
347 spinlock_t *lock = _lock; in sunxi_sram_unlock()
/linux/drivers/clk/samsung/
H A Dclk.h271 #define __PLL(_typ, _id, _name, _pname, _flags, _lock, _con, _rtable) \ argument
279 .lock_offset = _lock, \
283 #define PLL(_typ, _id, _name, _pname, _lock, _con, _rtable) \ argument
284 __PLL(_typ, _id, _name, _pname, CLK_GET_RATE_NOCACHE, _lock, \
/linux/arch/arm/mach-omap2/
H A Dpowerdomain.c120 spin_lock_init(&pwrdm->_lock); in _pwrdm_register()
391 __acquires(&pwrdm->_lock) in pwrdm_lock()
393 spin_lock_irqsave(&pwrdm->_lock, pwrdm->_lock_flags); in pwrdm_lock()
403 __releases(&pwrdm->_lock) in pwrdm_unlock()
405 spin_unlock_irqrestore(&pwrdm->_lock, pwrdm->_lock_flags); in pwrdm_unlock()
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 …]
/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), \
/linux/drivers/mtd/chips/
H A Dfwh_lock.h105 mtd->_lock = fwh_lock_varsize; in fixup_use_fwh_lock()

123