Lines Matching full:tail
57 pipe_index_t tail; member
67 * @tail: The point of buffer consumption
68 * @head_tail: unsigned long union of @head and @tail
95 pipe_index_t tail; member
182 * @tail: The pipe ring tail pointer
184 static inline unsigned int pipe_occupancy(unsigned int head, unsigned int tail) in pipe_occupancy() argument
186 return (pipe_index_t)(head - tail); in pipe_occupancy()
192 * @tail: The pipe ring tail pointer
194 static inline bool pipe_empty(unsigned int head, unsigned int tail) in pipe_empty() argument
196 return !pipe_occupancy(head, tail); in pipe_empty()
202 * @tail: The pipe ring tail pointer
205 static inline bool pipe_full(unsigned int head, unsigned int tail, in pipe_full() argument
208 return pipe_occupancy(head, tail) >= limit; in pipe_full()
217 return pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_is_full()
226 return pipe_empty(pipe->head, pipe->tail); in pipe_is_empty()
235 return pipe_occupancy(pipe->head, pipe->tail); in pipe_buf_usage()