Lines Matching refs:numPortsReq
660 unsigned int numPortsReq = (ports == NULL) ? 0 : *num_ports; in listAudioPorts() local
663 data.writeInt32(numPortsReq); in listAudioPorts()
670 if (numPortsReq > *num_ports) { in listAudioPorts()
671 numPortsReq = *num_ports; in listAudioPorts()
673 if (numPortsReq > 0) { in listAudioPorts()
674 reply.read(ports, numPortsReq * sizeof(struct audio_port)); in listAudioPorts()
1833 unsigned int numPortsReq = data.readInt32(); in onTransact() local
1834 if (numPortsReq > MAX_ITEMS_PER_LIST) { in onTransact()
1835 numPortsReq = MAX_ITEMS_PER_LIST; in onTransact()
1837 unsigned int numPorts = numPortsReq; in onTransact()
1839 (struct audio_port *)calloc(numPortsReq, sizeof(struct audio_port)); in onTransact()
1851 if (numPortsReq > numPorts) { in onTransact()
1852 numPortsReq = numPorts; in onTransact()
1854 reply->write(ports, numPortsReq * sizeof(struct audio_port)); in onTransact()