| /freebsd-13-stable/stand/uboot/ |
| HD | devicename.c | 35 static int uboot_parsedev(struct uboot_devdesc **dev, const char *devspec, 44 uboot_getdev(void **vdev, const char *devspec, const char **path) in uboot_getdev() argument 53 if ((devspec == NULL) || (devspec[0] == '/') || in uboot_getdev() 54 (strchr(devspec, ':') == NULL)) { in uboot_getdev() 58 *path = devspec; in uboot_getdev() 65 return (uboot_parsedev(dev, devspec, path)); in uboot_getdev() 83 uboot_parsedev(struct uboot_devdesc **dev, const char *devspec, in uboot_parsedev() argument 93 if (strlen(devspec) < 2) in uboot_parsedev() 98 if (!strncmp(devspec, devsw[i]->dv_name, in uboot_parsedev() 108 np = (devspec + strlen(dv->dv_name)); in uboot_parsedev() [all …]
|
| HD | libuboot.h | 50 int uboot_getdev(void **vdev, const char *devspec, const char **path);
|
| /freebsd-13-stable/stand/libsa/ |
| HD | dev.c | 71 default_parsedev(struct devdesc **dev, const char *devspec, in default_parsedev() argument 83 cp = (char *)devspec; /* strtol interface, alas */ in default_parsedev() 85 if (*devspec != '\0' && *devspec != ':') { in default_parsedev() 87 unit = strtol(devspec, &cp, 0); in default_parsedev() 88 if (errno != 0 || cp == devspec) { in default_parsedev() 110 devparse(struct devdesc **dev, const char *devspec, const char **path) in devparse() argument 118 if (strlen(devspec) < 2) in devparse() 125 if (dv->dv_match(dv, devspec) != 0) in devparse() 128 if (!strncmp(devspec, dv->dv_name, strlen(dv->dv_name))) in devparse() 137 err = dv->dv_parsedev(&idev, devspec, path); in devparse() [all …]
|
| /freebsd-13-stable/stand/libofw/ |
| HD | devicename.c | 39 ofw_getdev(void **vdev, const char *devspec, const char **path) in ofw_getdev() argument 48 if (devspec == NULL || strpbrk(devspec, ":@") == NULL) { in ofw_getdev() 51 *path = devspec; in ofw_getdev() 58 return (devparse(dev, devspec, path)); in ofw_getdev() 94 ofw_common_parsedev(struct devdesc **dev, const char *devspec, const char **path, in ofw_common_parsedev() argument 100 if (ofw_path_to_handle(devspec, ofwtype, &rem_path) == -1) in ofw_common_parsedev() 107 strlcpy(idev->d_path, devspec, min(rem_path - devspec + 1, in ofw_common_parsedev()
|
| HD | ofw_disk.c | 217 ofwd_match(struct devsw *devsw, const char *devspec) in ofwd_match() argument 221 return (ofw_path_to_handle(devspec, devsw->dv_name, &path) != -1); in ofwd_match() 233 ofwd_parsedev(struct devdesc **dev, const char *devspec, const char **path) in ofwd_parsedev() argument 235 return (ofw_common_parsedev(dev, devspec, path, ofwdisk.dv_name)); in ofwd_parsedev()
|
| HD | ofw_net.c | 307 ofwnd_parsedev(struct devdesc **dev, const char *devspec, const char **path) in ofwnd_parsedev() argument 309 return (ofw_common_parsedev(dev, devspec, path, ofw_netdev.dv_name)); in ofwnd_parsedev() 313 ofwnd_match(struct devsw *devsw, const char *devspec) in ofwnd_match() argument 317 return (ofw_path_to_handle(devspec, devsw->dv_name, &path) != -1); in ofwnd_match()
|
| HD | 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-13-stable/stand/i386/libi386/ |
| HD | devicename.c | 40 i386_getdev(void **vdev, const char *devspec, const char **path) in i386_getdev() argument 49 if ((devspec == NULL) || in i386_getdev() 50 (devspec[0] == '/') || in i386_getdev() 51 (strchr(devspec, ':') == NULL)) { in i386_getdev() 55 *path = devspec; in i386_getdev() 62 return(devparse(dev, devspec, path)); in i386_getdev()
|
| HD | libi386.h | 79 int i386_getdev(void **vdev, const char *devspec, const char **path);
|
| /freebsd-13-stable/stand/efi/libefi/ |
| HD | devicename.c | 46 efi_getdev(void **vdev, const char *devspec, const char **path) in efi_getdev() argument 55 if (devspec == NULL || *devspec == '/' || !strchr(devspec, ':')) { in efi_getdev() 58 *path = devspec; in efi_getdev() 62 return (devparse(dev, devspec, path)); in efi_getdev()
|
| /freebsd-13-stable/stand/userboot/userboot/ |
| HD | devicename.c | 41 userboot_getdev(void **vdev, const char *devspec, const char **path) in userboot_getdev() argument 50 if ((devspec == NULL) || in userboot_getdev() 51 (devspec[0] == '/') || in userboot_getdev() 52 (strchr(devspec, ':') == NULL)) { in userboot_getdev() 56 *path = devspec; in userboot_getdev() 63 return (devparse(dev, devspec, path)); in userboot_getdev()
|
| /freebsd-13-stable/stand/kboot/ |
| HD | hostdisk.c | 48 static bool hostdisk_match(struct devsw *devsw, const char *devspec); 49 static int hostdisk_parsedev(struct devdesc **idev, const char *devspec, const char **path); 435 hostdisk_match(struct devsw *devsw, const char *devspec) in hostdisk_match() argument 441 colon = strchr(devspec, ':'); in hostdisk_match() 444 cp = strdup(devspec); in hostdisk_match() 445 cp[colon - devspec] = '\0'; in hostdisk_match() 452 hostdisk_parsedev(struct devdesc **idev, const char *devspec, const char **path) in hostdisk_parsedev() argument 461 cp = strchr(devspec, ':'); in hostdisk_parsedev() 467 len = cp - devspec; in hostdisk_parsedev() 468 fn = strdup(devspec); in hostdisk_parsedev()
|
| HD | main.c | 40 int kboot_getdev(void **vdev, const char *devspec, const char **path); 56 kboot_getdev(void **vdev, const char *devspec, const char **path) in kboot_getdev() argument 65 if (devspec == NULL || strchr(devspec, ':') == NULL) { in kboot_getdev() 68 *path = devspec; in kboot_getdev() 75 return (devparse(dev, devspec, path)); in kboot_getdev()
|
| /freebsd-13-stable/stand/common/ |
| HD | disk.c | 414 disk_parsedev(struct devdesc **idev, const char *devspec, const char **path) in disk_parsedev() argument 421 np = devspec + 4; /* Skip the leading 'disk' */ in disk_parsedev()
|
| /freebsd-13-stable/stand/efi/include/ |
| HD | efilib.h | 85 int efi_getdev(void **vdev, const char *devspec, const char **path);
|
| /freebsd-13-stable/stand/libsa/zfs/ |
| HD | zfs.c | 65 static int zfs_parsedev(struct devdesc **idev, const char *devspec, 1644 zfs_parsedev(struct devdesc **idev, const char *devspec, const char **path) in zfs_parsedev() argument 1655 np = devspec + 3; /* Skip the leading 'zfs' */ in zfs_parsedev()
|