Home
last modified time | relevance | path

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

/titanic_44/usr/src/lib/sun_sas/common/
H A Dsun_sas.c159 struct sun_sas_hba *hba_ptr = NULL; in RetrieveHandle() local
161 for (hba_ptr = global_hba_head; hba_ptr != NULL; in RetrieveHandle()
162 hba_ptr = hba_ptr->next) { in RetrieveHandle()
163 if (hba_ptr->index == index) in RetrieveHandle()
167 return (hba_ptr); in RetrieveHandle()
180 struct sun_sas_hba *hba_ptr = NULL; in ExtractHandle() local
182 for (hba_ptr = global_hba_head; in ExtractHandle()
183 hba_ptr != NULL; in ExtractHandle()
184 last = hba_ptr, hba_ptr = hba_ptr->next) { in ExtractHandle()
185 if (hba_ptr->index == index) { in ExtractHandle()
[all …]
H A DSun_sasGetAdapterName.c39 struct sun_sas_hba *hba_ptr; in Sun_sasGetAdapterName() local
46 for (hba_ptr = global_hba_head; hba_ptr != NULL; in Sun_sasGetAdapterName()
47 hba_ptr = hba_ptr->next) { in Sun_sasGetAdapterName()
48 if (hba_ptr->index == index) { in Sun_sasGetAdapterName()
49 if (hba_ptr->handle_name == NULL) { in Sun_sasGetAdapterName()
50 hba_ptr = NULL; in Sun_sasGetAdapterName()
54 (void) strlcpy(name, hba_ptr->handle_name, in Sun_sasGetAdapterName()
55 strlen(hba_ptr->handle_name)+1); in Sun_sasGetAdapterName()
60 if (hba_ptr == NULL) { in Sun_sasGetAdapterName()
H A DSun_sasOpenAdapter.c39 struct sun_sas_hba *hba_ptr; in Sun_sasOpenAdapter() local
46 for (hba_ptr = global_hba_head; hba_ptr != NULL; in Sun_sasOpenAdapter()
47 hba_ptr = hba_ptr->next) { in Sun_sasOpenAdapter()
48 if (strcmp(hba_ptr->handle_name, name) == 0) { in Sun_sasOpenAdapter()
53 if (hba_ptr == NULL) { in Sun_sasOpenAdapter()
58 return (CreateHandle(hba_ptr->index)); in Sun_sasOpenAdapter()
H A DSun_sasGetPortType.c39 struct sun_sas_hba *hba_ptr; in Sun_sasGetPortType() local
51 hba_ptr = RetrieveHandle(index); in Sun_sasGetPortType()
52 if (hba_ptr == NULL) { in Sun_sasGetPortType()
60 if (hba_ptr->first_port == NULL) { in Sun_sasGetPortType()
62 if (hba_ptr->device_path) { in Sun_sasGetPortType()
65 "data.", hba_ptr->device_path); in Sun_sasGetPortType()
69 "no port data", hba_ptr->index); in Sun_sasGetPortType()
76 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetPortType()
H A DSun_sasGetAdapterPortAttributes.c37 struct sun_sas_hba *hba_ptr; in Sun_sasGetAdapterPortAttributes() local
51 hba_ptr = RetrieveHandle(index); in Sun_sasGetAdapterPortAttributes()
52 if (hba_ptr == NULL) { in Sun_sasGetAdapterPortAttributes()
60 status = verifyAdapter(hba_ptr); in Sun_sasGetAdapterPortAttributes()
68 if (hba_ptr->first_port == NULL) { in Sun_sasGetAdapterPortAttributes()
70 if (hba_ptr->device_path) { in Sun_sasGetAdapterPortAttributes()
73 hba_ptr->device_path); in Sun_sasGetAdapterPortAttributes()
77 "data", hba_ptr->index); in Sun_sasGetAdapterPortAttributes()
83 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetAdapterPortAttributes()
H A DSun_sasGetDiscoveredPortAttributes.c40 struct sun_sas_hba *hba_ptr; in Sun_sasGetDiscoveredPortAttributes() local
54 hba_ptr = RetrieveHandle(index); in Sun_sasGetDiscoveredPortAttributes()
55 if (hba_ptr == NULL) { in Sun_sasGetDiscoveredPortAttributes()
64 status = verifyAdapter(hba_ptr); in Sun_sasGetDiscoveredPortAttributes()
73 if (hba_ptr->first_port == NULL) { in Sun_sasGetDiscoveredPortAttributes()
75 if (hba_ptr->device_path) { in Sun_sasGetDiscoveredPortAttributes()
78 hba_ptr->device_path); in Sun_sasGetDiscoveredPortAttributes()
82 "data", hba_ptr->index); in Sun_sasGetDiscoveredPortAttributes()
89 for (hba_port_ptr = hba_ptr->first_port; in Sun_sasGetDiscoveredPortAttributes()
H A DSun_sasFreeLibrary.c62 struct sun_sas_hba *hba_ptr = NULL; in FreeHBA() local
77 for (hba_ptr = hba; in FreeHBA()
78 hba_ptr != NULL; in FreeHBA()
79 hba_ptr = hba_ptr->next) { in FreeHBA()
81 hba_port = hba_ptr->first_port; in FreeHBA()
114 open_handle = hba_ptr->open_handles; in FreeHBA()
124 last_hba_ptr = hba_ptr; in FreeHBA()
H A DSun_sasRefreshAdapterConfiguration.c84 struct sun_sas_hba *hba_ptr; in Sun_sasRefreshAdapterConfiguration() local
115 for (hba_ptr = global_hba_head; hba_ptr != NULL; in Sun_sasRefreshAdapterConfiguration()
116 hba_ptr = hba_ptr->next) { in Sun_sasRefreshAdapterConfiguration()
117 wa.devpath = hba_ptr->device_path; in Sun_sasRefreshAdapterConfiguration()
137 hba_ptr->device_path); in Sun_sasRefreshAdapterConfiguration()
138 hba_ptr->invalid = B_TRUE; in Sun_sasRefreshAdapterConfiguration()
H A DSun_sasGetNumberOfAdapters.c36 struct sun_sas_hba *hba_ptr; in Sun_sasGetNumberOfAdapters() local
40 for (count = 0, hba_ptr = global_hba_head; in Sun_sasGetNumberOfAdapters()
41 hba_ptr != NULL; hba_ptr = hba_ptr->next, count++) {} in Sun_sasGetNumberOfAdapters()
H A Ddevtree_hba_disco.c35 free_hba_port(struct sun_sas_hba *hba_ptr) in free_hba_port() argument
47 hba_port = hba_ptr->first_port; in free_hba_port()
82 hba_ptr->first_port = NULL; in free_hba_port()
89 add_hba_port_info(di_node_t portNode, struct sun_sas_hba *hba_ptr, int protocol) in add_hba_port_info() argument
102 if (hba_ptr == NULL) { in add_hba_port_info()
292 if (hba_ptr->first_port == NULL) { in add_hba_port_info()
294 hba_ptr->first_port = port_ptr; in add_hba_port_info()
296 port_ptr->index = hba_ptr->first_port->index + 1; in add_hba_port_info()
297 port_ptr->next = hba_ptr->first_port; in add_hba_port_info()
298 hba_ptr->first_port = port_ptr; in add_hba_port_info()
[all …]
H A DSun_sasGetPortAttributesByWWN.c38 struct sun_sas_hba *hba_ptr; in Sun_sasGetPortAttributesByWWN() local
55 hba_ptr = RetrieveHandle(index); in Sun_sasGetPortAttributesByWWN()
56 if (hba_ptr == NULL) { in Sun_sasGetPortAttributesByWWN()
64 status = verifyAdapter(hba_ptr); in Sun_sasGetPortAttributesByWWN()
72 if (hba_ptr->first_port == NULL) { in Sun_sasGetPortAttributesByWWN()
74 if (hba_ptr->device_path) { in Sun_sasGetPortAttributesByWWN()
77 "no port data", hba_ptr->device_path); in Sun_sasGetPortAttributesByWWN()
81 "no port data", hba_ptr->index); in Sun_sasGetPortAttributesByWWN()
89 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.c35 struct sun_sas_hba *hba_ptr; in Sun_sasGetAdapterAttributes() local
46 hba_ptr = RetrieveHandle(index); in Sun_sasGetAdapterAttributes()
47 if (hba_ptr == NULL) { in Sun_sasGetAdapterAttributes()
55 (void) memcpy(attributes, &hba_ptr->adapter_attributes, in Sun_sasGetAdapterAttributes()
H A Devent.c82 struct sun_sas_hba *hba_ptr; in updateMatchingPhy() local
90 for (hba_ptr = global_hba_head; hba_ptr != NULL; in updateMatchingPhy()
91 hba_ptr = hba_ptr->next) { in updateMatchingPhy()
93 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.c92 struct sun_sas_hba *hba_ptr; in Sun_sasSendSMPPassThru() local
116 if ((hba_ptr = Retrieve_Sun_sasHandle(handle)) == NULL) { in Sun_sasSendSMPPassThru()
123 status = verifyAdapter(hba_ptr); in Sun_sasSendSMPPassThru()
136 if (hba_ptr->device_path == NULL) { in Sun_sasSendSMPPassThru()
148 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.c80 struct sun_sas_hba *hba_ptr = NULL; in Sun_sasScsiInquiry() local
113 if ((hba_ptr = RetrieveHandle(index)) == NULL) { in Sun_sasScsiInquiry()
121 status = verifyAdapter(hba_ptr); in Sun_sasScsiInquiry()
134 if (hba_ptr->device_path == NULL) { in Sun_sasScsiInquiry()
147 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.c37 struct sun_sas_hba *hba_ptr; in Sun_sasGetPhyStatistics() local
66 if ((hba_ptr = Retrieve_Sun_sasHandle(handle)) == NULL) { in Sun_sasGetPhyStatistics()
75 status = verifyAdapter(hba_ptr); in Sun_sasGetPhyStatistics()
83 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);