Lines Matching refs:buf_idx
260 card->read.buf_idx = 0;
307 card->write.buf_idx = 0;
1480 int buf_idx;
1488 buf_idx = channel->buf_idx;
1489 while (iob[buf_idx].state == LCS_BUF_STATE_PROCESSED) {
1491 if (iob[buf_idx].callback != NULL)
1492 iob[buf_idx].callback(channel, iob + buf_idx);
1493 buf_idx = (buf_idx + 1) & (LCS_NUM_BUFFS - 1);
1495 channel->buf_idx = buf_idx;