Lines Matching refs:port

51  * @memo	    Add a new port to this HBA
52 * @precondition Port must be a valid port on this HBA
54 * @exception Throws InternalError when the HBA port count exceeds
56 * @param port The Port to add to this HBA
59 * routine to add a port to its existing HBA instance.
61 void HBA::addPort(HBAPort* port) {
71 portsByWWN[port->getPortWWN()] = port;
72 portsByIndex.insert(portsByIndex.end(), port);
94 * @memo Retrieve an HBA port based on a Port WWN
96 * known HBA port.
97 * @return HBAPort* to the port with a matching Port WWN
98 * @param wwn The wwn of the desired HBA port
100 * @doc Fetch an HBA port based on WWN. If the port is not
106 HBAPort *port = NULL;
116 port = portsByWWN[wwn];
118 return (port);
132 * (node or port)
144 for (CI port = portsByWWN.begin(); port != portsByWWN.end();
145 port++) {
146 if (port->second->getPortWWN() == wwn) {
150 if (port->second->getNodeWWN() == wwn) {
164 * @memo Return true if one port on the HBA matches the stated WWN
166 * @return TRUE if the wwn is port wwn
167 * @return FALSE if the wwn is not port wwn
175 for (CI port = portsByWWN.begin(); port != portsByWWN.end();
176 port++) {
177 if (port->second->getPortWWN() == wwn) {
181 if (port->second->getNodeWWN() == wwn) {
195 * @memo Fetch the port based on index.
197 * @return HBAPort* the port matching the index
198 * @param index - the zero based index of the port to retrieve
222 * @memo Fetch the index based on port wwn
223 * @precondition wwn must be an valid port wwn on this HBA
225 * @return the zero based port index matching the wwn
226 * @param wwn The port wwn to look for
254 * @doc This routine will compare each port within both
280 * @postcondition Each port will have the same RNID value set
283 * @param info The RNID information to program for each HBA port
292 for (CI port = portsByWWN.begin(); port != portsByWWN.end();
293 port++) {
294 port->second->setRNID(info);
311 * If the HBA is not present (if any port is not present)
318 for (CI port = portsByWWN.begin(); port != portsByWWN.end();
319 port++) {
320 port->second->validatePresent();