/* Return the number of bytes of space available in the circular buffer.  */
static int ti_buf_space_avail(struct circ_buf *cb)
/* Return the number of bytes of space available in the circular buffer.  */
static int ti_buf_space_avail(struct circ_buf *cb)
{
	return CIRC_SPACE(cb->head, cb->tail, TI_WRITE_BUF_SIZE);
}