/freebsd/stand/uboot/ |
H A D | devicename.c | 34 static int uboot_parsedev(struct uboot_devdesc **dev, const char *devspec, 43 uboot_getdev(void **vdev, const char *devspec, const char **path) in uboot_getdev() argument 52 if ((devspec == NULL) || (devspec[0] == '/') || in uboot_getdev() 53 (strchr(devspec, ':') == NULL)) { in uboot_getdev() 57 *path = devspec; in uboot_getdev() 64 return (uboot_parsedev(dev, devspec, path)); in uboot_getdev() 82 uboot_parsedev(struct uboot_devdesc **dev, const char *devspec, in uboot_parsedev() argument 92 if (strlen(devspec) < 2) in uboot_parsedev() 97 if (!strncmp(devspec, devsw[i]->dv_name, in uboot_parsedev() 107 np = (devspec + strlen(dv->dv_name)); in uboot_parsedev() [all …]
|
H A D | libuboot.h | 50 int uboot_getdev(void **vdev, const char *devspec, const char **path);
|
/freebsd/stand/libsa/ |
H A D | dev.c | 68 default_parsedev(struct devdesc **dev, const char *devspec, in default_parsedev() argument 80 cp = (char *)devspec; /* strtol interface, alas */ in default_parsedev() 82 if (*devspec != '\0' && *devspec != ':') { in default_parsedev() 84 unit = strtol(devspec, &cp, 0); in default_parsedev() 85 if (errno != 0 || cp == devspec) { in default_parsedev() 107 devparse(struct devdesc **dev, const char *devspec, const char **path) in devparse() argument 115 if (strlen(devspec) < 2) in devparse() 122 if (dv->dv_match(dv, devspec) != 0) in devparse() 125 if (!strncmp(devspec, dv->dv_name, strlen(dv->dv_name))) in devparse() 134 err = dv->dv_parsedev(&idev, devspec, path); in devparse() [all …]
|
/freebsd/stand/libofw/ |
H A D | devicename.c | 38 ofw_getdev(void **vdev, const char *devspec, const char **path) in ofw_getdev() argument 47 if (devspec == NULL || strpbrk(devspec, ":@") == NULL) { in ofw_getdev() 50 *path = devspec; in ofw_getdev() 57 return (devparse(dev, devspec, path)); in ofw_getdev() 93 ofw_common_parsedev(struct devdesc **dev, const char *devspec, const char **path, in ofw_common_parsedev() argument 99 if (ofw_path_to_handle(devspec, ofwtype, &rem_path) == -1) in ofw_common_parsedev() 106 strlcpy(idev->d_path, devspec, min(rem_path - devspec + 1, in ofw_common_parsedev()
|
H A D | ofw_disk.c | 216 ofwd_match(struct devsw *devsw, const char *devspec) in ofwd_match() argument 220 return (ofw_path_to_handle(devspec, devsw->dv_name, &path) != -1); in ofwd_match() 232 ofwd_parsedev(struct devdesc **dev, const char *devspec, const char **path) in ofwd_parsedev() argument 234 return (ofw_common_parsedev(dev, devspec, path, ofwdisk.dv_name)); in ofwd_parsedev()
|
H A D | ofw_net.c | 306 ofwnd_parsedev(struct devdesc **dev, const char *devspec, const char **path) in ofwnd_parsedev() argument 308 return (ofw_common_parsedev(dev, devspec, path, ofw_netdev.dv_name)); in ofwnd_parsedev() 312 ofwnd_match(struct devsw *devsw, const char *devspec) in ofwnd_match() argument 316 return (ofw_path_to_handle(devspec, devsw->dv_name, &path) != -1); in ofwnd_match()
|
H A D | libofw.h | 45 extern int ofw_getdev(void **vdev, const char *devspec, const char **path); 63 int ofw_common_parsedev(struct devdesc **dev, const char *devspec, const char **path,
|
/freebsd/stand/i386/libi386/ |
H A D | devicename.c | 39 i386_getdev(void **vdev, const char *devspec, const char **path) in i386_getdev() argument 48 if ((devspec == NULL) || in i386_getdev() 49 (devspec[0] == '/') || in i386_getdev() 50 (strchr(devspec, ':') == NULL)) { in i386_getdev() 54 *path = devspec; in i386_getdev() 61 return(devparse(dev, devspec, path)); in i386_getdev()
|
H A D | libi386.h | 79 int i386_getdev(void **vdev, const char *devspec, const char **path);
|
/freebsd/stand/efi/libefi/ |
H A D | devicename.c | 45 efi_getdev(void **vdev, const char *devspec, const char **path) in efi_getdev() argument 54 if (devspec == NULL || *devspec == '/' || !strchr(devspec, ':')) { in efi_getdev() 57 *path = devspec; in efi_getdev() 61 return (devparse(dev, devspec, path)); in efi_getdev()
|
/freebsd/stand/userboot/userboot/ |
H A D | devicename.c | 40 userboot_getdev(void **vdev, const char *devspec, const char **path) in userboot_getdev() argument 49 if ((devspec == NULL) || in userboot_getdev() 50 (devspec[0] == '/') || in userboot_getdev() 51 (strchr(devspec, ':') == NULL)) { in userboot_getdev() 55 *path = devspec; in userboot_getdev() 62 return (devparse(dev, devspec, path)); in userboot_getdev()
|
/freebsd/stand/kboot/kboot/ |
H A D | hostdisk.c | 47 static bool hostdisk_match(struct devsw *devsw, const char *devspec); 48 static int hostdisk_parsedev(struct devdesc **idev, const char *devspec, const char **path); 426 hostdisk_match(struct devsw *devsw, const char *devspec) in hostdisk_match() argument 432 colon = strchr(devspec, ':'); in hostdisk_match() 435 cp = strdup(devspec); in hostdisk_match() 436 cp[colon - devspec] = '\0'; in hostdisk_match() 443 hostdisk_parsedev(struct devdesc **idev, const char *devspec, const char **path) in hostdisk_parsedev() argument 452 cp = strchr(devspec, ':'); in hostdisk_parsedev() 458 len = cp - devspec; in hostdisk_parsedev() 459 fn = strdup(devspec); in hostdisk_parsedev()
|
H A D | main.c | 43 int kboot_getdev(void **vdev, const char *devspec, const char **path); 106 kboot_getdev(void **vdev, const char *devspec, const char **path) in kboot_getdev() argument 115 if (devspec == NULL || strchr(devspec, ':') == NULL) { in kboot_getdev() 118 *path = devspec; in kboot_getdev() 125 return (devparse(dev, devspec, path)); in kboot_getdev()
|
/freebsd/stand/common/ |
H A D | disk.c | 413 disk_parsedev(struct devdesc **idev, const char *devspec, const char **path) in disk_parsedev() argument 420 np = devspec + 4; /* Skip the leading 'disk' */ in disk_parsedev()
|
/freebsd/stand/efi/include/ |
H A D | efilib.h | 85 int efi_getdev(void **vdev, const char *devspec, const char **path);
|
/freebsd/stand/libsa/zfs/ |
H A D | zfs.c | 64 static int zfs_parsedev(struct devdesc **idev, const char *devspec, 1612 zfs_parsedev(struct devdesc **idev, const char *devspec, const char **path) in zfs_parsedev() argument 1623 np = devspec + 3; /* Skip the leading 'zfs' */ in zfs_parsedev()
|