Lines Matching refs:handle

48 static int processHBA(HBA_HANDLE handle, HBA_ADAPTERATTRIBUTES attrs,
51 static void processRemotePort(HBA_HANDLE handle, HBA_WWN portWWN,
53 static void handleRemotePort(HBA_HANDLE handle, HBA_WWN portWWN,
55 static void printLinkStat(HBA_HANDLE handle, HBA_WWN hbaportWWN,
57 static void handleScsiTarget(HBA_HANDLE handle, HBA_WWN hbaPortWWN,
59 static int retrieveAttrs(HBA_HANDLE handle, HBA_WWN hbaPortWWN,
62 HBA_WWN initiatorPortWWN, HBA_HANDLE handle, boolean_t verbose);
84 retrieveAttrs(HBA_HANDLE handle, HBA_WWN hbaPortWWN, in retrieveAttrs() argument
100 status = HBA_GetAdapterAttributes(handle, attrs); in retrieveAttrs()
106 status = HBA_GetAdapterAttributes(handle, attrs); in retrieveAttrs()
113 "attributes handle(%d) Reason: "), handle); in retrieveAttrs()
125 if ((status = HBA_GetAdapterPortAttributes(handle, in retrieveAttrs()
168 getTargetMapping(HBA_HANDLE handle, HBA_WWN hbaPortWWN, in getTargetMapping() argument
186 status = HBA_GetFcpTargetMappingV2(handle, hbaPortWWN, map); in getTargetMapping()
197 status = HBA_GetFcpTargetMappingV2(handle, hbaPortWWN, map); in getTargetMapping()
223 handleRemotePort(HBA_HANDLE handle, HBA_WWN portWWN, HBA_WWN remotePortWWN, in handleRemotePort() argument
241 status = HBA_ScsiReportLUNsV2(handle, portWWN, remotePortWWN, in handleRemotePort()
264 printLinkStat(HBA_HANDLE handle, HBA_WWN hbaPortWWN, HBA_WWN destWWN) in printLinkStat() argument
272 status = HBA_SendRLS(handle, hbaPortWWN, destWWN, in printLinkStat()
283 printHBANPIVPortInfo(HBA_HANDLE handle, int portindex) in printHBANPIVPortInfo() argument
291 status = Sun_HBA_GetPortNPIVAttributes(handle, portindex, &portattrs); in printHBANPIVPortInfo()
296 handle, portindex, &portattrs); in printHBANPIVPortInfo()
325 status = Sun_HBA_GetNPIVPortInfo(handle, in printHBANPIVPortInfo()
330 status = Sun_HBA_GetNPIVPortInfo(handle, in printHBANPIVPortInfo()
371 processHBA(HBA_HANDLE handle, HBA_ADAPTERATTRIBUTES attrs, int portIndex, in processHBA() argument
386 printLinkStat(handle, port.PortWWN, port.PortWWN); in processHBA()
396 status = HBA_GetDiscoveredPortAttributes(handle, in processHBA()
407 handleRemotePort(handle, port.PortWWN, discPort.PortWWN, in processHBA()
410 printLinkStat(handle, port.PortWWN, in processHBA()
414 handleScsiTarget(handle, port.PortWWN, in processHBA()
433 processRemotePort(HBA_HANDLE handle, HBA_WWN portWWN, in processRemotePort() argument
452 status = HBA_GetPortAttributesByWWN(handle, myremotePortWWN, in processRemotePort()
457 status = HBA_GetPortAttributesByWWN(handle, in processRemotePort()
470 handleRemotePort(handle, portWWN, myremotePortWWN, &discPort); in processRemotePort()
472 printLinkStat(handle, portWWN, myremotePortWWN); in processRemotePort()
475 handleScsiTarget(handle, portWWN, in processRemotePort()
493 handleScsiTarget(HBA_HANDLE handle, HBA_WWN hbaPortWWN, HBA_WWN scsiTargetWWN, in handleScsiTarget() argument
511 status = HBA_ScsiReportLUNsV2(handle, hbaPortWWN, in handleScsiTarget()
542 handle, in handleScsiTarget()
611 HBA_HANDLE handle; in fc_util_list_remoteport() local
650 if ((status = HBA_OpenAdapterByWWN(&handle, myhbaPortWWN)) in fc_util_list_remoteport()
652 status = Sun_HBA_OpenTgtAdapterByWWN(&handle, myhbaPortWWN); in fc_util_list_remoteport()
676 getTargetMapping(handle, myhbaPortWWN, &map); in fc_util_list_remoteport()
682 if (retrieveAttrs(handle, myhbaPortWWN, &attrs, &port, in fc_util_list_remoteport()
687 HBA_CloseAdapter(handle); in fc_util_list_remoteport()
691 processHBA(handle, attrs, portCount, port, map, REMOTE_PORT, in fc_util_list_remoteport()
694 processRemotePort(handle, myhbaPortWWN, map, wwnCount, in fc_util_list_remoteport()
700 HBA_CloseAdapter(handle); in fc_util_list_remoteport()
726 HBA_HANDLE handle; in fc_util_list_hbaport() local
776 status = HBA_OpenAdapterByWWN(&handle, myWWN); in fc_util_list_hbaport()
780 status = HBA_OpenAdapterByWWN(&handle, myWWN); in fc_util_list_hbaport()
790 Sun_HBA_OpenTgtAdapterByWWN(&handle, myWWN); in fc_util_list_hbaport()
818 Sun_HBA_OpenTgtAdapterByWWN(&handle, myWWN); in fc_util_list_hbaport()
839 if (retrieveAttrs(handle, myWWN, &attrs, &port, in fc_util_list_hbaport()
841 HBA_CloseAdapter(handle); in fc_util_list_hbaport()
844 processHBA(handle, attrs, portIndex, port, NULL, in fc_util_list_hbaport()
848 printHBANPIVPortInfo(handle, portIndex) != 0) { in fc_util_list_hbaport()
851 HBA_CloseAdapter(handle); in fc_util_list_hbaport()
874 if ((handle = HBA_OpenAdapter(adapterName)) == 0) { in fc_util_list_hbaport()
883 Sun_HBA_NPIVGetAdapterAttributes(handle, in fc_util_list_hbaport()
890 Sun_HBA_NPIVGetAdapterAttributes(handle, in fc_util_list_hbaport()
899 "handle(%d) Reason: "), handle); in fc_util_list_hbaport()
902 HBA_CloseAdapter(handle); in fc_util_list_hbaport()
912 handle, portIndex, &port)) in fc_util_list_hbaport()
927 processHBA(handle, attrs, portIndex, port, in fc_util_list_hbaport()
933 printHBANPIVPortInfo(handle, in fc_util_list_hbaport()
938 HBA_CloseAdapter(handle); in fc_util_list_hbaport()
961 if ((handle = Sun_HBA_OpenTgtAdapter(adapterName)) in fc_util_list_hbaport()
969 if ((status = HBA_GetAdapterAttributes(handle, &attrs)) in fc_util_list_hbaport()
974 handle); in fc_util_list_hbaport()
986 handle, portIndex, &port)) in fc_util_list_hbaport()
1001 processHBA(handle, attrs, portIndex, port, in fc_util_list_hbaport()
1005 HBA_CloseAdapter(handle); in fc_util_list_hbaport()
1052 HBA_WWN initiatorPortWWN, HBA_HANDLE handle, boolean_t verbose) in searchDevice() argument
1097 handle, in searchDevice()
1212 handle, in searchDevice()
1263 HBA_HANDLE handle; in fc_util_list_logicalunit() local
1307 if ((handle = HBA_OpenAdapter(adapterName)) == 0) { 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()
1329 "handle(%d) Reason: "), handle); in fc_util_list_logicalunit()
1333 HBA_CloseAdapter(handle); in fc_util_list_logicalunit()
1341 if ((status = HBA_GetAdapterPortAttributes(handle, in fc_util_list_logicalunit()
1358 getTargetMapping(handle, port.PortWWN, &map); in fc_util_list_logicalunit()
1364 handle, verbose); in fc_util_list_logicalunit()
1368 HBA_CloseAdapter(handle); in fc_util_list_logicalunit()