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