Home | History | Annotate | Download | only in dropbear

Lines Matching refs:readpos

42 	cbuf->readpos = 0;
69 dropbear_assert(((2*cbuf->size)+cbuf->writepos-cbuf->readpos)%cbuf->size == cbuf->used%cbuf->size);
70 dropbear_assert(((2*cbuf->size)+cbuf->readpos-cbuf->writepos)%cbuf->size == (cbuf->size-cbuf->used)%cbuf->size);
77 if (cbuf->readpos < cbuf->writepos) {
78 return cbuf->writepos - cbuf->readpos;
81 return cbuf->size - cbuf->readpos;
87 dropbear_assert(((2*cbuf->size)+cbuf->writepos-cbuf->readpos)%cbuf->size == cbuf->used%cbuf->size);
88 dropbear_assert(((2*cbuf->size)+cbuf->readpos-cbuf->writepos)%cbuf->size == (cbuf->size-cbuf->used)%cbuf->size);
95 if (cbuf->writepos < cbuf->readpos) {
96 return cbuf->readpos - cbuf->writepos;
107 return &cbuf->data[cbuf->readpos];
137 cbuf->readpos = (cbuf->readpos + len) % cbuf->size;