Searched refs:bufidx (Results 1 – 2 of 2) sorted by relevance
703 int howmany = 0, bufpos = 0, bufidx = 0, bufferdone = 0; in xillybus_read() local724 bufidx = channel->wr_host_buf_idx; in xillybus_read()726 howmany = ((channel->wr_buffers[bufidx]->end_offset in xillybus_read()741 if (bufidx == channel->wr_fpga_buf_idx) { in xillybus_read()747 if (bufidx >= (channel->num_wr_buffers - 1)) in xillybus_read()774 channel->wr_buffers[bufidx]->dma_addr, in xillybus_read()780 channel->wr_buffers[bufidx]->addr in xillybus_read()789 channel->wr_buffers[bufidx]->dma_addr, in xillybus_read()802 (bufidx << 12), in xillybus_read()1020 int bufidx, bufidx_minus1; in xillybus_myflush() local[all …]
692 unsigned int bufidx, in map_rxpool_buf_to_ltb() argument700 WARN_ON(bufidx >= rxpool->size); in map_rxpool_buf_to_ltb()705 if (bufidx < nbufs) in map_rxpool_buf_to_ltb()707 bufidx -= nbufs; in map_rxpool_buf_to_ltb()711 *offset = bufidx * rxpool->buff_size; in map_rxpool_buf_to_ltb()725 unsigned int bufidx, in map_txpool_buf_to_ltb() argument733 WARN_ON_ONCE(bufidx >= txpool->num_buffers); in map_txpool_buf_to_ltb()738 if (bufidx < nbufs) in map_txpool_buf_to_ltb()740 bufidx -= nbufs; in map_txpool_buf_to_ltb()744 *offset = bufidx * txpool->buf_size; in map_txpool_buf_to_ltb()[all …]