Lines Matching refs:port
260 AMIDI_Port *port = new AMIDI_Port; in AMIDI_openPort() local
261 port->state = MIDI_PORT_STATE_OPEN_IDLE; in AMIDI_openPort()
262 port->device = device; in AMIDI_openPort()
263 port->binderToken = portToken; in AMIDI_openPort()
264 port->ufd = std::move(ufd); in AMIDI_openPort()
266 *portPtr = port; in AMIDI_openPort()
271 static void AMIDI_closePort(AMIDI_Port *port) { in AMIDI_closePort() argument
272 if (port == nullptr) { in AMIDI_closePort()
277 while (!port->state.compare_exchange_weak(portState, MIDI_PORT_STATE_CLOSED)) { in AMIDI_closePort()
283 Status txResult = port->device->server->closePort(port->binderToken); in AMIDI_closePort()
288 delete port; in AMIDI_closePort()
305 MidiReceiver(AMIDI_Port *port) : mPort(port) {} in MidiReceiver() argument