Searched refs:d_rdndx (Results 1 – 2 of 2) sorted by relevance
243 dev->d_wrndx == dev->d_rdndx) /* Buffer is empty */ in pipecommon_open()351 else if (PIPE_IS_POLICY_0(dev->d_flags) || dev->d_wrndx == dev->d_rdndx) in pipecommon_close()361 dev->d_rdndx = 0; in pipecommon_close()410 while (dev->d_wrndx == dev->d_rdndx) in pipecommon_read()444 while ((size_t)nread < len && dev->d_wrndx != dev->d_rdndx) in pipecommon_read()446 ret = LOS_ArchCopyToUser(buffer, dev->d_buffer + dev->d_rdndx, sizeof(char)); in pipecommon_read()453 if (++dev->d_rdndx >= dev->d_bufsize) in pipecommon_read()455 dev->d_rdndx = 0; in pipecommon_read()612 if (nxtwrndx != dev->d_rdndx) in pipecommon_write()719 if (dev->d_wrndx >= dev->d_rdndx) in pipecommon_poll()[all …]
116 pipe_ndx_t d_rdndx; /* Index in d_buffer to return the next byte read */ member