Lines Matching refs:tptr
812 struct iodev_snapshot *tptr = NULL; in make_extended_device() local
825 tptr = safe_alloc(sizeof (*old)); in make_extended_device()
826 bzero(tptr, sizeof (*old)); in make_extended_device()
828 tptr->is_pretty = safe_alloc(strlen(old->is_pretty) + 1); in make_extended_device()
829 (void) strcpy(tptr->is_pretty, old->is_pretty); in make_extended_device()
831 bcopy(&old->is_parent_id, &tptr->is_parent_id, in make_extended_device()
834 tptr->is_type = type; in make_extended_device()
839 tptr->is_id.id = tgt; in make_extended_device()
840 (void) snprintf(tptr->is_id.tid, sizeof (tptr->is_id.tid), in make_extended_device()
842 (void) snprintf(tptr->is_name, sizeof (tptr->is_name), in make_extended_device()
846 ptr = strrchr(tptr->is_pretty, '.'); in make_extended_device()
853 tptr->is_id.id = initiator; in make_extended_device()
854 (void) snprintf(tptr->is_id.tid, sizeof (tptr->is_id.tid), in make_extended_device()
856 (void) snprintf(tptr->is_name, sizeof (tptr->is_name), in make_extended_device()
860 ptr = strchr(tptr->is_pretty, '.'); in make_extended_device()
863 strlen(tptr->is_pretty) + 1, in make_extended_device()
867 return (tptr); in make_extended_device()