Lines Matching full:mesh

59 geom_pp_attr(struct gmesh *mesh, struct gprovider *pp, const char *attr)  in geom_pp_attr()  argument
72 find_provider_by_efimedia(struct gmesh *mesh, const char *efimedia) in find_provider_by_efimedia() argument
82 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in find_provider_by_efimedia()
96 val = geom_pp_attr(mesh, pp, "efimedia"); in find_provider_by_efimedia()
108 find_provider_by_name(struct gmesh *mesh, const char *name) in find_provider_by_name() argument
114 LIST_FOREACH(classp, &mesh->lg_class, lg_class) { in find_provider_by_name()
128 efi_hd_to_unix(struct gmesh *mesh, const_efidp dp, char **dev, char **relpath, char **abspath) in efi_hd_to_unix() argument
171 pp = find_provider_by_efimedia(mesh, buf); in efi_hd_to_unix()
219 LIST_FOREACH(glabel, &mesh->lg_class, lg_class) { in efi_hd_to_unix()
315 * If we find a media descriptor, we search through the geom mesh to see if we
316 * can find a matching node. If no match is found in the mesh that matches,
349 struct gmesh mesh; in efivar_device_path_to_unix_path() local
395 * geom mesh here since it's safer than doing it in each sub-function in efivar_device_path_to_unix_path()
398 if (geom_gettree(&mesh)) in efivar_device_path_to_unix_path()
403 rv = efi_hd_to_unix(&mesh, walker, dev, relpath, abspath); in efivar_device_path_to_unix_path()
406 rv = efi_cdrom_to_unix(&mesh, walker, dev, relpath, abspath); in efivar_device_path_to_unix_path()
408 rv = efi_floppy_to_unix(&mesh, walker, dev, relpath, abspath); in efivar_device_path_to_unix_path()
410 rv = efi_zpool_to_unix(&mesh, walker, dev, relpath, abspath); in efivar_device_path_to_unix_path()
412 geom_deletetree(&mesh); in efivar_device_path_to_unix_path()
471 find_geom_efi_on_root(struct gmesh *mesh) in find_geom_efi_on_root() argument
489 pp = find_provider_by_name(mesh, dev); in find_geom_efi_on_root()
532 type = geom_pp_attr(mesh, pp, "type"); in find_geom_efi_on_root()
537 efimedia = geom_pp_attr(mesh, pp, "efimedia"); in find_geom_efi_on_root()
548 find_geom_efimedia(struct gmesh *mesh, const char *dev) in find_geom_efimedia() argument
553 pp = find_provider_by_name(mesh, dev); in find_geom_efimedia()
556 efimedia = geom_pp_attr(mesh, pp, "efimedia"); in find_geom_efimedia()
565 efimedia = find_geom_efimedia(mesh, pp->lg_geom->lg_name); in find_geom_efimedia()
623 efipart_to_dp(struct gmesh *mesh, char *path, efidp *dp) in efipart_to_dp() argument
628 efimedia = find_geom_efi_on_root(mesh); in efipart_to_dp()
648 dev_path_to_dp(struct gmesh *mesh, char *path, efidp *dp) in dev_path_to_dp() argument
661 efimedia = find_geom_efimedia(mesh, dev); in dev_path_to_dp()
680 path_to_dp(struct gmesh *mesh, char *path, efidp *dp) in path_to_dp() argument
712 efimedia = find_geom_efimedia(mesh, dev); in path_to_dp()
738 struct gmesh mesh; in efivar_unix_path_to_device_path() local
747 * We'll need the goem mesh to grovel through it to find the in efivar_unix_path_to_device_path()
752 if (geom_gettree(&mesh)) in efivar_unix_path_to_device_path()
767 rv = efipart_to_dp(&mesh, modpath, dp); in efivar_unix_path_to_device_path()
769 rv = dev_path_to_dp(&mesh, modpath, dp); in efivar_unix_path_to_device_path()
771 rv = path_to_dp(&mesh, modpath, dp); in efivar_unix_path_to_device_path()
774 geom_deletetree(&mesh); in efivar_unix_path_to_device_path()