Lines Matching refs:NULL

50 	if (priv == NULL) {  in get_priv_data()
52 if (priv == NULL) in get_priv_data()
53 return NULL; in get_priv_data()
54 priv->devs = NULL; in get_priv_data()
55 priv->kc = NULL; in get_priv_data()
58 if (priv->kc == NULL) { in get_priv_data()
59 if ((priv->kc = kstat_open()) == NULL) { in get_priv_data()
61 return NULL; in get_priv_data()
72 if (ksn == NULL) in kstat_get()
80 stdevice_t *start = NULL; in gc_devs()
84 for (dev = priv->devs; dev != NULL; dev = tmp) { in gc_devs()
103 if (priv == NULL) in xenstat_uninit_devs()
106 for (dev = priv->devs; dev != NULL; dev = dev->next) in xenstat_uninit_devs()
111 if (priv->kc != NULL) in xenstat_uninit_devs()
113 priv->kc = NULL; in xenstat_uninit_devs()
130 if (ksp == NULL) in update_dev_stats()
133 if (kstat_read(priv->kc, ksp, NULL) == -1) in update_dev_stats()
171 if (name != NULL) in init_dev()
191 for (dev = priv->devs; dev != NULL; dev = dev->next) { in update_nic()
224 dom->networks = NULL; in collect_dom_networks()
227 if (vifs == NULL) in collect_dom_networks()
239 tmp = xs_read(node->handle->xshandle, XBT_NULL, path, NULL); in collect_dom_networks()
241 if (tmp == NULL) in collect_dom_networks()
247 tmp = xs_read(node->handle->xshandle, XBT_NULL, path, NULL); in collect_dom_networks()
249 if (tmp == NULL || tmp[0] == '\0') { in collect_dom_networks()
274 if (priv == NULL) in xenstat_collect_networks()
277 for (dev = priv->devs; dev != NULL; dev = dev->next) in xenstat_collect_networks()
302 for (dev = priv->devs; dev != NULL; dev = dev->next) { in update_xdb()
315 return init_dev(priv, DEVICE_XDB, NULL, instance, dom->id); in update_xdb()
331 dom->vbds = NULL; in collect_dom_vbds()
334 if (vbds == NULL) in collect_dom_vbds()
347 tmp = xs_read(node->handle->xshandle, XBT_NULL, path, NULL); in collect_dom_vbds()
349 if (tmp == NULL) in collect_dom_vbds()
355 tmp = xs_read(node->handle->xshandle, XBT_NULL, path, NULL); in collect_dom_vbds()
361 if (tmp == NULL || sscanf(tmp, "%d", &inst) != 1) { in collect_dom_vbds()
384 if (priv == NULL) in xenstat_collect_vbds()
387 for (dev = priv->devs; dev != NULL; dev = dev->next) in xenstat_collect_vbds()