Lines Matching refs:vbd
176 if (!blkif->vbd.overflow_max_grants) in add_persistent_gnt()
177 blkif->vbd.overflow_max_grants = 1; in add_persistent_gnt()
347 !ring->blkif->vbd.overflow_max_grants)) { in purge_persistent_gnt()
400 ring->blkif->vbd.overflow_max_grants = 0; in purge_persistent_gnt()
452 struct xen_vbd *vbd = &blkif->vbd; in xen_vbd_translate() local
455 if ((operation != REQ_OP_READ) && vbd->readonly) in xen_vbd_translate()
463 if (unlikely(end > vbd_sz(vbd))) in xen_vbd_translate()
467 req->dev = vbd->pdevice; in xen_vbd_translate()
468 req->bdev = vbd->bdev; in xen_vbd_translate()
477 struct xen_vbd *vbd = &blkif->vbd; in xen_vbd_resize() local
481 unsigned long long new_size = vbd_sz(vbd); in xen_vbd_resize()
484 blkif->domid, MAJOR(vbd->pdevice), MINOR(vbd->pdevice)); in xen_vbd_resize()
486 vbd->size = new_size; in xen_vbd_resize()
494 (unsigned long long)vbd_sz(vbd)); in xen_vbd_resize()
558 struct xen_vbd *vbd = &blkif->vbd; in xen_blkif_schedule() local
568 if (unlikely(vbd->size != vbd_sz(vbd))) in xen_blkif_schedule()
605 if (blkif->vbd.feature_gnt_persistent && in xen_blkif_schedule()
771 use_persistent_gnts = (blkif->vbd.feature_gnt_persistent); in xen_blkbk_map()
874 if (use_persistent_gnts && !blkif->vbd.overflow_max_grants) { in xen_blkbk_map()
875 blkif->vbd.overflow_max_grants = 1; in xen_blkbk_map()
877 blkif->domid, blkif->vbd.handle); in xen_blkbk_map()
972 struct block_device *bdev = blkif->vbd.bdev; in dispatch_discard_io()
984 preq.sector_number + preq.nr_sects, blkif->vbd.pdevice); in dispatch_discard_io()
989 if (blkif->vbd.discard_secure && in dispatch_discard_io()
1202 rp, rc, rp - rc, ring->blkif->vbd.pdevice); in __do_block_io_op()
1389 ring->blkif->vbd.pdevice); in dispatch_rw_block_io()