/* Return the number of bytes of space available in the circular buffer.  */
static unsigned int oti6858_buf_space_avail(struct oti6858_buf *pb)
/* Return the number of bytes of space available in the circular buffer.  */
static unsigned int oti6858_buf_space_avail(struct oti6858_buf *pb)
{
	if (pb == NULL)
		return 0;
	return (pb->buf_size + pb->buf_get - pb->buf_put - 1) % pb->buf_size;
}