Lines Matching refs:tptr
813 struct iodev_snapshot *tptr = NULL; in make_extended_device() local
826 tptr = safe_alloc(sizeof (*old)); in make_extended_device()
827 bzero(tptr, sizeof (*old)); in make_extended_device()
829 tptr->is_pretty = safe_alloc(strlen(old->is_pretty) + 1); in make_extended_device()
830 (void) strcpy(tptr->is_pretty, old->is_pretty); in make_extended_device()
832 bcopy(&old->is_parent_id, &tptr->is_parent_id, in make_extended_device()
835 tptr->is_type = type; in make_extended_device()
840 tptr->is_id.id = tgt; in make_extended_device()
841 (void) snprintf(tptr->is_id.tid, sizeof (tptr->is_id.tid), in make_extended_device()
843 (void) snprintf(tptr->is_name, sizeof (tptr->is_name), in make_extended_device()
847 ptr = strrchr(tptr->is_pretty, '.'); in make_extended_device()
854 tptr->is_id.id = initiator; in make_extended_device()
855 (void) snprintf(tptr->is_id.tid, sizeof (tptr->is_id.tid), in make_extended_device()
857 (void) snprintf(tptr->is_name, sizeof (tptr->is_name), in make_extended_device()
861 ptr = strchr(tptr->is_pretty, '.'); in make_extended_device()
864 strlen(tptr->is_pretty) + 1, in make_extended_device()
868 return (tptr); in make_extended_device()