Lines Matching refs:targets
65 static pmcs_xscsi_t **targets = NULL; variable
724 if (targets == NULL) { in display_targets()
725 targets = mdb_alloc(sizeof (targets) * max_dev, UM_SLEEP); in display_targets()
728 if (MDB_RD(targets, sizeof (targets) * max_dev, m.targets) == -1) { in display_targets()
729 NOREAD(targets, m.targets); in display_targets()
742 if (targets[idx] == NULL) { in display_targets()
746 if (MDB_RD(&xs, sizeof (xs), targets[idx]) == -1) { in display_targets()
747 NOREAD(pmcs_xscsi_t, targets[idx]); in display_targets()
1163 if (targets == NULL) { in display_waitqs()
1164 targets = mdb_alloc(sizeof (targets) * max_dev, UM_SLEEP); in display_waitqs()
1167 if (MDB_RD(targets, sizeof (targets) * max_dev, m.targets) == -1) { in display_waitqs()
1168 NOREAD(targets, m.targets); in display_waitqs()
1173 if (targets[i] == NULL) { in display_waitqs()
1176 if (MDB_RD(&xs, sizeof (xs), targets[i]) == -1) { in display_waitqs()
1177 NOREAD(pmcs_xscsi_t, targets[i]); in display_waitqs()
2392 if (targets == NULL) { in targets_walk_i()
2393 targets = mdb_alloc(sizeof (targets) * ss.max_dev, UM_SLEEP); in targets_walk_i()
2396 if (MDB_RD(targets, sizeof (targets) * ss.max_dev, ss.targets) == -1) { in targets_walk_i()
2397 NOREAD(targets, ss.targets); in targets_walk_i()
2402 wsp->walk_addr = (uintptr_t)(targets[0]); in targets_walk_i()
2427 wsp->walk_addr = (uintptr_t)(targets[++target_idx]); in targets_walk_s()