Lines Matching defs:bufpos
579 unsigned char bufpos; /* was int */
594 bufpos = msc->board->Common.CDTail;
595 if (newhead != bufpos) { /* CD events in queue */
599 while (newhead != bufpos) { /* read all events */
600 ncd = msc->board->CDBuf[bufpos++]; /* get one event */
648 msc->board->Common.CDTail = bufpos; /* remove events */
671 if (newhead != (bufpos = ms->InTail)) {
679 while (bufpos != newhead) {
681 switch (cbuf[bufpos]) {
684 switch (ibuf[bufpos++]) {
691 msc->unit, ibuf[(bufpos-1)&0xff]);
699 tp->t_linesw->l_rint((int)ibuf[bufpos++], tp);
704 msc->unit, cbuf[bufpos]);
705 bufpos++;
709 ms->InTail = bufpos; /* tell 65C02 what we've read */
716 bufpos = ms->OutHead - ms->OutTail;
720 if (bufpos < IOBUFLOWWATER) {
731 if (bufpos == 0)
742 if (newhead != (bufpos = ms->InTail)) {
750 while (bufpos != newhead) {
752 switch (cbuf[bufpos]) {
755 switch (ibuf[bufpos++]) {
758 ibuf[(bufpos-1)&0xff]);
763 bufpos++;
767 ms->InTail = bufpos; /* tell 65C02 what we've read */