Lines Matching defs:bufidx
681 * @bufidx: Index of buffer in rxpool
685 * Map the given buffer identified by [rxpool, bufidx] to an LTB in the
691 unsigned int bufidx,
699 WARN_ON(bufidx >= rxpool->size);
704 if (bufidx < nbufs)
706 bufidx -= nbufs;
710 *offset = bufidx * rxpool->buff_size;
716 * @bufidx: Index of buffer in txpool
720 * Map the given buffer identified by [txpool, bufidx] to an LTB in the
724 unsigned int bufidx,
732 WARN_ON_ONCE(bufidx >= txpool->num_buffers);
737 if (bufidx < nbufs)
739 bufidx -= nbufs;
743 *offset = bufidx * txpool->buf_size;
771 int bufidx;
787 bufidx = pool->free_map[pool->next_free];
794 skb = pool->rx_buff[bufidx].skb;
809 map_rxpool_buf_to_ltb(pool, bufidx, <b, &offset);
815 pool->rx_buff[bufidx].data = dst;
816 pool->rx_buff[bufidx].dma = dma_addr;
817 pool->rx_buff[bufidx].skb = skb;
818 pool->rx_buff[bufidx].pool_index = pool->index;
819 pool->rx_buff[bufidx].size = pool->buff_size;
826 cpu_to_be64((u64)&pool->rx_buff[bufidx]);
868 bufidx = (int)(rx_buff - pool->rx_buff);
869 pool->free_map[pool->next_free] = bufidx;
870 dev_kfree_skb_any(pool->rx_buff[bufidx].skb);
871 pool->rx_buff[bufidx].skb = NULL;
2402 int bufidx = 0;
2436 bufidx = tx_pool->free_map[tx_pool->consumer_index];
2438 if (bufidx == IBMVNIC_INVALID_MAP) {
2449 map_txpool_buf_to_ltb(tx_pool, bufidx, <b, &offset);
2480 tx_buff = &tx_pool->tx_buff[bufidx];
2482 tx_buff->index = bufidx;
2494 cpu_to_be32(bufidx | IBMVNIC_TSO_POOL_MASK);
2496 tx_crq.v1.correlator = cpu_to_be32(bufidx);