Lines Matching refs:numPortsReq
664 unsigned int numPortsReq = (ports == NULL) ? 0 : *num_ports; in listAudioPorts() local
667 data.writeInt32(numPortsReq); in listAudioPorts()
674 if (numPortsReq > *num_ports) { in listAudioPorts()
675 numPortsReq = *num_ports; in listAudioPorts()
677 if (numPortsReq > 0) { in listAudioPorts()
678 reply.read(ports, numPortsReq * sizeof(struct audio_port)); in listAudioPorts()
1898 unsigned int numPortsReq = data.readInt32(); in onTransact() local
1899 if (numPortsReq > MAX_ITEMS_PER_LIST) { in onTransact()
1900 numPortsReq = MAX_ITEMS_PER_LIST; in onTransact()
1902 unsigned int numPorts = numPortsReq; in onTransact()
1904 (struct audio_port *)calloc(numPortsReq, sizeof(struct audio_port)); in onTransact()
1916 if (numPortsReq > numPorts) { in onTransact()
1917 numPortsReq = numPorts; in onTransact()
1919 reply->write(ports, numPortsReq * sizeof(struct audio_port)); in onTransact()