Lines Matching refs:wr
28 unsigned rd, wr; member
35 unsigned int wr; member
49 buf->buffer[buf->wr] = buf->shreg; in hdlcdrv_add_bitbuffer()
50 buf->wr = (buf->wr+1) % sizeof(buf->buffer); in hdlcdrv_add_bitbuffer()
58 buf->buffer[buf->wr] = bits & 0xff; in hdlcdrv_add_bitbuffer_word()
59 buf->wr = (buf->wr+1) % sizeof(buf->buffer); in hdlcdrv_add_bitbuffer_word()
60 buf->buffer[buf->wr] = (bits >> 8) & 0xff; in hdlcdrv_add_bitbuffer_word()
61 buf->wr = (buf->wr+1) % sizeof(buf->buffer); in hdlcdrv_add_bitbuffer_word()
164 ret = !((HDLCDRV_HDLCBUFFER - 1 + hb->rd - hb->wr) % HDLCDRV_HDLCBUFFER); in hdlcdrv_hbuf_full()
177 ret = (hb->rd == hb->wr); in hdlcdrv_hbuf_empty()
191 if (hb->rd == hb->wr) in hdlcdrv_hbuf_get()
211 newp = (hb->wr+1) % HDLCDRV_HDLCBUFFER; in hdlcdrv_hbuf_put()
213 hb->buf[hb->wr] = val & 0xffff; in hdlcdrv_hbuf_put()
214 hb->wr = newp; in hdlcdrv_hbuf_put()