Lines Matching defs:ubd
10 * old style ubd by setting UBD_SHIFT to 0
16 * the common /dev/ubd/discX/... names rather than
18 * clean ups preparing for ubd-many.
44 #include "ubd.h"
153 struct ubd {
197 static struct ubd ubd_devs[MAX_DEV] = { [0 ... MAX_DEV - 1] = DEFAULT_UBD };
239 struct ubd *ubd_dev;
354 __setup("ubd", ubd_setup);
356 "ubd<n><flags>=<filename>[(:|,)<filename2>][(:|,)<serial>]\n"
389 printk("udb%s specified on command line is almost certainly a ubd -> "
397 " This option is here solely to catch ubd -> udb typos, which can be\n"
510 static inline int ubd_file_size(struct ubd *ubd_dev, __u64 *size_out)
729 static void ubd_close_dev(struct ubd *ubd_dev)
740 static int ubd_open_dev(struct ubd *ubd_dev)
814 struct ubd *ubd_dev = dev_get_drvdata(dev);
817 *ubd_dev = ((struct ubd) DEFAULT_UBD);
824 struct ubd *ubd_dev = disk->private_data;
863 sprintf(disk->disk_name, "ubd%c", 'a' + unit);
884 struct ubd *ubd_dev = &ubd_devs[n];
974 struct ubd *ubd_dev;
1017 struct ubd *ubd_dev;
1046 * ubd-specific locks. The structure itself is const except for .list.
1050 .name = "ubd",
1067 struct ubd *ubd_dev = &ubd_devs[0];
1091 if (register_blkdev(UBD_MAJOR, "ubd"))
1101 printk(KERN_ERR "Failed to initialize ubd buffering\n");
1112 printk(KERN_ERR "Failed to initialize ubd buffering\n");
1120 printk(KERN_ERR "Failed to initialize ubd device %d :"
1133 /* Set by CONFIG_BLK_DEV_UBD_SYNC or ubd=sync.*/
1135 printk(KERN_INFO "ubd: Synchronous mode\n");
1136 /* Letting ubd=sync be like using ubd#s= instead of ubd#= is
1143 "ubd : Failed to start I/O thread (errno = %d) - "
1149 0, "ubd", ubd_devs);
1159 struct ubd *ubd_dev = disk->private_data;
1180 struct ubd *ubd_dev = disk->private_data;
1250 static void ubd_map_req(struct ubd *dev, struct io_thread_req *io_req,
1283 static struct io_thread_req *ubd_alloc_req(struct ubd *dev, struct request *req,
1315 static int ubd_submit_request(struct ubd *dev, struct request *req)
1349 struct ubd *ubd_dev = hctx->queue->queuedata;
1384 struct ubd *ubd_dev = bdev->bd_disk->private_data;
1395 struct ubd *ubd_dev = bdev->bd_disk->private_data;