Lines Matching defs:tmp_port
911 EXT_HBA_PORT tmp_port = {0};
928 bcopy(ha->loginparams.nport_ww_name.raw_wwn, tmp_port.WWPN,
930 tmp_port.Id[0] = 0;
931 tmp_port.Id[1] = ha->d_id.b.domain;
932 tmp_port.Id[2] = ha->d_id.b.area;
933 tmp_port.Id[3] = ha->d_id.b.al_pa;
936 tmp_port.Type = EXT_DEF_INITIATOR_DEV;
939 tmp_port.State = EXT_DEF_HBA_LOOP_DOWN;
941 tmp_port.State = EXT_DEF_HBA_SUSPENDED;
943 tmp_port.State = EXT_DEF_HBA_OK;
947 tmp_port.Mode = EXT_DEF_P2P_MODE;
949 tmp_port.Mode = EXT_DEF_LOOP_MODE;
956 tmp_port.PortSpeed = EXT_PORTSPEED_NOT_NEGOTIATED;
958 if (tmp_port.State == EXT_DEF_HBA_OK) {
961 tmp_port.PortSpeed = EXT_DEF_PORTSPEED_1GBIT;
964 tmp_port.PortSpeed = EXT_DEF_PORTSPEED_2GBIT;
967 tmp_port.PortSpeed = EXT_DEF_PORTSPEED_4GBIT;
970 tmp_port.PortSpeed = EXT_DEF_PORTSPEED_8GBIT;
973 tmp_port.PortSpeed = EXT_DEF_PORTSPEED_10GBIT;
976 tmp_port.PortSpeed = EXT_DEF_PORTSPEED_UNKNOWN;
984 tmp_port.PortSupportedSpeed = (EXT_DEF_PORTSPEED_8GBIT |
998 tmp_port.PortSupportedSpeed &=
1004 tmp_port.PortSupportedSpeed &=
1013 tmp_port.PortSupportedSpeed = EXT_DEF_PORTSPEED_10GBIT;
1015 tmp_port.PortSupportedSpeed = (EXT_DEF_PORTSPEED_4GBIT |
1018 tmp_port.PortSupportedSpeed = (EXT_DEF_PORTSPEED_2GBIT |
1021 tmp_port.PortSupportedSpeed = EXT_DEF_PORTSPEED_2GBIT;
1023 tmp_port.PortSupportedSpeed = EXT_DEF_PORTSPEED_1GBIT;
1025 tmp_port.PortSupportedSpeed = EXT_DEF_PORTSPEED_UNKNOWN;
1028 tmp_port.LinkState2 = LSB(ha->sfp_stat);
1048 tmp_port.DiscPortCount = port_cnt;
1049 tmp_port.DiscTargetCount = tgt_cnt;
1051 tmp_port.DiscPortNameType = EXT_DEF_USE_NODE_NAME;
1053 rval = ddi_copyout((void *)&tmp_port,
1087 EXT_DISC_PORT tmp_port = {0};
1119 bcopy(tq->node_name, tmp_port.WWNN,
1121 bcopy(tq->port_name, tmp_port.WWPN,
1136 tmp_port.Id[0] = 0;
1137 tmp_port.Id[1] = tq->d_id.b.domain;
1138 tmp_port.Id[2] = tq->d_id.b.area;
1139 tmp_port.Id[3] = tq->d_id.b.al_pa;
1141 tmp_port.Type = 0;
1143 tmp_port.Type = (uint16_t)(tmp_port.Type |
1148 tmp_port.Type = (uint16_t)(tmp_port.Type | EXT_DEF_TAPE_DEV);
1152 tmp_port.Type = (uint16_t)(tmp_port.Type | EXT_DEF_FABRIC_DEV);
1154 tmp_port.Type = (uint16_t)(tmp_port.Type | EXT_DEF_TARGET_DEV);
1157 tmp_port.Status = 0;
1158 tmp_port.Bus = 0; /* Hard-coded for Solaris */
1160 bcopy(tq->port_name, &tmp_port.TargetId, 8);
1162 if (ddi_copyout((void *)&tmp_port,