Lines Matching refs:Handle

25 #include "Handle.h"
45 pthread_mutex_t Handle::staticLock = PTHREAD_MUTEX_INITIALIZER;
50 HBA_HANDLE Handle::prevOpen = 0;
55 HBA_HANDLE Handle::prevTgtOpen = 0x8000;
58 * Global map from HBA_HANDLE to Handle pointers (our global list)
60 map<HBA_HANDLE, Handle*> Handle::openHandles;
74 Handle::Handle(HBA *myhba, int portIndex) {
75 map<HBA_HANDLE, Handle*>::iterator mapend;
76 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");
386 int Handle::doForceLip() {
387 Trace log("Handle::doForceLip");
399 HBA_ADAPTERATTRIBUTES Handle::npivGetHBAAttributes() {
400 Trace log("Handle::npivGetHBAAttributes");
423 HBA_PORTATTRIBUTES Handle::getPortAttributes(uint64_t wwn) {
424 Trace log("Handle::getPortAttributes");