| /freebsd-13.1/stand/efi/libefi/ |
| H A D | devpath.c | 51 (void **)&devpath); in efi_lookup_image_devpath() 53 devpath = NULL; in efi_lookup_image_devpath() 54 return (devpath); in efi_lookup_image_devpath() 64 (void **)&devpath); in efi_lookup_devpath() 66 devpath = NULL; in efi_lookup_devpath() 67 return (devpath); in efi_lookup_devpath() 506 if (devpath == NULL) in efi_devpath_name() 539 return (devpath); in efi_name_to_devpath() 574 devpath = NextDevicePathNode(devpath); in efi_devpath_last_node() 575 return (devpath); in efi_devpath_last_node() [all …]
|
| H A D | efihttp.c | 187 EFI_DEVICE_PATH *imgpath, *devpath; in efihttp_dev_init() local 197 devpath = imgpath; in efihttp_dev_init() 199 for (; !IsDevicePathEnd(devpath); in efihttp_dev_init() 200 devpath = NextDevicePathNode(devpath)) { in efihttp_dev_init() 201 if (DevicePathType(devpath) != MESSAGING_DEVICE_PATH || in efihttp_dev_init() 202 DevicePathSubType(devpath) != MSG_URI_DP) in efihttp_dev_init() 204 uri = (URI_DEVICE_PATH *)devpath; in efihttp_dev_init() 236 EFI_DEVICE_PATH *devpath, *imgpath; in efihttp_dev_open() local 254 devpath = imgpath; in efihttp_dev_open() 255 status = BS->LocateDevicePath(&httpsb_guid, &devpath, &handle); in efihttp_dev_open()
|
| H A D | efipart.c | 215 efipart_find_parent(pdinfo_list_t *pdi, EFI_DEVICE_PATH *devpath) in efipart_find_parent() argument 221 parent = efi_devpath_trim(devpath); in efipart_find_parent() 240 EFI_DEVICE_PATH *devpath) in efipart_ignore_device() argument 302 node = efi_devpath_last_node(devpath); in efipart_ignore_device() 313 parent = efi_devpath_trim(devpath); in efipart_ignore_device() 327 node = efi_devpath_last_node(devpath); in efipart_ignore_device() 353 EFI_DEVICE_PATH *devpath; in efipart_inithandles() local 386 if ((devpath = efi_lookup_devpath(hin[i])) == NULL) in efipart_inithandles() 396 if (efipart_ignore_device(hin[i], blkio, devpath)) in efipart_inithandles() 408 pd->pd_devpath = devpath; in efipart_inithandles()
|
| H A D | efinet.c | 362 EFI_DEVICE_PATH *devpath, *node; in efinet_dev_init() local 390 devpath = efi_lookup_devpath(handles[i]); in efinet_dev_init() 391 if (devpath == NULL) in efinet_dev_init() 393 if ((node = efi_devpath_last_node(devpath)) == NULL) in efinet_dev_init()
|
| H A D | Makefile | 10 devpath.c \
|
| /freebsd-13.1/stand/efi/gptboot/ |
| H A D | proto.c | 123 partition_number(EFI_DEVICE_PATH *devpath) in partition_number() argument 128 md = efi_devpath_last_node(devpath); in partition_number() 145 EFI_DEVICE_PATH *devpath, *trimmed = NULL; in probe_handle() local 149 status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath); in probe_handle() 154 CHAR16 *text = efi_devpath_name(devpath); in probe_handle() 164 if (!efi_devpath_same_disk(imgpath, devpath)) { in probe_handle() 166 if (!efi_devpath_match(trimmed, devpath)) { in probe_handle() 183 devinfo->devpath = devpath; in probe_handle() 189 DPRINTF("Found partition %d\n", partition_number(devpath)); in probe_handle() 219 if (partition_number(dev->devpath) == part) in find_partition()
|
| /freebsd-13.1/stand/efi/loader/ |
| H A D | efiserialio.c | 128 while (!IsDevicePathEnd(devpath)) { in efi_serial_get_index() 130 DevicePathSubType(devpath) == MSG_UART_DP) in efi_serial_get_index() 133 if (DevicePathType(devpath) == ACPI_DEVICE_PATH && in efi_serial_get_index() 134 (DevicePathSubType(devpath) == ACPI_DP || in efi_serial_get_index() 137 acpi = (ACPI_HID_DEVICE_PATH *)devpath; in efi_serial_get_index() 143 devpath = NextDevicePathNode(devpath); in efi_serial_get_index() 158 EFI_DEVICE_PATH *devpath; in efi_serial_get_handle() local 176 devpath = efi_lookup_devpath(condev); in efi_serial_get_handle() 178 efi_serial_get_index(devpath, index); in efi_serial_get_handle() 188 devpath = efi_lookup_devpath(handles[index]); in efi_serial_get_handle() [all …]
|
| H A D | main.c | 494 EFI_DEVICE_PATH *devpath, *copy; in find_currdev() local 524 if (devpath == NULL) in find_currdev() 527 efi_devpath_free(devpath); in find_currdev() 625 while (devpath != NULL) { in find_currdev() 626 h = efi_devpath_handle(devpath); in find_currdev() 639 devpath = efi_lookup_devpath(h); in find_currdev() 640 if (devpath != NULL) { in find_currdev() 641 copy = efi_devpath_trim(devpath); in find_currdev() 642 devpath = copy; in find_currdev() 1426 EFI_DEVICE_PATH *devpath; in lsefi_print_handle_info() local [all …]
|
| /freebsd-13.1/lib/libgeom/ |
| H A D | geom_util.c | 276 g_device_path_open(const char *devpath, int *fdp, int dowrite) in g_device_path_open() argument 286 fd = open(devpath, dowrite ? O_RDWR : O_RDONLY); in g_device_path_open() 288 if ((path = strdup(devpath)) == NULL) { in g_device_path_open() 296 if (*devpath == '/') in g_device_path_open() 299 asprintf(&path, "%s%s", _PATH_DEV, devpath); in g_device_path_open() 326 g_device_path(const char *devpath) in g_device_path() argument 328 return (g_device_path_open(devpath, NULL, 0)); in g_device_path()
|
| /freebsd-13.1/stand/efi/boot1/ |
| H A D | proto.c | 60 EFI_DEVICE_PATH *devpath; in probe_handle() local 66 status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath); in probe_handle() 77 CHAR16 *text = efi_devpath_name(devpath); in probe_handle() 95 preferred = efi_devpath_same_disk(imgpath, devpath); in probe_handle() 104 devinfo->devpath = devpath; in probe_handle()
|
| H A D | boot_module.h | 50 EFI_DEVICE_PATH *devpath; member
|
| H A D | ufs_module.c | 149 CHAR16 *text = efi_devpath_name(dev->devpath); in load()
|
| H A D | Makefile | 33 SRCS+= boot1.c proto.c self_reloc.c start.S ufs_module.c devpath.c
|
| H A D | zfs_module.c | 152 CHAR16 *text = efi_devpath_name(devinfo->devpath); in load()
|
| /freebsd-13.1/sys/contrib/openzfs/cmd/zed/agents/ |
| H A D | zfs_mod.c | 190 char devpath[PATH_MAX]; in zfs_process_add() local 350 if (realpath(rawpath, devpath) == NULL && !is_mpath_wholedisk) { in zfs_process_add() 391 leafname = strrchr(devpath, '/') + 1; in zfs_process_add() 451 (void) snprintf(devpath, sizeof (devpath), "%s%s", in zfs_process_add() 819 char *devpath = NULL, *devid = NULL; in zfs_deliver_add() local 831 (void) nvlist_lookup_string(nvl, DEV_PHYS_PATH, &devpath); in zfs_deliver_add() 838 devid, devpath ? devpath : "NULL", is_slice); in zfs_deliver_add() 850 if (devpath != NULL && devphys_iter(devpath, devid, zfs_process_add, in zfs_deliver_add() 857 if (devpath != NULL) { in zfs_deliver_add() 861 "/dev/disk/by-vdev/%s", devpath); in zfs_deliver_add()
|
| /freebsd-13.1/usr.sbin/jail/ |
| H A D | command.c | 296 char *acs, *cs, *comcs, *devpath; in run_command() local 520 devpath = alloca(strlen(path) + 5); in run_command() 521 sprintf(devpath, "%s/dev", path); in run_command() 527 argv[1] = devpath; in run_command() 539 argv[5] = devpath; in run_command() 551 devpath = alloca(strlen(path) + 8); in run_command() 558 argv[1] = devpath; in run_command() 565 argv[4] = devpath; in run_command() 578 sprintf(devpath, "%s/proc", path); in run_command() 584 argv[1] = devpath; in run_command() [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/dev/cgd/ |
| H A D | t_cgd_3des.c | 696 open_disk(const char *devpath, const char *imgpath, size_t size) in open_disk() argument 707 if (rump_pub_etfs_register_withsize(devpath, in open_disk() 723 char devpath[32]; in open_cgd() local 725 sprintf(devpath, "/dev/rcgd%d%c", devno, getrawpartition() + 'a'); in open_cgd() 727 return rump_sys_open(devpath, O_RDWR, 0); in open_cgd()
|
| H A D | t_cgd_blowfish.c | 1932 open_disk(const char *devpath, const char *imgpath, size_t size) in open_disk() argument 1943 if (rump_pub_etfs_register_withsize(devpath, in open_disk() 1959 char devpath[32]; in open_cgd() local 1961 sprintf(devpath, "/dev/rcgd%d%c", devno, getrawpartition() + 'a'); in open_cgd() 1963 return rump_sys_open(devpath, O_RDWR, 0); in open_cgd()
|
| H A D | t_cgd_aes.c | 3097 open_disk(const char *devpath, const char *imgpath, size_t size) in open_disk() argument 3108 if (rump_pub_etfs_register_withsize(devpath, in open_disk() 3124 char devpath[32]; in open_cgd() local 3126 sprintf(devpath, "/dev/rcgd%d%c", devno, getrawpartition() + 'a'); in open_cgd() 3128 return rump_sys_open(devpath, O_RDWR, 0); in open_cgd()
|
| /freebsd-13.1/sys/xen/xenbus/ |
| H A D | xenbusb.c | 644 char *devpath; in xenbusb_add_device() local 652 devpath = sbuf_data(devpath_sbuf); in xenbusb_add_device() 657 if (xs_exists(XST_NIL, devpath, "") != 0) { in xenbusb_add_device() 662 child = xenbusb_device_exists(dev, devpath); in xenbusb_add_device() 671 state = xenbus_read_driver_state(devpath); in xenbusb_add_device() 679 "State %d\n", devpath, state); in xenbusb_add_device() 686 ivars->xd_node = strdup(devpath, M_XENBUS); in xenbusb_add_device() 687 ivars->xd_node_len = strlen(devpath); in xenbusb_add_device() 694 devpath); in xenbusb_add_device()
|
| /freebsd-13.1/contrib/ofed/libibverbs/ |
| H A D | device.c | 179 char *devpath; in __ibv_open_device() local 184 if (asprintf(&devpath, "/dev/%s", device->dev_name) < 0) in __ibv_open_device() 191 cmd_fd = open(devpath, O_RDWR | O_CLOEXEC); in __ibv_open_device() 192 free(devpath); in __ibv_open_device()
|
| /freebsd-13.1/stand/powerpc/kboot/ |
| H A D | main.c | 216 const char *devpath, *filepath; in kboot_getdev() local 221 devpath = devspec; in kboot_getdev() 224 devpath = getenv("currdev"); in kboot_getdev() 229 if (strncmp(dv->dv_name, devpath, strlen(dv->dv_name)) == 0) in kboot_getdev() 244 desc->d_opendata = strdup(devpath); in kboot_getdev()
|
| /freebsd-13.1/usr.sbin/fstyp/ |
| H A D | hammer2.c | 176 extract_device_name(const char *devpath) in extract_device_name() argument 180 if (!devpath) in extract_device_name() 183 p = strdup(devpath); in extract_device_name()
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/ |
| H A D | mmp.kshlib | 172 typeset devpath=$2 183 log_must zdb -e -p $devpath $pool >$tmpfile 2>/dev/null
|
| /freebsd-13.1/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_store.c | 91 const char *devpath, 539 bhnd_nvstore_path *path, const char *devpath, bhnd_nvram_plist *plist, in bhnd_nvstore_export_devpath_alias() argument 559 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath); in bhnd_nvstore_export_devpath_alias() 597 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath); in bhnd_nvstore_export_devpath_alias()
|