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.
43 #include "ubd.h"
154 struct ubd {
196 static struct ubd ubd_devs[MAX_DEV] = { [0 ... MAX_DEV - 1] = DEFAULT_UBD };
245 " Create ide0 entries that map onto ubd devices.\n\n"
273 struct ubd *ubd_dev;
305 printk(KERN_INFO "Setting extra ubd major number to %d\n",
407 __setup("ubd", ubd_setup);
409 "ubd<n><flags>=<filename>[(:|,)<filename2>]\n"
436 printk("udb%s specified on command line is almost certainly a ubd -> "
444 " This option is here solely to catch ubd -> udb typos, which can be\n"
558 static inline int ubd_file_size(struct ubd *ubd_dev, __u64 *size_out)
777 static void ubd_close_dev(struct ubd *ubd_dev)
788 static int ubd_open_dev(struct ubd *ubd_dev)
864 struct ubd *ubd_dev = dev_get_drvdata(dev);
868 *ubd_dev = ((struct ubd) DEFAULT_UBD);
886 sprintf(disk->disk_name, "ubd%c", 'a' + unit);
916 struct ubd *ubd_dev = &ubd_devs[n];
1019 struct ubd *ubd_dev;
1062 struct ubd *ubd_dev;
1097 * ubd-specific locks. The structure itself is const except for .list.
1101 .name = "ubd",
1118 struct ubd *ubd_dev = &ubd_devs[0];
1142 if (register_blkdev(UBD_MAJOR, "ubd"))
1149 if (register_blkdev(fake_major, "ubd"))
1160 printk(KERN_ERR "Failed to initialize ubd buffering\n");
1171 printk(KERN_ERR "Failed to initialize ubd buffering\n");
1179 printk(KERN_ERR "Failed to initialize ubd device %d :"
1192 /* Set by CONFIG_BLK_DEV_UBD_SYNC or ubd=sync.*/
1194 printk(KERN_INFO "ubd: Synchronous mode\n");
1195 /* Letting ubd=sync be like using ubd#s= instead of ubd#= is
1203 "ubd : Failed to start I/O thread (errno = %d) - "
1209 0, "ubd", ubd_devs);
1220 struct ubd *ubd_dev = disk->private_data;
1248 struct ubd *ubd_dev = disk->private_data;
1318 static void ubd_map_req(struct ubd *dev, struct io_thread_req *io_req,
1352 static struct io_thread_req *ubd_alloc_req(struct ubd *dev, struct request *req,
1384 static int ubd_submit_request(struct ubd *dev, struct request *req)
1418 struct ubd *ubd_dev = hctx->queue->queuedata;
1453 struct ubd *ubd_dev = bdev->bd_disk->private_data;
1464 struct ubd *ubd_dev = bdev->bd_disk->private_data;