Lines Matching refs:stmf_ss

1251 	stmf_scsi_session_t	*stmf_ss;  in srpt_stp_alloc_session()  local
1262 stmf_ss = stmf_alloc(STMF_STRUCT_SCSI_SESSION, in srpt_stp_alloc_session()
1264 if (stmf_ss == NULL) { in srpt_stp_alloc_session()
1270 ss = stmf_ss->ss_port_private; in srpt_stp_alloc_session()
1277 stmf_ss->ss_rport_id = srpt_stp_alloc_scsi_devid_desc(i_guid); in srpt_stp_alloc_session()
1279 stmf_ss->ss_rport = stmf_remote_port_alloc( in srpt_stp_alloc_session()
1281 stmf_ss->ss_rport->rport_tptid->protocol_id = PROTOCOL_SRP; in srpt_stp_alloc_session()
1282 stmf_ss->ss_rport->rport_tptid->format_code = 0; in srpt_stp_alloc_session()
1283 srptpd = (scsi_srp_transport_id_t *)stmf_ss->ss_rport->rport_tptid; in srpt_stp_alloc_session()
1286 stmf_ss->ss_lport = tgt->tp_lport; in srpt_stp_alloc_session()
1288 ss->ss_ss = stmf_ss; in srpt_stp_alloc_session()
1307 stmf_ss->ss_rport_alias = ss->ss_i_alias; in srpt_stp_alloc_session()
1309 status = stmf_register_scsi_session(tgt->tp_lport, stmf_ss); in srpt_stp_alloc_session()
1315 srpt_stp_free_scsi_devid_desc(stmf_ss->ss_rport_id); in srpt_stp_alloc_session()
1316 stmf_remote_port_free(stmf_ss->ss_rport); in srpt_stp_alloc_session()
1317 stmf_free(stmf_ss); in srpt_stp_alloc_session()
1333 stmf_scsi_session_t *stmf_ss; in srpt_stp_free_session() local
1346 stmf_ss = session->ss_ss; in srpt_stp_free_session()
1351 stmf_deregister_scsi_session(tgt->tp_lport, stmf_ss); in srpt_stp_free_session()
1352 srpt_stp_free_scsi_devid_desc(stmf_ss->ss_rport_id); in srpt_stp_free_session()
1353 stmf_remote_port_free(stmf_ss->ss_rport); in srpt_stp_free_session()
1357 stmf_free(stmf_ss); in srpt_stp_free_session()