Lines Matching refs:Handle

28 #include "Handle.h"
48 pthread_mutex_t Handle::staticLock = PTHREAD_MUTEX_INITIALIZER;
53 HBA_HANDLE Handle::prevOpen = 0;
58 HBA_HANDLE Handle::prevTgtOpen = 0x8000;
61 * Global map from HBA_HANDLE to Handle pointers (our global list)
63 map<HBA_HANDLE, Handle*> Handle::openHandles;
75 Handle::Handle(HBA *myhba) {
76 map<HBA_HANDLE, Handle*>::iterator mapend;
77 Trace log("Handle::Handle");
118 Handle::Handle(HBA *myhba, MODE m) {
119 map<HBA_HANDLE, Handle*>::iterator mapend;
120 Trace log("Handle::Handle");
127 Handle(myhba, TARGET);
163 Handle::~Handle() {
164 Trace log("Handle::~Handle");
196 * @return The open Handle
200 * an open Handle, but we use an instance of the Handle
202 * from the API integer value to related the Handle instance.
204 Handle* Handle::findHandle(HBA_HANDLE id) {
205 Trace log("Handle::findHandle(id)");
206 Handle *tmp = NULL;
224 * @exception IllegalWWNException Thrown if no matching open Handle found
230 Handle* Handle::findHandle(uint64_t wwn) {
231 Trace log("Handle::findHandle(wwn)");
232 Handle *tmp = NULL;
264 void Handle::refresh() {
265 Trace log("Handle::refresh");
286 void Handle::closeHandle(HBA_HANDLE id) {
287 Trace log("Handle::closeHandle");
288 Handle *myHandle = findHandle(id);
298 * Call this routine to convert a Handle instance into
301 HBA_HANDLE Handle::getHandle() {
302 Trace log("Handle::getHandle");
320 bool Handle::operator==(Handle comp) {
321 Trace log("Handle::operator==");
326 * @memo Get the underlying Handle port based on index
327 * @return The Handle port for the given port index
330 HandlePort* Handle::getHandlePortByIndex(int index) {
331 Trace log("Handle::getHandlePortByIndex");
337 * @memo Get the underlying Handle port based on Port wwn
343 HandlePort* Handle::getHandlePort(uint64_t wwn) {
344 Trace log("Handle::getHandlePort");
367 HBA_ADAPTERATTRIBUTES Handle::getHBAAttributes() {
368 Trace log("Handle::getHBAAttributes");
385 int Handle::doForceLip() {
386 Trace log("Handle::doForceLip");
398 HBA_ADAPTERATTRIBUTES Handle::npivGetHBAAttributes() {
399 Trace log("Handle::npivGetHBAAttributes");
421 HBA_PORTATTRIBUTES Handle::getPortAttributes(uint64_t wwn) {
422 Trace log("Handle::getPortAttributes");