Lines Matching refs:busy
147 if (atomic_read(&mdev->busy) == 1) {
149 atomic_read(&mdev->busy) == 0, HZ);
150 if (atomic_read(&mdev->busy) == 1) {
152 " is busy\n", mdev->port, mdev->unit);
158 atomic_set(&mdev->busy, 1);
162 atomic_set(&mdev->busy, 0);
173 (atomic_read(&mdev->busy) == 0 ||
174 atomic_read(&mdev->busy) == 2), HZ * 3);
178 * in the middle of a read (busy == 2)
180 if (error || atomic_read(&mdev->busy) == 2) {
181 if (atomic_read(&mdev->busy) == 2)
183 atomic_set(&mdev->busy, 0);
189 atomic_set(&mdev->busy, 0);
250 /* wait until the device is not busy doing something else
252 if (atomic_read(&mdev->busy) == 1) {
254 atomic_read(&mdev->busy) == 0, HZ);
255 if (atomic_read(&mdev->busy) == 1) {
258 "failed - device is busy\n",
263 atomic_set(&mdev->busy, 1);
268 atomic_read(&mdev->busy) == 0, HZ/10);
271 atomic_set(&mdev->busy, 0);
274 if (atomic_read(&mdev->busy) == 2) {
275 atomic_set(&mdev->busy, 0);
282 atomic_set(&mdev->busy, 0);
655 if (atomic_read(&mdev->busy) == 1) {
657 atomic_read(&mdev->busy) == 0, HZ);
658 if (atomic_read(&mdev->busy) == 1) {
659 dev_notice(&mdev->dev, "VMU at (%d, %d) is busy\n",
666 atomic_set(&mdev->busy, 1);