Lines Matching refs:ur_r
270 volatile uch ur_w, ur_r; /* write/read buffer index */ member
338 if (cd->ur_r != cd->ur_w) { in clear_ur()
340 for (; cd->ur_r != cd->ur_w; in clear_ur()
341 cd->ur_r++, cd->ur_r %= UR_SIZE) in clear_ur()
342 debug((" 0x%x", cd->ur[cd->ur_r])); in clear_ur()
380 if (cd->ur_w == cd->ur_r) in cm206_interrupt()
494 ret = cd->ur[cd->ur_r]; in receive_byte()
495 if (cd->ur_r != cd->ur_w) { in receive_byte()
497 debug(("returning #%d: 0x%x\n", cd->ur_r, in receive_byte()
498 cd->ur[cd->ur_r])); in receive_byte()
499 cd->ur_r++; in receive_byte()
500 cd->ur_r %= UR_SIZE; in receive_byte()
512 ret = cd->ur[cd->ur_r]; in receive_byte()
513 debug(("slept; returning #%d: 0x%x\n", cd->ur_r, in receive_byte()
514 cd->ur[cd->ur_r])); in receive_byte()
515 cd->ur_r++; in receive_byte()
516 cd->ur_r %= UR_SIZE; in receive_byte()
723 if (cd->ur_r != cd->ur_w) { in cm206_bh()
724 if (cd->ur[cd->ur_r] != c_stop) { in cm206_bh()
726 cd->ur[cd->ur_r])); in cm206_bh()
729 cd->ur_r++; in cm206_bh()
730 cd->ur_r %= UR_SIZE; in cm206_bh()
735 if (cd->ur_r != cd->ur_w) { in cm206_bh()
736 if (cd->ur[cd->ur_r] != 0xff) { in cm206_bh()
737 debug(("cm206_bh: c_stop reacted with 0x%x\n", cd->ur[cd->ur_r])); in cm206_bh()
740 cd->ur_r++; in cm206_bh()
741 cd->ur_r %= UR_SIZE; in cm206_bh()