/hardware/libhardware_legacy/wifi/ |
H A D | wifi.c | 672 struct pollfd rfds[2]; local 674 memset(rfds, 0, 2 * sizeof(struct pollfd)); 675 rfds[0].fd = ctrlfd; 676 rfds[0].events |= POLLIN; 677 rfds[1].fd = exit_sockets[1]; 678 rfds[1].events |= POLLIN; 679 res = TEMP_FAILURE_RETRY(poll(rfds, 2, -1)); 684 if (rfds[0].revents & POLLIN) { 688 /* it is not rfds[0], then it must be rfts[1] (i.e. the exit socket)
|
/hardware/ril/libril/ |
H A D | ril_event.cpp | 183 static void processReadReadies(fd_set * rfds, int n) argument 190 if (rev != NULL && FD_ISSET(rev->fd, rfds)) { 333 static void printReadies(fd_set * rfds) argument 337 if (rev != NULL && FD_ISSET(rev->fd, rfds)) { 343 #define printReadies(rfds) do {} while(0) 349 fd_set rfds; local 357 memcpy(&rfds, &readFds, sizeof(fd_set)); 366 printReadies(&rfds); 367 n = select(nfds, &rfds, NULL, NULL, ptv); 368 printReadies(&rfds); [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_dec/src/ |
H A D | OMX_AacDec_CompThread.c | 107 fd_set rfds; local 132 FD_ZERO (&rfds); 133 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 134 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 143 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 145 status = select (fdmax+1, &rfds, NULL, NULL, &tv); 169 else if (FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) { 198 else if ((FD_ISSET (pComponentPrivate->dataPipe[0], &rfds))) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_enc/src/ |
H A D | OMX_AacEnc_CompThread.c | 81 fd_set rfds; local 105 FD_ZERO (&rfds); 106 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 107 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 115 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 117 status = select (fdmax+1, &rfds, NULL, NULL, &tv); 164 else if ((FD_ISSET (pComponentPrivate->dataPipe[0], &rfds)) && (pComponentPrivate->curState != OMX_StatePause)) 191 else if(FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds))
|
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_enc/tests/ |
H A D | AacEncTest.c | 587 fd_set rfds; local 1501 FD_ZERO(&rfds); 1502 FD_SET(IpBuf_Pipe[0], &rfds); 1503 FD_SET(OpBuf_Pipe[0], &rfds); 1504 FD_SET(Event_Pipe[0], &rfds); 1509 retval = select(fdmax+1, &rfds, NULL, NULL, &tv); 1532 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) 1593 if( FD_ISSET(IpBuf_Pipe[0], &rfds) ) 1677 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) 1854 else if(FD_ISSET(IpBuf_Pipe[0], &rfds)) [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_dec/src/ |
H A D | OMX_G711Dec_ComponentThread.c | 68 fd_set rfds; local 85 FD_ZERO (&rfds); 86 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 87 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 96 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 98 status = select (fdmax+1, &rfds, NULL, NULL, &tv); 125 } else if (FD_ISSET(pComponentPrivate->dataPipe[0], &rfds)){ 140 else if (FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_dec/tests/ |
H A D | G711DecTest.c | 232 fd_set rfds; variable 1193 FD_ZERO(&rfds); 1194 FD_SET(IpBuf_Pipe[0], &rfds); 1195 FD_SET(OpBuf_Pipe[0], &rfds); 1196 FD_SET(Event_Pipe[0], &rfds); 1201 retval = select(fdmax+1, &rfds, NULL, NULL, &tv); 1221 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1237 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1312 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1325 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_enc/src/ |
H A D | OMX_G711Enc_ComponentThread.c | 92 fd_set rfds; local 105 FD_ZERO (&rfds); 106 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 107 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 115 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 117 status = select (fdmax+1, &rfds, NULL, NULL, &tv); 149 else if (FD_ISSET (pComponentPrivate->dataPipe[0], &rfds)){ 162 else if(FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_enc/tests/ |
H A D | G711EncTest.c | 207 fd_set rfds; variable 993 FD_ZERO(&rfds); 994 FD_SET(IpBuf_Pipe[0], &rfds); 995 FD_SET(OpBuf_Pipe[0], &rfds); 996 FD_SET(Event_Pipe[0], &rfds); 1002 retval = select(fdmax+1, &rfds, NULL, NULL, &tv); 1019 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1075 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1149 if( FD_ISSET(IpBuf_Pipe[0], &rfds) ) { 1221 if( FD_ISSET(OpBuf_Pipe[0], &rfds) ) { [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_dec/src/ |
H A D | OMX_G722Dec_Utils.c | 120 fd_set rfds; local 135 FD_ZERO (&rfds); 136 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 137 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 144 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 161 } else if ((FD_ISSET (pComponentPrivate->dataPipe[0], &rfds))) { 176 } else if (FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_dec/tests/ |
H A D | G722DecTest.c | 193 fd_set rfds; local 434 error = testCases (pHandle, &rfds, tcID, fIn, fOut, &frmCnt, &totalFilled, &tv, gDasfMode, nIpBuffs, pInputBufferHeader, nOpBuffs, pOutputBufferHeader); 1326 OMX_ERRORTYPE testCases (OMX_HANDLETYPE *pHandle, fd_set *rfds, int tcID, FILE *fIn, FILE *fOut, int *frmCnt, int *totalFilled, struct timeval *tv, int gDasfMode, int nIpBuffs, OMX_BUFFERHEADERTYPE *pInputBufferHeader [], int nOpBuffs, OMX_BUFFERHEADERTYPE *pOutputBufferHeader []) argument 1335 FD_ZERO (rfds); 1336 FD_SET (IpBuf_Pipe[0], rfds); 1337 FD_SET (OpBuf_Pipe[0], rfds); 1338 FD_SET (Event_Pipe[0], rfds); 1342 int retval = select(fdmax+1, rfds, NULL, NULL, tv); 1359 if(FD_ISSET(IpBuf_Pipe[0], rfds)) { 1371 if(FD_ISSET(IpBuf_Pipe[0], rfds)) { [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_enc/src/ |
H A D | OMX_G722Enc_Utils.c | 108 fd_set rfds; local 125 FD_ZERO (&rfds); 126 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 127 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 135 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 137 status = select (fdmax+1, &rfds, NULL, NULL, &tv); 169 } else if (FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) { 204 else if (FD_ISSET (pComponentPrivate->dataPipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_enc/tests/ |
H A D | G722EncTest.c | 132 fd_set rfds; variable 797 FD_ZERO(&rfds); 798 FD_SET(IpBuf_Pipe[0], &rfds); 799 FD_SET(OpBuf_Pipe[0], &rfds); 800 FD_SET(Event_Pipe[0], &rfds); 803 retval = select(fdmax+1, &rfds, NULL, NULL, &tv); 821 if(FD_ISSET(IpBuf_Pipe[0], &rfds)){ 861 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 989 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1088 if(FD_ISSET(OpBuf_Pipe[0], &rfds)) { [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_dec/src/ |
H A D | OMX_G726Dec_CompThread.c | 96 fd_set rfds; local 112 FD_ZERO (&rfds); 113 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 114 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 122 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 124 status = select (fdmax+1, &rfds, NULL, NULL, &tv); 147 } else if ((FD_ISSET (pComponentPrivate->dataPipe[0], &rfds))) { 163 } else if (FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_dec/tests/ |
H A D | G726DecTest.c | 145 fd_set rfds; variable 934 FD_ZERO(&rfds); 935 FD_SET(IpBuf_Pipe[0], &rfds); 936 FD_SET(OpBuf_Pipe[0], &rfds); 941 retval = select(fdmax+1, &rfds, NULL, NULL, &tv); 957 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 970 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1092 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1105 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1137 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_enc/src/ |
H A D | OMX_G726Enc_ComponentThread.c | 89 fd_set rfds;
local 102 FD_ZERO (&rfds);
103 FD_SET (pComponentPrivate->cmdPipe[0], &rfds);
104 FD_SET (pComponentPrivate->dataPipe[0], &rfds);
111 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set);
133 } else if(FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) {
161 } else if (FD_ISSET (pComponentPrivate->dataPipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_enc/tests/ |
H A D | G726EncTest.c | 282 fd_set rfds; variable 1105 FD_ZERO(&rfds); 1106 FD_SET(IpBuf_Pipe[0], &rfds); 1107 FD_SET(OpBuf_Pipe[0], &rfds); 1108 FD_SET(Event_Pipe[0], &rfds); 1112 retval = select(fdmax+1, &rfds, NULL, NULL, &tv); 1143 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1238 if( FD_ISSET(OpBuf_Pipe[0], &rfds) ) { 1274 if( FD_ISSET(Event_Pipe[0], &rfds) ) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_dec/src/ |
H A D | OMX_G729Dec_ComponentThread.c | 107 fd_set rfds; local 128 FD_ZERO (&rfds); 129 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 130 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 138 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 189 else if ((FD_ISSET (pComponentPrivate->dataPipe[0], &rfds))){ 202 else if (FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_dec/tests/ |
H A D | G729DecTest.c | 164 fd_set rfds; variable 1071 FD_ZERO(&rfds); 1072 FD_SET(IpBuf_Pipe[0], &rfds); 1073 FD_SET(OpBuf_Pipe[0], &rfds); 1077 retval = select(fdmax+1, &rfds, NULL, NULL, &tv); 1091 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1177 if( FD_ISSET(OpBuf_Pipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_enc/src/ |
H A D | OMX_G729Enc_ComponentThread.c | 110 fd_set rfds; local 131 FD_ZERO (&rfds); 132 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 133 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 141 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 143 status = select (fdmax+1, &rfds, NULL, NULL, &tv); 181 else if ((FD_ISSET (pComponentPrivate->dataPipe[0], &rfds))) 199 else if(FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds))
|
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_enc/tests/ |
H A D | G729EncTest.c | 216 fd_set rfds; variable 979 FD_ZERO(&rfds); 980 FD_SET(IpBuf_Pipe[0], &rfds); 981 FD_SET(OpBuf_Pipe[0], &rfds); 986 retval = select(fdmax+1, &rfds, NULL, NULL, &tv); 1005 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1062 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1180 if( FD_ISSET(IpBuf_Pipe[0], &rfds) ) { 1264 if( FD_ISSET(OpBuf_Pipe[0], &rfds) ) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/mp3_dec/src/ |
H A D | OMX_Mp3Dec_CompThread.c | 106 fd_set rfds; local 132 FD_ZERO (&rfds); 133 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 134 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 142 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 144 status = select (fdmax+1, &rfds, NULL, NULL, &tv); 179 } else if ((FD_ISSET (pComponentPrivate->dataPipe[0], &rfds))) { 194 } else if (FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_dec/src/ |
H A D | OMX_AmrDec_ComponentThread.c | 70 fd_set rfds; local 93 FD_ZERO (&rfds); 94 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 95 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 104 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 106 status = select (fdmax+1, &rfds, NULL, NULL, &tv); 158 else if (FD_ISSET (pComponentPrivate->dataPipe[0], &rfds)) { 171 else if (FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_enc/src/ |
H A D | OMX_AmrEnc_ComponentThread.c | 102 fd_set rfds; local 122 FD_ZERO (&rfds); 123 FD_SET (pComponentPrivate->cmdPipe[0], &rfds); 124 FD_SET (pComponentPrivate->dataPipe[0], &rfds); 132 status = pselect (fdmax+1, &rfds, NULL, NULL, &tv, &set); 134 status = select (fdmax+1, &rfds, NULL, NULL, &tv); 170 } else if ((FD_ISSET (pComponentPrivate->dataPipe[0], &rfds)) 185 else if(FD_ISSET (pComponentPrivate->cmdPipe[0], &rfds)) {
|
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_enc/tests/ |
H A D | AmrEncTest.c | 348 fd_set rfds; variable 1290 FD_ZERO(&rfds); 1291 FD_SET(IpBuf_Pipe[0], &rfds); 1292 FD_SET(OpBuf_Pipe[0], &rfds); 1293 FD_SET(Event_Pipe[0], &rfds); 1299 retval = select(fdmax+1, &rfds, NULL, NULL, &tv); 1326 if(FD_ISSET(IpBuf_Pipe[0], &rfds)) { 1393 if( FD_ISSET(OpBuf_Pipe[0], &rfds) ) { 1428 if( FD_ISSET(Event_Pipe[0], &rfds) ) {
|