Lines Matching refs:xbdev
200 struct xenbus_device *xbdev;
369 info->xbdev->otherend_id,
392 info->xbdev->otherend_id,
518 dev_dbg(&info->xbdev->dev, "command: 0x%x, argument: 0x%lx\n",
523 dev_dbg(&info->xbdev->dev, "FIXME: support multisession CDs later\n");
1711 dev_dbg_ratelimited(&info->xbdev->dev,
1845 xenbus_dev_fatal(info->xbdev, err, "%s", message);
1880 max_page_order = xenbus_read_unsigned(info->xbdev->otherend,
2004 backend_max_queues = xenbus_read_unsigned(info->xbdev->otherend,
2015 xenbus_dev_fatal(info->xbdev, -ENOMEM, "allocating ring_info structure");
2090 info->xbdev = dev;
2127 xenbus_switch_state(info->xbdev, XenbusStateConnected);
2222 struct xenbus_device *xbdev = info->xbdev;
2227 if (xbdev->state == XenbusStateClosing) {
2238 xenbus_frontend_closed(xbdev);
2245 xenbus_dev_error(xbdev, -EBUSY,
2247 xenbus_switch_state(xbdev, XenbusStateClosing);
2250 xenbus_frontend_closed(xbdev);
2260 info->discard_granularity = xenbus_read_unsigned(info->xbdev->otherend,
2263 info->discard_alignment = xenbus_read_unsigned(info->xbdev->otherend,
2266 !!xenbus_read_unsigned(info->xbdev->otherend, "discard-secure",
2381 if (xenbus_read_unsigned(info->xbdev->otherend, "feature-barrier", 0)) {
2390 if (xenbus_read_unsigned(info->xbdev->otherend, "feature-flush-cache",
2396 if (xenbus_read_unsigned(info->xbdev->otherend, "feature-discard", 0))
2401 !!xenbus_read_unsigned(info->xbdev->otherend,
2406 indirect_segments = xenbus_read_unsigned(info->xbdev->otherend,
2440 err = xenbus_scanf(XBT_NIL, info->xbdev->otherend,
2463 dev_dbg(&info->xbdev->dev, "%s:%s.\n",
2464 __func__, info->xbdev->otherend);
2466 err = xenbus_gather(XBT_NIL, info->xbdev->otherend,
2472 xenbus_dev_fatal(info->xbdev, err,
2474 info->xbdev->otherend);
2483 physical_sector_size = xenbus_read_unsigned(info->xbdev->otherend,
2490 xenbus_dev_fatal(info->xbdev, err, "setup_indirect at %s",
2491 info->xbdev->otherend);
2500 xenbus_dev_fatal(info->xbdev, err, "xlvbd_add at %s",
2501 info->xbdev->otherend);
2505 xenbus_switch_state(info->xbdev, XenbusStateConnected);
2512 device_add_disk(&info->xbdev->dev, info->gd, NULL);
2577 static int blkfront_remove(struct xenbus_device *xbdev)
2579 struct blkfront_info *info = dev_get_drvdata(&xbdev->dev);
2583 dev_dbg(&xbdev->dev, "%s removed", xbdev->nodename);
2596 info->xbdev = NULL;
2607 * The xbdev was removed before we reached the Closed
2617 xbdev->nodename, bdev->bd_openers);
2637 return info->is_ready && info->xbdev;
2650 /* xbdev gone */
2658 /* xbdev is closed */
2672 struct xenbus_device *xbdev;
2691 xbdev = info->xbdev;
2693 if (xbdev && xbdev->state == XenbusStateClosing) {
2697 xenbus_frontend_closed(info->xbdev);
2702 if (!xbdev) {