Home
last modified time | relevance | path

Searched refs:hba_port_ptr (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/lib/sun_sas/common/
H A DSun_sasGetAdapterPortAttributes.c41 struct sun_sas_port *hba_port_ptr; in Sun_sasGetAdapterPortAttributes() local
84 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetAdapterPortAttributes()
85 hba_port_ptr != NULL; hba_port_ptr = hba_port_ptr->next) { in Sun_sasGetAdapterPortAttributes()
86 if (hba_port_ptr->index == port) { in Sun_sasGetAdapterPortAttributes()
90 if (hba_port_ptr == NULL || hba_port_ptr->index != port) { in Sun_sasGetAdapterPortAttributes()
99 attributes->PortType = hba_port_ptr->port_attributes.PortType; in Sun_sasGetAdapterPortAttributes()
100 attributes->PortState = hba_port_ptr->port_attributes.PortState; in Sun_sasGetAdapterPortAttributes()
102 hba_port_ptr->port_attributes.OSDeviceName, in Sun_sasGetAdapterPortAttributes()
105 hba_port_ptr->port_attributes.PortSpecificAttribute.SASPort, in Sun_sasGetAdapterPortAttributes()
H A DSun_sasGetPortAttributesByWWN.c42 struct sun_sas_port *hba_port_ptr, *hba_disco_port; in Sun_sasGetPortAttributesByWWN() local
92 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetPortAttributesByWWN()
93 hba_port_ptr != NULL; in Sun_sasGetPortAttributesByWWN()
94 hba_port_ptr = hba_port_ptr->next) { in Sun_sasGetPortAttributesByWWN()
96 if (validateDomainAddress(hba_port_ptr, in Sun_sasGetPortAttributesByWWN()
103 if (wwnConversion(hba_port_ptr->port_attributes. in Sun_sasGetPortAttributesByWWN()
121 hba_port_ptr->port_attributes.PortType; in Sun_sasGetPortAttributesByWWN()
123 hba_port_ptr->port_attributes.PortState; in Sun_sasGetPortAttributesByWWN()
125 hba_port_ptr->port_attributes.OSDeviceName, in Sun_sasGetPortAttributesByWWN()
128 hba_port_ptr->port_attributes.PortSpecificAttribute. in Sun_sasGetPortAttributesByWWN()
[all …]
H A DSun_sasGetSASPhyAttributes.c38 struct sun_sas_port *hba_port_ptr; in Sun_sasGetSASPhyAttributes() local
62 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetSASPhyAttributes()
63 hba_port_ptr != NULL; in Sun_sasGetSASPhyAttributes()
64 hba_port_ptr = hba_port_ptr->next) { in Sun_sasGetSASPhyAttributes()
65 if (hba_port_ptr->index == port) { in Sun_sasGetSASPhyAttributes()
70 if (hba_port_ptr == NULL) { in Sun_sasGetSASPhyAttributes()
77 if (phy >= hba_port_ptr->port_attributes.PortSpecificAttribute. in Sun_sasGetSASPhyAttributes()
83 for (phy_ptr = hba_port_ptr->first_phy; phy_ptr != NULL; in Sun_sasGetSASPhyAttributes()
H A DSun_sasGetPortType.c42 struct sun_sas_port *hba_port_ptr; in Sun_sasGetPortType() local
78 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetPortType()
79 hba_port_ptr != NULL; hba_port_ptr = hba_port_ptr->next) { in Sun_sasGetPortType()
80 if (hba_port_ptr->index == port) { in Sun_sasGetPortType()
85 if (hba_port_ptr == NULL || hba_port_ptr->index != port) { in Sun_sasGetPortType()
H A DSun_sasGetDiscoveredPortAttributes.c45 struct sun_sas_port *hba_port_ptr, *hba_disco_port; in Sun_sasGetDiscoveredPortAttributes() local
90 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetDiscoveredPortAttributes()
91 hba_port_ptr != NULL; hba_port_ptr = hba_port_ptr->next) { in Sun_sasGetDiscoveredPortAttributes()
92 if (hba_port_ptr->index == port) { in Sun_sasGetDiscoveredPortAttributes()
97 if (hba_port_ptr == NULL) { in Sun_sasGetDiscoveredPortAttributes()
107 if (hba_port_ptr->first_attached_port != NULL) { in Sun_sasGetDiscoveredPortAttributes()
108 for (hba_disco_port = hba_port_ptr->first_attached_port; in Sun_sasGetDiscoveredPortAttributes()
H A DSun_sasGetPhyStatistics.c42 struct sun_sas_port *hba_port_ptr; in Sun_sasGetPhyStatistics() local
87 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetPhyStatistics()
88 hba_port_ptr != NULL; in Sun_sasGetPhyStatistics()
89 hba_port_ptr = hba_port_ptr->next) { in Sun_sasGetPhyStatistics()
90 if (hba_port_ptr->index == port) { in Sun_sasGetPhyStatistics()
95 if (hba_port_ptr == NULL) { in Sun_sasGetPhyStatistics()
102 if (phy >= hba_port_ptr->port_attributes.PortSpecificAttribute. in Sun_sasGetPhyStatistics()
110 for (phy_ptr = hba_port_ptr->first_phy; in Sun_sasGetPhyStatistics()
132 (void) strlcpy(path, hba_port_ptr->device_path, in Sun_sasGetPhyStatistics()
180 iport_wwn = wwnConversion(hba_port_ptr->port_attributes.\ in Sun_sasGetPhyStatistics()
H A DSun_sasGetTargetMapping.c42 struct sun_sas_port *hba_port_ptr, *hba_disco_port; in Sun_sasGetTargetMapping() local
78 for (hba_port_ptr = hba_ptr->first_port; hba_port_ptr != NULL; in Sun_sasGetTargetMapping()
79 hba_port_ptr = hba_port_ptr->next) { in Sun_sasGetTargetMapping()
81 if (wwnConversion(hba_port_ptr->port_attributes. in Sun_sasGetTargetMapping()
98 if ((validateDomainAddress(hba_port_ptr, domainPortWWN)) in Sun_sasGetTargetMapping()
104 for (hba_disco_port = hba_port_ptr->first_attached_port; in Sun_sasGetTargetMapping()
H A DSun_sasSendSMPPassThru.c100 struct sun_sas_port *hba_port_ptr, *hba_disco_port; in Sun_sasSendSMPPassThru() local
152 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasSendSMPPassThru()
153 hba_port_ptr != NULL; in Sun_sasSendSMPPassThru()
154 hba_port_ptr = hba_port_ptr->next) { in Sun_sasSendSMPPassThru()
157 if (wwnConversion(hba_port_ptr->port_attributes. in Sun_sasSendSMPPassThru()
172 if (hba_port_ptr->first_phy != NULL && in Sun_sasSendSMPPassThru()
173 wwnConversion(hba_port_ptr->first_phy-> in Sun_sasSendSMPPassThru()
183 for (hba_disco_port = hba_port_ptr->first_attached_port; in Sun_sasSendSMPPassThru()
H A DSun_sasScsiReportLUNs.c77 struct sun_sas_port *hba_port_ptr, *hba_disco_port; in Sun_sasScsiReportLUNs() local
128 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasScsiReportLUNs()
129 hba_port_ptr != NULL; in Sun_sasScsiReportLUNs()
130 hba_port_ptr = hba_port_ptr->next) { in Sun_sasScsiReportLUNs()
133 if (wwnConversion(hba_port_ptr->port_attributes. in Sun_sasScsiReportLUNs()
148 if (hba_port_ptr->first_phy != NULL && in Sun_sasScsiReportLUNs()
149 wwnConversion(hba_port_ptr->first_phy-> in Sun_sasScsiReportLUNs()
159 for (hba_disco_port = hba_port_ptr->first_attached_port; in Sun_sasScsiReportLUNs()
H A DSun_sasGetNumberOfPorts.c40 struct sun_sas_port *hba_port_ptr; in Sun_sasGetNumberOfPorts() local
69 for (count = 0, hba_port_ptr = hba_ptr->first_port; in Sun_sasGetNumberOfPorts()
70 hba_port_ptr != NULL; hba_port_ptr = hba_port_ptr->next, count++) {} in Sun_sasGetNumberOfPorts()
H A DSun_sasScsiReadCapacity.c77 struct sun_sas_port *hba_port_ptr, *hba_disco_port; in Sun_sasScsiReadCapacity() local
135 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasScsiReadCapacity()
136 hba_port_ptr != NULL; in Sun_sasScsiReadCapacity()
137 hba_port_ptr = hba_port_ptr->next) { in Sun_sasScsiReadCapacity()
140 if (wwnConversion(hba_port_ptr->port_attributes. in Sun_sasScsiReadCapacity()
155 if (hba_port_ptr->first_phy != NULL && in Sun_sasScsiReadCapacity()
156 wwnConversion(hba_port_ptr->first_phy-> in Sun_sasScsiReadCapacity()
166 for (hba_disco_port = hba_port_ptr->first_attached_port; in Sun_sasScsiReadCapacity()
H A DSun_sasScsiInquiry.c84 struct sun_sas_port *hba_port_ptr, *hba_disco_port; in Sun_sasScsiInquiry() local
150 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasScsiInquiry()
151 hba_port_ptr != NULL; in Sun_sasScsiInquiry()
152 hba_port_ptr = hba_port_ptr->next) { in Sun_sasScsiInquiry()
155 if (wwnConversion(hba_port_ptr->port_attributes. in Sun_sasScsiInquiry()
170 if (hba_port_ptr->first_phy != NULL && in Sun_sasScsiInquiry()
171 wwnConversion(hba_port_ptr->first_phy-> in Sun_sasScsiInquiry()
181 for (hba_disco_port = hba_port_ptr->first_attached_port; in Sun_sasScsiInquiry()
H A Devent.c86 struct sun_sas_port *hba_port_ptr; in updateMatchingPhy() local
96 for (hba_port_ptr = hba_ptr->first_port; in updateMatchingPhy()
97 hba_port_ptr != NULL; in updateMatchingPhy()
98 hba_port_ptr = hba_port_ptr->next) { in updateMatchingPhy()
99 if (wwnConversion(hba_port_ptr-> in updateMatchingPhy()
104 for (phy_ptr = hba_port_ptr->first_phy; in updateMatchingPhy()
H A Dsun_sas.c425 validateDomainAddress(struct sun_sas_port *hba_port_ptr, HBA_WWN DomainAddr) in validateDomainAddress() argument
427 if (hba_port_ptr->first_phy != NULL && in validateDomainAddress()
428 wwnConversion(hba_port_ptr->first_phy-> in validateDomainAddress()