Lines Matching refs:cbuf
101 pcibr_wrap_get(pcibr_intr_cbuf_t cbuf) in pcibr_wrap_get() argument
105 if (cbuf->ib_in == cbuf->ib_out) in pcibr_wrap_get()
107 (void *)cbuf, cbuf->ib_out); in pcibr_wrap_get()
109 wrap = cbuf->ib_cbuf[cbuf->ib_out++]; in pcibr_wrap_get()
110 cbuf->ib_out = cbuf->ib_out % IBUFSIZE; in pcibr_wrap_get()
118 pcibr_wrap_put(pcibr_intr_wrap_t wrap, pcibr_intr_cbuf_t cbuf) in pcibr_wrap_put() argument
127 spin_lock(&cbuf->ib_lock); in pcibr_wrap_put()
128 in = (cbuf->ib_in + 1) % IBUFSIZE; in pcibr_wrap_put()
129 if (in == cbuf->ib_out) in pcibr_wrap_put()
131 (void *)cbuf, cbuf->ib_in); in pcibr_wrap_put()
133 cbuf->ib_cbuf[cbuf->ib_in] = wrap; in pcibr_wrap_put()
134 cbuf->ib_in = in; in pcibr_wrap_put()
135 spin_unlock(&cbuf->ib_lock); in pcibr_wrap_put()