Lines Matching refs:shift
14 unsigned int shift; in __xchg_small() local
28 shift = (unsigned long)ptr & 0x3; in __xchg_small()
30 shift ^= sizeof(u32) - size; in __xchg_small()
31 shift *= BITS_PER_BYTE; in __xchg_small()
32 mask <<= shift; in __xchg_small()
43 new32 = (load32 & ~mask) | (val << shift); in __xchg_small()
47 return (load32 & mask) >> shift; in __xchg_small()
55 unsigned int shift; in __cmpxchg_small() local
70 shift = (unsigned long)ptr & 0x3; in __cmpxchg_small()
72 shift ^= sizeof(u32) - size; in __cmpxchg_small()
73 shift *= BITS_PER_BYTE; in __cmpxchg_small()
74 mask <<= shift; in __cmpxchg_small()
88 load = (load32 & mask) >> shift; in __cmpxchg_small()
98 old32 = (load32 & ~mask) | (old << shift); in __cmpxchg_small()
99 new32 = (load32 & ~mask) | (new << shift); in __cmpxchg_small()