Lines Matching refs:bufidx

682 	int howmany = 0, bufpos = 0, bufidx = 0, bufferdone = 0;  in xillybus_read()  local
703 bufidx = channel->wr_host_buf_idx; in xillybus_read()
705 howmany = ((channel->wr_buffers[bufidx]->end_offset in xillybus_read()
720 if (bufidx == channel->wr_fpga_buf_idx) { in xillybus_read()
726 if (bufidx >= (channel->num_wr_buffers - 1)) in xillybus_read()
754 channel->wr_buffers[bufidx]->dma_addr, in xillybus_read()
760 channel->wr_buffers[bufidx]->addr in xillybus_read()
770 channel->wr_buffers[bufidx]->dma_addr, in xillybus_read()
783 (bufidx << 12), in xillybus_read()
1001 int bufidx, bufidx_minus1; in xillybus_myflush() local
1021 bufidx = channel->rd_host_buf_idx; in xillybus_myflush()
1023 bufidx_minus1 = (bufidx == 0) ? in xillybus_myflush()
1025 bufidx - 1; in xillybus_myflush()
1035 unsigned char *tail = channel->rd_buffers[bufidx]->addr + in xillybus_myflush()
1063 if (bufidx == channel->rd_fpga_buf_idx) in xillybus_myflush()
1067 if (bufidx >= (channel->num_rd_buffers - 1)) in xillybus_myflush()
1074 channel->rd_buffers[bufidx]->dma_addr, in xillybus_myflush()
1085 (bufidx << 12), in xillybus_myflush()
1089 } else if (bufidx == 0) { in xillybus_myflush()
1090 bufidx = channel->num_rd_buffers - 1; in xillybus_myflush()
1092 bufidx--; in xillybus_myflush()
1111 if (bufidx != channel->rd_fpga_buf_idx) in xillybus_myflush()
1195 int howmany = 0, bufpos = 0, bufidx = 0, bufferdone = 0; in xillybus_write() local
1213 bufidx = channel->rd_host_buf_idx; in xillybus_write()
1252 rd_buffers[bufidx]->addr + in xillybus_write()
1263 if (bufidx == channel->rd_fpga_buf_idx) in xillybus_write()
1266 if (bufidx >= (channel->num_rd_buffers - 1)) in xillybus_write()
1287 channel->rd_buffers[bufidx]->addr; in xillybus_write()
1294 channel->rd_buffers[bufidx]->dma_addr, in xillybus_write()
1306 channel->rd_buffers[bufidx]->addr + bufpos, in xillybus_write()
1316 channel->rd_buffers[bufidx]->dma_addr, in xillybus_write()
1328 (bufidx << 12), in xillybus_write()