Lines Matching refs:attrs

48 static int processHBA(HBA_HANDLE handle, HBA_ADAPTERATTRIBUTES attrs,
60 HBA_ADAPTERATTRIBUTES *attrs, HBA_PORTATTRIBUTES *port, int *portIndex);
85 HBA_ADAPTERATTRIBUTES *attrs, HBA_PORTATTRIBUTES *port, int *portIndex) in retrieveAttrs() argument
92 if (attrs == NULL || port == NULL || portIndex == NULL) { in retrieveAttrs()
99 memset(attrs, 0, sizeof (HBA_ADAPTERATTRIBUTES)); in retrieveAttrs()
100 status = HBA_GetAdapterAttributes(handle, attrs); in retrieveAttrs()
106 status = HBA_GetAdapterAttributes(handle, attrs); in retrieveAttrs()
124 for (portCtr = 0; portCtr < attrs->NumberOfPorts; portCtr++) { in retrieveAttrs()
139 if (portCtr >= attrs->NumberOfPorts) { in retrieveAttrs()
371 processHBA(HBA_HANDLE handle, HBA_ADAPTERATTRIBUTES attrs, int portIndex, in processHBA() argument
381 attrs.VendorSpecificID != 0xFC0E) { in processHBA()
384 printHBAPortInfo(&port, &attrs, mode); in processHBA()
610 HBA_ADAPTERATTRIBUTES attrs; in fc_util_list_remoteport() local
680 memset(&attrs, 0, sizeof (attrs)); in fc_util_list_remoteport()
682 if (retrieveAttrs(handle, myhbaPortWWN, &attrs, &port, in fc_util_list_remoteport()
691 processHBA(handle, attrs, portCount, port, map, REMOTE_PORT, in fc_util_list_remoteport()
731 HBA_ADAPTERATTRIBUTES attrs; in fc_util_list_hbaport() local
837 memset(&attrs, 0, sizeof (attrs)); in fc_util_list_hbaport()
839 if (retrieveAttrs(handle, myWWN, &attrs, &port, in fc_util_list_hbaport()
844 processHBA(handle, attrs, portIndex, port, NULL, in fc_util_list_hbaport()
847 attrs.VendorSpecificID != 0xFC0E && in fc_util_list_hbaport()
881 memset(&attrs, 0, sizeof (attrs)); in fc_util_list_hbaport()
884 &attrs); in fc_util_list_hbaport()
891 &attrs); in fc_util_list_hbaport()
908 portIndex < attrs.NumberOfPorts; in fc_util_list_hbaport()
927 processHBA(handle, attrs, portIndex, port, in fc_util_list_hbaport()
932 attrs.VendorSpecificID != 0xFC0E && in fc_util_list_hbaport()
968 memset(&attrs, 0, sizeof (attrs)); in fc_util_list_hbaport()
969 if ((status = HBA_GetAdapterAttributes(handle, &attrs)) in fc_util_list_hbaport()
982 portIndex < attrs.NumberOfPorts; in fc_util_list_hbaport()
1001 processHBA(handle, attrs, portIndex, port, in fc_util_list_hbaport()
1265 HBA_ADAPTERATTRIBUTES attrs; in fc_util_list_logicalunit() local
1314 memset(&attrs, 0, sizeof (attrs)); in fc_util_list_logicalunit()
1316 status = HBA_GetAdapterAttributes(handle, &attrs); in fc_util_list_logicalunit()
1321 status = HBA_GetAdapterAttributes(handle, &attrs); in fc_util_list_logicalunit()
1338 for (portIndex = 0; portIndex < attrs.NumberOfPorts; in fc_util_list_logicalunit()