Searched refs:devpath (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-13-stable/stand/efi/libefi/
H A Ddevpath.c47 EFI_DEVICE_PATH *devpath; local
51 (void **)&devpath);
53 devpath = NULL;
54 return (devpath);
60 EFI_DEVICE_PATH *devpath; local
64 (void **)&devpath);
66 devpath = NULL;
67 return (devpath);
425 efi_translate_devpath(EFI_DEVICE_PATH *devpath) argument
427 EFI_DEVICE_PATH *dp = NextDevicePathNode(devpath);
467 efi_devpath_to_name(EFI_DEVICE_PATH *devpath) argument
502 efi_devpath_name(EFI_DEVICE_PATH *devpath) argument
530 EFI_DEVICE_PATH *devpath; local
561 efi_devpath_free(EFI_DEVICE_PATH *devpath) argument
568 efi_devpath_last_node(EFI_DEVICE_PATH *devpath) argument
579 efi_devpath_trim(EFI_DEVICE_PATH *devpath) argument
600 efi_devpath_handle(EFI_DEVICE_PATH *devpath) argument
736 EFI_DEVICE_PATH *media, *devpath; local
[all...]
H A DMakefile10 devpath.c \
H A Defihttp.c187 EFI_DEVICE_PATH *imgpath, *devpath; local
197 devpath = imgpath;
199 for (; !IsDevicePathEnd(devpath);
200 devpath = NextDevicePathNode(devpath)) {
201 if (DevicePathType(devpath) != MESSAGING_DEVICE_PATH ||
202 DevicePathSubType(devpath) != MSG_URI_DP)
204 uri = (URI_DEVICE_PATH *)devpath;
236 EFI_DEVICE_PATH *devpath, *imgpath; local
254 devpath
[all...]
H A Defipart.c215 efipart_find_parent(pdinfo_list_t *pdi, EFI_DEVICE_PATH *devpath) argument
221 parent = efi_devpath_trim(devpath);
240 EFI_DEVICE_PATH *devpath)
302 node = efi_devpath_last_node(devpath);
313 parent = efi_devpath_trim(devpath);
327 node = efi_devpath_last_node(devpath);
353 EFI_DEVICE_PATH *devpath; local
383 * Get devpath and open protocol.
386 if ((devpath = efi_lookup_devpath(hin[i])) == NULL)
396 if (efipart_ignore_device(hin[i], blkio, devpath))
239 efipart_ignore_device(EFI_HANDLE h, EFI_BLOCK_IO *blkio, EFI_DEVICE_PATH *devpath) argument
[all...]
H A Definet.c362 EFI_DEVICE_PATH *devpath, *node; local
390 devpath = efi_lookup_devpath(handles[i]);
391 if (devpath == NULL)
393 if ((node = efi_devpath_last_node(devpath)) == NULL)
/freebsd-13-stable/stand/efi/gptboot/
H A Dproto.c123 partition_number(EFI_DEVICE_PATH *devpath) argument
128 md = efi_devpath_last_node(devpath);
145 EFI_DEVICE_PATH *devpath, *trimmed = NULL; local
149 status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath);
154 CHAR16 *text = efi_devpath_name(devpath);
164 if (!efi_devpath_same_disk(imgpath, devpath)) {
166 if (!efi_devpath_match(trimmed, devpath)) {
183 devinfo->devpath = devpath;
189 DPRINTF("Found partition %d\n", partition_number(devpath));
[all...]
/freebsd-13-stable/lib/libgeom/
H A Dgeom_util.c276 g_device_path_open(const char *devpath, int *fdp, int dowrite) argument
286 fd = open(devpath, dowrite ? O_RDWR : O_RDONLY);
288 if ((path = strdup(devpath)) == NULL) {
296 if (*devpath == '/')
299 asprintf(&path, "%s%s", _PATH_DEV, devpath);
326 g_device_path(const char *devpath) argument
328 return (g_device_path_open(devpath, NULL, 0));
/freebsd-13-stable/stand/efi/boot1/
H A Dproto.c60 EFI_DEVICE_PATH *devpath; local
66 status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath);
77 CHAR16 *text = efi_devpath_name(devpath);
95 preferred = efi_devpath_same_disk(imgpath, devpath);
104 devinfo->devpath = devpath;
H A Dboot_module.h50 EFI_DEVICE_PATH *devpath; member in struct:dev_info
H A DMakefile33 SRCS+= boot1.c proto.c self_reloc.c start.S ufs_module.c devpath.c
H A Dufs_module.c149 CHAR16 *text = efi_devpath_name(dev->devpath);
H A Dboot1.c99 if ((status = BS->LoadImage(TRUE, IH, efi_devpath_last_node(dev->devpath),
223 /* Determine the devpath of our image so we can prefer it. */
H A Dzfs_module.c152 CHAR16 *text = efi_devpath_name(devinfo->devpath);
153 DPRINTF("load: '%s' spa: '%s', devpath: %S\n", filepath,
/freebsd-13-stable/stand/efi/loader/
H A Defiserialio.c123 efi_serial_get_index(EFI_DEVICE_PATH *devpath, int idx) argument
128 while (!IsDevicePathEnd(devpath)) {
129 if (DevicePathType(devpath) == MESSAGING_DEVICE_PATH &&
130 DevicePathSubType(devpath) == MSG_UART_DP)
133 if (DevicePathType(devpath) == ACPI_DEVICE_PATH &&
134 (DevicePathSubType(devpath) == ACPI_DP ||
135 DevicePathSubType(devpath) == ACPI_EXTENDED_DP)) {
137 acpi = (ACPI_HID_DEVICE_PATH *)devpath;
143 devpath = NextDevicePathNode(devpath);
158 EFI_DEVICE_PATH *devpath; local
[all...]
H A Dmain.c496 EFI_DEVICE_PATH *devpath, *copy; local
525 devpath = efi_name_to_devpath(rootdev);
526 if (devpath == NULL)
528 dp = efiblk_get_pdinfo_by_device_path(devpath);
529 efi_devpath_free(devpath);
626 devpath = efi_lookup_image_devpath(IH);
627 while (devpath != NULL) {
628 h = efi_devpath_handle(devpath);
641 devpath = efi_lookup_devpath(h);
642 if (devpath !
[all...]
/freebsd-13-stable/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c190 char devpath[PATH_MAX]; local
290 if (realpath(rawpath, devpath) == NULL && !is_dm) {
329 leafname = strrchr(devpath, '/') + 1;
389 (void) snprintf(devpath, sizeof (devpath), "%s%s",
665 char *devpath = NULL, *devid; local
674 (void) nvlist_lookup_string(nvl, DEV_PHYS_PATH, &devpath);
679 devid, devpath ? devpath : "NULL", is_slice);
689 if (!devid_iter(devid, zfs_process_add, is_slice) && devpath !
[all...]
/freebsd-13-stable/usr.sbin/jail/
H A Dcommand.c296 char *acs, *cs, *comcs, *devpath; local
520 devpath = alloca(strlen(path) + 5);
521 sprintf(devpath, "%s/dev", path);
522 if (check_path(j, "mount.devfs", devpath, 0,
527 argv[1] = devpath;
539 argv[5] = devpath;
551 devpath = alloca(strlen(path) + 8);
552 sprintf(devpath, "%s/dev/fd", path);
553 if (check_path(j, "mount.fdescfs", devpath, 0,
558 argv[1] = devpath;
[all...]
/freebsd-13-stable/sys/xen/xenbus/
H A Dxenbusb.c644 char *devpath; local
652 devpath = sbuf_data(devpath_sbuf);
657 if (xs_exists(XST_NIL, devpath, "") != 0) {
662 child = xenbusb_device_exists(dev, devpath);
671 state = xenbus_read_driver_state(devpath);
679 "State %d\n", devpath, state);
686 ivars->xd_node = strdup(devpath, M_XENBUS);
687 ivars->xd_node_len = strlen(devpath);
694 devpath);
/freebsd-13-stable/contrib/ofed/libibverbs/
H A Ddevice.c179 char *devpath; local
184 if (asprintf(&devpath, "/dev/%s", device->dev_name) < 0)
191 cmd_fd = open(devpath, O_RDWR | O_CLOEXEC);
192 free(devpath);
/freebsd-13-stable/usr.sbin/fstyp/
H A Dhammer2.c176 extract_device_name(const char *devpath) argument
180 if (!devpath)
183 p = strdup(devpath);
/freebsd-13-stable/stand/powerpc/kboot/
H A Dmain.c217 const char *devpath, *filepath; local
222 devpath = devspec;
225 devpath = getenv("currdev");
230 if (strncmp(dv->dv_name, devpath, strlen(dv->dv_name)) == 0)
245 desc->d_opendata = strdup(devpath);
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/
H A Dmmp.kshlib172 typeset devpath=$2
183 log_must zdb -e -p $devpath $pool >$tmpfile 2>/dev/null
/freebsd-13-stable/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_store.c91 const char *devpath,
524 * @param path The NVRAM path for which a devpath alias
526 * @param devpath The devpathXX path value for @p path.
527 * @param plist The property list to which @p path's devpath
539 bhnd_nvstore_path *path, const char *devpath, bhnd_nvram_plist *plist,
554 bhnd_nv_asprintf(&pathvar, "devpath%lu", *alias_val);
559 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath);
579 bhnd_nv_asprintf(&pathvar, "devpath%lu", *alias_val);
597 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath);
538 bhnd_nvstore_export_devpath_alias(struct bhnd_nvram_store *sc, bhnd_nvstore_path *path, const char *devpath, bhnd_nvram_plist *plist, u_long *alias_val) argument
/freebsd-13-stable/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c940 char devpath[MAXPATHLEN]; local
979 if (realpath(path, devpath) == NULL) {
996 fd = open(devpath, O_RDWR|O_EXCL);
1019 char *devnode = strrchr(devpath, '/') + 1;
/freebsd-13-stable/sys/contrib/openzfs/module/zfs/
H A Dfm.c986 * devpath string <devpath>
994 const char *devpath, const char *devid, const char *tpl0)
1011 err |= nvlist_add_string(fmri_dev, FM_FMRI_DEV_PATH, devpath);
993 fm_fmri_dev_set(nvlist_t *fmri_dev, int version, const nvlist_t *auth, const char *devpath, const char *devid, const char *tpl0) argument

Completed in 194 milliseconds

12