Lines Matching refs:flags
42 (d->flags & DEVFL_UP) ? "up" : "down", in aoedisk_show_state()
43 (d->flags & DEVFL_KICKME) ? ",kickme" : in aoedisk_show_state()
44 (d->nopen && !(d->flags & DEVFL_UP)) ? ",closewait" : ""); in aoedisk_show_state()
118 unsigned long flags; in aoedisk_debugfs_show() local
130 spin_lock_irqsave(&d->lock, flags); in aoedisk_debugfs_show()
152 spin_unlock_irqrestore(&d->lock, flags); in aoedisk_debugfs_show()
237 ulong flags; in aoeblk_open() local
245 if (!(d->flags & DEVFL_UP) || d->flags & DEVFL_TKILL) in aoeblk_open()
249 spin_lock_irqsave(&d->lock, flags); in aoeblk_open()
250 if (d->flags & DEVFL_UP && !(d->flags & DEVFL_TKILL)) { in aoeblk_open()
252 spin_unlock_irqrestore(&d->lock, flags); in aoeblk_open()
256 spin_unlock_irqrestore(&d->lock, flags); in aoeblk_open()
265 ulong flags; in aoeblk_release() local
267 spin_lock_irqsave(&d->lock, flags); in aoeblk_release()
270 spin_unlock_irqrestore(&d->lock, flags); in aoeblk_release()
274 spin_unlock_irqrestore(&d->lock, flags); in aoeblk_release()
284 if ((d->flags & DEVFL_UP) == 0) { in aoeblk_request()
301 if ((d->flags & DEVFL_UP) == 0) { in aoeblk_getgeo()
321 if ((d->flags & DEVFL_UP) == 0) { in aoeblk_ioctl()
357 ulong flags; in aoeblk_gdalloc() local
360 spin_lock_irqsave(&d->lock, flags); in aoeblk_gdalloc()
361 if (d->flags & DEVFL_GDALLOC in aoeblk_gdalloc()
362 && !(d->flags & DEVFL_TKILL) in aoeblk_gdalloc()
363 && !(d->flags & DEVFL_GD_NOW)) in aoeblk_gdalloc()
364 d->flags |= DEVFL_GD_NOW; in aoeblk_gdalloc()
367 spin_unlock_irqrestore(&d->lock, flags); in aoeblk_gdalloc()
392 spin_lock_irqsave(&d->lock, flags); in aoeblk_gdalloc()
393 WARN_ON(!(d->flags & DEVFL_GD_NOW)); in aoeblk_gdalloc()
394 WARN_ON(!(d->flags & DEVFL_GDALLOC)); in aoeblk_gdalloc()
395 WARN_ON(d->flags & DEVFL_TKILL); in aoeblk_gdalloc()
397 WARN_ON(d->flags & DEVFL_UP); in aoeblk_gdalloc()
415 d->flags &= ~DEVFL_GDALLOC; in aoeblk_gdalloc()
416 d->flags |= DEVFL_UP; in aoeblk_gdalloc()
418 spin_unlock_irqrestore(&d->lock, flags); in aoeblk_gdalloc()
424 spin_lock_irqsave(&d->lock, flags); in aoeblk_gdalloc()
425 WARN_ON(!(d->flags & DEVFL_GD_NOW)); in aoeblk_gdalloc()
426 d->flags &= ~DEVFL_GD_NOW; in aoeblk_gdalloc()
427 spin_unlock_irqrestore(&d->lock, flags); in aoeblk_gdalloc()
435 spin_lock_irqsave(&d->lock, flags); in aoeblk_gdalloc()
436 d->flags &= ~DEVFL_GD_NOW; in aoeblk_gdalloc()
438 spin_unlock_irqrestore(&d->lock, flags); in aoeblk_gdalloc()