Searched defs:ibqp (Results 1 - 25 of 32) sorted by relevance

12

/drivers/infiniband/hw/ehca/
H A Dehca_mcast.c59 int ehca_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
61 struct ehca_qp *my_qp = container_of(ibqp, struct ehca_qp, ib_qp);
62 struct ehca_shca *shca = container_of(ibqp->device, struct ehca_shca,
67 if (ibqp->qp_type != IB_QPT_UD) {
68 ehca_err(ibqp->device, "invalid qp_type=%x", ibqp->qp_type);
73 ehca_err(ibqp->device, "invalid mulitcast gid");
76 ehca_err(ibqp->device, "invalid mulitcast lid=%x", lid);
89 ehca_err(ibqp->device,
91 "h_ret=%lli", my_qp, ibqp
96 ehca_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
[all...]
H A Dehca_main.c534 struct ib_qp *ibqp; local
570 ibqp = ib_create_qp(&shca->pd->ib_pd, &qp_init_attr);
571 if (IS_ERR(ibqp)) {
573 ret = PTR_ERR(ibqp);
576 sport->ibqp_sqp[IB_QPT_GSI] = ibqp;
H A Dehca_qp.c1241 static int internal_modify_qp(struct ib_qp *ibqp, argument
1249 struct ehca_qp *my_qp = container_of(ibqp, struct ehca_qp, ib_qp);
1251 container_of(ibqp->pd->device, struct ehca_shca, ib_device);
1262 ehca_err(ibqp->device, "Could not get zeroed page for mqpcb "
1263 "ehca_qp=%p qp_num=%x ", my_qp, ibqp->qp_num);
1272 ehca_err(ibqp->device, "hipz_h_query_qp() failed "
1274 my_qp, ibqp->qp_num, h_ret);
1278 if (ibqp->uobject)
1285 ehca_err(ibqp->device, "Invalid current ehca_qp_state=%x "
1287 mqpcb->qp_state, my_qp, ibqp
1782 ehca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument
[all...]
/drivers/infiniband/hw/amso1100/
H A Dc2_cm.c44 struct ib_qp *ibqp; local
50 ibqp = c2_get_qp(cm_id->device, iw_param->qpn);
51 if (!ibqp)
53 qp = to_c2qp(ibqp);
287 struct ib_qp *ibqp; local
293 ibqp = c2_get_qp(cm_id->device, iw_param->qpn);
294 if (!ibqp)
296 qp = to_c2qp(ibqp);
H A Dc2_provider.h108 struct ib_qp ibqp; member in struct:c2_qp
158 static inline struct c2_qp *to_c2qp(struct ib_qp *ibqp) argument
160 return container_of(ibqp, struct c2_qp, ibqp);
H A Dc2_qp.c430 qp->ibqp.qp_num = qp->qpn;
431 qp->ibqp.qp_type = IB_QPT_RC;
603 send_cq = to_c2cq(qp->ibqp.send_cq);
604 recv_cq = to_c2cq(qp->ibqp.recv_cq);
788 int c2_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr, argument
791 struct c2_dev *c2dev = to_c2dev(ibqp->device);
792 struct c2_qp *qp = to_c2qp(ibqp);
942 int c2_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr, argument
945 struct c2_dev *c2dev = to_c2dev(ibqp->device);
946 struct c2_qp *qp = to_c2qp(ibqp);
[all...]
H A Dc2_provider.c202 static void c2_add_ref(struct ib_qp *ibqp) argument
205 BUG_ON(!ibqp);
206 qp = to_c2qp(ibqp);
210 static void c2_rem_ref(struct ib_qp *ibqp) argument
213 BUG_ON(!ibqp);
214 qp = to_c2qp(ibqp);
229 return (qp?&qp->ibqp:NULL);
275 return &qp->ibqp;
563 static int c2_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, argument
569 c2_qp_modify(to_c2dev(ibqp
575 c2_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
581 c2_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_verbs_mcast.c236 int ipath_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
238 struct ipath_qp *qp = to_iqp(ibqp);
239 struct ipath_ibdev *dev = to_idev(ibqp->device);
285 int ipath_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
287 struct ipath_qp *qp = to_iqp(ibqp);
288 struct ipath_ibdev *dev = to_idev(ibqp->device);
H A Dipath_qp.c218 qp->ibqp.qp_num = ret;
251 qpp = &qpt->table[qp->ibqp.qp_num % qpt->max];
309 if (qp->ibqp.qp_num == qpn) {
379 struct ipath_ibdev *dev = to_idev(qp->ibqp.device);
400 wc.qp = &qp->ibqp;
406 ipath_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1);
429 ipath_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1);
434 } else if (qp->ibqp.event_handler)
443 * @ibqp: the queue pair who's attributes we're modifying
450 int ipath_modify_qp(struct ib_qp *ibqp, struc argument
621 ipath_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_qp_init_attr *init_attr) argument
962 ipath_destroy_qp(struct ib_qp *ibqp) argument
[all...]
H A Dipath_verbs.c345 struct ipath_devdata *dd = to_idev(qp->ibqp.device)->dd;
349 if (qp->ibqp.qp_type != IB_QPT_SMI &&
368 if (qp->ibqp.qp_type == IB_QPT_UC) {
371 } else if (qp->ibqp.qp_type == IB_QPT_UD) {
377 if (qp->ibqp.pd != wr->wr.ud.ah->pd)
418 if (qp->ibqp.qp_type == IB_QPT_UC ||
419 qp->ibqp.qp_type == IB_QPT_RC) {
422 } else if (wqe->length > to_idev(qp->ibqp.device)->dd->ipath_ibmtu)
439 * @ibqp: the QP to post the send on
445 static int ipath_post_send(struct ib_qp *ibqp, struc argument
474 ipath_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument
[all...]
/drivers/infiniband/hw/mthca/
H A Dmthca_mcg.c120 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
122 struct mthca_dev *dev = to_mdev(ibqp->device);
165 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) {
167 ibqp->qp_num);
171 mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1 << 31));
214 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
216 struct mthca_dev *dev = to_mdev(ibqp->device);
242 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31)))
249 mthca_err(dev, "QP %06x not found in MGM\n", ibqp->qp_num);
H A Dmthca_provider.h262 struct ib_qp ibqp; member in struct:mthca_qp
334 static inline struct mthca_qp *to_mqp(struct ib_qp *ibqp) argument
336 return container_of(ibqp, struct mthca_qp, ibqp);
H A Dmthca_qp.c259 event.element.qp = &qp->ibqp;
260 if (qp->ibqp.event_handler)
261 qp->ibqp.event_handler(&event, qp->ibqp.qp_context);
423 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, argument
426 struct mthca_dev *dev = to_mdev(ibqp->device);
427 struct mthca_qp *qp = to_mqp(ibqp);
541 static int __mthca_modify_qp(struct ib_qp *ibqp, argument
545 struct mthca_dev *dev = to_mdev(ibqp->device);
546 struct mthca_qp *qp = to_mqp(ibqp);
840 mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument
1599 mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument
1802 mthca_tavor_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument
1913 mthca_arbel_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument
2153 mthca_arbel_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_verbs_mcast.c225 int qib_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
227 struct qib_qp *qp = to_iqp(ibqp);
228 struct qib_ibdev *dev = to_idev(ibqp->device);
234 if (ibqp->qp_num <= 1 || qp->state == IB_QPS_RESET) {
254 ibp = to_iport(ibqp->device, qp->port_num);
283 int qib_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
285 struct qib_qp *qp = to_iqp(ibqp);
286 struct qib_ibdev *dev = to_idev(ibqp->device);
287 struct qib_ibport *ibp = to_iport(ibqp->device, qp->port_num);
294 if (ibqp
[all...]
H A Dqib_qp.c221 struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
223 unsigned n = qpn_hash(dev, qp->ibqp.qp_num);
228 if (qp->ibqp.qp_num == 0)
230 else if (qp->ibqp.qp_num == 1)
247 struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num);
248 unsigned n = qpn_hash(dev, qp->ibqp.qp_num);
341 if (qp->ibqp.qp_num == qpn)
432 if (qp->ibqp.qp_type == IB_QPT_UD ||
433 qp->ibqp.qp_type == IB_QPT_SMI ||
434 qp->ibqp
564 qib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument
850 qib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_qp_init_attr *init_attr) argument
1178 qib_destroy_qp(struct ib_qp *ibqp) argument
[all...]
/drivers/infiniband/hw/cxgb3/
H A Diwch_qp.c350 int iwch_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, argument
365 qhp = to_iwch_qp(ibqp);
465 int iwch_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, argument
475 qhp = to_iwch_qp(ibqp);
859 if (qhp->ibqp.uobject) {
915 if (!qhp->ibqp.uobject)
1054 if (qhp->ibqp.uobject)
H A Diwch_provider.c75 static int iwch_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
80 static int iwch_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
1001 iwch_destroy_qp(&qhp->ibqp);
1008 iwch_destroy_qp(&qhp->ibqp);
1025 iwch_destroy_qp(&qhp->ibqp);
1037 qhp->ibqp.qp_num = qhp->wq.qpid;
1044 return &qhp->ibqp;
1047 static int iwch_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, argument
1055 PDBG("%s ib_qp %p\n", __func__, ibqp);
1066 qhp = to_iwch_qp(ibqp);
[all...]
H A Diwch_provider.h160 struct ib_qp ibqp; member in struct:iwch_qp
177 static inline struct iwch_qp *to_iwch_qp(struct ib_qp *ibqp) argument
179 return container_of(ibqp, struct iwch_qp, ibqp);
327 int iwch_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
329 int iwch_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr,
/drivers/infiniband/hw/cxgb4/
H A Dprovider.c72 static int c4iw_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
77 static int c4iw_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
H A Dqp.c581 int c4iw_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, argument
595 qhp = to_c4iw_qp(ibqp);
695 int c4iw_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, argument
706 qhp = to_c4iw_qp(ibqp);
980 if (qhp->ibqp.uobject) {
1100 if (!qhp->ibqp.uobject)
1232 if (qhp->ibqp.uobject)
1242 if (qhp->ibqp.uobject)
1252 if (qhp->ibqp.uobject)
1554 qhp->ibqp
1580 c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument
[all...]
/drivers/infiniband/hw/mlx4/
H A Dmain.c670 static int add_gid_entry(struct ib_qp *ibqp, union ib_gid *gid) argument
672 struct mlx4_ib_qp *mqp = to_mqp(ibqp);
673 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device);
721 static int mlx4_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
724 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device);
725 struct mlx4_ib_qp *mqp = to_mqp(ibqp);
733 err = add_gid_entry(ibqp, gid);
760 static int mlx4_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument
763 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device);
764 struct mlx4_ib_qp *mqp = to_mqp(ibqp);
[all...]
H A Dmlx4_ib.h130 struct ib_qp ibqp; member in struct:mlx4_ib_qp
251 static inline struct mlx4_ib_qp *to_mqp(struct ib_qp *ibqp) argument
253 return container_of(ibqp, struct mlx4_ib_qp, ibqp);
323 int mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
325 int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask,
327 int mlx4_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
329 int mlx4_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr,
H A Dqp.c184 if (qp->ibqp.qp_type == IB_QPT_UD) {
188 av->port_pd = cpu_to_be32((qp->port << 24) | to_mpd(qp->ibqp.pd)->pdn);
225 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; local
230 if (ibqp->event_handler) {
231 event.device = ibqp->device;
232 event.element.qp = ibqp;
264 ibqp->event_handler(&event, ibqp->qp_context);
685 if (qp->ibqp
1006 __mlx4_ib_modify_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, enum ib_qp_state cur_state, enum ib_qp_state new_state) argument
1301 mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument
1694 mlx4_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument
1943 mlx4_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument
2080 mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, struct ib_qp_init_attr *qp_init_attr) argument
[all...]
/drivers/infiniband/hw/nes/
H A Dnes.c259 void nes_add_ref(struct ib_qp *ibqp) argument
263 nesqp = to_nesqp(ibqp);
265 ibqp->qp_num, atomic_read(&nesqp->refcount));
302 void nes_rem_ref(struct ib_qp *ibqp) argument
306 struct nes_vnic *nesvnic = to_nesvnic(ibqp->device);
312 nesqp = to_nesqp(ibqp);
316 __func__, ibqp->qp_num, nesqp->last_aeq);
364 return &nesadapter->qp_table[qpn - NES_FIRST_QPN]->ibqp;
H A Dnes_verbs.h135 struct ib_qp ibqp; member in struct:nes_qp

Completed in 165 milliseconds

12