Lines Matching refs:rxtx
111 struct rxtx { struct
119 struct rxtx rxtx; /* loop back buffer */ argument
310 if (mdev_state->s[index].rxtx.count < in handle_bar_write()
312 mdev_state->s[index].rxtx.fifo[ in handle_bar_write()
313 mdev_state->s[index].rxtx.head] = data; in handle_bar_write()
314 mdev_state->s[index].rxtx.count++; in handle_bar_write()
315 CIRCULAR_BUF_INC_IDX(mdev_state->s[index].rxtx.head); in handle_bar_write()
324 (mdev_state->s[index].rxtx.count == in handle_bar_write()
358 (mdev_state->s[index].rxtx.head == in handle_bar_write()
359 mdev_state->s[index].rxtx.tail)) { in handle_bar_write()
378 mdev_state->s[index].rxtx.count = 0; in handle_bar_write()
379 mdev_state->s[index].rxtx.head = 0; in handle_bar_write()
380 mdev_state->s[index].rxtx.tail = 0; in handle_bar_write()
475 if (mdev_state->s[index].rxtx.head != in handle_bar_read()
476 mdev_state->s[index].rxtx.tail) { in handle_bar_read()
477 *buf = mdev_state->s[index].rxtx.fifo[ in handle_bar_read()
478 mdev_state->s[index].rxtx.tail]; in handle_bar_read()
479 mdev_state->s[index].rxtx.count--; in handle_bar_read()
480 CIRCULAR_BUF_INC_IDX(mdev_state->s[index].rxtx.tail); in handle_bar_read()
483 if (mdev_state->s[index].rxtx.head == in handle_bar_read()
484 mdev_state->s[index].rxtx.tail) { in handle_bar_read()
520 (mdev_state->s[index].rxtx.count >= in handle_bar_read()
526 (mdev_state->s[index].rxtx.head == in handle_bar_read()
527 mdev_state->s[index].rxtx.tail)) in handle_bar_read()
557 if (mdev_state->s[index].rxtx.head != in handle_bar_read()
558 mdev_state->s[index].rxtx.tail) in handle_bar_read()
566 if (mdev_state->s[index].rxtx.head == in handle_bar_read()
567 mdev_state->s[index].rxtx.tail) in handle_bar_read()
581 if (mdev_state->s[index].rxtx.count < in handle_bar_read()