Lines Matching refs:veb
1172 struct veb { struct
1188 static struct veb *veb; variable
1233 list_insert_tail(&veb->veb_ents, vebe); in vdev_disk_preroot_scan_walk()
1252 if (veb == NULL) { in vdev_disk_preroot_lookup()
1264 if (!veb->veb_scanned) { in vdev_disk_preroot_lookup()
1269 veb->veb_scanned = B_TRUE; in vdev_disk_preroot_lookup()
1273 for (struct veb_ent *vebe = list_head(&veb->veb_ents); vebe != NULL; in vdev_disk_preroot_lookup()
1274 vebe = list_next(&veb->veb_ents, vebe)) { in vdev_disk_preroot_lookup()
1293 if (veb != NULL) { in vdev_disk_preroot_force_path()
1294 force_path = veb->veb_force_path; in vdev_disk_preroot_force_path()
1306 VERIFY3P(veb, ==, NULL); in vdev_disk_preroot_init()
1307 veb = kmem_zalloc(sizeof (*veb), KM_SLEEP); in vdev_disk_preroot_init()
1308 list_create(&veb->veb_ents, sizeof (struct veb_ent), in vdev_disk_preroot_init()
1310 veb->veb_scanned = B_FALSE; in vdev_disk_preroot_init()
1312 veb->veb_force_path = spa_strdup(force_path); in vdev_disk_preroot_init()
1321 if (veb != NULL) { in vdev_disk_preroot_fini()
1322 while (!list_is_empty(&veb->veb_ents)) { in vdev_disk_preroot_fini()
1323 struct veb_ent *vebe = list_remove_head(&veb->veb_ents); in vdev_disk_preroot_fini()
1330 if (veb->veb_force_path != NULL) { in vdev_disk_preroot_fini()
1331 spa_strfree(veb->veb_force_path); in vdev_disk_preroot_fini()
1334 kmem_free(veb, sizeof (*veb)); in vdev_disk_preroot_fini()
1335 veb = NULL; in vdev_disk_preroot_fini()