Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/sun_sas/common/
H A Dsun_sas.c163 for (hba_ptr = global_hba_head; hba_ptr != NULL; in RetrieveHandle()
164 hba_ptr = hba_ptr->next) { in RetrieveHandle()
165 if (hba_ptr->index == index) in RetrieveHandle()
169 return (hba_ptr); in RetrieveHandle()
184 for (hba_ptr = global_hba_head; in ExtractHandle()
185 hba_ptr != NULL; in ExtractHandle()
186 last = hba_ptr, hba_ptr = hba_ptr->next) { in ExtractHandle()
187 if (hba_ptr->index == index) { in ExtractHandle()
189 last->next = hba_ptr->next; in ExtractHandle()
199 return (hba_ptr); in ExtractHandle()
[all …]
H A DSun_sasGetAdapterName.c44 struct sun_sas_hba *hba_ptr; in Sun_sasGetAdapterName() local
51 for (hba_ptr = global_hba_head; hba_ptr != NULL; in Sun_sasGetAdapterName()
52 hba_ptr = hba_ptr->next) { in Sun_sasGetAdapterName()
53 if (hba_ptr->index == index) { in Sun_sasGetAdapterName()
54 if (hba_ptr->handle_name[0] == '\0') { in Sun_sasGetAdapterName()
55 hba_ptr = NULL; in Sun_sasGetAdapterName()
61 (void) strlcpy(name, hba_ptr->handle_name, in Sun_sasGetAdapterName()
62 strlen(hba_ptr->handle_name)+1); in Sun_sasGetAdapterName()
67 if (hba_ptr == NULL) { in Sun_sasGetAdapterName()
H A DSun_sasOpenAdapter.c42 struct sun_sas_hba *hba_ptr; in Sun_sasOpenAdapter() local
49 for (hba_ptr = global_hba_head; hba_ptr != NULL; in Sun_sasOpenAdapter()
50 hba_ptr = hba_ptr->next) { in Sun_sasOpenAdapter()
51 if (strcmp(hba_ptr->handle_name, name) == 0) { in Sun_sasOpenAdapter()
56 if (hba_ptr == NULL) { in Sun_sasOpenAdapter()
61 return (CreateHandle(hba_ptr->index)); in Sun_sasOpenAdapter()
H A DSun_sasGetPortType.c41 struct sun_sas_hba *hba_ptr; in Sun_sasGetPortType() local
53 hba_ptr = RetrieveHandle(index); in Sun_sasGetPortType()
54 if (hba_ptr == NULL) { in Sun_sasGetPortType()
62 if (hba_ptr->first_port == NULL) { in Sun_sasGetPortType()
64 if (hba_ptr->device_path[0] != '\0') { in Sun_sasGetPortType()
67 "data.", hba_ptr->device_path); in Sun_sasGetPortType()
71 "no port data", hba_ptr->index); in Sun_sasGetPortType()
78 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetPortType()
H A DSun_sasGetAdapterPortAttributes.c40 struct sun_sas_hba *hba_ptr; in Sun_sasGetAdapterPortAttributes() local
54 hba_ptr = RetrieveHandle(index); in Sun_sasGetAdapterPortAttributes()
55 if (hba_ptr == NULL) { in Sun_sasGetAdapterPortAttributes()
63 status = verifyAdapter(hba_ptr); in Sun_sasGetAdapterPortAttributes()
71 if (hba_ptr->first_port == NULL) { in Sun_sasGetAdapterPortAttributes()
73 if (hba_ptr->device_path[0] != '\0') { in Sun_sasGetAdapterPortAttributes()
75 "%s contains no port data", hba_ptr->device_path); in Sun_sasGetAdapterPortAttributes()
78 " index %d contains no port data", hba_ptr->index); in Sun_sasGetAdapterPortAttributes()
84 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetAdapterPortAttributes()
H A DSun_sasGetDiscoveredPortAttributes.c44 struct sun_sas_hba *hba_ptr; in Sun_sasGetDiscoveredPortAttributes() local
58 hba_ptr = RetrieveHandle(index); in Sun_sasGetDiscoveredPortAttributes()
59 if (hba_ptr == NULL) { in Sun_sasGetDiscoveredPortAttributes()
67 status = verifyAdapter(hba_ptr); in Sun_sasGetDiscoveredPortAttributes()
76 if (hba_ptr->first_port == NULL) { in Sun_sasGetDiscoveredPortAttributes()
78 if (hba_ptr->device_path[0] != '\0') { in Sun_sasGetDiscoveredPortAttributes()
80 " contains no port data", hba_ptr->device_path); in Sun_sasGetDiscoveredPortAttributes()
83 " index %d contains no port data", hba_ptr->index); in Sun_sasGetDiscoveredPortAttributes()
90 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetDiscoveredPortAttributes()
H A DSun_sasRefreshAdapterConfiguration.c87 struct sun_sas_hba *hba_ptr; in Sun_sasRefreshAdapterConfiguration() local
118 for (hba_ptr = global_hba_head; hba_ptr != NULL; in Sun_sasRefreshAdapterConfiguration()
119 hba_ptr = hba_ptr->next) { in Sun_sasRefreshAdapterConfiguration()
120 wa.devpath = hba_ptr->device_path; in Sun_sasRefreshAdapterConfiguration()
140 hba_ptr->device_path); in Sun_sasRefreshAdapterConfiguration()
141 hba_ptr->invalid = B_TRUE; in Sun_sasRefreshAdapterConfiguration()
H A DSun_sasFreeLibrary.c69 struct sun_sas_hba *hba_ptr = NULL; in FreeHBA() local
84 for (hba_ptr = hba; hba_ptr != NULL; hba_ptr = hba_ptr->next) { in FreeHBA()
86 hba_port = hba_ptr->first_port; in FreeHBA()
119 open_handle = hba_ptr->open_handles; in FreeHBA()
129 last_hba_ptr = hba_ptr; in FreeHBA()
H A Ddevtree_hba_disco.c52 hba_port = hba_ptr->first_port; in free_hba_port()
87 hba_ptr->first_port = NULL; in free_hba_port()
107 if (hba_ptr == NULL) { in add_hba_port_info()
299 hba_ptr->first_port = port_ptr; in add_hba_port_info()
303 hba_ptr->first_port = port_ptr; in add_hba_port_info()
321 free_hba_port(hba_ptr); in refresh_hba()
348 S_FREE(hba_ptr->first_port); in refresh_hba()
349 S_FREE(hba_ptr); in refresh_hba()
392 for (hba_ptr = global_hba_head; in devtree_get_one_hba()
393 hba_ptr != NULL; in devtree_get_one_hba()
[all …]
H A DSun_sasGetNumberOfAdapters.c40 struct sun_sas_hba *hba_ptr; in Sun_sasGetNumberOfAdapters() local
44 for (count = 0, hba_ptr = global_hba_head; in Sun_sasGetNumberOfAdapters()
45 hba_ptr != NULL; hba_ptr = hba_ptr->next, count++) {} in Sun_sasGetNumberOfAdapters()
H A DSun_sasGetPortAttributesByWWN.c41 struct sun_sas_hba *hba_ptr; in Sun_sasGetPortAttributesByWWN() local
58 hba_ptr = RetrieveHandle(index); in Sun_sasGetPortAttributesByWWN()
59 if (hba_ptr == NULL) { in Sun_sasGetPortAttributesByWWN()
67 status = verifyAdapter(hba_ptr); in Sun_sasGetPortAttributesByWWN()
75 if (hba_ptr->first_port == NULL) { in Sun_sasGetPortAttributesByWWN()
77 if (hba_ptr->device_path[0] != '\0') { in Sun_sasGetPortAttributesByWWN()
80 "no port data", hba_ptr->device_path); in Sun_sasGetPortAttributesByWWN()
84 "no port data", hba_ptr->index); in Sun_sasGetPortAttributesByWWN()
92 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetPortAttributesByWWN()
H A DSun_sasGetNumberOfPorts.c39 struct sun_sas_hba *hba_ptr; in Sun_sasGetNumberOfPorts() local
50 hba_ptr = RetrieveHandle(index); in Sun_sasGetNumberOfPorts()
51 if (hba_ptr == NULL) { in Sun_sasGetNumberOfPorts()
59 if (hba_ptr->first_port == NULL) { in Sun_sasGetNumberOfPorts()
69 for (count = 0, hba_port_ptr = hba_ptr->first_port; in Sun_sasGetNumberOfPorts()
H A DSun_sasGetAdapterAttributes.c39 struct sun_sas_hba *hba_ptr; in Sun_sasGetAdapterAttributes() local
50 hba_ptr = RetrieveHandle(index); in Sun_sasGetAdapterAttributes()
51 if (hba_ptr == NULL) { in Sun_sasGetAdapterAttributes()
58 (void) memcpy(attributes, &hba_ptr->adapter_attributes, in Sun_sasGetAdapterAttributes()
H A Devent.c85 struct sun_sas_hba *hba_ptr; in updateMatchingPhy() local
93 for (hba_ptr = global_hba_head; hba_ptr != NULL; in updateMatchingPhy()
94 hba_ptr = hba_ptr->next) { in updateMatchingPhy()
96 for (hba_port_ptr = hba_ptr->first_port; in updateMatchingPhy()
H A DSun_sasGetSASPhyAttributes.c37 struct sun_sas_hba *hba_ptr; in Sun_sasGetSASPhyAttributes() local
48 if ((hba_ptr = Retrieve_Sun_sasHandle(handle)) == NULL) { in Sun_sasGetSASPhyAttributes()
55 status = verifyAdapter(hba_ptr); in Sun_sasGetSASPhyAttributes()
62 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetSASPhyAttributes()
H A Dverify.c36 verifyAdapter(struct sun_sas_hba *hba_ptr) { in verifyAdapter() argument
45 if (hba_ptr == NULL) { in verifyAdapter()
49 (void) strlcpy(path, hba_ptr->device_path, sizeof (path)); in verifyAdapter()
H A DSun_sasSendSMPPassThru.c96 struct sun_sas_hba *hba_ptr; in Sun_sasSendSMPPassThru() local
120 if ((hba_ptr = Retrieve_Sun_sasHandle(handle)) == NULL) { in Sun_sasSendSMPPassThru()
127 status = verifyAdapter(hba_ptr); in Sun_sasSendSMPPassThru()
140 if (hba_ptr->device_path[0] == '\0') { in Sun_sasSendSMPPassThru()
152 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasSendSMPPassThru()
H A DSun_sasGetTargetMapping.c41 struct sun_sas_hba *hba_ptr; in Sun_sasGetTargetMapping() local
53 hba_ptr = RetrieveHandle(index); in Sun_sasGetTargetMapping()
54 if (hba_ptr == NULL) { in Sun_sasGetTargetMapping()
78 for (hba_port_ptr = hba_ptr->first_port; hba_port_ptr != NULL; in Sun_sasGetTargetMapping()
H A DSun_sasScsiInquiry.c83 struct sun_sas_hba *hba_ptr = NULL; in Sun_sasScsiInquiry() local
116 if ((hba_ptr = RetrieveHandle(index)) == NULL) { in Sun_sasScsiInquiry()
124 status = verifyAdapter(hba_ptr); in Sun_sasScsiInquiry()
137 if (hba_ptr->device_path[0] == '\0') { in Sun_sasScsiInquiry()
150 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasScsiInquiry()
H A DSun_sasRefreshInformation.c88 struct sun_sas_hba *hba_ptr; in Sun_sasRefreshInformation() local
126 hba_ptr = RetrieveHandle(oHandle->adapterIndex); in Sun_sasRefreshInformation()
127 wa.devpath = hba_ptr->device_path; in Sun_sasRefreshInformation()
H A DSun_sasScsiReportLUNs.c76 struct sun_sas_hba *hba_ptr = NULL; in Sun_sasScsiReportLUNs() local
109 if ((hba_ptr = RetrieveHandle(index)) == NULL) { in Sun_sasScsiReportLUNs()
117 status = verifyAdapter(hba_ptr); in Sun_sasScsiReportLUNs()
128 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasScsiReportLUNs()
H A DSun_sasGetPhyStatistics.c41 struct sun_sas_hba *hba_ptr; in Sun_sasGetPhyStatistics() local
70 if ((hba_ptr = Retrieve_Sun_sasHandle(handle)) == NULL) { in Sun_sasGetPhyStatistics()
79 status = verifyAdapter(hba_ptr); in Sun_sasGetPhyStatistics()
87 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetPhyStatistics()
H A DSun_sasScsiReadCapacity.c76 struct sun_sas_hba *hba_ptr = NULL; in Sun_sasScsiReadCapacity() local
109 if ((hba_ptr = RetrieveHandle(index)) == NULL) { in Sun_sasScsiReadCapacity()
117 status = verifyAdapter(hba_ptr); in Sun_sasScsiReadCapacity()
135 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasScsiReadCapacity()
H A Dsun_sas.h275 extern HBA_STATUS verifyAdapter(struct sun_sas_hba *hba_ptr);