Lines Matching refs:rings
58 struct xen_9pfs_dataring *rings; member
135 ring = &priv->rings[num]; in p9_xen_request()
271 if (!priv->rings[i].intf) in xen_9pfs_front_free()
273 if (priv->rings[i].irq > 0) in xen_9pfs_front_free()
274 unbind_from_irqhandler(priv->rings[i].irq, priv->dev); in xen_9pfs_front_free()
275 if (priv->rings[i].data.in) { in xen_9pfs_front_free()
277 j < (1 << priv->rings[i].intf->ring_order); in xen_9pfs_front_free()
281 ref = priv->rings[i].intf->ref[j]; in xen_9pfs_front_free()
284 free_pages((unsigned long)priv->rings[i].data.in, in xen_9pfs_front_free()
285 priv->rings[i].intf->ring_order - in xen_9pfs_front_free()
288 gnttab_end_foreign_access(priv->rings[i].ref, 0, 0); in xen_9pfs_front_free()
289 free_page((unsigned long)priv->rings[i].intf); in xen_9pfs_front_free()
291 kfree(priv->rings); in xen_9pfs_front_free()
399 priv->rings = kcalloc(priv->num_rings, sizeof(*priv->rings), in xen_9pfs_front_probe()
401 if (!priv->rings) { in xen_9pfs_front_probe()
407 priv->rings[i].priv = priv; in xen_9pfs_front_probe()
408 ret = xen_9pfs_front_alloc_dataring(dev, &priv->rings[i], in xen_9pfs_front_probe()
433 priv->rings[i].ref); in xen_9pfs_front_probe()
439 priv->rings[i].evtchn); in xen_9pfs_front_probe()