Lines Matching refs:xxwp

1203 i_xvdi_xb_watch_free(xd_xb_watches_t *xxwp)
1205 ASSERT(xxwp->xxw_ref == 0);
1206 strfree((char *)xxwp->xxw_watch.node);
1207 kmem_free(xxwp, sizeof (*xxwp));
1211 i_xvdi_xb_watch_release(xd_xb_watches_t *xxwp)
1213 ASSERT(MUTEX_HELD(&xxwp->xxw_xppd->xd_ndi_lk));
1214 ASSERT(xxwp->xxw_ref > 0);
1215 if (--xxwp->xxw_ref == 0)
1216 i_xvdi_xb_watch_free(xxwp);
1220 i_xvdi_xb_watch_hold(xd_xb_watches_t *xxwp)
1222 ASSERT(MUTEX_HELD(&xxwp->xxw_xppd->xd_ndi_lk));
1223 ASSERT(xxwp->xxw_ref > 0);
1224 xxwp->xxw_ref++;
1230 xd_xb_watches_t *xxwp = (xd_xb_watches_t *)arg;
1231 dev_info_t *dip = (dev_info_t *)xxwp->xxw_watch.dev;
1232 struct xendev_ppd *pdp = xxwp->xxw_xppd;
1234 xxwp->xxw_cb(dip, xxwp->xxw_watch.node, xxwp->xxw_arg);
1237 i_xvdi_xb_watch_release(xxwp);
1246 xd_xb_watches_t *xxwp;
1252 for (xxwp = list_head(&pdp->xd_xb_watches); xxwp != NULL;
1253 xxwp = list_next(&pdp->xd_xb_watches, xxwp)) {
1254 if (w == &xxwp->xxw_watch)
1258 if (xxwp == NULL) {
1263 i_xvdi_xb_watch_hold(xxwp);
1265 i_xvdi_xb_watch_cb_tq, xxwp, DDI_SLEEP);
1280 xd_xb_watches_t *xxw_new, *xxwp;
1326 for (xxwp = list_head(&pdp->xd_xb_watches); xxwp != NULL;
1327 xxwp = list_next(&pdp->xd_xb_watches, xxwp)) {
1329 ASSERT(strcmp(xxwp->xxw_watch.node, path) != 0);
1330 if (strcmp(xxwp->xxw_watch.node, path) != 0)
1359 xd_xb_watches_t *xxwp;
1364 while ((xxwp = list_remove_head(&pdp->xd_xb_watches)) != NULL) {
1366 unregister_xenbus_watch(&xxwp->xxw_watch);
1368 i_xvdi_xb_watch_release(xxwp);
1377 * their reference on their corresponding xxwp structure.