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

/illumos-gate/usr/src/lib/sun_sas/common/
H A DSun_sasGetAdapterName.c39 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 DSun_sasOpenAdapter.c39 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 DSun_sasGetNumberOfAdapters.c36 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 DSun_sasGetAdapterAttributes.c35 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 DSun_sasGetPortType.c39 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 DSun_sasGetNumberOfPorts.c39 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 DSun_sasGetAdapterPortAttributes.c37 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 Dsun_sas.c159 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 DSun_sasFreeLibrary.c59 * 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 DSun_sasRefreshAdapterConfiguration.c84 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 DSun_sasGetDiscoveredPortAttributes.c40 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 Dverify.c36 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 DSun_sasGetSASPhyAttributes.c37 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 DSun_sasGetPortAttributesByWWN.c38 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 Devent.c82 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;
H A DSun_sasRefreshInformation.c88 struct sun_sas_hba *hba_ptr; local
126 hba_ptr = RetrieveHandle(oHandle->adapterIndex);
127 wa.devpath = hba_ptr->device_path;
H A DSun_sasGetTargetMapping.c41 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 Ddevtree_hba_disco.c35 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 DSun_sasSendSMPPassThru.c92 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 DSun_sasScsiReportLUNs.c76 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 DSun_sasScsiInquiry.c80 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 DSun_sasGetPhyStatistics.c37 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 DSun_sasScsiReadCapacity.c76 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 Dsun_sas.h275 extern HBA_STATUS verifyAdapter(struct sun_sas_hba *hba_ptr);

Completed in 85 milliseconds