Lines Matching refs:xbdev

196 	struct xenbus_device *xbdev;  member
348 info->xbdev->otherend_id, in grant_foreign_access()
371 info->xbdev->otherend_id, in get_grant()
497 dev_dbg(&info->xbdev->dev, "command: 0x%x, argument: 0x%lx\n", in blkif_ioctl()
502 dev_dbg(&info->xbdev->dev, "FIXME: support multisession CDs later\n"); in blkif_ioctl()
1640 dev_dbg(&info->xbdev->dev, "Bad return from blkdev data " in blkif_interrupt()
1761 xenbus_dev_fatal(info->xbdev, err, "%s", message); in write_per_ring_nodes()
1785 max_page_order = xenbus_read_unsigned(info->xbdev->otherend, in talk_to_blkback()
1910 backend_max_queues = xenbus_read_unsigned(info->xbdev->otherend, in negotiate_mq()
1921 xenbus_dev_fatal(info->xbdev, -ENOMEM, "allocating ring_info structure"); in negotiate_mq()
1998 info->xbdev = dev; in blkfront_probe()
2036 xenbus_switch_state(info->xbdev, XenbusStateConnected); in blkif_recover()
2134 struct xenbus_device *xbdev = info->xbdev; in blkfront_closing() local
2139 if (xbdev->state == XenbusStateClosing) { in blkfront_closing()
2150 xenbus_frontend_closed(xbdev); in blkfront_closing()
2157 xenbus_dev_error(xbdev, -EBUSY, in blkfront_closing()
2159 xenbus_switch_state(xbdev, XenbusStateClosing); in blkfront_closing()
2162 xenbus_frontend_closed(xbdev); in blkfront_closing()
2176 err = xenbus_gather(XBT_NIL, info->xbdev->otherend, in blkfront_setup_discard()
2185 !!xenbus_read_unsigned(info->xbdev->otherend, "discard-secure", in blkfront_setup_discard()
2293 if (xenbus_read_unsigned(info->xbdev->otherend, "feature-barrier", 0)) { in blkfront_gather_backend_features()
2302 if (xenbus_read_unsigned(info->xbdev->otherend, "feature-flush-cache", in blkfront_gather_backend_features()
2308 if (xenbus_read_unsigned(info->xbdev->otherend, "feature-discard", 0)) in blkfront_gather_backend_features()
2312 !!xenbus_read_unsigned(info->xbdev->otherend, in blkfront_gather_backend_features()
2315 indirect_segments = xenbus_read_unsigned(info->xbdev->otherend, in blkfront_gather_backend_features()
2349 err = xenbus_scanf(XBT_NIL, info->xbdev->otherend, in blkfront_connect()
2375 dev_dbg(&info->xbdev->dev, "%s:%s.\n", in blkfront_connect()
2376 __func__, info->xbdev->otherend); in blkfront_connect()
2378 err = xenbus_gather(XBT_NIL, info->xbdev->otherend, in blkfront_connect()
2384 xenbus_dev_fatal(info->xbdev, err, in blkfront_connect()
2386 info->xbdev->otherend); in blkfront_connect()
2395 physical_sector_size = xenbus_read_unsigned(info->xbdev->otherend, in blkfront_connect()
2402 xenbus_dev_fatal(info->xbdev, err, "setup_indirect at %s", in blkfront_connect()
2403 info->xbdev->otherend); in blkfront_connect()
2412 xenbus_dev_fatal(info->xbdev, err, "xlvbd_add at %s", in blkfront_connect()
2413 info->xbdev->otherend); in blkfront_connect()
2417 xenbus_switch_state(info->xbdev, XenbusStateConnected); in blkfront_connect()
2424 device_add_disk(&info->xbdev->dev, info->gd, NULL); in blkfront_connect()
2489 static int blkfront_remove(struct xenbus_device *xbdev) in blkfront_remove() argument
2491 struct blkfront_info *info = dev_get_drvdata(&xbdev->dev); in blkfront_remove()
2495 dev_dbg(&xbdev->dev, "%s removed", xbdev->nodename); in blkfront_remove()
2508 info->xbdev = NULL; in blkfront_remove()
2529 xbdev->nodename, bdev->bd_openers); in blkfront_remove()
2549 return info->is_ready && info->xbdev; in blkfront_is_ready()
2584 struct xenbus_device *xbdev; in blkif_release() local
2603 xbdev = info->xbdev; in blkif_release()
2605 if (xbdev && xbdev->state == XenbusStateClosing) { in blkif_release()
2609 xenbus_frontend_closed(info->xbdev); in blkif_release()
2614 if (!xbdev) { in blkif_release()