Lines Matching defs:port
55 // Add first port
71 log.debug("Fetching other port %d", i);
86 HBAPort *port = getPortByIndex(0);
87 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) ==
90 port->getPath().c_str());
103 log.debug("Other port %d opened", i);
128 log.debug("About to add port %d (%s)", i, nextPath);
157 HBAPort *port = getPortByIndex(portIndex);
158 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == -1) {
167 throw IOError(port);
221 HBAPort *port = getPortByIndex(0);
224 if ((fd = open(port->getPath().c_str(), O_RDONLY | O_EXCL)) == -1) {
232 throw IOError(port);
269 HBAPort *port = getPortByIndex(portIndex);
270 if ((fd = open(port->getPath().c_str(), O_NDELAY | O_RDONLY)) == -1) {
279 throw IOError(port);