Lines Matching defs:xdev

86 	struct xenbus_device *xdev;
111 alloc_pdev(struct xenbus_device *xdev)
116 err = sscanf(xdev->nodename, "device/pci/%d", &unit);
120 xenbus_dev_fatal(pdev->xdev, err, "Error scanning pci device instance number");
127 xenbus_dev_fatal(xdev, err, "Error allocating pcifront_device struct");
131 pdev->xdev = xdev;
139 xenbus_dev_fatal(xdev, err, "Error allocating sh_info struct");
144 xdev->data = pdev;
176 xenbus_free_evtchn(pdev->xdev, pdev->evtchn);
181 pdev->xdev->data = NULL;
194 err = xenbus_grant_ring(pdev->xdev, virt_to_mfn(pdev->sh_info));
202 err = xenbus_alloc_evtchn(pdev->xdev, &pdev->evtchn);
209 xenbus_dev_fatal(pdev->xdev, err,
215 err = xenbus_printf(trans, pdev->xdev->nodename,
218 err = xenbus_printf(trans, pdev->xdev->nodename,
221 err = xenbus_printf(trans, pdev->xdev->nodename,
224 err = xenbus_switch_state(pdev->xdev, trans,
229 xenbus_dev_fatal(pdev->xdev, err,
237 xenbus_dev_fatal(pdev->xdev, err,
271 xenbus_switch_state(pdev->xdev, NULL, XenbusStateConnected);
273 printf("pcifront: connected to %s\n", pdev->xdev->nodename);
289 prev_state = xenbus_read_driver_state(pdev->xdev->nodename);
292 err = xenbus_switch_state(pdev->xdev, NULL, XenbusStateClosing);
303 pcifront_probe(struct xenbus_device *xdev,
311 if ((pdev = alloc_pdev(xdev)) == NULL)
324 pcifront_remove(struct xenbus_device *xdev)
326 DPRINTF("removing xenbus device node (%s)\n", xdev->nodename);
327 if (xdev->data)
328 put_pdev(xdev->data);
334 pcifront_backend_changed(struct xenbus_device *xdev,
337 struct pcifront_device *pdev = xdev->data;
341 DPRINTF("backend closing (%s)\n", xdev->nodename);
346 DPRINTF("backend closed (%s)\n", xdev->nodename);
351 DPRINTF("backend connected (%s)\n", xdev->nodename);
458 err = xenbus_scanf(NULL, pdev->xdev->otherend,
463 xenbus_dev_fatal(pdev->xdev, err,
478 err = xenbus_scanf(NULL, pdev->xdev->otherend, str,
483 xenbus_dev_fatal(pdev->xdev, err,
488 if (domain != pdev->xdev->otherend_id) {
490 xenbus_dev_fatal(pdev->xdev, err,
491 "Domain mismatch %d != %d", domain, pdev->xdev->otherend_id);
498 xenbus_dev_fatal(pdev->xdev, err,
547 sc->domain = pdev->xdev->otherend_id;