Lines Matching refs:iss
129 static void stmf_task_lu_free(scsi_task_t *task, stmf_i_scsi_session_t *iss);
540 stmf_i_scsi_session_t *iss;
682 iss = ilport->ilport_ss_list;
686 id = (uint8_t *)iss->iss_ss->ss_rport_id;
689 iss->iss_creation_time;
690 if (iss->iss_ss->ss_rport_alias) {
692 iss->iss_ss->ss_rport_alias, 255);
697 iss = iss->iss_next;
3527 stmf_i_scsi_session_t *iss;
3548 iss = (stmf_i_scsi_session_t *)ss->ss_stmf_private;
3549 if ((iss->iss_irport = stmf_irport_register(ss->ss_rport_id)) == NULL) {
3555 iss->iss_flags |= ISS_BEING_CREATED;
3558 iss->iss_flags |= ISS_NULL_TPTID;
3562 iss->iss_flags &= ~(ISS_NULL_TPTID | ISS_BEING_CREATED);
3570 iss->iss_flags &= ~ISS_BEING_CREATED;
3578 iss->iss_lockp = &ilport->ilport_lock;
3580 if (iss->iss_sm != NULL)
3582 iss->iss_sm = (stmf_lun_map_t *)kmem_zalloc(sizeof (stmf_lun_map_t),
3587 (void) stmf_session_create_lun_map(ilport, iss);
3589 iss->iss_next = ilport->ilport_ss_list;
3590 ilport->ilport_ss_list = iss;
3594 iss->iss_creation_time = ddi_get_time();
3596 iss->iss_flags &= ~ISS_BEING_CREATED;
3598 iss->iss_flags &= ~ISS_LUN_INVENTORY_CHANGED;
3609 stmf_i_scsi_session_t *iss, **ppss;
3617 iss = (stmf_i_scsi_session_t *)ss->ss_stmf_private;
3624 atomic_and_32(&iss->iss_flags,
3626 if (iss->iss_flags & ISS_EVENT_ACTIVE) {
3649 if (iss == (*ppss)) {
3661 stmf_irport_deregister(iss->iss_irport);
3662 (void) stmf_session_destroy_lun_map(ilport, iss);
3666 if (iss->iss_flags & ISS_NULL_TPTID) {
3675 stmf_i_scsi_session_t *iss;
3681 for (iss = ilport->ilport_ss_list; iss != NULL;
3682 iss = iss->iss_next) {
3683 if (iss->iss_ss->ss_session_id == session_id) {
3687 return (iss);
3725 stmf_i_scsi_session_t *iss;
3732 iss = stmf_session_id_to_issptr(session_id, 1);
3733 if (iss == NULL)
3736 iss = (stmf_i_scsi_session_t *)ss->ss_stmf_private;
3740 rw_enter(iss->iss_lockp, RW_WRITER);
3743 stmf_get_ent_from_map(iss->iss_sm, n);
3745 rw_exit(iss->iss_lockp);
3750 rw_exit(iss->iss_lockp);
3757 rw_exit(iss->iss_lockp);
3763 itl->itl_session = iss;
3773 rw_exit(iss->iss_lockp);
3805 stmf_i_scsi_session_t *iss;
3831 for (iss = ilport->ilport_ss_list; iss != NULL;
3832 iss = iss->iss_next) {
3833 lm = iss->iss_sm;
3870 stmf_i_scsi_session_t *iss;
3878 iss = stmf_session_id_to_issptr(session_id, 1);
3879 if (iss == NULL)
3882 iss = (stmf_i_scsi_session_t *)ss->ss_stmf_private;
3883 rw_enter(iss->iss_lockp, RW_WRITER);
3888 lm = iss->iss_sm;
3899 stmf_get_ent_from_map(iss->iss_sm, n);
3910 rw_exit(iss->iss_lockp);
4017 stmf_i_scsi_session_t *iss;
4037 iss = (stmf_i_scsi_session_t *)ss->ss_stmf_private;
4039 rw_enter(iss->iss_lockp, RW_READER);
4041 (stmf_lun_map_ent_t *)stmf_get_ent_from_map(iss->iss_sm, luNbr);
4049 rw_exit(iss->iss_lockp);
4097 rw_exit(iss->iss_lockp);
4131 rw_exit(iss->iss_lockp);
4138 rw_exit(iss->iss_lockp);
4164 rw_exit(iss->iss_lockp);
4169 stmf_task_lu_free(scsi_task_t *task, stmf_i_scsi_session_t *iss)
4175 ASSERT(rw_lock_held(iss->iss_lockp));
4397 stmf_i_scsi_session_t *iss = (stmf_i_scsi_session_t *)
4415 rw_enter(iss->iss_lockp, RW_READER);
4425 stmf_task_lu_free(task, iss);
4426 rw_exit(iss->iss_lockp);
6001 stmf_i_scsi_session_t *iss;
6007 iss = (stmf_i_scsi_session_t *)task->task_session->ss_stmf_private;
6017 rw_enter(iss->iss_lockp, RW_WRITER);
6019 if (iss->iss_flags & ISS_RESET_ACTIVE) {
6020 rw_exit(iss->iss_lockp);
6026 atomic_or_32(&iss->iss_flags, ISS_RESET_ACTIVE);
6032 lm = iss->iss_sm;
6040 atomic_and_32(&iss->iss_flags, ~ISS_RESET_ACTIVE);
6041 rw_exit(iss->iss_lockp);
6050 atomic_and_32(&iss->iss_flags, ~ISS_RESET_ACTIVE);
6051 rw_exit(iss->iss_lockp);
6076 rw_exit(iss->iss_lockp);
6092 stmf_i_scsi_session_t *iss = (stmf_i_scsi_session_t *)
6095 rw_enter(iss->iss_lockp, RW_WRITER);
6096 if (((iss->iss_flags & ISS_LUN_INVENTORY_CHANGED) == 0) ||
6098 rw_exit(iss->iss_lockp);
6101 atomic_and_32(&iss->iss_flags,
6103 rw_exit(iss->iss_lockp);
6184 stmf_i_scsi_session_t *iss;
6332 iss = (stmf_i_scsi_session_t *)
6335 if (iss->iss_flags & ISS_LUN_INVENTORY_CHANGED) {
6585 stmf_i_scsi_session_t *iss;
6691 iss = (stmf_i_scsi_session_t *)
6693 rw_enter(iss->iss_lockp, RW_WRITER);
6694 xd = stmf_session_prepare_report_lun_data(iss->iss_sm);
6695 rw_exit(iss->iss_lockp);
6718 atomic_and_32(&iss->iss_flags,
6916 stmf_i_scsi_session_t *iss = (stmf_i_scsi_session_t *)
6923 rw_enter(iss->iss_lockp, RW_READER);
6924 lm = iss->iss_sm;
6934 atomic_and_32(&iss->iss_flags, ~ISS_RESET_ACTIVE);
6935 rw_exit(iss->iss_lockp);
7001 stmf_i_scsi_session_t *iss = (stmf_i_scsi_session_t *)
7010 ASSERT(iss->iss_flags & ISS_RESET_ACTIVE);
7012 rw_enter(iss->iss_lockp, RW_READER);
7013 lm = iss->iss_sm;
7020 rw_exit(iss->iss_lockp);
7022 rw_enter(iss->iss_lockp, RW_READER);
7027 rw_exit(iss->iss_lockp);
7034 rw_exit(iss->iss_lockp);
7046 atomic_and_32(&iss->iss_flags, ~ISS_RESET_ACTIVE);
7374 stmf_i_scsi_session_t *iss;
7455 for (iss = ilport->ilport_ss_list; iss;
7456 iss = iss->iss_next) {
7457 if ((iss->iss_flags &
7463 atomic_and_32(&iss->iss_flags,
7465 atomic_or_32(&iss->iss_flags,
7472 iss->iss_ss, 0);
7473 atomic_and_32(&iss->iss_flags,