Lines Matching defs:bufpos
505 unsigned char bufpos; /* Must be unsigned char. We need the modulo-256 arithmetics */
520 bufpos = status->InTail;
523 if (newhead != bufpos) {
531 while (bufpos != newhead) {
533 switch (cbuf[bufpos]) {
536 switch (ibuf[bufpos++]) {
546 printk("A2232: 65EC02 software broken, unknown event type %d occurred.\n",ibuf[bufpos-1]);
551 a2232_receive_char(port, ibuf[bufpos], err);
552 bufpos++;
555 printk("A2232: 65EC02 software broken, unknown data type %d occurred.\n",cbuf[bufpos]);
556 bufpos++;
560 status->InTail = bufpos; /* tell 65EC02 what we've read */
567 bufpos = status->OutHead;
571 if (((bufpos+1) & A2232_IOBUFLENMASK) != status->OutTail) { /* If the A2232 buffer is not full */
574 obuf[bufpos++] = ch; /* put it into the A2232 buffer */
581 status->OutHead = bufpos;
592 bufpos = mem->Common.CDTail;
593 if (newhead != bufpos){ /* There are CD events in queue */
595 while (newhead != bufpos){ /* read all events */
596 ncd = mem->CDBuf[bufpos++]; /* get one event */
623 mem->Common.CDTail = bufpos; /* remove events */