Lines Matching refs:t_mp

65 					sbd_mem_unit_t *t_mp);
73 sbd_mem_unit_t *t_mp, sbderror_t *ep);
417 sbd_mem_unit_t *s_mp, *t_mp;
460 t_mp = s_mp->sbm_peer;
463 t_mp = NULL;
466 sbd_mem_cleanup(s_mp, t_mp, ep);
542 sbd_mem_unit_t *t_mp, *x_mp;
574 t_mp = s_mp->sbm_peer;
576 ASSERT(t_mp != NULL);
577 ASSERT(t_mp->sbm_flags & SBD_MFLAG_TARGET);
578 ASSERT(t_mp->sbm_peer == s_mp);
580 ASSERT(t_mp->sbm_flags & SBD_MFLAG_RELDONE);
581 ASSERT(t_mp->sbm_del_mlist);
583 sbp = (sbd_board_t *)t_mp->sbm_cm.sbdev_sbp;
586 SBD_MEMLIST_DUMP(t_mp->sbm_del_mlist);
589 t_mp = NULL;
602 if (rv == 0 && t_mp && (t_mp->sbm_flags & SBD_MFLAG_RELDONE)) {
603 x_mp = t_mp;
614 x_mp == t_mp ? "target " : "",
626 if (t_mp != NULL) {
627 t_basepa = _ptob64(t_mp->sbm_basepfn);
629 _ptob64(t_mp->sbm_slice_offset);
636 for (ml = t_mp->sbm_mlist; ml; ml = ml->ml_next) {
646 ASSERT(t_mp->sbm_del_mlist == t_mp->sbm_mlist);
649 SBD_MEMLIST_DUMP(t_mp->sbm_mlist);
689 nl = memlist_dup(t_mp->sbm_mlist);
693 sbp = (sbd_board_t *)t_mp->sbm_cm.sbdev_sbp;
697 t_mp->sbm_cm.sbdev_unum);
708 if (t_mp != NULL) {
709 sbp = (sbd_board_t *)t_mp->sbm_cm.sbdev_sbp;
736 sbd_mem_cleanup(s_mp, t_mp, ep);
747 sbd_mem_cleanup(sbd_mem_unit_t *s_mp, sbd_mem_unit_t *t_mp, sbderror_t *ep)
752 if (t_mp != NULL) {
753 sbp = (sbd_board_t *)t_mp->sbm_cm.sbdev_sbp;
755 ASSERT(t_mp->sbm_del_mlist == t_mp->sbm_mlist);
761 memlist_delete(t_mp->sbm_del_mlist);
763 t_mp->sbm_del_mlist = NULL;
764 t_mp->sbm_mlist = NULL;
765 t_mp->sbm_peer = NULL;
766 t_mp->sbm_flags = 0;
767 t_mp->sbm_cm.sbdev_busy = 0;
768 sbd_init_mem_unit_data(t_mp, ep);
1072 sbd_mem_unit_t *s_mp, *t_mp, *mp;
1086 t_mp = s_mp->sbm_peer;
1087 ASSERT(t_mp != NULL);
1088 ASSERT(t_mp->sbm_peer == s_mp);
1089 ASSERT(t_mp->sbm_flags & SBD_MFLAG_TARGET);
1090 ASSERT(t_mp->sbm_flags & SBD_MFLAG_RESERVED);
1093 t_mp = NULL;
1122 sbd_mem_cleanup(s_mp, t_mp, ep);
1131 if (t_mp != NULL) {
1132 sbp = (sbd_board_t *)t_mp->sbm_cm.sbdev_sbp;
1140 t_mp->sbm_cm.sbdev_unum);
1142 t_mp->sbm_cm.sbdev_unum,
1163 if (rv == 0 && t_mp && t_mp->sbm_del_mlist != NULL) {
1164 sbp = (sbd_board_t *)t_mp->sbm_cm.sbdev_sbp;
1165 mp = t_mp;
1173 (mp == t_mp ? "target " : ""),
1183 if (t_mp != NULL) {
1184 t_mp->sbm_flags &= ~SBD_MFLAG_RESERVED;
1185 t_mp->sbm_flags |= SBD_MFLAG_RELDONE;
1199 if (t_mp != NULL) {
1200 sbp = (sbd_board_t *)t_mp->sbm_cm.sbdev_sbp;
1203 t_mp->sbm_cm.sbdev_unum);
1205 t_mp->sbm_cm.sbdev_unum,
1212 t_mp->sbm_cm.sbdev_unum);
1214 t_mp->sbm_cm.sbdev_ostate = SBD_STAT_UNCONFIGURED;
1247 sbd_mem_unit_t *s_mp, *t_mp;
1264 t_mp = s_mp->sbm_peer;
1265 tsbp = t_mp->sbm_cm.sbdev_sbp;
1266 ASSERT(t_mp != NULL);
1267 ASSERT(t_mp->sbm_peer == s_mp);
1270 ASSERT(t_mp->sbm_cm.sbdev_state == state);
1273 t_mp = NULL;
1280 if (t_mp != NULL && t_mp->sbm_del_mlist != NULL) {
1283 sbd_add_memory_spans(tsbp, t_mp->sbm_del_mlist);
1285 t_mp->sbm_cm.sbdev_unum);
1304 if (t_mp != NULL) {
1305 ASSERT(t_mp->sbm_del_mlist == t_mp->sbm_mlist);
1306 t_mp->sbm_del_mlist = NULL;
1308 if (t_mp->sbm_mlist != NULL) {
1309 memlist_delete(t_mp->sbm_mlist);
1310 t_mp->sbm_mlist = NULL;
1313 t_mp->sbm_peer = NULL;
1314 t_mp->sbm_flags = 0;
1315 t_mp->sbm_cm.sbdev_busy = 0;
1316 sbd_init_mem_unit_data(t_mp, ep);
1319 t_mp->sbm_cm.sbdev_unum);
1322 t_mp->sbm_cm.sbdev_unum,
1535 sbd_mem_unit_t *t_mp)
1557 _ptob64(t_mp->sbm_basepfn),
1558 _ptob64(t_mp->sbm_npages),
1566 _ptob64(t_mp->sbm_basepfn),
1576 _ptob64(t_mp->sbm_npages),
1623 sbd_mem_unit_t *t_mp, *c_mp;
1674 t_mp = SBD_GET_BOARD_MEMUNIT(t_sbp, t_unit);
1681 if (s_mp == t_mp) {
1691 if (t_mp->sbm_flags & SBD_MFLAG_RESERVED)
1701 if (t_mp->sbm_npages == s_mp->sbm_npages) {
1703 t_mp->sbm_slice_offset = 0;
1704 } else if (t_mp->sbm_npages > s_mp->sbm_npages) {
1706 t_mp->sbm_slice_offset = 0;
1722 sets[idx] = t_mp;
1746 t_mp = sets[idx];
1747 if (t_mp == NULL)
1750 t_sbp = t_mp->sbm_cm.sbdev_sbp;
1753 t_ml = sbd_get_memlist(t_mp, SBD_HD2ERR(hp));
1759 t_mp->sbm_cm.sbdev_unum);
1765 if (t_mp->sbm_npages < s_mp->sbm_npages) {
1785 excess = t_mp->sbm_slice_offset;
1832 _ptob64(t_mp->sbm_slice_offset));
1866 t_mp->sbm_basepfn,
1867 t_mp->sbm_npages);
1870 t_mp->sbm_basepfn, t_mp->sbm_npages, &mq);
1910 if (sbd_check_boundaries(phys_install, s_mp, t_mp) != 0)
1923 if (t_mp->sbm_npages < s_mp->sbm_npages) {
1936 pfn += t_mp->sbm_slice_offset;
1941 _ptob64(t_mp->sbm_npages),
1977 t_mp->sbm_flags |= SBD_MFLAG_RESERVED;
1978 c_mp = t_mp;
2538 sbd_mem_unit_t *t_mp;
2549 t_mp = s_mp->sbm_peer;
2550 ASSERT(t_mp != NULL);
2551 ASSERT(t_mp->sbm_peer == s_mp);
2552 tbp = (sbd_board_t *)t_mp->sbm_cm.sbdev_sbp;
2554 t_mp = NULL;
2571 if (t_mp != NULL) {
2572 state = t_mp->sbm_cm.sbdev_state;
2578 t_mp->sbm_cm.sbdev_unum);
2598 if (t_mp == NULL) {
2665 t_mp->sbm_flags = 0;
2669 sbd_mem_cleanup(s_mp, t_mp, ep);