Lines Matching refs:pDiscoverResp

597                               smpRespDiscover_t     *pDiscoverResp  in dmUpStreamDiscoverExpanderPhy()  argument
634 ( DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 0 ? "No Device" : in dmUpStreamDiscoverExpanderPhy()
635 (DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 1 ? "End Device" : in dmUpStreamDiscoverExpanderPhy()
636 … (DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 2 ? "Edge Expander" : "Fanout Expander"))))); in dmUpStreamDiscoverExpanderPhy()
639 if ( DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) != SAS_NO_DEVICE) in dmUpStreamDiscoverExpanderPhy()
642 DISCRSP_GET_ATTACHED_SAS_ADDRESSHI(pDiscoverResp), in dmUpStreamDiscoverExpanderPhy()
643 DISCRSP_GET_ATTACHED_SAS_ADDRESSLO(pDiscoverResp))); in dmUpStreamDiscoverExpanderPhy()
644 DM_DBG3((" SSP Target : %d\n", DISCRSP_IS_SSP_TARGET(pDiscoverResp)?1:0)); in dmUpStreamDiscoverExpanderPhy()
645 DM_DBG3((" STP Target : %d\n", DISCRSP_IS_STP_TARGET(pDiscoverResp)?1:0)); in dmUpStreamDiscoverExpanderPhy()
646 DM_DBG3((" SMP Target : %d\n", DISCRSP_IS_SMP_TARGET(pDiscoverResp)?1:0)); in dmUpStreamDiscoverExpanderPhy()
647 DM_DBG3((" SATA DEVICE : %d\n", DISCRSP_IS_SATA_DEVICE(pDiscoverResp)?1:0)); in dmUpStreamDiscoverExpanderPhy()
648 DM_DBG3((" SSP Initiator : %d\n", DISCRSP_IS_SSP_INITIATOR(pDiscoverResp)?1:0)); in dmUpStreamDiscoverExpanderPhy()
649 DM_DBG3((" STP Initiator : %d\n", DISCRSP_IS_STP_INITIATOR(pDiscoverResp)?1:0)); in dmUpStreamDiscoverExpanderPhy()
650 DM_DBG3((" SMP Initiator : %d\n", DISCRSP_IS_SMP_INITIATOR(pDiscoverResp)?1:0)); in dmUpStreamDiscoverExpanderPhy()
651 DM_DBG3((" Phy ID : %d\n", pDiscoverResp->phyIdentifier)); in dmUpStreamDiscoverExpanderPhy()
652 DM_DBG3((" Attached Phy ID: %d\n", pDiscoverResp->attachedPhyIdentifier)); in dmUpStreamDiscoverExpanderPhy()
656 if (oneExpander->discoveringPhyId != pDiscoverResp->phyIdentifier) in dmUpStreamDiscoverExpanderPhy()
659 …t PhyID #%d Response PhyID #%d !!!\n", oneExpander->discoveringPhyId, pDiscoverResp->phyIdentifier… in dmUpStreamDiscoverExpanderPhy()
660 dmhexdump("NO_DEVICE", (bit8*)pDiscoverResp, sizeof(smpRespDiscover_t)); in dmUpStreamDiscoverExpanderPhy()
666 …oneExpander->routingAttribute[pDiscoverResp->phyIdentifier] = (bit8)DISCRSP_GET_ROUTINGATTRIB(pDis… in dmUpStreamDiscoverExpanderPhy()
671 if ( DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_SUBTRACTIVE) in dmUpStreamDiscoverExpanderPhy()
694 if ( DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) != SAS_NO_DEVICE) in dmUpStreamDiscoverExpanderPhy()
697 sasIdentify.phyIdentifier = pDiscoverResp->phyIdentifier; in dmUpStreamDiscoverExpanderPhy()
698 sasIdentify.deviceType_addressFrameType = (bit8)(pDiscoverResp->attachedDeviceType & 0x70); in dmUpStreamDiscoverExpanderPhy()
699 sasIdentify.initiator_ssp_stp_smp = pDiscoverResp->attached_Ssp_Stp_Smp_Sata_Initiator; in dmUpStreamDiscoverExpanderPhy()
700 sasIdentify.target_ssp_stp_smp = pDiscoverResp->attached_SataPS_Ssp_Stp_Smp_Sata_Target; in dmUpStreamDiscoverExpanderPhy()
701 *(bit32*)sasIdentify.sasAddressHi = *(bit32*)pDiscoverResp->attachedSasAddressHi; in dmUpStreamDiscoverExpanderPhy()
702 *(bit32*)sasIdentify.sasAddressLo = *(bit32*)pDiscoverResp->attachedSasAddressLo; in dmUpStreamDiscoverExpanderPhy()
710 attachedSasHi = DISCRSP_GET_ATTACHED_SAS_ADDRESSHI(pDiscoverResp); in dmUpStreamDiscoverExpanderPhy()
711 attachedSasLo = DISCRSP_GET_ATTACHED_SAS_ADDRESSLO(pDiscoverResp); in dmUpStreamDiscoverExpanderPhy()
714 if ( DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_SUBTRACTIVE) in dmUpStreamDiscoverExpanderPhy()
718 dmExpanderUpStreamPhyAdd(dmRoot, oneExpander, (bit8) pDiscoverResp->attachedPhyIdentifier); in dmUpStreamDiscoverExpanderPhy()
727 (DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE || in dmUpStreamDiscoverExpanderPhy()
728 DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) in dmUpStreamDiscoverExpanderPhy()
809 … connectionRate = (bit8)MIN(onePortContext->LinkRate, DISCRSP_GET_LINKRATE(pDiscoverResp)); in dmUpStreamDiscoverExpanderPhy()
811 …UpStreamDiscoverExpanderPhy: negotiatedPhyLinkRate 0x%x\n", DISCRSP_GET_LINKRATE(pDiscoverResp))); in dmUpStreamDiscoverExpanderPhy()
813 if (DISCRSP_IS_STP_TARGET(pDiscoverResp) || DISCRSP_IS_SATA_DEVICE(pDiscoverResp)) in dmUpStreamDiscoverExpanderPhy()
829 pDiscoverResp->phyIdentifier in dmUpStreamDiscoverExpanderPhy()
854 pDiscoverResp->phyIdentifier in dmUpStreamDiscoverExpanderPhy()
875 pDiscoverResp->phyIdentifier in dmUpStreamDiscoverExpanderPhy()
900 pDiscoverResp->phyIdentifier in dmUpStreamDiscoverExpanderPhy()
910 if ( DISCRSP_IS_SSP_TARGET(pDiscoverResp) in dmUpStreamDiscoverExpanderPhy()
911 || DISCRSP_IS_SSP_INITIATOR(pDiscoverResp) in dmUpStreamDiscoverExpanderPhy()
912 || DISCRSP_IS_SMP_INITIATOR(pDiscoverResp) in dmUpStreamDiscoverExpanderPhy()
913 || DISCRSP_IS_SMP_INITIATOR(pDiscoverResp) ) in dmUpStreamDiscoverExpanderPhy()
923 if ( (DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE) in dmUpStreamDiscoverExpanderPhy()
924 || (DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) ) in dmUpStreamDiscoverExpanderPhy()
1012 smpRespDiscover2_t *pDiscoverResp in dmUpStreamDiscover2ExpanderPhy() argument
1048 ( SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 0 ? "No Device" : in dmUpStreamDiscover2ExpanderPhy()
1049 (SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 1 ? "End Device" : in dmUpStreamDiscover2ExpanderPhy()
1050 … (SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 2 ? "Edge Expander" : "Fanout Expander"))))); in dmUpStreamDiscover2ExpanderPhy()
1053 if ( SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) != SAS_NO_DEVICE) in dmUpStreamDiscover2ExpanderPhy()
1056 SAS2_DISCRSP_GET_ATTACHED_SAS_ADDRESSHI(pDiscoverResp), in dmUpStreamDiscover2ExpanderPhy()
1057 SAS2_DISCRSP_GET_ATTACHED_SAS_ADDRESSLO(pDiscoverResp))); in dmUpStreamDiscover2ExpanderPhy()
1058 DM_DBG2((" SSP Target : %d\n", SAS2_DISCRSP_IS_SSP_TARGET(pDiscoverResp)?1:0)); in dmUpStreamDiscover2ExpanderPhy()
1059 DM_DBG2((" STP Target : %d\n", SAS2_DISCRSP_IS_STP_TARGET(pDiscoverResp)?1:0)); in dmUpStreamDiscover2ExpanderPhy()
1060 DM_DBG2((" SMP Target : %d\n", SAS2_DISCRSP_IS_SMP_TARGET(pDiscoverResp)?1:0)); in dmUpStreamDiscover2ExpanderPhy()
1061 DM_DBG2((" SATA DEVICE : %d\n", SAS2_DISCRSP_IS_SATA_DEVICE(pDiscoverResp)?1:0)); in dmUpStreamDiscover2ExpanderPhy()
1062 DM_DBG2((" SSP Initiator : %d\n", SAS2_DISCRSP_IS_SSP_INITIATOR(pDiscoverResp)?1:0)); in dmUpStreamDiscover2ExpanderPhy()
1063 DM_DBG2((" STP Initiator : %d\n", SAS2_DISCRSP_IS_STP_INITIATOR(pDiscoverResp)?1:0)); in dmUpStreamDiscover2ExpanderPhy()
1064 DM_DBG2((" SMP Initiator : %d\n", SAS2_DISCRSP_IS_SMP_INITIATOR(pDiscoverResp)?1:0)); in dmUpStreamDiscover2ExpanderPhy()
1065 DM_DBG2((" Phy ID : %d\n", pDiscoverResp->phyIdentifier)); in dmUpStreamDiscover2ExpanderPhy()
1066 DM_DBG2((" Attached Phy ID: %d\n", pDiscoverResp->attachedPhyIdentifier)); in dmUpStreamDiscover2ExpanderPhy()
1069 if (oneExpander->discoveringPhyId != pDiscoverResp->phyIdentifier) in dmUpStreamDiscover2ExpanderPhy()
1072 …quest PhyID #%d Response PhyID #%d\n", oneExpander->discoveringPhyId, pDiscoverResp->phyIdentifier… in dmUpStreamDiscover2ExpanderPhy()
1073 dmhexdump("NO_DEVICE", (bit8*)pDiscoverResp, sizeof(smpRespDiscover2_t)); in dmUpStreamDiscover2ExpanderPhy()
1079 …oneExpander->routingAttribute[pDiscoverResp->phyIdentifier] = SAS2_DISCRSP_GET_ROUTINGATTRIB(pDisc… in dmUpStreamDiscover2ExpanderPhy()
1084 if ( SAS2_DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_SUBTRACTIVE) in dmUpStreamDiscover2ExpanderPhy()
1108 if ( SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) != SAS_NO_DEVICE) in dmUpStreamDiscover2ExpanderPhy()
1111 sasIdentify.phyIdentifier = pDiscoverResp->phyIdentifier; in dmUpStreamDiscover2ExpanderPhy()
1112 sasIdentify.deviceType_addressFrameType = pDiscoverResp->attachedDeviceTypeReason & 0x70; in dmUpStreamDiscover2ExpanderPhy()
1113 sasIdentify.initiator_ssp_stp_smp = pDiscoverResp->attached_Ssp_Stp_Smp_Sata_Initiator; in dmUpStreamDiscover2ExpanderPhy()
1114 sasIdentify.target_ssp_stp_smp = pDiscoverResp->attached_SataPS_Ssp_Stp_Smp_Sata_Target; in dmUpStreamDiscover2ExpanderPhy()
1115 *(bit32*)sasIdentify.sasAddressHi = *(bit32*)pDiscoverResp->attachedSasAddressHi; in dmUpStreamDiscover2ExpanderPhy()
1116 *(bit32*)sasIdentify.sasAddressLo = *(bit32*)pDiscoverResp->attachedSasAddressLo; in dmUpStreamDiscover2ExpanderPhy()
1124 attachedSasHi = SAS2_DISCRSP_GET_ATTACHED_SAS_ADDRESSHI(pDiscoverResp); in dmUpStreamDiscover2ExpanderPhy()
1125 attachedSasLo = SAS2_DISCRSP_GET_ATTACHED_SAS_ADDRESSLO(pDiscoverResp); in dmUpStreamDiscover2ExpanderPhy()
1128 if ( SAS2_DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_SUBTRACTIVE) in dmUpStreamDiscover2ExpanderPhy()
1132 dmExpanderUpStreamPhyAdd(dmRoot, oneExpander, (bit8) pDiscoverResp->attachedPhyIdentifier); in dmUpStreamDiscover2ExpanderPhy()
1141 (SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE || in dmUpStreamDiscover2ExpanderPhy()
1142 SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) in dmUpStreamDiscover2ExpanderPhy()
1224 … connectionRate = MIN(onePortContext->LinkRate, SAS2_DISCRSP_GET_LOGICAL_LINKRATE(pDiscoverResp)); in dmUpStreamDiscover2ExpanderPhy()
1226 …amDiscover2ExpanderPhy: negotiatedPhyLinkRate 0x%x\n", SAS2_DISCRSP_GET_LINKRATE(pDiscoverResp))); in dmUpStreamDiscover2ExpanderPhy()
1229 … if (SAS2_DISCRSP_IS_STP_TARGET(pDiscoverResp) || SAS2_DISCRSP_IS_SATA_DEVICE(pDiscoverResp)) in dmUpStreamDiscover2ExpanderPhy()
1245 pDiscoverResp->phyIdentifier in dmUpStreamDiscover2ExpanderPhy()
1270 pDiscoverResp->phyIdentifier in dmUpStreamDiscover2ExpanderPhy()
1291 pDiscoverResp->phyIdentifier in dmUpStreamDiscover2ExpanderPhy()
1316 pDiscoverResp->phyIdentifier in dmUpStreamDiscover2ExpanderPhy()
1326 if ( SAS2_DISCRSP_IS_SSP_TARGET(pDiscoverResp) in dmUpStreamDiscover2ExpanderPhy()
1327 || SAS2_DISCRSP_IS_SSP_INITIATOR(pDiscoverResp) in dmUpStreamDiscover2ExpanderPhy()
1328 || SAS2_DISCRSP_IS_SMP_INITIATOR(pDiscoverResp) in dmUpStreamDiscover2ExpanderPhy()
1329 || SAS2_DISCRSP_IS_SMP_INITIATOR(pDiscoverResp) ) in dmUpStreamDiscover2ExpanderPhy()
1339 if ( (SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE) in dmUpStreamDiscover2ExpanderPhy()
1340 … || (SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) ) in dmUpStreamDiscover2ExpanderPhy()
1424 smpRespDiscover_t *pDiscoverResp in dmDownStreamDiscoverExpanderPhy() argument
1452 DM_ASSERT(pDiscoverResp, "(dmDownStreamDiscoverExpanderPhy) pDiscoverResp NULL"); in dmDownStreamDiscoverExpanderPhy()
1479 ( DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 0 ? "No Device" : in dmDownStreamDiscoverExpanderPhy()
1480 (DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 1 ? "End Device" : in dmDownStreamDiscoverExpanderPhy()
1481 … (DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 2 ? "Edge Expander" : "Fanout Expander"))))); in dmDownStreamDiscoverExpanderPhy()
1485 if (oneExpander->discoveringPhyId != pDiscoverResp->phyIdentifier) in dmDownStreamDiscoverExpanderPhy()
1488 …t PhyID #%d Response PhyID #%d !!!\n", oneExpander->discoveringPhyId, pDiscoverResp->phyIdentifier… in dmDownStreamDiscoverExpanderPhy()
1489 dmhexdump("NO_DEVICE", (bit8*)pDiscoverResp, sizeof(smpRespDiscover_t)); in dmDownStreamDiscoverExpanderPhy()
1494 if ( DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) != SAS_NO_DEVICE) in dmDownStreamDiscoverExpanderPhy()
1497 DISCRSP_GET_ATTACHED_SAS_ADDRESSHI(pDiscoverResp), in dmDownStreamDiscoverExpanderPhy()
1498 DISCRSP_GET_ATTACHED_SAS_ADDRESSLO(pDiscoverResp))); in dmDownStreamDiscoverExpanderPhy()
1499 DM_DBG3((" SSP Target : %d\n", DISCRSP_IS_SSP_TARGET(pDiscoverResp)?1:0)); in dmDownStreamDiscoverExpanderPhy()
1500 DM_DBG3((" STP Target : %d\n", DISCRSP_IS_STP_TARGET(pDiscoverResp)?1:0)); in dmDownStreamDiscoverExpanderPhy()
1501 DM_DBG3((" SMP Target : %d\n", DISCRSP_IS_SMP_TARGET(pDiscoverResp)?1:0)); in dmDownStreamDiscoverExpanderPhy()
1502 DM_DBG3((" SATA DEVICE : %d\n", DISCRSP_IS_SATA_DEVICE(pDiscoverResp)?1:0)); in dmDownStreamDiscoverExpanderPhy()
1503 DM_DBG3((" SSP Initiator : %d\n", DISCRSP_IS_SSP_INITIATOR(pDiscoverResp)?1:0)); in dmDownStreamDiscoverExpanderPhy()
1504 DM_DBG3((" STP Initiator : %d\n", DISCRSP_IS_STP_INITIATOR(pDiscoverResp)?1:0)); in dmDownStreamDiscoverExpanderPhy()
1505 DM_DBG3((" SMP Initiator : %d\n", DISCRSP_IS_SMP_INITIATOR(pDiscoverResp)?1:0)); in dmDownStreamDiscoverExpanderPhy()
1506 DM_DBG3((" Phy ID : %d\n", pDiscoverResp->phyIdentifier)); in dmDownStreamDiscoverExpanderPhy()
1507 DM_DBG3((" Attached Phy ID: %d\n", pDiscoverResp->attachedPhyIdentifier)); in dmDownStreamDiscoverExpanderPhy()
1513 …oneExpander->routingAttribute[pDiscoverResp->phyIdentifier] = DISCRSP_GET_ROUTINGATTRIB(pDiscoverR… in dmDownStreamDiscoverExpanderPhy()
1518 if ( DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) != SAS_NO_DEVICE) in dmDownStreamDiscoverExpanderPhy()
1521 sasIdentify.phyIdentifier = pDiscoverResp->phyIdentifier; in dmDownStreamDiscoverExpanderPhy()
1522 sasIdentify.deviceType_addressFrameType = pDiscoverResp->attachedDeviceType & 0x70; in dmDownStreamDiscoverExpanderPhy()
1523 sasIdentify.initiator_ssp_stp_smp = pDiscoverResp->attached_Ssp_Stp_Smp_Sata_Initiator; in dmDownStreamDiscoverExpanderPhy()
1524 sasIdentify.target_ssp_stp_smp = pDiscoverResp->attached_SataPS_Ssp_Stp_Smp_Sata_Target; in dmDownStreamDiscoverExpanderPhy()
1525 *(bit32*)sasIdentify.sasAddressHi = *(bit32*)pDiscoverResp->attachedSasAddressHi; in dmDownStreamDiscoverExpanderPhy()
1526 *(bit32*)sasIdentify.sasAddressLo = *(bit32*)pDiscoverResp->attachedSasAddressLo; in dmDownStreamDiscoverExpanderPhy()
1534 attachedSasHi = DISCRSP_GET_ATTACHED_SAS_ADDRESSHI(pDiscoverResp); in dmDownStreamDiscoverExpanderPhy()
1535 attachedSasLo = DISCRSP_GET_ATTACHED_SAS_ADDRESSLO(pDiscoverResp); in dmDownStreamDiscoverExpanderPhy()
1538 if ( DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_DIRECT) in dmDownStreamDiscoverExpanderPhy()
1541 if ( (DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) in dmDownStreamDiscoverExpanderPhy()
1542 || (DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE) ) in dmDownStreamDiscoverExpanderPhy()
1571 if ( DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_SUBTRACTIVE && in dmDownStreamDiscoverExpanderPhy()
1572 (DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE || in dmDownStreamDiscoverExpanderPhy()
1573 DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) in dmDownStreamDiscoverExpanderPhy()
1596 connectionRate = MIN(onePortContext->LinkRate, DISCRSP_GET_LINKRATE(pDiscoverResp)); in dmDownStreamDiscoverExpanderPhy()
1598 …ownStreamDiscoverExpanderPhy: negotiatedPhyLinkRate 0x%x\n", DISCRSP_GET_LINKRATE(pDiscoverResp))); in dmDownStreamDiscoverExpanderPhy()
1600 if (DISCRSP_IS_STP_TARGET(pDiscoverResp) || DISCRSP_IS_SATA_DEVICE(pDiscoverResp)) in dmDownStreamDiscoverExpanderPhy()
1615 pDiscoverResp->phyIdentifier in dmDownStreamDiscoverExpanderPhy()
1640 pDiscoverResp->phyIdentifier in dmDownStreamDiscoverExpanderPhy()
1660 pDiscoverResp->phyIdentifier in dmDownStreamDiscoverExpanderPhy()
1685 pDiscoverResp->phyIdentifier in dmDownStreamDiscoverExpanderPhy()
1725 if ( DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_TABLE) in dmDownStreamDiscoverExpanderPhy()
1728 if ( DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) in dmDownStreamDiscoverExpanderPhy()
1744 else if ( DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE) in dmDownStreamDiscoverExpanderPhy()
1839 if ( DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_SUBTRACTIVE) in dmDownStreamDiscoverExpanderPhy()
1882 else if ( DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_TABLE) in dmDownStreamDiscoverExpanderPhy()
1885 if ( DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) in dmDownStreamDiscoverExpanderPhy()
1902 else if ( DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE) in dmDownStreamDiscoverExpanderPhy()
2022 connectionRate = MIN(onePortContext->LinkRate, DISCRSP_GET_LINKRATE(pDiscoverResp)); in dmDownStreamDiscoverExpanderPhy()
2024 if (DISCRSP_IS_STP_TARGET(pDiscoverResp) || DISCRSP_IS_SATA_DEVICE(pDiscoverResp)) in dmDownStreamDiscoverExpanderPhy()
2039 pDiscoverResp->phyIdentifier in dmDownStreamDiscoverExpanderPhy()
2058 pDiscoverResp->phyIdentifier in dmDownStreamDiscoverExpanderPhy()
2101 negotiatedPhyLinkRate = DISCRSP_GET_LINKRATE(pDiscoverResp); // added by thenil in dmDownStreamDiscoverExpanderPhy()
2110 pDiscoverResp->phyIdentifier in dmDownStreamDiscoverExpanderPhy()
2235 smpRespDiscover2_t *pDiscoverResp in dmDownStreamDiscover2ExpanderPhy() argument
2262 DM_ASSERT(pDiscoverResp, "(dmDownStreamDiscover2ExpanderPhy) pDiscoverResp NULL"); in dmDownStreamDiscover2ExpanderPhy()
2290 ( SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 0 ? "No Device" : in dmDownStreamDiscover2ExpanderPhy()
2291 (SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 1 ? "End Device" : in dmDownStreamDiscover2ExpanderPhy()
2292 … (SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == 2 ? "Edge Expander" : "Fanout Expander"))))); in dmDownStreamDiscover2ExpanderPhy()
2296 if (oneExpander->discoveringPhyId != pDiscoverResp->phyIdentifier) in dmDownStreamDiscover2ExpanderPhy()
2299 …quest PhyID #%d Response PhyID #%d\n", oneExpander->discoveringPhyId, pDiscoverResp->phyIdentifier… in dmDownStreamDiscover2ExpanderPhy()
2300 dmhexdump("NO_DEVICE", (bit8*)pDiscoverResp, sizeof(smpRespDiscover2_t)); in dmDownStreamDiscover2ExpanderPhy()
2305 if ( SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) != SAS_NO_DEVICE) in dmDownStreamDiscover2ExpanderPhy()
2308 SAS2_DISCRSP_GET_ATTACHED_SAS_ADDRESSHI(pDiscoverResp), in dmDownStreamDiscover2ExpanderPhy()
2309 SAS2_DISCRSP_GET_ATTACHED_SAS_ADDRESSLO(pDiscoverResp))); in dmDownStreamDiscover2ExpanderPhy()
2310 DM_DBG2((" SSP Target : %d\n", SAS2_DISCRSP_IS_SSP_TARGET(pDiscoverResp)?1:0)); in dmDownStreamDiscover2ExpanderPhy()
2311 DM_DBG2((" STP Target : %d\n", SAS2_DISCRSP_IS_STP_TARGET(pDiscoverResp)?1:0)); in dmDownStreamDiscover2ExpanderPhy()
2312 DM_DBG2((" SMP Target : %d\n", SAS2_DISCRSP_IS_SMP_TARGET(pDiscoverResp)?1:0)); in dmDownStreamDiscover2ExpanderPhy()
2313 DM_DBG2((" SATA DEVICE : %d\n", SAS2_DISCRSP_IS_SATA_DEVICE(pDiscoverResp)?1:0)); in dmDownStreamDiscover2ExpanderPhy()
2314 DM_DBG2((" SSP Initiator : %d\n", SAS2_DISCRSP_IS_SSP_INITIATOR(pDiscoverResp)?1:0)); in dmDownStreamDiscover2ExpanderPhy()
2315 DM_DBG2((" STP Initiator : %d\n", SAS2_DISCRSP_IS_STP_INITIATOR(pDiscoverResp)?1:0)); in dmDownStreamDiscover2ExpanderPhy()
2316 DM_DBG2((" SMP Initiator : %d\n", SAS2_DISCRSP_IS_SMP_INITIATOR(pDiscoverResp)?1:0)); in dmDownStreamDiscover2ExpanderPhy()
2317 DM_DBG2((" Phy ID : %d\n", pDiscoverResp->phyIdentifier)); in dmDownStreamDiscover2ExpanderPhy()
2318 DM_DBG2((" Attached Phy ID: %d\n", pDiscoverResp->attachedPhyIdentifier)); in dmDownStreamDiscover2ExpanderPhy()
2323 …oneExpander->routingAttribute[pDiscoverResp->phyIdentifier] = SAS2_DISCRSP_GET_ROUTINGATTRIB(pDisc… in dmDownStreamDiscover2ExpanderPhy()
2329 if ( SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) != SAS_NO_DEVICE) in dmDownStreamDiscover2ExpanderPhy()
2332 sasIdentify.phyIdentifier = pDiscoverResp->phyIdentifier; in dmDownStreamDiscover2ExpanderPhy()
2333 sasIdentify.deviceType_addressFrameType = pDiscoverResp->attachedDeviceTypeReason & 0x70; in dmDownStreamDiscover2ExpanderPhy()
2334 sasIdentify.initiator_ssp_stp_smp = pDiscoverResp->attached_Ssp_Stp_Smp_Sata_Initiator; in dmDownStreamDiscover2ExpanderPhy()
2335 sasIdentify.target_ssp_stp_smp = pDiscoverResp->attached_SataPS_Ssp_Stp_Smp_Sata_Target; in dmDownStreamDiscover2ExpanderPhy()
2336 *(bit32*)sasIdentify.sasAddressHi = *(bit32*)pDiscoverResp->attachedSasAddressHi; in dmDownStreamDiscover2ExpanderPhy()
2337 *(bit32*)sasIdentify.sasAddressLo = *(bit32*)pDiscoverResp->attachedSasAddressLo; in dmDownStreamDiscover2ExpanderPhy()
2345 attachedSasHi = SAS2_DISCRSP_GET_ATTACHED_SAS_ADDRESSHI(pDiscoverResp); in dmDownStreamDiscover2ExpanderPhy()
2346 attachedSasLo = SAS2_DISCRSP_GET_ATTACHED_SAS_ADDRESSLO(pDiscoverResp); in dmDownStreamDiscover2ExpanderPhy()
2349 if ( SAS2_DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_DIRECT) in dmDownStreamDiscover2ExpanderPhy()
2352 if ( (SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) in dmDownStreamDiscover2ExpanderPhy()
2353 || (SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE) ) in dmDownStreamDiscover2ExpanderPhy()
2404 … connectionRate = MIN(onePortContext->LinkRate, SAS2_DISCRSP_GET_LOGICAL_LINKRATE(pDiscoverResp)); in dmDownStreamDiscover2ExpanderPhy()
2406 …eamDiscover2ExpanderPhy: negotiatedPhyLinkRate 0x%x\n", SAS2_DISCRSP_GET_LINKRATE(pDiscoverResp))); in dmDownStreamDiscover2ExpanderPhy()
2409 … if (SAS2_DISCRSP_IS_STP_TARGET(pDiscoverResp) || SAS2_DISCRSP_IS_SATA_DEVICE(pDiscoverResp)) in dmDownStreamDiscover2ExpanderPhy()
2424 pDiscoverResp->phyIdentifier in dmDownStreamDiscover2ExpanderPhy()
2449 pDiscoverResp->phyIdentifier in dmDownStreamDiscover2ExpanderPhy()
2469 pDiscoverResp->phyIdentifier in dmDownStreamDiscover2ExpanderPhy()
2494 pDiscoverResp->phyIdentifier in dmDownStreamDiscover2ExpanderPhy()
2534 if ( SAS2_DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_TABLE) in dmDownStreamDiscover2ExpanderPhy()
2537 if ( SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) in dmDownStreamDiscover2ExpanderPhy()
2553 … else if ( SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE) in dmDownStreamDiscover2ExpanderPhy()
2588 else if ( SAS2_DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_SUBTRACTIVE && in dmDownStreamDiscover2ExpanderPhy()
2589 … (SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE || in dmDownStreamDiscover2ExpanderPhy()
2590 … SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE) in dmDownStreamDiscover2ExpanderPhy()
2689 if ( SAS2_DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_SUBTRACTIVE) in dmDownStreamDiscover2ExpanderPhy()
2730 else if ( SAS2_DISCRSP_GET_ROUTINGATTRIB(pDiscoverResp) == SAS_ROUTING_TABLE) in dmDownStreamDiscover2ExpanderPhy()
2733 if ( SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_FANOUT_EXPANDER_DEVICE) in dmDownStreamDiscover2ExpanderPhy()
2750 else if ( SAS2_DISCRSP_GET_ATTACHED_DEVTYPE(pDiscoverResp) == SAS_EDGE_EXPANDER_DEVICE) in dmDownStreamDiscover2ExpanderPhy()
2914 … connectionRate = MIN(onePortContext->LinkRate, SAS2_DISCRSP_GET_LOGICAL_LINKRATE(pDiscoverResp)); in dmDownStreamDiscover2ExpanderPhy()
2916 … if (SAS2_DISCRSP_IS_STP_TARGET(pDiscoverResp) || SAS2_DISCRSP_IS_SATA_DEVICE(pDiscoverResp)) in dmDownStreamDiscover2ExpanderPhy()
2931 pDiscoverResp->phyIdentifier in dmDownStreamDiscover2ExpanderPhy()
2949 pDiscoverResp->phyIdentifier in dmDownStreamDiscover2ExpanderPhy()