Lines Matching refs:xd_xsdev

308 	pdp->xd_xsdev.nodename = i_ddi_strdup(xsname, KM_SLEEP);
309 pdp->xd_xsdev.devicetype = xdcp->xsdev;
310 pdp->xd_xsdev.frontend = (backend ? 0 : 1);
311 pdp->xd_xsdev.data = dip;
312 pdp->xd_xsdev.otherend_id = (backend ? domid : -1);
351 if (xenbus_read(XBT_NULL, pdp->xd_xsdev.otherend, "dev",
378 if (pdp->xd_xsdev.otherend_id != (domid_t)-1)
382 if (pdp->xd_xsdev.nodename != NULL)
383 kmem_free((char *)(pdp->xd_xsdev.nodename),
384 strlen(pdp->xd_xsdev.nodename) + 1);
419 oeid = pdp->xd_xsdev.otherend_id;
464 oeid = pdp->xd_xsdev.otherend_id;
1031 return ((char *)(pdp->xd_xsdev.nodename));
1042 return ((char *)(pdp->xd_xsdev.otherend));
1051 return (&pdp->xd_xsdev);
1062 return ((domid_t)(pdp->xd_xsdev.otherend_id));
1071 xenbus_dev_error(&pdp->xd_xsdev, errno, errstr);
1080 xenbus_dev_fatal(&pdp->xd_xsdev, errno, errstr);
1089 XenbusState oestate = pdp->xd_xsdev.otherend_state;
1193 == 0) && (strcmp(be, pdp->xd_xsdev.otherend) != 0))
1392 ASSERT(pdp->xd_xsdev.nodename != NULL);
1416 pdp->xd_xsdev.otherend_state = XenbusStateUnknown;
1417 pdp->xd_xsdev.otherend_changed = i_xvdi_oestate_cb;
1419 if (talk_to_otherend(&pdp->xd_xsdev) != 0) {
1437 dev = &pdp->xd_xsdev;
1472 ASSERT(pdp->xd_xsdev.frontend == 0);
1497 ASSERT(pdp->xd_xsdev.nodename != NULL);
1499 len = strlen(pdp->xd_xsdev.nodename) +
1503 pdp->xd_xsdev.nodename);
1524 ASSERT(pdp->xd_xsdev.frontend == 0);
1564 if (pdp->xd_xsdev.frontend == 1) {
1601 if (pdp->xd_xsdev.frontend == 1)
1617 ASSERT(pdp->xd_xsdev.frontend == 1);
1626 ASSERT(pdp->xd_xsdev.nodename != NULL);
1628 len = strlen(pdp->xd_xsdev.nodename) + strlen("/backend") + 1;
1631 pdp->xd_xsdev.nodename);
1652 ASSERT(pdp->xd_xsdev.frontend == 1);
1682 rv = xenbus_switch_state(&pdp->xd_xsdev, xbt, newState);
1728 ((pdp->xd_xsdev.frontend == 1) ? "frontend" : "backend"));
1920 ASSERT(pdp->xd_xsdev.otherend != NULL);
1924 if (pdp->xd_xsdev.frontend == 1) {
1971 (pdp->xd_xsdev.otherend_state != XenbusStateUnknown)) {
1972 oestate = pdp->xd_xsdev.otherend_state;