/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | sun_sas.c | 161 struct sun_sas_hba *hba_ptr = NULL; in RetrieveHandle() local 163 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() 182 struct sun_sas_hba *hba_ptr = NULL; in ExtractHandle() local 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() [all …]
|
H A D | Sun_sasGetAdapterName.c | 44 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 D | Sun_sasOpenAdapter.c | 42 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 D | Sun_sasGetPortType.c | 41 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 D | Sun_sasGetAdapterPortAttributes.c | 40 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 D | Sun_sasGetDiscoveredPortAttributes.c | 44 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 D | devtree_hba_disco.c | 40 free_hba_port(struct sun_sas_hba *hba_ptr) in free_hba_port() argument 52 hba_port = hba_ptr->first_port; in free_hba_port() 87 hba_ptr->first_port = NULL; in free_hba_port() 94 add_hba_port_info(di_node_t portNode, struct sun_sas_hba *hba_ptr, int protocol) in add_hba_port_info() argument 107 if (hba_ptr == NULL) { in add_hba_port_info() 297 if (hba_ptr->first_port == NULL) { in add_hba_port_info() 299 hba_ptr->first_port = port_ptr; in add_hba_port_info() 301 port_ptr->index = hba_ptr->first_port->index + 1; in add_hba_port_info() 302 port_ptr->next = hba_ptr->first_port; in add_hba_port_info() 303 hba_ptr->first_port = port_ptr; in add_hba_port_info() [all …]
|
H A D | Sun_sasFreeLibrary.c | 69 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 D | Sun_sasRefreshAdapterConfiguration.c | 87 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 D | Sun_sasGetPortAttributesByWWN.c | 41 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 D | Sun_sasGetNumberOfAdapters.c | 40 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 D | Sun_sasGetNumberOfPorts.c | 39 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 D | Sun_sasGetAdapterAttributes.c | 39 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 D | event.c | 85 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 D | Sun_sasGetSASPhyAttributes.c | 37 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 D | Sun_sasSendSMPPassThru.c | 96 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 D | verify.c | 36 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 D | Sun_sasGetTargetMapping.c | 41 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 D | Sun_sasScsiInquiry.c | 83 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 D | Sun_sasRefreshInformation.c | 88 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 D | Sun_sasScsiReportLUNs.c | 76 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 D | Sun_sasGetPhyStatistics.c | 41 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 D | Sun_sasScsiReadCapacity.c | 76 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 D | sun_sas.h | 275 extern HBA_STATUS verifyAdapter(struct sun_sas_hba *hba_ptr);
|