Lines Matching refs:vdevice
114 int vdevice; member
721 static int xen_translate_vdev(int vdevice, int *minor, unsigned int *offset) in xen_translate_vdev() argument
724 major = BLKIF_MAJOR(vdevice); in xen_translate_vdev()
725 *minor = BLKIF_MINOR(vdevice); in xen_translate_vdev()
805 if ((info->vdevice>>EXT_SHIFT) > 1) { in xlvbd_alloc_gendisk()
807 …intk(KERN_WARNING "blkfront: vdevice 0x%x is above the extended range; ignoring\n", info->vdevice); in xlvbd_alloc_gendisk()
811 if (!VDEV_IS_EXTENDED(info->vdevice)) { in xlvbd_alloc_gendisk()
812 err = xen_translate_vdev(info->vdevice, &minor, &offset); in xlvbd_alloc_gendisk()
817 minor = BLKIF_MINOR_EXT(info->vdevice); in xlvbd_alloc_gendisk()
823 "from xvde on\n", info->vdevice); in xlvbd_alloc_gendisk()
827 info->vdevice, minor); in xlvbd_alloc_gendisk()
1366 int err, vdevice, i; in blkfront_probe() local
1371 "virtual-device", "%i", &vdevice); in blkfront_probe()
1375 "%i", &vdevice); in blkfront_probe()
1389 if (!VDEV_IS_EXTENDED(vdevice)) in blkfront_probe()
1390 major = BLKIF_MAJOR(vdevice); in blkfront_probe()
1397 __func__, vdevice); in blkfront_probe()
1420 info->vdevice = vdevice; in blkfront_probe()