Home
last modified time | relevance | path

Searched refs:sem (Results 1 – 4 of 4) sorted by relevance

/arch/ia64/include/uapi/asm/
Dintrinsics.h40 #define IA64_FETCHADD(tmp,v,n,sz,sem) \ argument
44 tmp = ia64_fetchadd4_##sem((unsigned int *) v, n); \
48 tmp = ia64_fetchadd8_##sem((unsigned long *) v, n); \
56 #define ia64_fetchadd(i,v,sem) \ argument
62 IA64_FETCHADD(_tmp, _v, -16, sizeof(*(v)), sem); \
64 IA64_FETCHADD(_tmp, _v, -8, sizeof(*(v)), sem); \
66 IA64_FETCHADD(_tmp, _v, -4, sizeof(*(v)), sem); \
68 IA64_FETCHADD(_tmp, _v, -1, sizeof(*(v)), sem); \
70 IA64_FETCHADD(_tmp, _v, 1, sizeof(*(v)), sem); \
72 IA64_FETCHADD(_tmp, _v, 4, sizeof(*(v)), sem); \
[all …]
Dcmpxchg.h73 #define ia64_cmpxchg(sem, ptr, old, new, size) \ argument
95 _r_ = ia64_cmpxchg1_##sem((__u8 *) ptr, new, _o_); \
99 _r_ = ia64_cmpxchg2_##sem((__u16 *) ptr, new, _o_); \
103 _r_ = ia64_cmpxchg4_##sem((__u32 *) ptr, new, _o_); \
107 _r_ = ia64_cmpxchg8_##sem((__u64 *) ptr, new, _o_); \
/arch/x86/platform/intel/
Diosf_mbi.c247 static int iosf_mbi_get_sem(u32 *sem) in iosf_mbi_get_sem() argument
252 iosf_mbi_sem_address, sem); in iosf_mbi_get_sem()
258 *sem &= PUNIT_SEMAPHORE_BIT; in iosf_mbi_get_sem()
316 u32 sem; in iosf_mbi_block_punit_i2c_access() local
355 ret = iosf_mbi_get_sem(&sem); in iosf_mbi_block_punit_i2c_access()
356 if (!ret && sem) { in iosf_mbi_block_punit_i2c_access()
370 if (!iosf_mbi_get_sem(&sem)) in iosf_mbi_block_punit_i2c_access()
371 dev_err(&mbi_pdev->dev, "P-Unit semaphore: %d\n", sem); in iosf_mbi_block_punit_i2c_access()
/arch/arm/mach-vexpress/
Dspc.c111 struct semaphore sem; member
340 if (down_timeout(&info->sem, usecs_to_jiffies(TIMEOUT_US))) in ve_spc_set_performance()
350 up(&info->sem); in ve_spc_set_performance()
359 if (down_timeout(&info->sem, usecs_to_jiffies(TIMEOUT_US))) in ve_spc_read_sys_cfg()
373 up(&info->sem); in ve_spc_read_sys_cfg()
478 sema_init(&info->sem, 1); in ve_spc_init()