/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasGetNumberOfAdapters.c | 36 struct sun_sas_hba *hba_ptr; local 40 for (count = 0, hba_ptr = global_hba_head; 41 hba_ptr != NULL; hba_ptr = hba_ptr->next, count++) {}
|
H A D | Sun_sasOpenAdapter.c | 39 struct sun_sas_hba *hba_ptr; local 46 for (hba_ptr = global_hba_head; hba_ptr != NULL; 47 hba_ptr = hba_ptr->next) { 48 if (strcmp(hba_ptr->handle_name, name) == 0) { 53 if (hba_ptr == NULL) { 58 return (CreateHandle(hba_ptr->index));
|
H A D | Sun_sasGetAdapterName.c | 39 struct sun_sas_hba *hba_ptr; local 46 for (hba_ptr = global_hba_head; hba_ptr != NULL; 47 hba_ptr = hba_ptr->next) { 48 if (hba_ptr->index == index) { 49 if (hba_ptr->handle_name == NULL) { 50 hba_ptr = NULL; 54 (void) strlcpy(name, hba_ptr->handle_name, 55 strlen(hba_ptr [all...] |
H A D | Sun_sasGetAdapterAttributes.c | 35 struct sun_sas_hba *hba_ptr; local 46 hba_ptr = RetrieveHandle(index); 47 if (hba_ptr == NULL) { 55 (void) memcpy(attributes, &hba_ptr->adapter_attributes,
|
H A D | verify.c | 36 verifyAdapter(struct sun_sas_hba *hba_ptr) { argument 45 if (hba_ptr == NULL) { 46 log(LOG_DEBUG, ROUTINE, "Null hba_ptr argument"); 49 (void) strlcpy(path, hba_ptr->device_path, sizeof (path));
|
H A D | Sun_sasGetAdapterPortAttributes.c | 37 struct sun_sas_hba *hba_ptr; local 51 hba_ptr = RetrieveHandle(index); 52 if (hba_ptr == NULL) { 60 status = verifyAdapter(hba_ptr); 68 if (hba_ptr->first_port == NULL) { 70 if (hba_ptr->device_path) { 73 hba_ptr->device_path); 77 "data", hba_ptr->index); 83 for (hba_port_ptr = hba_ptr->first_port;
|
H A D | Sun_sasGetNumberOfPorts.c | 39 struct sun_sas_hba *hba_ptr; local 50 hba_ptr = RetrieveHandle(index); 51 if (hba_ptr == NULL) { 59 if (hba_ptr->first_port == NULL) { 69 for (count = 0, hba_port_ptr = hba_ptr->first_port;
|
H A D | Sun_sasGetPortType.c | 39 struct sun_sas_hba *hba_ptr; local 51 hba_ptr = RetrieveHandle(index); 52 if (hba_ptr == NULL) { 60 if (hba_ptr->first_port == NULL) { 62 if (hba_ptr->device_path) { 65 "data.", hba_ptr->device_path); 69 "no port data", hba_ptr->index); 76 for (hba_port_ptr = hba_ptr->first_port;
|
H A D | Sun_sasGetSASPhyAttributes.c | 37 struct sun_sas_hba *hba_ptr; local 48 if ((hba_ptr = Retrieve_Sun_sasHandle(handle)) == NULL) { 55 status = verifyAdapter(hba_ptr); 62 for (hba_port_ptr = hba_ptr->first_port;
|
H A D | Sun_sasFreeLibrary.c | 59 * Internal routine to free up hba_ptr's (and all sub-structures) 62 struct sun_sas_hba *hba_ptr = NULL; local 77 for (hba_ptr = hba; 78 hba_ptr != NULL; 79 hba_ptr = hba_ptr->next) { 81 hba_port = hba_ptr->first_port; 114 open_handle = hba_ptr->open_handles; 124 last_hba_ptr = hba_ptr;
|
H A D | Sun_sasGetDiscoveredPortAttributes.c | 40 struct sun_sas_hba *hba_ptr; local 54 hba_ptr = RetrieveHandle(index); 55 if (hba_ptr == NULL) { 64 status = verifyAdapter(hba_ptr); 73 if (hba_ptr->first_port == NULL) { 75 if (hba_ptr->device_path) { 78 hba_ptr->device_path); 82 "data", hba_ptr->index); 89 for (hba_port_ptr = hba_ptr->first_port;
|
H A D | Sun_sasGetPortAttributesByWWN.c | 38 struct sun_sas_hba *hba_ptr; local 55 hba_ptr = RetrieveHandle(index); 56 if (hba_ptr == NULL) { 64 status = verifyAdapter(hba_ptr); 72 if (hba_ptr->first_port == NULL) { 74 if (hba_ptr->device_path) { 77 "no port data", hba_ptr->device_path); 81 "no port data", hba_ptr->index); 89 for (hba_port_ptr = hba_ptr->first_port;
|
H A D | Sun_sasGetTargetMapping.c | 41 struct sun_sas_hba *hba_ptr; local 53 hba_ptr = RetrieveHandle(index); 54 if (hba_ptr == NULL) { 78 for (hba_port_ptr = hba_ptr->first_port; hba_port_ptr != NULL;
|
H A D | Sun_sasRefreshAdapterConfiguration.c | 84 struct sun_sas_hba *hba_ptr; local 115 for (hba_ptr = global_hba_head; hba_ptr != NULL; 116 hba_ptr = hba_ptr->next) { 117 wa.devpath = hba_ptr->device_path; 137 hba_ptr->device_path); 138 hba_ptr->invalid = B_TRUE;
|
H A D | Sun_sasRefreshInformation.c | 88 struct sun_sas_hba *hba_ptr; local 126 hba_ptr = RetrieveHandle(oHandle->adapterIndex); 127 wa.devpath = hba_ptr->device_path;
|
H A D | Sun_sasGetPhyStatistics.c | 37 struct sun_sas_hba *hba_ptr; local 66 if ((hba_ptr = Retrieve_Sun_sasHandle(handle)) == NULL) { 75 status = verifyAdapter(hba_ptr); 83 for (hba_port_ptr = hba_ptr->first_port;
|
H A D | Sun_sasScsiReportLUNs.c | 76 struct sun_sas_hba *hba_ptr = NULL; local 109 if ((hba_ptr = RetrieveHandle(index)) == NULL) { 117 status = verifyAdapter(hba_ptr); 128 for (hba_port_ptr = hba_ptr->first_port;
|
H A D | Sun_sasScsiInquiry.c | 80 struct sun_sas_hba *hba_ptr = NULL; local 113 if ((hba_ptr = RetrieveHandle(index)) == NULL) { 121 status = verifyAdapter(hba_ptr); 134 if (hba_ptr->device_path == NULL) { 147 for (hba_port_ptr = hba_ptr->first_port;
|
H A D | Sun_sasScsiReadCapacity.c | 76 struct sun_sas_hba *hba_ptr = NULL; local 109 if ((hba_ptr = RetrieveHandle(index)) == NULL) { 117 status = verifyAdapter(hba_ptr); 135 for (hba_port_ptr = hba_ptr->first_port;
|
H A D | Sun_sasSendSMPPassThru.c | 92 struct sun_sas_hba *hba_ptr; local 116 if ((hba_ptr = Retrieve_Sun_sasHandle(handle)) == NULL) { 123 status = verifyAdapter(hba_ptr); 136 if (hba_ptr->device_path == NULL) { 148 for (hba_port_ptr = hba_ptr->first_port;
|
H A D | sun_sas.c | 159 struct sun_sas_hba *hba_ptr = NULL; local 161 for (hba_ptr = global_hba_head; hba_ptr != NULL; 162 hba_ptr = hba_ptr->next) { 163 if (hba_ptr->index == index) 167 return (hba_ptr); 180 struct sun_sas_hba *hba_ptr = NULL; local 182 for (hba_ptr = global_hba_head; 183 hba_ptr ! 320 struct sun_sas_hba *hba_ptr = NULL; local [all...] |
H A D | devtree_hba_disco.c | 35 free_hba_port(struct sun_sas_hba *hba_ptr) argument 47 hba_port = hba_ptr->first_port; 82 hba_ptr->first_port = NULL; 89 add_hba_port_info(di_node_t portNode, struct sun_sas_hba *hba_ptr, int protocol) argument 102 if (hba_ptr == NULL) { 292 if (hba_ptr->first_port == NULL) { 294 hba_ptr->first_port = port_ptr; 296 port_ptr->index = hba_ptr->first_port->index + 1; 297 port_ptr->next = hba_ptr->first_port; 298 hba_ptr 305 refresh_hba(di_node_t hbaNode, struct sun_sas_hba *hba_ptr) argument 366 struct sun_sas_hba *new_hba, *hba_ptr; local [all...] |
H A D | event.c | 82 struct sun_sas_hba *hba_ptr; local 90 for (hba_ptr = global_hba_head; hba_ptr != NULL; 91 hba_ptr = hba_ptr->next) { 93 for (hba_port_ptr = hba_ptr->first_port;
|