Home
last modified time | relevance | path

Searched refs:port_state (Results 1 – 24 of 24) sorted by relevance

/titanic_41/usr/src/uts/sun/io/
H A Dsocal.c563 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()
[all …]
/titanic_41/usr/src/uts/common/sys/usb/clients/usbser/
H A Dusbser_var.h106 uint_t port_state; /* port state */ member
235 #define USBSER_PORT_ACCESS_OK(pp) ((pp)->port_state == USBSER_PORT_OPEN)
251 (((pp)->port_state == USBSER_PORT_OPENING_TTY) || \
252 ((pp)->port_state == USBSER_PORT_OPENING_OUT))
260 ((pp)->port_state == USBSER_PORT_OPENING_OUT)) || \
261 (!((minor) & OUTLINE) && ((pp)->port_state == USBSER_PORT_OPENING_TTY)))
/titanic_41/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser.c550 pp->port_state = USBSER_PORT_CLOSING; in usbser_close()
596 ASSERT(pp->port_state != USBSER_PORT_CLOSED); in usbser_rsrv()
619 ASSERT(pp->port_state != USBSER_PORT_CLOSED); in usbser_wput()
622 if (pp->port_state == USBSER_PORT_CLOSING) { in usbser_wput()
652 ASSERT(pp->port_state != USBSER_PORT_CLOSED); in usbser_wsrv()
874 pp->port_state = USBSER_PORT_CLOSED; in usbser_attach_ports()
943 if (pp->port_state != USBSER_PORT_CLOSED) { in usbser_detach_ports()
944 ASSERT(pp->port_state == USBSER_PORT_NOT_INIT); in usbser_detach_ports()
1094 if (pp->port_state == USBSER_PORT_OPEN || in usbser_disconnect_ports()
1096 pp->port_state == USBSER_PORT_CLOSING) { in usbser_disconnect_ports()
[all …]
/titanic_41/usr/src/uts/common/io/fibre-channel/ulp/
H A Dfcp.c362 uint32_t port_state, uint32_t port_top, fc_portmap_t *devlist,
1558 if (pptr->port_state & (FCP_STATE_INIT | FCP_STATE_OFFLINE)) { in fcp_setup_device_data_ioctl()
2412 if (pptr->port_state & (FCP_STATE_INIT | in fcp_send_scsi_ioctl()
2415 } else if (pptr->port_state & FCP_STATE_ONLINING) { in fcp_send_scsi_ioctl()
3038 if (pptr->port_state & FCP_STATE_OFFLINE) { in fcp_get_statec_count()
3051 if ((pptr->port_state & FCP_STATE_INIT) && pptr->port_tmp_cnt) { in fcp_get_statec_count()
3295 pptr->port_state & FCP_STATE_FCA_IS_NODMA, in fcp_tgt_send_plogi()
4225 if (pptr->port_state & (FCP_STATE_DETACHING | in fcp_els_callback()
4293 uint32_t port_state, uint32_t port_top, fc_portmap_t *devlist, in fcp_statec_callback() argument
4309 "%d/%d/%d", FC_PORT_STATE_MASK(port_state), in fcp_statec_callback()
[all …]
H A Dfcsm.c615 fcsm->sm_port_state = pinfo->port_state; in fcsm_handle_port_attach()
667 fcsm->sm_port_state = pinfo->port_state; in fcsm_handle_port_attach()
682 fcsm_port_state_to_str(FC_PORT_STATE_MASK(pinfo->port_state)), in fcsm_handle_port_attach()
683 pinfo->port_state, in fcsm_handle_port_attach()
734 fcsm_statec_cb(ulph, (opaque_t)pinfo->port_handle, pinfo->port_state, in fcsm_handle_port_resume()
1231 fcsm_statec_cb(opaque_t ulph, opaque_t port_handle, uint32_t port_state, in fcsm_statec_cb() argument
1271 fcsm_port_state_to_str(FC_PORT_STATE_MASK(port_state)), port_state, in fcsm_statec_cb()
1285 fcsm->sm_port_state = port_state; in fcsm_statec_cb()
1287 switch (port_state) { in fcsm_statec_cb()
1906 fcsm_port_state_to_str(uint32_t port_state) in fcsm_port_state_to_str() argument
[all …]
H A Dfcip.c194 uint32_t port_state, uint32_t port_top, fc_portmap_t changelist[],
871 fport->fcipp_pstate = port_info->port_state; in fcip_port_attach()
924 if (FC_PORT_STATE_MASK(port_info->port_state) == in fcip_port_attach()
1209 fport->fcipp_pstate = port_info->port_state; in fcip_handle_resume()
2253 uint32_t port_state, uint32_t port_top, fc_portmap_t changelist[], in fcip_statec_cb() argument
2286 "S_ID:0x%x, count:0x%x", instance, port_state, sid, listlen)); in fcip_statec_cb()
2303 fport->fcipp_pstate = port_state; in fcip_statec_cb()
2326 switch (FC_PORT_STATE_MASK(port_state)) { in fcip_statec_cb()
4513 tnf_uint, port_state, fport->fcipp_pstate, in fcip_handle_topology()
/titanic_41/usr/src/uts/common/sys/fibre-channel/ulp/
H A Dfcpvar.h166 uint32_t port_state; member
1325 fcp_port::port_state fcp_tgt::tgt_change_cnt
1379 if (!((pptr)->port_state & FCP_STATE_FCA_IS_NODMA)) { \
1389 if (!((pptr)->port_state & FCP_STATE_FCA_IS_NODMA)) { \
/titanic_41/usr/src/lib/sun_sas/common/
H A Ddevtree_device_disco.c236 int port_state = HBA_PORTSTATE_ONLINE; in get_attached_devices_info() local
264 port_state = HBA_PORTSTATE_OFFLINE; in get_attached_devices_info()
514 disco_port_ptr->port_attributes.PortState = port_state; in get_attached_devices_info()
660 int port_state = HBA_PORTSTATE_ONLINE; in get_attached_paths_info() local
678 port_state = HBA_PORTSTATE_OFFLINE; in get_attached_paths_info()
931 disco_port_ptr->port_attributes.PortState = port_state; in get_attached_paths_info()
/titanic_41/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/
H A Dpiclkstat.c73 static funcp port_state[] = { variable
103 rc = port_state[port_type](kc, driver_name, driver_instance); in kstat_port_state()
H A Dpiclfrutree.c230 static char *port_state[] = { variable
3900 (void) strncpy((char *)buf, port_state[portp->state], in get_port_state()
3908 (void) strncpy((char *)buf, port_state[portp->state], in get_port_state()
4014 NULL, port_state[portp->state])) != PICL_SUCCESS) { in port_init()
4455 port_state[portp->state], NULL, in post_events()
5555 port_state[portp->state], NULL, in update_port_state()
/titanic_41/usr/src/uts/common/io/ib/clients/ibd/
H A Dibd.c8169 ibd_state_t *state, *port_state, *p; in ibd_create_partition() local
8183 port_state = ddi_get_soft_state(ibd_list, cmd->ibdioc.ioc_port_inst); in ibd_create_partition()
8184 if (port_state == NULL) { in ibd_create_partition()
8202 ibt_status = ibt_query_hca_ports(port_state->id_hca_hdl, in ibd_create_partition()
8203 port_state->id_port, &pinfop, &psize, &pinfosz); in ibd_create_partition()
8251 state->id_dip = port_state->id_dip; in ibd_create_partition()
8252 state->id_port = port_state->id_port; in ibd_create_partition()
8254 state->id_hca_guid = port_state->id_hca_guid; in ibd_create_partition()
8255 state->id_port_guid = port_state->id_port_guid; in ibd_create_partition()
8273 macp->m_dip = port_state->id_dip; in ibd_create_partition()
[all …]
/titanic_41/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c232 port_state(devctl_hdl_t hdl, nvlist_t *list,
625 if ((rv = port_state(hdl, nvl, &rstate, &ostate)) != in cfga_change_state()
678 if ((rv = port_state(hdl, nvl, &rstate, &ostate)) != in cfga_change_state()
747 if ((rv = port_state(hdl, nvl, &rstate, &ostate)) != in cfga_change_state()
857 if ((rv = port_state(hdl, nvl, &rstate, &ostate)) != in cfga_change_state()
990 if ((rv = port_state(hdl, list, &rstate, &ostate)) != in cfga_private_func()
1966 port_state(devctl_hdl_t hdl, nvlist_t *list, in port_state() function
/titanic_41/usr/src/uts/sun/sys/
H A Dsocalvar.h245 socal_port_t port_state[N_SOCAL_NPORTS]; member
/titanic_41/usr/src/uts/common/io/usb/hcd/openhci/
H A Dohci_hub.c109 uint_t des_A, des_B, port_state; in ohci_init_root_hub() local
170 port_state = POWERED_OFF; in ohci_init_root_hub()
176 port_state = DISCONNECTED; in ohci_init_root_hub()
219 ohcip->ohci_root_hub.rh_port_state[i] = port_state; in ohci_init_root_hub()
/titanic_41/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_saa.c398 uint8_t port_state; in ibmf_sa_session_close() local
439 port_state = saa_portp->saa_pt_state; in ibmf_sa_session_close()
451 (port_state == IBMF_SAA_PORT_STATE_READY)) { in ibmf_sa_session_close()
/titanic_41/usr/src/uts/common/sys/fibre-channel/impl/
H A Dfc_ulpif.h106 uint32_t port_state; member
/titanic_41/usr/src/uts/common/io/usb/hcd/ehci/
H A Dehci_hub.c118 uint_t i, length, port_state; in ehci_init_root_hub() local
177 port_state = POWERED_OFF; in ehci_init_root_hub()
187 port_state = DISCONNECTED; in ehci_init_root_hub()
215 ehcip->ehci_root_hub.rh_port_state[i] = port_state; in ehci_init_root_hub()
/titanic_41/usr/src/uts/common/io/sata/adapters/ahci/
H A Dahci.c1338 uint32_t port_state; in ahci_tran_probe_port() local
1407 port_state = AHCIPORT_GET_STATE(ahci_portp, &addr); in ahci_tran_probe_port()
1409 switch (port_state) { in ahci_tran_probe_port()
1436 sd->satadev_state = port_state; in ahci_tran_probe_port()
1439 portstr, port_state); in ahci_tran_probe_port()
1499 if (port_state & SATA_STATE_READY) in ahci_tran_probe_port()
4860 uint32_t port_state; in ahci_probe_pmport() local
4884 port_state = ahci_portp->ahciport_port_state; in ahci_probe_pmport()
4885 if (!(port_state & SATA_STATE_READY)) { in ahci_probe_pmport()
4904 if (!(port_state & SATA_DSTATE_PMULT_INIT)) { in ahci_probe_pmport()
[all …]
/titanic_41/usr/src/cmd/mdb/common/modules/fcp/
H A Dfcp.c125 mdb_printf(" state : 0x%-08x\n", pinfo.port_state); in fcp()
/titanic_41/usr/src/uts/common/sys/fibre-channel/fca/emlxs/
H A Demlxs_dfc.h367 uint32_t port_state; member
/titanic_41/usr/src/uts/common/io/fibre-channel/impl/
H A Dfctl.c2512 info.port_state = port->fp_bind_state; in fctl_attach_ulps()
2514 info.port_state = port->fp_state; in fctl_attach_ulps()
2517 switch (state = FC_PORT_STATE_MASK(info.port_state)) { in fctl_attach_ulps()
2520 info.port_state &= ~state; in fctl_attach_ulps()
2521 info.port_state |= FC_STATE_ONLINE; in fctl_attach_ulps()
2527 ASSERT((info.port_state & FC_STATE_LOOP) == 0); in fctl_attach_ulps()
2551 ulp_port->port_statec = ((info.port_state & in fctl_attach_ulps()
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dfc.c4009 hbainfo->port_state = HBA_PORTSTATE_UNKNOWN; in emlxs_dfc_get_hbainfo()
4012 hbainfo->port_state = HBA_PORTSTATE_LOOPBACK; in emlxs_dfc_get_hbainfo()
4014 hbainfo->port_state = HBA_PORTSTATE_LINKDOWN; in emlxs_dfc_get_hbainfo()
4018 hbainfo->port_state = HBA_PORTSTATE_LINKDOWN; in emlxs_dfc_get_hbainfo()
4022 hbainfo->port_state = HBA_PORTSTATE_ONLINE; in emlxs_dfc_get_hbainfo()
4028 hbainfo->port_state = HBA_PORTSTATE_ERROR; in emlxs_dfc_get_hbainfo()
4030 hbainfo->port_state = HBA_PORTSTATE_OFFLINE; in emlxs_dfc_get_hbainfo()
/titanic_41/usr/src/uts/common/io/sata/impl/
H A Dsata.c15924 uint32_t port_state, pmult_state; in sata_cfgadm_state() local
15933 port_state = SATA_CPORT_STATE(sata_hba_inst, cport); in sata_cfgadm_state()
15934 if (port_state & SATA_PSTATE_SHUTDOWN || in sata_cfgadm_state()
15935 port_state & SATA_PSTATE_FAILED) { in sata_cfgadm_state()
15938 if (port_state & SATA_PSTATE_FAILED) in sata_cfgadm_state()
15953 port_state = SATA_PMPORT_STATE(sata_hba_inst, cport, pmport); in sata_cfgadm_state()
15954 if (port_state & SATA_PSTATE_SHUTDOWN || in sata_cfgadm_state()
15955 port_state & SATA_PSTATE_FAILED) { in sata_cfgadm_state()
15958 if (port_state & SATA_PSTATE_FAILED) in sata_cfgadm_state()
/titanic_41/usr/src/cmd/luxadm/
H A Dg_adm.c5599 int port_state; in adm_display_port() local
5624 &port_state, verbose)) { in adm_display_port()
5629 if (port_state == PORT_CONNECTED) { in adm_display_port()