Searched refs:devspec (Results 1 - 16 of 16) sorted by relevance

/freebsd-current/stand/i386/libi386/
H A Ddevicename.c35 * path in (devspec). If it contains an explicit device specification,
39 i386_getdev(void **vdev, const char *devspec, const char **path) argument
48 if ((devspec == NULL) ||
49 (devspec[0] == '/') ||
50 (strchr(devspec, ':') == NULL)) {
54 *path = devspec;
59 * Try to parse the device name off the beginning of the devspec
61 return(devparse(dev, devspec, path));
H A Dlibi386.h79 int i386_getdev(void **vdev, const char *devspec, const char **path);
/freebsd-current/stand/userboot/userboot/
H A Ddevicename.c36 * path in (devspec). If it contains an explicit device specification,
40 userboot_getdev(void **vdev, const char *devspec, const char **path) argument
49 if ((devspec == NULL) ||
50 (devspec[0] == '/') ||
51 (strchr(devspec, ':') == NULL)) {
55 *path = devspec;
60 * Try to parse the device name off the beginning of the devspec
62 return (devparse(dev, devspec, path));
/freebsd-current/stand/efi/libefi/
H A Ddevicename.c41 * path in (devspec). If it contains an explicit device specification,
45 efi_getdev(void **vdev, const char *devspec, const char **path) argument
54 if (devspec == NULL || *devspec == '/' || !strchr(devspec, ':')) {
57 *path = devspec;
61 return (devparse(dev, devspec, path));
/freebsd-current/stand/uboot/
H A Ddevicename.c34 static int uboot_parsedev(struct uboot_devdesc **dev, const char *devspec,
39 * path in (devspec). If it contains an explicit device specification,
43 uboot_getdev(void **vdev, const char *devspec, const char **path) argument
52 if ((devspec == NULL) || (devspec[0] == '/') ||
53 (strchr(devspec, ':') == NULL)) {
57 *path = devspec;
62 * Try to parse the device name off the beginning of the devspec.
64 return (uboot_parsedev(dev, devspec, path));
69 * at the beginning of (devspec)
82 uboot_parsedev(struct uboot_devdesc **dev, const char *devspec, const char **path) argument
[all...]
H A Dlibuboot.h50 int uboot_getdev(void **vdev, const char *devspec, const char **path);
/freebsd-current/stand/libofw/
H A Ddevicename.c34 * path in (devspec). If it contains an explicit device specification,
38 ofw_getdev(void **vdev, const char *devspec, const char **path) argument
47 if (devspec == NULL || strpbrk(devspec, ":@") == NULL) {
50 *path = devspec;
55 * Try to parse the device name off the beginning of the devspec
57 return (devparse(dev, devspec, path));
93 ofw_common_parsedev(struct devdesc **dev, const char *devspec, const char **path, argument
99 if (ofw_path_to_handle(devspec, ofwtype, &rem_path) == -1)
106 strlcpy(idev->d_path, devspec, mi
[all...]
H A Dlibofw.h45 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,
H A Dofw_disk.c216 ofwd_match(struct devsw *devsw, const char *devspec) argument
220 return (ofw_path_to_handle(devspec, devsw->dv_name, &path) != -1);
232 ofwd_parsedev(struct devdesc **dev, const char *devspec, const char **path) argument
234 return (ofw_common_parsedev(dev, devspec, path, ofwdisk.dv_name));
H A Dofw_net.c306 ofwnd_parsedev(struct devdesc **dev, const char *devspec, const char **path) argument
308 return (ofw_common_parsedev(dev, devspec, path, ofw_netdev.dv_name));
312 ofwnd_match(struct devsw *devsw, const char *devspec) argument
316 return (ofw_path_to_handle(devspec, devsw->dv_name, &path) != -1);
/freebsd-current/stand/libsa/
H A Ddev.c66 /* NB: devspec points to the remainder of the device name after dv_name */
68 default_parsedev(struct devdesc **dev, const char *devspec, argument
80 cp = (char *)devspec; /* strtol interface, alas */
82 if (*devspec != '\0' && *devspec != ':') {
84 unit = strtol(devspec, &cp, 0);
85 if (errno != 0 || cp == devspec) {
105 /* NB: devspec points to the whole device spec, and possible trailing path */
107 devparse(struct devdesc **dev, const char *devspec, const char **path) argument
115 if (strlen(devspec) <
[all...]
/freebsd-current/stand/kboot/kboot/
H A Dhostdisk.c47 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) argument
432 colon = strchr(devspec, ':');
435 cp = strdup(devspec);
436 cp[colon - devspec] = '\0';
443 hostdisk_parsedev(struct devdesc **idev, const char *devspec, const char **path) argument
452 cp = strchr(devspec, ':');
458 len = cp - devspec;
459 fn = strdup(devspec);
[all...]
H A Dmain.c41 int kboot_getdev(void **vdev, const char *devspec, const char **path);
104 kboot_getdev(void **vdev, const char *devspec, const char **path) argument
113 if (devspec == NULL || strchr(devspec, ':') == NULL) {
116 *path = devspec;
121 * Try to parse the device name off the beginning of the devspec
123 return (devparse(dev, devspec, path));
/freebsd-current/stand/efi/include/
H A Defilib.h85 int efi_getdev(void **vdev, const char *devspec, const char **path);
/freebsd-current/stand/common/
H A Ddisk.c413 disk_parsedev(struct devdesc **idev, const char *devspec, const char **path) argument
420 np = devspec + 4; /* Skip the leading 'disk' */
/freebsd-current/stand/libsa/zfs/
H A Dzfs.c64 static int zfs_parsedev(struct devdesc **idev, const char *devspec,
1612 zfs_parsedev(struct devdesc **idev, const char *devspec, const char **path) argument
1623 np = devspec + 3; /* Skip the leading 'zfs' */

Completed in 218 milliseconds