Searched refs:physpath (Results 1 - 13 of 13) sorted by relevance

/freebsd-10.1-release/sys/cam/scsi/
H A Dscsi_pass.c229 char *physpath; local
237 physpath = malloc(MAXPATHLEN, M_DEVBUF, M_WAITOK);
243 if (xpt_getattr(physpath, MAXPATHLEN,
244 "GEOM::physpath", periph->path) == 0
245 && strlen(physpath) != 0) {
249 softc->dev, softc->alias_dev, physpath);
266 free(physpath, M_DEVBUF);
H A Dscsi_xpt.c2484 if (device->physpath != NULL) {
2485 free(device->physpath, M_CAMXPT);
2486 device->physpath = NULL;
2492 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT);
2493 if (device->physpath == NULL) {
2497 memcpy(device->physpath, cdai->buf, cdai->bufsiz);
2505 memcpy(cdai->buf, device->physpath, amt);
H A Dscsi_enc_ses.c983 struct sbuf *physpath; member in struct:ses_setphyspath_callback_args
1017 if (strcmp(old_physpath, sbuf_data(args->physpath)) != 0) {
1023 cdai.bufsiz = sbuf_len(args->physpath);
1024 cdai.buf = sbuf_data(args->physpath);
1113 args.physpath= &sb;
1894 * the physpath of any element. This allows us to
/freebsd-10.1-release/sys/geom/
H A Dgeom_dev.c165 if (strcmp(attr, "GEOM::physpath") != 0)
169 char *physpath; local
173 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO);
175 g_io_getattr("GEOM::physpath", cp, &physpath_len, physpath);
177 if (error == 0 && strlen(physpath) != 0) {
185 dev, old_alias_dev, physpath);
190 g_free(physpath);
268 g_dev_attrchanged(cp, "GEOM::physpath");
462 error = g_io_getattr("GEOM::physpath", c
[all...]
/freebsd-10.1-release/usr.sbin/diskinfo/
H A Ddiskinfo.c62 char buf[BUFSIZ], ident[DISK_IDENT_SIZE], physpath[MAXPATHLEN]; local
156 if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0)
157 printf("\t%-12s\t# Physical path\n", physpath);
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dvdev_disk.c475 char *physpath, *minorname; local
477 physpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
479 if (ddi_dev_pathname(dev, otyp, physpath) == 0 &&
482 strcmp(vd->vdev_physpath, physpath) != 0)) {
485 (void) strlcat(physpath, ":", MAXPATHLEN);
486 (void) strlcat(physpath, minorname, MAXPATHLEN);
487 vd->vdev_physpath = spa_strdup(physpath);
491 kmem_free(physpath, MAXPATHLEN);
H A Dzvol.c957 char *physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP); local
959 (void) snprintf(physpath, MAXPATHLEN, "%s%u", ZVOL_PSEUDO_DEV,
963 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0);
969 kmem_free(physpath, MAXPATHLEN);
H A Dspa.c3820 * For x86. devpath_list will consist of devid and/or physpath name of
3824 * For Sparc, devpath_list consists the physpath name of the booting device
5895 char *physpath; local
5908 physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
5909 (void) snprintf(physpath, MAXPATHLEN, "/devices%s", vd->vdev_physpath);
5912 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0);
5918 kmem_free(physpath, MAXPATHLEN);
/freebsd-10.1-release/sys/cam/
H A Dcam_xpt_internal.h87 uint8_t *physpath; /* physical path string form */ member in struct:cam_ed
H A Dcam_xpt.c1106 else if (!strcmp(attr, "GEOM::physpath"))
4787 free(device->physpath, M_CAMXPT);
/freebsd-10.1-release/sys/kern/
H A Dkern_conf.c973 struct cdev *old_alias, const char *physpath)
985 physpath_len = strlen(physpath);
990 if (strncmp("id1,", physpath, 4) == 0) {
991 physpath += 4;
1003 pdev->si_name, physpath, pdev->si_name);
1016 sprintf(devfspath, "%s/%s", physpath, pdev->si_name);
972 make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev, struct cdev *old_alias, const char *physpath) argument
/freebsd-10.1-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_pool.c2235 vdev_get_one_physpath(nvlist_t *config, char *physpath, size_t physpath_size, argument
2250 rsz = snprintf(physpath + pos, bytes_left, format, tmppath);
2254 /* if physpath was not copied properly, clear it */
2256 physpath[pos] = 0;
2264 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, argument
2288 if ((ret = vdev_get_one_physpath(nv, physpath,
2304 ret = vdev_get_physpaths(child[i], physpath,
2319 zpool_get_config_physpath(nvlist_t *config, char *physpath, size_t phypath_size) argument
2346 (void) vdev_get_physpaths(child[0], physpath, phypath_size, &rsz,
2361 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_ argument
[all...]
/freebsd-10.1-release/sys/cam/ata/
H A Data_xpt.c1684 if (device->physpath != NULL)
1685 free(device->physpath, M_CAMXPT);
1690 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT);
1691 if (device->physpath == NULL) {
1695 memcpy(device->physpath, cdai->buf, cdai->bufsiz);
1703 memcpy(cdai->buf, device->physpath, amt);

Completed in 153 milliseconds