Home
last modified time | relevance | path

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

/arch/openrisc/include/asm/
A Dcmpxchg.h65 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in cmpxchg_small() local
67 int bitoff = off * BITS_PER_BYTE; in cmpxchg_small() local
69 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in cmpxchg_small()
76 ret = (load32 & bitmask) >> bitoff; in cmpxchg_small()
80 old32 = (load32 & ~bitmask) | (old << bitoff); in cmpxchg_small()
81 new32 = (load32 & ~bitmask) | (new << bitoff); in cmpxchg_small()
97 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in xchg_small() local
99 int bitoff = off * BITS_PER_BYTE; in xchg_small() local
101 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small()
107 ret = (oldv & bitmask) >> bitoff; in xchg_small()
[all …]
/arch/sh/include/asm/
A Dcmpxchg-xchg.h23 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in __xchg_cmpxchg() local
25 int bitoff = off * BITS_PER_BYTE; in __xchg_cmpxchg() local
27 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in __xchg_cmpxchg()
33 ret = (oldv & bitmask) >> bitoff; in __xchg_cmpxchg()
34 newv = (oldv & ~bitmask) | (x << bitoff); in __xchg_cmpxchg()
/arch/xtensa/include/asm/
A Dcmpxchg.h182 int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; in xchg_small() local
184 int bitoff = off * BITS_PER_BYTE; in xchg_small() local
186 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small()
192 ret = (oldv & bitmask) >> bitoff; in xchg_small()
193 newv = (oldv & ~bitmask) | (x << bitoff); in xchg_small()
/arch/powerpc/include/asm/
A Dcmpxchg.h19 unsigned int prev, prev_mask, tmp, bitoff, off; \
22 bitoff = BITOFF_CAL(sizeof(type), off); \
24 val <<= bitoff; \
25 prev_mask = (u32)(type)-1 << bitoff; \
37 return prev >> bitoff; \
44 unsigned int prev, prev_mask, tmp, bitoff, off; \
47 bitoff = BITOFF_CAL(sizeof(type), off); \
49 old <<= bitoff; \
50 new <<= bitoff; \
51 prev_mask = (u32)(type)-1 << bitoff; \
[all …]

Completed in 11 milliseconds