Home
last modified time | relevance | path

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

/drivers/infiniband/hw/ipath/
Dipath_verbs_mcast.c55 struct ipath_mcast_qp *mqp; in ipath_mcast_qp_alloc() local
57 mqp = kmalloc(sizeof *mqp, GFP_KERNEL); in ipath_mcast_qp_alloc()
58 if (!mqp) in ipath_mcast_qp_alloc()
61 mqp->qp = qp; in ipath_mcast_qp_alloc()
65 return mqp; in ipath_mcast_qp_alloc()
68 static void ipath_mcast_qp_free(struct ipath_mcast_qp *mqp) in ipath_mcast_qp_free() argument
70 struct ipath_qp *qp = mqp->qp; in ipath_mcast_qp_free()
76 kfree(mqp); in ipath_mcast_qp_free()
165 struct ipath_mcast_qp *mqp) in ipath_mcast_add() argument
193 if (p->qp == mqp->qp) { in ipath_mcast_add()
[all …]
/drivers/infiniband/hw/qib/
Dqib_verbs_mcast.c44 struct qib_mcast_qp *mqp; in qib_mcast_qp_alloc() local
46 mqp = kmalloc(sizeof *mqp, GFP_KERNEL); in qib_mcast_qp_alloc()
47 if (!mqp) in qib_mcast_qp_alloc()
50 mqp->qp = qp; in qib_mcast_qp_alloc()
54 return mqp; in qib_mcast_qp_alloc()
57 static void qib_mcast_qp_free(struct qib_mcast_qp *mqp) in qib_mcast_qp_free() argument
59 struct qib_qp *qp = mqp->qp; in qib_mcast_qp_free()
65 kfree(mqp); in qib_mcast_qp_free()
154 struct qib_mcast *mcast, struct qib_mcast_qp *mqp) in qib_mcast_add() argument
182 if (p->qp == mqp->qp) { in qib_mcast_add()
[all …]
/drivers/scsi/arm/
Dmsgqueue.c124 struct msgqueue_entry **mqp; in msgqueue_addmsg() local
136 mqp = &msgq->qe; in msgqueue_addmsg()
137 while (*mqp) in msgqueue_addmsg()
138 mqp = &(*mqp)->next; in msgqueue_addmsg()
140 *mqp = mq; in msgqueue_addmsg()
/drivers/infiniband/hw/mlx4/
Dmain.c746 struct mlx4_ib_qp *mqp = to_mqp(ibqp); in add_gid_entry() local
755 if (mlx4_ib_add_mc(mdev, mqp, gid)) { in add_gid_entry()
756 ge->port = mqp->port; in add_gid_entry()
760 mutex_lock(&mqp->mutex); in add_gid_entry()
761 list_add_tail(&ge->list, &mqp->gid_list); in add_gid_entry()
762 mutex_unlock(&mqp->mutex); in add_gid_entry()
767 int mlx4_ib_add_mc(struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp, in mlx4_ib_add_mc() argument
774 if (!mqp->port) in mlx4_ib_add_mc()
778 ndev = mdev->iboe.netdevs[mqp->port - 1]; in mlx4_ib_add_mc()
786 dev_mc_add(mdev->iboe.netdevs[mqp->port - 1], mac); in mlx4_ib_add_mc()
[all …]
Dqp.c110 static struct mlx4_ib_sqp *to_msqp(struct mlx4_ib_qp *mqp) in to_msqp() argument
112 return container_of(mqp, struct mlx4_ib_sqp, qp); in to_msqp()
120 return qp->mqp.qpn >= dev->dev->phys_caps.base_tunnel_sqpn && in is_tunnel_qp()
121 qp->mqp.qpn < dev->dev->phys_caps.base_tunnel_sqpn + in is_tunnel_qp()
132 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_sqp()
133 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 3); in is_sqp()
139 if (qp->mqp.qpn == dev->dev->caps.qp0_proxy[i] || in is_sqp()
140 qp->mqp.qpn == dev->dev->caps.qp1_proxy[i]) { in is_sqp()
157 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_qp0()
158 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 1); in is_qp0()
[all …]
Dmlx4_ib.h237 struct mlx4_qp mqp; member
560 static inline struct mlx4_ib_qp *to_mibqp(struct mlx4_qp *mqp) in to_mibqp() argument
562 return container_of(mqp, struct mlx4_ib_qp, mqp); in to_mibqp()
692 int mlx4_ib_add_mc(struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp,
Dcq.c586 struct mlx4_qp *mqp; in mlx4_ib_poll_one() local
639 (be32_to_cpu(cqe->vlan_my_qpn) & MLX4_CQE_QPN_MASK) != (*cur_qp)->mqp.qpn) { in mlx4_ib_poll_one()
645 mqp = __mlx4_qp_lookup(to_mdev(cq->ibcq.device)->dev, in mlx4_ib_poll_one()
647 if (unlikely(!mqp)) { in mlx4_ib_poll_one()
653 *cur_qp = to_mibqp(mqp); in mlx4_ib_poll_one()