Lines Matching refs:bitoff
65 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()
108 newv = (oldv & ~bitmask) | (x << bitoff); in xchg_small()