Lines Matching refs:UInt32
49 * native Boolean CompareAndSwap(UInt32 oldValue, UInt32 newValue, UInt32 * oldValuePtr);
84 } while (! OSCompareAndSwap((UInt32)oldListHead,
85 (UInt32)newListHead, (volatile UInt32 *)inList));
99 } while (! OSCompareAndSwap((UInt32)oldListHead, (UInt32)newListHead,
100 (volatile UInt32 *)inList));
105 static UInt32 OSBitwiseAtomic(UInt32 and_mask, UInt32 or_mask, UInt32 xor_mask, volatile UInt32 * value)
107 UInt32 oldValue;
108 UInt32 newValue;
118 UInt32 OSBitAndAtomic(UInt32 mask, volatile UInt32 * value)
123 UInt32 OSBitOrAtomic(UInt32 mask, volatile UInt32 * value)
125 return OSBitwiseAtomic((UInt32) -1, mask, 0, value);
128 UInt32 OSBitXorAtomic(UInt32 mask, volatile UInt32 * value)
130 return OSBitwiseAtomic((UInt32) -1, 0, mask, value);
135 UInt32 mask = 0x000000ff;
136 UInt32 alignment = ((UInt32) value8) & (sizeof(UInt32) - 1);
137 UInt32 shiftValues = (24 << 24) | (16 << 16) | (8 << 8);
138 int shift = (UInt32) *(((UInt8 *) &shiftValues) + alignment);
139 volatile UInt32 * value32 = (volatile UInt32 *) (value8 - alignment);
140 UInt32 oldValue;
141 UInt32 newValue;
152 static Boolean OSTestAndSetClear(UInt32 bit, Boolean wantSet, volatile UInt8 * startAddress)
172 Boolean OSTestAndSet(UInt32 bit, volatile UInt8 * startAddress)
177 Boolean OSTestAndClear(UInt32 bit, volatile UInt8 * startAddress)
209 static UInt8 OSBitwiseAtomic8(UInt32 and_mask, UInt32 or_mask, UInt32 xor_mask, volatile UInt8 * value)
222 UInt8 OSBitAndAtomic8(UInt32 mask, volatile UInt8 * value)
227 UInt8 OSBitOrAtomic8(UInt32 mask, volatile UInt8 * value)
229 return OSBitwiseAtomic8((UInt32) -1, mask, 0, value);
232 UInt8 OSBitXorAtomic8(UInt32 mask, volatile UInt8 * value)
234 return OSBitwiseAtomic8((UInt32) -1, 0, mask, value);
239 UInt32 mask = 0x0000ffff;
240 UInt32 alignment = ((UInt32) value16) & (sizeof(UInt32) - 1);
241 UInt32 shiftValues = (16 << 24) | (16 << 16);
242 UInt32 shift = (UInt32) *(((UInt8 *) &shiftValues) + alignment);
243 volatile UInt32 * value32 = (volatile UInt32 *) (((UInt32) value16) - alignment);
244 UInt32 oldValue;
245 UInt32 newValue;
279 static UInt16 OSBitwiseAtomic16(UInt32 and_mask, UInt32 or_mask, UInt32 xor_mask, volatile UInt16 * value)
292 UInt16 OSBitAndAtomic16(UInt32 mask, volatile UInt16 * value)
297 UInt16 OSBitOrAtomic16(UInt32 mask, volatile UInt16 * value)
299 return OSBitwiseAtomic16((UInt32) -1, mask, 0, value);
302 UInt16 OSBitXorAtomic16(UInt32 mask, volatile UInt16 * value)
304 return OSBitwiseAtomic16((UInt32) -1, 0, mask, value);