Lines Matching defs:buffer
192 /* If this the first reference on the device, then allocate the buffer.
193 * In the case of policy 1, the buffer already be present when the pipe
345 /* What is the buffer management policy? Do we free the buffer when the
346 * last client closes the pipe policy 0, or when the buffer becomes empty.
347 * In the latter case, the buffer data will remain valid and can be
353 /* Policy 0 or the buffer is empty ... deallocate the buffer now. */
376 ssize_t pipecommon_read(struct file *filep, char *buffer, size_t len)
446 ret = LOS_ArchCopyToUser(buffer, dev->d_buffer + dev->d_rdndx, sizeof(char));
452 buffer++;
467 /* Notify all waiting writers that bytes have been read from the buffer */
518 /* Notify all waiting writers that bytes have been removed from the buffer */
536 ssize_t pipecommon_write(struct file *filep, const char *buffer,
610 /* Would the next write overflow the circular buffer? */
617 ret = LOS_ArchCopyFromUser(dev->d_buffer + dev->d_wrndx, buffer, sizeof(char));
623 buffer++;
716 * First, determine how many bytes are in the buffer