Home
last modified time | relevance | path

Searched refs:cmdPipe (Results 1 – 2 of 2) sorted by relevance

/hardware/st/nfc/1.0/adaptation/
Di2clayer.c50 static int cmdPipe[2] = {0, 0}; variable
91 event_table[1].fd = cmdPipe[0]; in I2cWorkerThread()
168 read(cmdPipe[0], &cmd, 1); in I2cWorkerThread()
180 read(cmdPipe[0], &length, sizeof(length)); in I2cWorkerThread()
183 read(cmdPipe[0], buffer, length); in I2cWorkerThread()
192 bytes_read = read(cmdPipe[0],buffer,MAX_BUFFER_SIZE); in I2cWorkerThread()
204 close(cmdPipe[0]); in I2cWorkerThread()
205 close(cmdPipe[1]); in I2cWorkerThread()
221 return write(cmdPipe[1], x, len); in I2cWriteCmd()
244 if ((pipe(cmdPipe) == -1)) { in I2cOpenLayer()
/hardware/st/nfc/st21nfc/adaptation/
Di2clayer.cc54 static int cmdPipe[2] = {0, 0}; variable
100 event_table[1].fd = cmdPipe[0]; in I2cWorkerThread()
185 read(cmdPipe[0], &cmd, 1); in I2cWorkerThread()
197 read(cmdPipe[0], &length, sizeof(length)); in I2cWorkerThread()
199 read(cmdPipe[0], buffer, length); in I2cWorkerThread()
208 bytes_read = read(cmdPipe[0], buffer, MAX_BUFFER_SIZE); in I2cWorkerThread()
235 close(cmdPipe[0]); in I2cWorkerThread()
236 close(cmdPipe[1]); in I2cWorkerThread()
254 return write(cmdPipe[1], x, len); in I2cWriteCmd()
307 if ((pipe(cmdPipe) == -1)) { in I2cOpenLayer()