/freebsd/stand/efi/libefi/ |
H A D | devpath.c | 44 EFI_DEVICE_PATH *devpath; in efi_lookup_image_devpath() local 48 (void **)&devpath); in efi_lookup_image_devpath() 50 devpath = NULL; in efi_lookup_image_devpath() 51 return (devpath); in efi_lookup_image_devpath() 57 EFI_DEVICE_PATH *devpath; in efi_lookup_devpath() local 61 (void **)&devpath); in efi_lookup_devpath() 63 devpath = NULL; in efi_lookup_devpath() 64 return (devpath); in efi_lookup_devpath() 422 efi_translate_devpath(EFI_DEVICE_PATH *devpath) in efi_translate_devpath() argument 424 EFI_DEVICE_PATH *dp = NextDevicePathNode(devpath); in efi_translate_devpath() [all …]
|
H A D | eficom.c | 129 efi_serial_get_index(EFI_DEVICE_PATH *devpath, int idx) in efi_serial_get_index() argument 134 while (!IsDevicePathEnd(devpath)) { in efi_serial_get_index() 135 if (DevicePathType(devpath) == MESSAGING_DEVICE_PATH && in efi_serial_get_index() 136 DevicePathSubType(devpath) == MSG_UART_DP) in efi_serial_get_index() 139 if (DevicePathType(devpath) == ACPI_DEVICE_PATH && in efi_serial_get_index() 140 (DevicePathSubType(devpath) == ACPI_DP || in efi_serial_get_index() 141 DevicePathSubType(devpath) == ACPI_EXTENDED_DP)) { in efi_serial_get_index() 143 acpi = (ACPI_HID_DEVICE_PATH *)devpath; in efi_serial_get_index() 149 devpath = NextDevicePathNode(devpath); in efi_serial_get_index() 164 EFI_DEVICE_PATH *devpath; in efi_serial_get_handle() local [all …]
|
H A D | efihttp.c | 182 EFI_DEVICE_PATH *imgpath, *devpath; in efihttp_dev_init() local 192 devpath = imgpath; in efihttp_dev_init() 194 for (; !IsDevicePathEnd(devpath); in efihttp_dev_init() 195 devpath = NextDevicePathNode(devpath)) { in efihttp_dev_init() 196 if (DevicePathType(devpath) != MESSAGING_DEVICE_PATH || in efihttp_dev_init() 197 DevicePathSubType(devpath) != MSG_URI_DP) in efihttp_dev_init() 199 uri = (URI_DEVICE_PATH *)devpath; in efihttp_dev_init() 231 EFI_DEVICE_PATH *devpath, *imgpath; in efihttp_dev_open() local 249 devpath = imgpath; in efihttp_dev_open() 250 status = BS->LocateDevicePath(&httpsb_guid, &devpath, &handle); in efihttp_dev_open()
|
H A D | efipart.c | 214 efipart_find_parent(pdinfo_list_t *pdi, EFI_DEVICE_PATH *devpath) in efipart_find_parent() argument 220 parent = efi_devpath_trim(devpath); in efipart_find_parent() 239 EFI_DEVICE_PATH *devpath) in efipart_ignore_device() argument 301 node = efi_devpath_last_node(devpath); in efipart_ignore_device() 312 parent = efi_devpath_trim(devpath); in efipart_ignore_device() 326 node = efi_devpath_last_node(devpath); in efipart_ignore_device() 352 EFI_DEVICE_PATH *devpath; in efipart_inithandles() local 385 if ((devpath = efi_lookup_devpath(hin[i])) == NULL) in efipart_inithandles() 395 if (efipart_ignore_device(hin[i], blkio, devpath)) in efipart_inithandles() 407 pd->pd_devpath = devpath; in efipart_inithandles()
|
H A D | efinet.c | 359 EFI_DEVICE_PATH *devpath, *node; in efinet_dev_init() local 387 devpath = efi_lookup_devpath(handles[i]); in efinet_dev_init() 388 if (devpath == NULL) in efinet_dev_init() 390 if ((node = efi_devpath_last_node(devpath)) == NULL) in efinet_dev_init()
|
H A D | Makefile | 8 devpath.c \
|
/freebsd/stand/efi/gptboot/ |
H A D | proto.c | 120 partition_number(EFI_DEVICE_PATH *devpath) in partition_number() argument 125 md = efi_devpath_last_node(devpath); in partition_number() 142 EFI_DEVICE_PATH *devpath, *trimmed = NULL; in probe_handle() local 146 status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath); in probe_handle() 151 CHAR16 *text = efi_devpath_name(devpath); in probe_handle() 161 if (!efi_devpath_same_disk(imgpath, devpath)) { in probe_handle() 163 if (!efi_devpath_match(trimmed, devpath)) { in probe_handle() 180 devinfo->devpath = devpath; in probe_handle() 186 DPRINTF("Found partition %d\n", partition_number(devpath)); in probe_handle() 216 if (partition_number(dev->devpath) == part) in find_partition()
|
/freebsd/lib/libgeom/ |
H A D | geom_util.c | 273 g_device_path_open(const char *devpath, int *fdp, int dowrite) in g_device_path_open() argument 283 fd = open(devpath, dowrite ? O_RDWR : O_RDONLY); in g_device_path_open() 285 if ((path = strdup(devpath)) == NULL) { in g_device_path_open() 293 if (*devpath == '/') in g_device_path_open() 296 asprintf(&path, "%s%s", _PATH_DEV, devpath); in g_device_path_open() 323 g_device_path(const char *devpath) in g_device_path() argument 325 return (g_device_path_open(devpath, NULL, 0)); in g_device_path()
|
/freebsd/stand/efi/boot1/ |
H A D | proto.c | 57 EFI_DEVICE_PATH *devpath; in probe_handle() local 63 status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath); in probe_handle() 74 CHAR16 *text = efi_devpath_name(devpath); in probe_handle() 92 preferred = efi_devpath_same_disk(imgpath, devpath); in probe_handle() 101 devinfo->devpath = devpath; in probe_handle()
|
H A D | boot_module.h | 48 EFI_DEVICE_PATH *devpath; member
|
H A D | ufs_module.c | 147 CHAR16 *text = efi_devpath_name(dev->devpath); in load()
|
H A D | zfs_module.c | 153 CHAR16 *text = efi_devpath_name(devinfo->devpath); in load()
|
/freebsd/usr.sbin/jail/ |
H A D | command.c | 293 char *acs, *cs, *comcs, *devpath; in run_command() local 517 devpath = alloca(strlen(path) + 5); in run_command() 518 sprintf(devpath, "%s/dev", path); in run_command() 519 if (check_path(j, "mount.devfs", devpath, 0, in run_command() 524 argv[1] = devpath; in run_command() 536 argv[5] = devpath; in run_command() 548 devpath = alloca(strlen(path) + 8); in run_command() 549 sprintf(devpath, "%s/dev/fd", path); in run_command() 550 if (check_path(j, "mount.fdescfs", devpath, 0, in run_command() 555 argv[1] = devpath; in run_command() [all …]
|
/freebsd/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/sys/xen/xenbus/ |
H A D | xenbusb.c | 639 char *devpath; in xenbusb_add_device() local 647 devpath = sbuf_data(devpath_sbuf); in xenbusb_add_device() 652 if (xs_exists(XST_NIL, devpath, "") != 0) { in xenbusb_add_device() 657 child = xenbusb_device_exists(dev, devpath); in xenbusb_add_device() 666 state = xenbus_read_driver_state(devpath); in xenbusb_add_device() 674 "State %d\n", devpath, state); in xenbusb_add_device() 681 ivars->xd_node = strdup(devpath, M_XENBUS); in xenbusb_add_device() 682 ivars->xd_node_len = strlen(devpath); in xenbusb_add_device() 689 devpath); in xenbusb_add_device()
|
/freebsd/stand/efi/loader/ |
H A D | main.c | 502 EFI_DEVICE_PATH *devpath, *copy; in find_currdev() local 531 devpath = efi_name_to_devpath(rootdev); in find_currdev() 532 if (devpath == NULL) in find_currdev() 534 dp = efiblk_get_pdinfo_by_device_path(devpath); in find_currdev() 535 efi_devpath_free(devpath); in find_currdev() 641 devpath = efi_lookup_image_devpath(IH); in find_currdev() 642 while (devpath != NULL) { in find_currdev() 643 h = efi_devpath_handle(devpath); in find_currdev() 656 devpath = efi_lookup_devpath(h); in find_currdev() 657 if (devpath != NULL) { in find_currdev() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_mod.c | 915 const char *devpath = NULL, *devid = NULL; in zfs_deliver_add() local 927 (void) nvlist_lookup_string(nvl, DEV_PHYS_PATH, &devpath); in zfs_deliver_add() 934 devid, devpath ? devpath : "NULL", is_slice); in zfs_deliver_add() 946 if (devpath != NULL && devphys_iter(devpath, devid, zfs_process_add, in zfs_deliver_add() 953 if (devpath != NULL) { in zfs_deliver_add() 957 "/dev/disk/by-vdev/%s", devpath); in zfs_deliver_add()
|
/freebsd/usr.sbin/fstyp/ |
H A D | hammer2.c | 174 extract_device_name(const char *devpath) in extract_device_name() argument 178 if (!devpath) in extract_device_name() 181 p = strdup(devpath); in extract_device_name()
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | device.c | 208 char *devpath; in __ibv_open_device() local 213 if (asprintf(&devpath, "/dev/%s", device->dev_name) < 0) in __ibv_open_device() 220 cmd_fd = open(devpath, O_RDWR | O_CLOEXEC); in __ibv_open_device() 221 free(devpath); in __ibv_open_device()
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_disk_event.c | 190 const char *bus, *uuid, *devpath; in zed_udev_monitor() local 294 devpath = udev_device_get_devpath(dev); in zed_udev_monitor() 296 strstr(devpath, "/nvme/") == NULL)) { in zed_udev_monitor()
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_store.c | 88 const char *devpath, 536 bhnd_nvstore_path *path, const char *devpath, bhnd_nvram_plist *plist, in bhnd_nvstore_export_devpath_alias() argument 556 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath); in bhnd_nvstore_export_devpath_alias() 594 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath); in bhnd_nvstore_export_devpath_alias()
|
/freebsd/lib/libvmmapi/ |
H A D | vmmapi.c | 86 char devpath[PATH_MAX]; in vm_device_open() local 89 (void)snprintf(devpath, sizeof(devpath), "/dev/vmm/%s", name); in vm_device_open() 90 return (open(devpath, O_RDWR)); in vm_device_open()
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_vdev.c | 968 char devpath[MAXPATHLEN]; in make_disks() local 1007 if (realpath(path, devpath) == NULL) { in make_disks() 1024 fd = open(devpath, O_RDWR|O_EXCL); in make_disks() 1047 char *devnode = strrchr(devpath, '/') + 1; in make_disks()
|