Lines Matching refs:bufidx

692 				  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()
772 int bufidx; in replenish_rx_pool() local
788 bufidx = pool->free_map[pool->next_free]; in replenish_rx_pool()
795 skb = pool->rx_buff[bufidx].skb; in replenish_rx_pool()
810 map_rxpool_buf_to_ltb(pool, bufidx, &ltb, &offset); in replenish_rx_pool()
816 pool->rx_buff[bufidx].data = dst; in replenish_rx_pool()
817 pool->rx_buff[bufidx].dma = dma_addr; in replenish_rx_pool()
818 pool->rx_buff[bufidx].skb = skb; in replenish_rx_pool()
819 pool->rx_buff[bufidx].pool_index = pool->index; in replenish_rx_pool()
820 pool->rx_buff[bufidx].size = pool->buff_size; in replenish_rx_pool()
827 cpu_to_be64((u64)&pool->rx_buff[bufidx]); in replenish_rx_pool()
869 bufidx = (int)(rx_buff - pool->rx_buff); in replenish_rx_pool()
870 pool->free_map[pool->next_free] = bufidx; in replenish_rx_pool()
871 dev_kfree_skb_any(pool->rx_buff[bufidx].skb); in replenish_rx_pool()
872 pool->rx_buff[bufidx].skb = NULL; in replenish_rx_pool()
2415 int bufidx = 0; in ibmvnic_xmit() local
2451 bufidx = tx_pool->free_map[tx_pool->consumer_index]; in ibmvnic_xmit()
2453 if (bufidx == IBMVNIC_INVALID_MAP) { in ibmvnic_xmit()
2466 map_txpool_buf_to_ltb(tx_pool, bufidx, &ltb, &offset); in ibmvnic_xmit()
2508 tx_buff = &tx_pool->tx_buff[bufidx]; in ibmvnic_xmit()
2517 queue_num, bufidx); in ibmvnic_xmit()
2522 tx_buff->index = bufidx; in ibmvnic_xmit()
2534 cpu_to_be32(bufidx | IBMVNIC_TSO_POOL_MASK); in ibmvnic_xmit()
2536 tx_crq.v1.correlator = cpu_to_be32(bufidx); in ibmvnic_xmit()