Lines Matching full:busy

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