Lines Matching refs:buf_idx
259 card->read.buf_idx = 0;
306 card->write.buf_idx = 0;
1479 int buf_idx;
1486 buf_idx = channel->buf_idx;
1487 while (iob[buf_idx].state == LCS_BUF_STATE_PROCESSED) {
1489 if (iob[buf_idx].callback != NULL)
1490 iob[buf_idx].callback(channel, iob + buf_idx);
1491 buf_idx = (buf_idx + 1) & (LCS_NUM_BUFFS - 1);
1493 channel->buf_idx = buf_idx;