Searched refs:d_rdndx (Results 1 – 2 of 2) sorted by relevance
259 dev->d_wrndx == dev->d_rdndx) /* Buffer is empty */ in pipecommon_open()367 else if (PIPE_IS_POLICY_0(dev->d_flags) || dev->d_wrndx == dev->d_rdndx) in pipecommon_close()377 dev->d_rdndx = 0; in pipecommon_close()426 while (dev->d_wrndx == dev->d_rdndx) in pipecommon_read()460 while ((size_t)nread < len && dev->d_wrndx != dev->d_rdndx) in pipecommon_read()462 ret = LOS_ArchCopyToUser(buffer, dev->d_buffer + dev->d_rdndx, sizeof(char)); in pipecommon_read()469 if (++dev->d_rdndx >= dev->d_bufsize) in pipecommon_read()471 dev->d_rdndx = 0; in pipecommon_read()628 if (nxtwrndx != dev->d_rdndx) in pipecommon_write()735 if (dev->d_wrndx >= dev->d_rdndx) in pipecommon_poll()[all …]
131 pipe_ndx_t d_rdndx; /* Index in d_buffer to return the next byte read */ member