Lines Matching defs:index
195 * @memo Fetch the port based on index.
196 * @exception IllegalIndexException Thrown if the index is not valid
197 * @return HBAPort* the port matching the index
198 * @param index - the zero based index of the port to retrieve
201 HBAPort* HBA::getPortByIndex(int index) {
205 log.debug("Port index size %d index %d ", portsByIndex.size(),
206 index);
208 if (index >= portsByIndex.size() || index < 0) {
212 HBAPort *tmp = portsByIndex[index];
222 * @memo Fetch the index based on port wwn
225 * @return the zero based port index matching the wwn
232 int index;
233 for (index = 0; index<portsByIndex.size(); index++) {
234 HBAPort *tmp = portsByIndex[index];
240 return index;