Home
last modified time | relevance | path

Searched refs:bufidx (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/char/xillybus/
H A Dxillybus_core.c703 int howmany = 0, bufpos = 0, bufidx = 0, bufferdone = 0; in xillybus_read() local
724 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 …]
/linux/drivers/net/ethernet/ibm/
H A Dibmvnic.c692 unsigned int bufidx, in map_rxpool_buf_to_ltb() argument
700 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() argument
733 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 …]