Lines Matching refs:pSet

45  * @returns pSet.
46 * @param pSet Pointer to the set.
48 DECLINLINE(PRTCPUSET) RTCpuSetEmpty(PRTCPUSET pSet)
51 for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++)
52 pSet->bmSet[i] = 0;
53 return pSet;
60 * @returns pSet.
61 * @param pSet Pointer to the set.
63 DECLINLINE(PRTCPUSET) RTCpuSetFill(PRTCPUSET pSet)
66 for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++)
67 pSet->bmSet[i] = UINT64_MAX;
68 return pSet;
89 * @returns pSet.
90 * @param pSet Pointer to the set.
93 DECLINLINE(PRTCPUSET) RTCpuSetAnd(PRTCPUSET pSet, PRTCPUSET pAndMaskSet)
96 for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++)
97 ASMAtomicAndU64((volatile uint64_t *)&pSet->bmSet[i], pAndMaskSet->bmSet[i]);
98 return pSet;
106 * @param pSet Pointer to the set.
110 DECLINLINE(int) RTCpuSetAdd(PRTCPUSET pSet, RTCPUID idCpu)
115 ASMAtomicBitSet(pSet, iCpu);
124 * @param pSet Pointer to the set.
128 DECLINLINE(int) RTCpuSetAddByIndex(PRTCPUSET pSet, int iCpu)
132 ASMAtomicBitSet(pSet, iCpu);
141 * @param pSet Pointer to the set.
145 DECLINLINE(int) RTCpuSetDel(PRTCPUSET pSet, RTCPUID idCpu)
150 ASMAtomicBitClear(pSet, iCpu);
159 * @param pSet Pointer to the set.
163 DECLINLINE(int) RTCpuSetDelByIndex(PRTCPUSET pSet, int iCpu)
167 ASMAtomicBitClear(pSet, iCpu);
176 * @param pSet Pointer to the set.
180 DECLINLINE(bool) RTCpuSetIsMember(PCRTCPUSET pSet, RTCPUID idCpu)
185 return ASMBitTest((volatile void *)pSet, iCpu);
193 * @param pSet Pointer to the set.
197 DECLINLINE(bool) RTCpuSetIsMemberByIndex(PCRTCPUSET pSet, int iCpu)
201 return ASMBitTest((volatile void *)pSet, iCpu);
226 * @param pSet Pointer to the set.
228 DECLINLINE(bool) RTCpuSetIsEmpty(PRTCPUSET pSet)
231 for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++)
232 if (pSet->bmSet[i])
242 * @param pSet Pointer to the set.
245 DECLINLINE(uint64_t) RTCpuSetToU64(PCRTCPUSET pSet)
247 return pSet->bmSet[0];
254 * @param pSet Pointer to the set.
257 DECLINLINE(PRTCPUSET) RTCpuSetFromU64(PRTCPUSET pSet, uint64_t fMask)
261 pSet->bmSet[0] = fMask;
262 for (i = 1; i < RT_ELEMENTS(pSet->bmSet); i++)
263 pSet->bmSet[i] = 0;
265 return pSet;
273 * @param pSet Pointer to the set.
275 DECLINLINE(int) RTCpuSetCount(PCRTCPUSET pSet)
280 for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++)
282 uint64_t u64 = pSet->bmSet[i];
302 * @param pSet Pointer to the set.
304 DECLINLINE(int) RTCpuLastIndex(PCRTCPUSET pSet)
306 unsigned i = RT_ELEMENTS(pSet->bmSet);
309 uint64_t u64 = pSet->bmSet[i];