Lines Matching refs:port_state
563 porta = &socalp->port_state[0]; in socal_attach()
564 portb = &socalp->port_state[1]; in socal_attach()
949 if (socalp->port_state[i].sp_status & PORT_TARGET_MODE) in socal_detach()
1012 portp = &socalp->port_state[i]; in socal_dodetach()
1153 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_bus_ctl()
1154 if (socalp->port_state[port].sp_status & in socal_bus_ctl()
1156 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_bus_ctl()
1161 socalp->port_state[port].sp_status |= PORT_CHILD_INIT; in socal_bus_ctl()
1162 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_bus_ctl()
1165 socalp->port_state[port].sp_transport); in socal_bus_ctl()
1190 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_bus_ctl()
1192 socalp->port_state[port].sp_status &= ~PORT_CHILD_INIT; in socal_bus_ctl()
1193 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_bus_ctl()
1301 port_statep = &socalp->port_state[port]; in socal_open()
1322 port_statep = &socalp->port_state[port]; in socal_close()
1605 port_statep = &socalp->port_state[port]; in socal_ioctl()
1626 port_statep = &socalp->port_state[port]; in socal_ioctl()
1643 port_statep = &socalp->port_state[port]; in socal_ioctl()
1851 xport = socalp->port_state[i].sp_transport; in socal_init_transport_interface()
1865 bcopy((caddr_t)&socalp->port_state[i].sp_p_wwn, in socal_init_transport_interface()
2103 mutex_enter(&socalp->port_state[0].sp_mtx); in socal_start()
2104 socalp->port_state[0].sp_status in socal_start()
2106 socalp->port_state[0].sp_status |= PORT_OFFLINE; in socal_start()
2107 mutex_exit(&socalp->port_state[0].sp_mtx); in socal_start()
2109 mutex_enter(&socalp->port_state[1].sp_mtx); in socal_start()
2110 socalp->port_state[1].sp_status in socal_start()
2112 socalp->port_state[1].sp_status |= PORT_OFFLINE; in socal_start()
2113 mutex_exit(&socalp->port_state[1].sp_mtx); in socal_start()
2117 if (socalp->port_state[0].sp_status & PORT_DISABLED) in socal_start()
2120 if (socalp->port_state[1].sp_status & PORT_DISABLED) in socal_start()
2172 port_statep = &socalp->port_state[i]; in socal_doreset()
2190 for (scbp = socalp->port_state[i].sp_unsol_cb; scbp; in socal_doreset()
2378 socal_wcopy((uint_t *)&socalp->port_state[0].sp_p_wwn, in socal_init_wwn()
2383 socal_wcopy((uint_t *)&socalp->port_state[1].sp_p_wwn, in socal_init_wwn()
2391 mutex_enter(&socalp->port_state[0].sp_transport->fcal_mtx); in socal_init_wwn()
2392 mutex_enter(&socalp->port_state[1].sp_transport->fcal_mtx); in socal_init_wwn()
2396 mutex_exit(&socalp->port_state[1].sp_transport->fcal_mtx); in socal_init_wwn()
2397 mutex_exit(&socalp->port_state[0].sp_transport->fcal_mtx); in socal_init_wwn()
2586 port_statep = &socalp->port_state[port]; in socal_transport()
2771 port_statep = &socalp->port_state[port]; in socal_transport_poll()
2909 socal_port_t *port_statep = &socalp->port_state[port]; in socal_lilp_map()
2937 socal_port_t *port_statep = &socalp->port_state[port]; in socal_force_lip()
2976 socal_port_t *port_statep = &socalp->port_state[port]; in socal_abort_cmd()
3049 socal_port_t *port_statep = &socalp->port_state[port]; in socal_bypass_dev()
3097 socal_port_t *port_statep = &socalp->port_state[port]; in socal_add_ulp()
3144 port_statep = &socalp->port_state[port]; in socal_remove_ulp()
3480 port_statep = &socalp->port_state[port]; in socal_intr_solicited()
3750 port_statep = &socalp->port_state[port]; in socal_intr_unsolicited()
4077 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_lilp_map_done()
4078 socalp->port_state[port].sp_status &= ~PORT_LILP_PENDING; in socal_lilp_map_done()
4079 cv_broadcast(&socalp->port_state[port].sp_cv); in socal_lilp_map_done()
4080 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_lilp_map_done()
4093 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_force_lip_done()
4094 socalp->port_state[port].sp_status &= ~PORT_LIP_PENDING; in socal_force_lip_done()
4095 cv_broadcast(&socalp->port_state[port].sp_cv); in socal_force_lip_done()
4096 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_force_lip_done()
4109 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_adisc_done()
4110 socalp->port_state[port].sp_status &= ~PORT_ADISC_PENDING; in socal_adisc_done()
4111 cv_broadcast(&socalp->port_state[port].sp_cv); in socal_adisc_done()
4112 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_adisc_done()
4125 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_lbf_done()
4126 socalp->port_state[port].sp_status &= ~PORT_LBF_PENDING; in socal_lbf_done()
4127 cv_broadcast(&socalp->port_state[port].sp_cv); in socal_lbf_done()
4128 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_lbf_done()
4141 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_rls_done()
4142 socalp->port_state[port].sp_status &= ~PORT_RLS_PENDING; in socal_rls_done()
4143 cv_broadcast(&socalp->port_state[port].sp_cv); in socal_rls_done()
4144 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_rls_done()
4157 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_force_offline_done()
4158 socalp->port_state[port].sp_status &= ~PORT_OFFLINE_PENDING; in socal_force_offline_done()
4159 cv_broadcast(&socalp->port_state[port].sp_cv); in socal_force_offline_done()
4160 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_force_offline_done()
4183 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_abort_done()
4184 socalp->port_state[port].sp_status &= ~PORT_ABORT_PENDING; in socal_abort_done()
4185 cv_broadcast(&socalp->port_state[port].sp_cv); in socal_abort_done()
4186 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_abort_done()
4198 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_bypass_dev_done()
4199 socalp->port_state[port].sp_status &= ~PORT_BYPASS_PENDING; in socal_bypass_dev_done()
4200 cv_broadcast(&socalp->port_state[port].sp_cv); in socal_bypass_dev_done()
4201 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_bypass_dev_done()
4217 socal_port_t *port_statep = &socalp->port_state[port]; in socal_diag_request()
4249 socal_port_t *port_statep = &socalp->port_state[port]; in socal_force_offline()
4276 port_statep = &socalp->port_state[port]; in socal_issue_adisc()
4319 port_statep = &socalp->port_state[port]; in socal_issue_lbf()
4353 port_statep = &socalp->port_state[port]; in socal_issue_rls()
4669 fhp->d_id = socalp->port_state[port].sp_src_id; in socal_lbf_alloc()
4670 fhp->s_id = socalp->port_state[port].sp_src_id; in socal_lbf_alloc()
4769 port_statep = &socalp->port_state[port]; in socal_getmap()
4962 socal_port_t *portp = &socalp->port_state[port]; in socal_fix_harda()
5007 if (socalp->port_state[port].sp_status & PORT_CHILD_INIT) in socal_sftm_attach()
5015 mutex_enter(&socalp->port_state[port].sp_mtx); in socal_sftm_attach()
5017 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_sftm_attach()
5022 socalp->port_state[port].sp_status |= PORT_CHILD_INIT; in socal_sftm_attach()
5023 mutex_exit(&socalp->port_state[port].sp_mtx); in socal_sftm_attach()
5031 if (hard_alpa != socalp->port_state[port].sp_hard_alpa) { in socal_sftm_attach()
5032 socalp->port_state[port].sp_hard_alpa = hard_alpa; in socal_sftm_attach()
5038 return (socalp->port_state[port].sp_transport); in socal_sftm_attach()
5050 socalp->port_state[port].sp_status &= ~PORT_CHILD_INIT; in socal_sftm_detach()