Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dmad.c463 struct mlx4_ib_demux_pv_qp *tun_qp; in mlx4_ib_send_to_slave() local
485 tun_qp = &tun_ctx->qp[0]; in mlx4_ib_send_to_slave()
487 tun_qp = &tun_ctx->qp[1]; in mlx4_ib_send_to_slave()
506 src_qp = tun_qp->qp; in mlx4_ib_send_to_slave()
521 spin_lock(&tun_qp->tx_lock); in mlx4_ib_send_to_slave()
522 if (tun_qp->tx_ix_head - tun_qp->tx_ix_tail >= in mlx4_ib_send_to_slave()
526 tun_tx_ix = (++tun_qp->tx_ix_head) & (MLX4_NUM_TUNNEL_BUFS - 1); in mlx4_ib_send_to_slave()
527 spin_unlock(&tun_qp->tx_lock); in mlx4_ib_send_to_slave()
531 tun_mad = (struct mlx4_rcv_tunnel_mad *) (tun_qp->tx_ring[tun_tx_ix].buf.addr); in mlx4_ib_send_to_slave()
532 if (tun_qp->tx_ring[tun_tx_ix].ah) in mlx4_ib_send_to_slave()
[all …]