Lines Matching defs:RefCount
50 atomic_t RefCount;
93 atomic_cmpxchg(&storDevice->RefCount, 0, 2);
103 /* ASSERT(atomic_read(&Device->RefCount) == 0); */
113 if (storDevice && atomic_read(&storDevice->RefCount) > 1)
114 atomic_inc(&storDevice->RefCount);
127 if (storDevice && atomic_read(&storDevice->RefCount))
128 atomic_inc(&storDevice->RefCount);
142 atomic_dec(&storDevice->RefCount);
143 /* ASSERT(atomic_read(&storDevice->RefCount)); */
155 while (atomic_cmpxchg(&storDevice->RefCount, 2, 1) != 2)
171 while (atomic_cmpxchg(&storDevice->RefCount, 1, 0) != 1)