Lines Matching refs:id
81 /* Start the search for a free id from the previously assigned one */
82 id = prevOpen + 1;
83 while (id != prevOpen) {
85 if (id > MAX_INIT_HANDLE_ID)
86 id = 1;
88 if (openHandles.find(id) == mapend) {
89 /* the id is not in use */
92 id ++;
94 if (id == prevOpen) {
95 /* no usable id for now */
99 prevOpen = id;
101 openHandles[id] = this;
131 /* Start the search for a free id from the previously assigned one */
132 id = prevTgtOpen + 1;
133 while (id != prevTgtOpen) {
135 * Exceeds the max valid target id value,
138 if (id > MAX_TGT_HANDLE_ID)
139 id = 0x8001;
141 if (openHandles.find(id) == mapend) {
142 /* the id is not in use */
145 id ++;
147 if (id == prevTgtOpen) {
148 /* no usable id for now */
152 prevTgtOpen = id;
154 openHandles[id] = this;
194 * @exception InvalidHandleException Thrown if the id does not match
197 * @param id The id of the handle to fetch
204 Handle* Handle::findHandle(HBA_HANDLE id) {
205 Trace log("Handle::findHandle(id)");
209 if (openHandles.find(id) == openHandles.end()) {
212 tmp = openHandles[id];
284 * @param id The handle to close
286 void Handle::closeHandle(HBA_HANDLE id) {
288 Handle *myHandle = findHandle(id);
306 tmp = (HBA_HANDLE) id;
322 return (this->id == comp.id);