Searched refs:writepos (Results 1 – 2 of 2) sorted by relevance
43 cbuf->writepos = 0; in cbuf_new()69 dropbear_assert(((2*cbuf->size)+cbuf->writepos-cbuf->readpos)%cbuf->size == cbuf->used%cbuf->size); in cbuf_readlen()70 …dropbear_assert(((2*cbuf->size)+cbuf->readpos-cbuf->writepos)%cbuf->size == (cbuf->size-cbuf->used… in cbuf_readlen()77 if (cbuf->readpos < cbuf->writepos) { in cbuf_readlen()78 return cbuf->writepos - cbuf->readpos; in cbuf_readlen()87 dropbear_assert(((2*cbuf->size)+cbuf->writepos-cbuf->readpos)%cbuf->size == cbuf->used%cbuf->size); in cbuf_writelen()88 …dropbear_assert(((2*cbuf->size)+cbuf->readpos-cbuf->writepos)%cbuf->size == (cbuf->size-cbuf->used… in cbuf_writelen()95 if (cbuf->writepos < cbuf->readpos) { in cbuf_writelen()96 return cbuf->readpos - cbuf->writepos; in cbuf_writelen()99 return cbuf->size - cbuf->writepos; in cbuf_writelen()[all …]
31 unsigned int writepos; member