Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/staging/rdma/ehca/
Dehca_qp.c465 int qp_type, max_send_sge, max_recv_sge, ret; in internal_create_qp() local
486 qp_type = init_attr->qp_type; in internal_create_qp()
497 if (qp_type & 0x80) { in internal_create_qp()
500 parms.ll_comp_flags = qp_type & LLQP_COMP_MASK; in internal_create_qp()
502 qp_type &= 0x1F; in internal_create_qp()
503 init_attr->qp_type &= 0x1F; in internal_create_qp()
509 if (qp_type == IB_QPT_UC) { in internal_create_qp()
540 if (qp_type != IB_QPT_UD && in internal_create_qp()
541 qp_type != IB_QPT_UC && in internal_create_qp()
542 qp_type != IB_QPT_RC && in internal_create_qp()
[all …]
Dehca_mcast.c67 if (ibqp->qp_type != IB_QPT_UD) { in ehca_attach_mcast()
68 ehca_err(ibqp->device, "invalid qp_type=%x", ibqp->qp_type); in ehca_attach_mcast()
104 if (ibqp->qp_type != IB_QPT_UD) { in ehca_detach_mcast()
105 ehca_err(ibqp->device, "invalid qp_type %x", ibqp->qp_type); in ehca_detach_mcast()
Dehca_sqp.c75 switch (qp_init_attr->qp_type) { in ehca_define_sqp()
98 qp_init_attr->qp_type); in ehca_define_sqp()
Dehca_reqs.c220 switch (qp->qp_type) { in ehca_write_swqe()
255 if (qp->qp_type == IB_QPT_SMI || in ehca_write_swqe()
256 qp->qp_type == IB_QPT_GSI) in ehca_write_swqe()
258 if (qp->qp_type == IB_QPT_GSI) { in ehca_write_swqe()
304 ehca_gen_err("Invalid qptype=%x", qp->qp_type); in ehca_write_swqe()
Dehca_classes.h190 u32 qp_type; member
409 u32 qp_type; member
Dehca_main.c588 qp_init_attr.qp_type = IB_QPT_GSI; in ehca_create_aqp1()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dud.c90 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback()
91 IB_QPT_UD : sqp->ibqp.qp_type; in ud_loopback()
92 dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback()
93 IB_QPT_UD : qp->ibqp.qp_type; in ud_loopback()
234 if (qp->ibqp.qp_type == IB_QPT_GSI || qp->ibqp.qp_type == IB_QPT_SMI) { in ud_loopback()
235 if (sqp->ibqp.qp_type == IB_QPT_GSI || in ud_loopback()
236 sqp->ibqp.qp_type == IB_QPT_SMI) in ud_loopback()
245 if (wc.slid == 0 && sqp->ibqp.qp_type == IB_QPT_GSI) in ud_loopback()
318 qp->ibqp.qp_type == IB_QPT_GSI)))) { in hfi1_make_ud_req()
379 if (qp->ibqp.qp_type == IB_QPT_SMI) { in hfi1_make_ud_req()
[all …]
Druc.c433 qp->ibqp.qp_type != sqp->ibqp.qp_type) { in ruc_loopback()
439 if (sqp->ibqp.qp_type == IB_QPT_RC) in ruc_loopback()
599 if (qp->ibqp.qp_type == IB_QPT_UC) in ruc_loopback()
642 if (sqp->ibqp.qp_type == IB_QPT_RC) { in ruc_loopback()
844 if ((qp->ibqp.qp_type == IB_QPT_RC || in hfi1_do_send()
845 qp->ibqp.qp_type == IB_QPT_UC) && in hfi1_do_send()
852 if (qp->ibqp.qp_type == IB_QPT_RC) in hfi1_do_send()
854 else if (qp->ibqp.qp_type == IB_QPT_UC) in hfi1_do_send()
912 if (qp->ibqp.qp_type == IB_QPT_UD || in hfi1_send_complete()
913 qp->ibqp.qp_type == IB_QPT_SMI || in hfi1_send_complete()
[all …]
Dqp.c422 if (qp->ibqp.qp_type == IB_QPT_UD || in clear_mr_refs()
423 qp->ibqp.qp_type == IB_QPT_SMI || in clear_mr_refs()
424 qp->ibqp.qp_type == IB_QPT_GSI) in clear_mr_refs()
435 if (qp->ibqp.qp_type != IB_QPT_RC) in clear_mr_refs()
629 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in hfi1_modify_qp()
658 if (qp->ibqp.qp_type == IB_QPT_SMI || in hfi1_modify_qp()
659 qp->ibqp.qp_type == IB_QPT_GSI || in hfi1_modify_qp()
738 reset_qp(qp, ibqp->qp_type); in hfi1_modify_qp()
754 if (qp->ibqp.qp_type == IB_QPT_RC) in hfi1_modify_qp()
936 init_attr->qp_type = qp->ibqp.qp_type; in hfi1_query_qp()
[all …]
Dverbs.c386 if (qp->ibqp.qp_type == IB_QPT_UC) { in post_one_send()
389 } else if (qp->ibqp.qp_type != IB_QPT_RC) { in post_one_send()
418 if (qp->ibqp.qp_type != IB_QPT_UC && in post_one_send()
419 qp->ibqp.qp_type != IB_QPT_RC) in post_one_send()
451 if (qp->ibqp.qp_type == IB_QPT_UC || in post_one_send()
452 qp->ibqp.qp_type == IB_QPT_RC) { in post_one_send()
832 else if (qp->ibqp.qp_type == IB_QPT_RC) { in verbs_sdma_complete()
1211 } else if (qp->ibqp.qp_type == IB_QPT_RC) { in hfi1_verbs_send_pio()
1329 if ((qp->ibqp.qp_type == IB_QPT_SMI) || in hfi1_verbs_send()
2156 if (packet->qp->ibqp.qp_type == IB_QPT_UC) in hfi1_cnp_rcv()
[all …]
Ddriver.c326 switch (qp->ibqp.qp_type) { in rcv_hdrerr()
391 switch (qp->ibqp.qp_type) { in rcv_hdrerr()
451 switch (qp->ibqp.qp_type) { in process_ecn()
Ddiag.c1773 } else if (qp->ibqp.qp_type == IB_QPT_RC) { in snoop_send_pio_handler()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dqp.c248 if (qp->ibqp.qp_type == IB_QPT_UD) { in post_nop_wqe()
605 if (attr->qp_type == IB_QPT_XRC_INI || attr->qp_type == IB_QPT_XRC_TGT) in qp_has_rq()
642 enum mlx4_ib_qp_type qp_type = (enum mlx4_ib_qp_type) init_attr->qp_type; in create_qp_common() local
651 if (init_attr->qp_type == IB_QPT_GSI) in create_qp_common()
652 qp_type = MLX4_IB_QPT_PROXY_GSI; in create_qp_common()
656 qp_type = MLX4_IB_QPT_PROXY_SMI_OWNER; in create_qp_common()
658 qp_type = MLX4_IB_QPT_PROXY_SMI; in create_qp_common()
673 qp_type = MLX4_IB_QPT_TUN_GSI; in create_qp_common()
677 qp_type = MLX4_IB_QPT_TUN_SMI_OWNER; in create_qp_common()
679 qp_type = MLX4_IB_QPT_TUN_SMI; in create_qp_common()
[all …]
Dmad.c641 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
712 err = mlx4_ib_send_to_slave(dev, slave, port, wc->qp->qp_type, wc, grh, mad); in mlx4_ib_demux_mad()
1143 size = (tun_qp->qp->qp_type == IB_QPT_UD) ? in mlx4_ib_post_pv_qp_buf()
1418 enum ib_qp_type qp_type, int is_tun) in mlx4_ib_alloc_pv_bufs() argument
1424 if (qp_type > IB_QPT_GSI) in mlx4_ib_alloc_pv_bufs()
1427 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_alloc_pv_bufs()
1485 tun_qp->proxy_qpt = qp_type; in mlx4_ib_alloc_pv_bufs()
1512 enum ib_qp_type qp_type, int is_tun) in mlx4_ib_free_pv_qp_bufs() argument
1518 if (qp_type > IB_QPT_GSI) in mlx4_ib_free_pv_qp_bufs()
1521 tun_qp = &ctx->qp[qp_type]; in mlx4_ib_free_pv_qp_bufs()
[all …]
Dcq.c734 if (wc->qp->qp_type == IB_QPT_XRC_TGT) { in mlx4_ib_poll_one()
/linux-4.4.14/drivers/infiniband/hw/mlx5/
Dqp.c74 static int is_qp0(enum ib_qp_type qp_type) in is_qp0() argument
76 return qp_type == IB_QPT_SMI; in is_qp0()
79 static int is_sqp(enum ib_qp_type qp_type) in is_sqp() argument
81 return is_qp0(qp_type) || is_qp1(qp_type); in is_sqp()
131 qp->ibqp.qp_type); in mlx5_ib_read_user_wqe()
258 static int sq_overhead(enum ib_qp_type qp_type) in sq_overhead() argument
262 switch (qp_type) { in sq_overhead()
307 size = sq_overhead(attr->qp_type); in calc_send_wqe()
344 qp->max_inline_data = wqe_size - sq_overhead(attr->qp_type) - in calc_sq_size()
402 if (attr->qp_type == IB_QPT_XRC_INI || in qp_has_rq()
[all …]
Dodp.c434 switch (qp->ibqp.qp_type) { in mlx5_ib_mr_initiator_pfault_handler()
477 qp->ibqp.qp_type, opcode); in mlx5_ib_mr_initiator_pfault_handler()
511 switch (qp->ibqp.qp_type) { in mlx5_ib_mr_responder_pfault_handler()
520 qp->ibqp.qp_type); in mlx5_ib_mr_responder_pfault_handler()
Dmlx5_ib.h657 static inline int is_qp1(enum ib_qp_type qp_type) in is_qp1() argument
659 return qp_type == IB_QPT_GSI; in is_qp1()
Dmain.c1114 init_attr->qp_type = MLX5_IB_QPT_REG_UMR; in create_umr_res()
1125 qp->qp_type = MLX5_IB_QPT_REG_UMR; in create_umr_res()
Dcq.c231 if (unlikely(is_qp1(qp->ibqp.qp_type))) { in handle_responder()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_ud.c68 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
69 IB_QPT_UD : sqp->ibqp.qp_type; in qib_ud_loopback()
70 dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
71 IB_QPT_UD : qp->ibqp.qp_type; in qib_ud_loopback()
212 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
348 if (qp->ibqp.qp_type == IB_QPT_SMI) in qib_make_ud_req()
364 bth0 |= qp->ibqp.qp_type == IB_QPT_SMI ? QIB_DEFAULT_P_KEY : in qib_make_ud_req()
365 qib_get_pkey(ibp, qp->ibqp.qp_type == IB_QPT_GSI ? in qib_make_ud_req()
571 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_rcv()
Dqib_ruc.c411 qp->ibqp.qp_type != sqp->ibqp.qp_type) { in qib_ruc_loopback()
417 if (sqp->ibqp.qp_type == IB_QPT_RC) in qib_ruc_loopback()
577 if (qp->ibqp.qp_type == IB_QPT_UC) in qib_ruc_loopback()
620 if (sqp->ibqp.qp_type == IB_QPT_RC) { in qib_ruc_loopback()
726 if ((qp->ibqp.qp_type == IB_QPT_RC || in qib_do_send()
727 qp->ibqp.qp_type == IB_QPT_UC) && in qib_do_send()
733 if (qp->ibqp.qp_type == IB_QPT_RC) in qib_do_send()
735 else if (qp->ibqp.qp_type == IB_QPT_UC) in qib_do_send()
785 if (qp->ibqp.qp_type == IB_QPT_UD || in qib_send_complete()
786 qp->ibqp.qp_type == IB_QPT_SMI || in qib_send_complete()
[all …]
Dqib_qp.c437 if (qp->ibqp.qp_type == IB_QPT_UD || in clear_mr_refs()
438 qp->ibqp.qp_type == IB_QPT_SMI || in clear_mr_refs()
439 qp->ibqp.qp_type == IB_QPT_GSI) in clear_mr_refs()
450 if (qp->ibqp.qp_type != IB_QPT_RC) in clear_mr_refs()
588 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in qib_modify_qp()
617 if (qp->ibqp.qp_type == IB_QPT_SMI || in qib_modify_qp()
618 qp->ibqp.qp_type == IB_QPT_GSI || in qib_modify_qp()
719 qib_reset_qp(qp, ibqp->qp_type); in qib_modify_qp()
735 if (qp->ibqp.qp_type == IB_QPT_RC) in qib_modify_qp()
900 init_attr->qp_type = qp->ibqp.qp_type; in qib_query_qp()
[all …]
Dqib_verbs.c368 } else if (qp->ibqp.qp_type == IB_QPT_UC) { in qib_post_one_send()
371 } else if (qp->ibqp.qp_type != IB_QPT_RC) { in qib_post_one_send()
401 if (qp->ibqp.qp_type != IB_QPT_UC && in qib_post_one_send()
402 qp->ibqp.qp_type != IB_QPT_RC) in qib_post_one_send()
437 if (qp->ibqp.qp_type == IB_QPT_UC || in qib_post_one_send()
438 qp->ibqp.qp_type == IB_QPT_RC) { in qib_post_one_send()
589 switch (qp->ibqp.qp_type) { in qib_qp_rcv()
1103 else if (qp->ibqp.qp_type == IB_QPT_RC) { in sdma_complete()
1375 } else if (qp->ibqp.qp_type == IB_QPT_RC) { in qib_verbs_send_pio()
1413 if (qp->ibqp.qp_type == IB_QPT_SMI || in qib_verbs_send()
Dqib_driver.c370 switch (qp->ibqp.qp_type) { in qib_rcv_hdrerr()
Dqib_sdma.c669 if (qp->ibqp.qp_type == IB_QPT_RC) { in qib_sdma_verbs_send()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_ruc.c317 if (sqp->ibqp.qp_type == IB_QPT_RC) in ipath_ruc_loopback()
456 if (qp->ibqp.qp_type == IB_QPT_UC) in ipath_ruc_loopback()
492 if (sqp->ibqp.qp_type == IB_QPT_RC) { in ipath_ruc_loopback()
519 qp->ibqp.qp_type == IB_QPT_SMI) { in want_buffer()
645 if ((qp->ibqp.qp_type == IB_QPT_RC || in ipath_do_send()
646 qp->ibqp.qp_type == IB_QPT_UC) && in ipath_do_send()
652 if (qp->ibqp.qp_type == IB_QPT_RC) in ipath_do_send()
654 else if (qp->ibqp.qp_type == IB_QPT_UC) in ipath_do_send()
Dipath_qp.c464 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in ipath_modify_qp()
526 ipath_reset_qp(qp, ibqp->qp_type); in ipath_modify_qp()
535 if (qp->ibqp.qp_type == IB_QPT_RC) in ipath_modify_qp()
665 init_attr->qp_type = qp->ibqp.qp_type; in ipath_query_qp()
779 switch (init_attr->qp_type) { in ipath_create_qp()
809 if (sg_list_sz && (init_attr->qp_type == IB_QPT_UD || in ipath_create_qp()
810 init_attr->qp_type == IB_QPT_SMI || in ipath_create_qp()
811 init_attr->qp_type == IB_QPT_GSI)) { in ipath_create_qp()
861 init_attr->qp_type); in ipath_create_qp()
869 ipath_reset_qp(qp, init_attr->qp_type); in ipath_create_qp()
Dipath_verbs.c349 if (qp->ibqp.qp_type != IB_QPT_SMI && in ipath_post_one_send()
368 if (qp->ibqp.qp_type == IB_QPT_UC) { in ipath_post_one_send()
371 } else if (qp->ibqp.qp_type == IB_QPT_UD) { in ipath_post_one_send()
399 if (qp->ibqp.qp_type != IB_QPT_UC && in ipath_post_one_send()
400 qp->ibqp.qp_type != IB_QPT_RC) in ipath_post_one_send()
431 if (qp->ibqp.qp_type == IB_QPT_UC || in ipath_post_one_send()
432 qp->ibqp.qp_type == IB_QPT_RC) { in ipath_post_one_send()
563 switch (qp->ibqp.qp_type) { in ipath_qp_rcv()
1354 if (qp->ibqp.qp_type == IB_QPT_SMI || in ipath_verbs_send()
Dipath_ud.c349 if (qp->ibqp.qp_type == IB_QPT_SMI) in ipath_make_ud_req()
365 bth0 |= qp->ibqp.qp_type == IB_QPT_SMI ? IPATH_DEFAULT_P_KEY : in ipath_make_ud_req()
/linux-4.4.14/include/rdma/
Drdma_cm.h156 enum ib_qp_type qp_type; member
175 enum ib_qp_type qp_type);
Dib_cm.h126 enum ib_qp_type qp_type; member
370 enum ib_qp_type qp_type; member
Dib_mad.h574 enum ib_qp_type qp_type,
605 enum ib_qp_type qp_type,
Dib_verbs.h891 enum ib_qp_type qp_type; member
900 enum ib_qp_type qp_type; member
1354 enum ib_qp_type qp_type; member
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c1215 if ((attrs->qp_type != IB_QPT_GSI) && in ocrdma_check_qp_params()
1216 (attrs->qp_type != IB_QPT_RC) && in ocrdma_check_qp_params()
1217 (attrs->qp_type != IB_QPT_UC) && in ocrdma_check_qp_params()
1218 (attrs->qp_type != IB_QPT_UD)) { in ocrdma_check_qp_params()
1220 __func__, dev->id, attrs->qp_type); in ocrdma_check_qp_params()
1224 if ((attrs->qp_type != IB_QPT_GSI) && in ocrdma_check_qp_params()
1261 if (ibpd->uobject && attrs->qp_type == IB_QPT_GSI) { in ocrdma_check_qp_params()
1264 __func__, dev->id, attrs->qp_type); in ocrdma_check_qp_params()
1268 if (attrs->qp_type == IB_QPT_GSI && dev->gsi_qp_created) { in ocrdma_check_qp_params()
1274 if ((attrs->qp_type != IB_QPT_GSI) && (dev->gsi_qp_created)) { in ocrdma_check_qp_params()
[all …]
Docrdma.h426 enum ib_qp_type qp_type; member
Docrdma_hw.c2388 switch (attrs->qp_type) { in ocrdma_mbx_create_qp()
2586 } else if (qp->qp_type == IB_QPT_GSI || qp->qp_type == IB_QPT_UD) { in ocrdma_set_qp_params()
/linux-4.4.14/include/uapi/rdma/
Dib_user_cm.h134 __u32 qp_type; member
238 __u32 qp_type; member
Drdma_netlink.h57 __u8 qp_type; member
Dib_user_verbs.h514 __u8 qp_type; member
532 __u8 qp_type; member
544 __u8 qp_type; member
Drdma_user_cm.h85 __u8 qp_type; member
/linux-4.4.14/drivers/infiniband/core/
Dverbs.c570 qp->qp_type = real_qp->qp_type; in __ib_open_qp()
584 if (qp_open_attr->qp_type != IB_QPT_XRC_TGT) in ib_open_qp()
614 qp->qp_type = qp_init_attr->qp_type; in ib_create_qp()
617 if (qp_init_attr->qp_type == IB_QPT_XRC_TGT) { in ib_create_qp()
637 if (qp_init_attr->qp_type == IB_QPT_XRC_INI) { in ib_create_qp()
1375 if (gid->raw[0] != 0xff || qp->qp_type != IB_QPT_UD) in ib_attach_mcast()
1391 if (gid->raw[0] != 0xff || qp->qp_type != IB_QPT_UD) in ib_detach_mcast()
Dcm_msgs.h176 enum ib_qp_type qp_type) in cm_req_set_qp_type() argument
178 switch(qp_type) { in cm_req_set_qp_type()
540 static inline __be32 cm_rep_get_qpn(struct cm_rep_msg *rep_msg, enum ib_qp_type qp_type) in cm_rep_get_qpn() argument
542 return (qp_type == IB_QPT_XRC_INI) ? in cm_rep_get_qpn()
Ducma.c336 if (cm_id->qp_type == IB_QPT_UD) in ucma_event_handler()
432 static int ucma_get_qp_type(struct rdma_ucm_create_id *cmd, enum ib_qp_type *qp_type) in ucma_get_qp_type() argument
436 *qp_type = IB_QPT_RC; in ucma_get_qp_type()
440 *qp_type = IB_QPT_UD; in ucma_get_qp_type()
443 *qp_type = cmd->qp_type; in ucma_get_qp_type()
456 enum ib_qp_type qp_type; in ucma_create_id() local
465 ret = ucma_get_qp_type(&cmd, &qp_type); in ucma_create_id()
477 ucma_event_handler, ctx, cmd.ps, qp_type); in ucma_create_id()
Dcm.c228 enum ib_qp_type qp_type; member
877 if (cm_id_priv->qp_type == IB_QPT_XRC_TGT) in cm_destroy_id()
1078 cm_req_set_qp_type(req_msg, param->qp_type); in cm_format_req()
1087 if (param->qp_type != IB_QPT_XRC_INI) { in cm_format_req()
1150 if (param->qp_type != IB_QPT_RC && param->qp_type != IB_QPT_UC && in cm_validate_req_param()
1151 param->qp_type != IB_QPT_XRC_INI) in cm_validate_req_param()
1216 cm_id_priv->qp_type = param->qp_type; in ib_send_cm_req()
1379 param->qp_type = cm_req_get_qp_type(req_msg); in cm_format_req_event()
1673 cm_id_priv->qp_type = cm_req_get_qp_type(req_msg); in cm_req_handler()
1703 if (cm_id_priv->qp_type != IB_QPT_XRC_TGT) { in cm_format_rep()
[all …]
Dcma.c606 enum ib_qp_type qp_type) in rdma_create_id() argument
619 id_priv->id.qp_type = qp_type; in rdma_create_id()
688 if (id->qp_type == IB_QPT_UD) in rdma_create_qp()
823 if (id_priv->id.qp_type == IB_QPT_UD) { in cma_ib_init_qp_attr()
845 if (!id_priv->cm_id.ib || (id_priv->id.qp_type == IB_QPT_UD)) in rdma_init_qp_attr()
1614 listen_id->ps, ib_event->param.req_rcvd.qp_type); in cma_new_conn_id()
1721 (ib_event->param.req_rcvd.qp_type == id->qp_type)) || in cma_check_req_qp_type()
1723 (id->qp_type == IB_QPT_UD)) || in cma_check_req_qp_type()
1724 (!id->qp_type)); in cma_check_req_qp_type()
1789 (conn_id->id.qp_type != IB_QPT_UD)) in cma_req_handler()
[all …]
Duverbs_cmd.c1769 if (cmd->qp_type == IB_QPT_RAW_PACKET && !capable(CAP_NET_RAW)) in create_qp()
1780 if (cmd->qp_type == IB_QPT_XRC_TGT) { in create_qp()
1789 if (cmd->qp_type == IB_QPT_XRC_INI) { in create_qp()
1831 attr.qp_type = cmd->qp_type; in create_qp()
1861 if (cmd->qp_type == IB_QPT_XRC_TGT) in create_qp()
1871 if (cmd->qp_type != IB_QPT_XRC_TGT) { in create_qp()
1880 qp->qp_type = attr.qp_type; in create_qp()
2005 cmd_ex.qp_type = cmd.qp_type; in ib_uverbs_create_qp()
2106 attr.qp_type = cmd.qp_type; in ib_uverbs_open_qp()
2263 static int modify_qp_mask(enum ib_qp_type qp_type, int mask) in modify_qp_mask() argument
[all …]
Dmad.c128 static int get_spl_qp_index(enum ib_qp_type qp_type) in get_spl_qp_index() argument
130 switch (qp_type) in get_spl_qp_index()
196 enum ib_qp_type qp_type, in ib_register_mad_agent() argument
217 qpn = get_spl_qp_index(qp_type); in ib_register_mad_agent()
221 qp_type); in ib_register_mad_agent()
288 if (qp_type == IB_QPT_SMI) { in ib_register_mad_agent()
483 enum ib_qp_type qp_type, in ib_register_mad_snoop() argument
500 qpn = get_spl_qp_index(qp_type); in ib_register_mad_snoop()
3099 enum ib_qp_type qp_type) in create_mad_qp() argument
3112 qp_init_attr.qp_type = qp_type; in create_mad_qp()
[all …]
Ducm.c210 ureq->qp_type = kreq->qp_type; in ib_ucm_event_req_get()
762 param.qp_type = cmd.qp_type; in ib_ucm_send_req()
/linux-4.4.14/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.c390 switch (qp_grp->ibqp.qp_type) { in usnic_ib_query_qp()
395 usnic_err("Unexpected qp_type %d\n", qp_grp->ibqp.qp_type); in usnic_ib_query_qp()
505 if (init_attr->qp_type != IB_QPT_UD) { in usnic_ib_create_qp()
507 us_ibdev->ib_dev.name, init_attr->qp_type); in usnic_ib_create_qp()
/linux-4.4.14/drivers/infiniband/ulp/ipoib/
Dipoib_verbs.c142 .qp_type = IB_QPT_UD in ipoib_transport_dev_init()
Dipoib_cm.c260 .qp_type = IB_QPT_RC, in ipoib_cm_create_rx_qp()
1026 .qp_type = IB_QPT_RC, in ipoib_cm_create_tx_qp()
1062 req.qp_type = qp->qp_type; in ipoib_cm_send_req()
/linux-4.4.14/drivers/staging/rdma/amso1100/
Dc2_provider.c247 switch (init_attr->qp_type) { in c2_create_qp()
269 init_attr->qp_type); in c2_create_qp()
Dc2_qp.c433 qp->ibqp.qp_type = IB_QPT_RC; in c2_alloc_qp()
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_provider.c525 switch (init_attr->qp_type) { in mthca_create_qp()
572 init_attr->qp_type, init_attr->sq_sig_type, in mthca_create_qp()
602 qp->ibqp.qp_num = init_attr->qp_type == IB_QPT_SMI ? 0 : 1; in mthca_create_qp()
Dmthca_qp.c651 if (ibqp->qp_type == IB_QPT_RC && in __mthca_modify_qp()
863 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask, in mthca_modify_qp()
/linux-4.4.14/net/9p/
Dtrans_rdma.c720 qp_attr.qp_type = IB_QPT_RC; in rdma_create_trans()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c737 u32 qp_type; in update_vport_qp_param() local
743 qp_type = (be32_to_cpu(qpc->flags) >> 16) & 0xff; in update_vport_qp_param()
757 if (qp_type == MLX4_QP_ST_UD || in update_vport_qp_param()
758 (qp_type == MLX4_QP_ST_MLX && mlx4_is_eth(dev, port))) { in update_vport_qp_param()
3107 u32 qp_type; in verify_qp_parameters() local
3115 qp_type = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; in verify_qp_parameters()
3125 switch (qp_type) { in verify_qp_parameters()
/linux-4.4.14/net/rds/
Diw_cm.c200 attr->qp_type = IB_QPT_RC; in rds_iw_init_qp_attrs()
Dib_cm.c420 attr.qp_type = IB_QPT_RC; in rds_ib_setup_qp()
/linux-4.4.14/drivers/infiniband/ulp/srp/
Dib_srp.c526 init_attr->qp_type = IB_QPT_RC; in srp_create_ch_ib()
723 req->param.qp_type = ch->qp->qp_type; in srp_send_req()
/linux-4.4.14/net/sunrpc/xprtrdma/
Dverbs.c606 ep->rep_attr.qp_type = IB_QPT_RC; in rpcrdma_ep_create()
Dsvc_rdma_transport.c971 qp_attr.qp_type = IB_QPT_RC; in svc_rdma_accept()
/linux-4.4.14/drivers/infiniband/ulp/iser/
Diser_verbs.c499 init_attr.qp_type = IB_QPT_RC; in iser_create_ib_conn_res()
/linux-4.4.14/drivers/infiniband/hw/cxgb3/
Diwch_provider.c931 if (attrs->qp_type != IB_QPT_RC) in iwch_create_qp()
/linux-4.4.14/drivers/infiniband/hw/nes/
Dnes_verbs.c1118 switch (init_attr->qp_type) { in nes_create_qp()
1388 nes_debug(NES_DBG_QP, "Invalid QP type: %d\n", init_attr->qp_type); in nes_create_qp()
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
Dqp.c1637 if (attrs->qp_type != IB_QPT_RC) in c4iw_create_qp()
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c773 init_qp_attr->qp_type = IB_QPT_RC; in kiblnd_create_conn()
/linux-4.4.14/drivers/infiniband/ulp/isert/
Dib_isert.c166 attr.qp_type = IB_QPT_RC; in isert_create_qp()
/linux-4.4.14/drivers/infiniband/ulp/srpt/
Dib_srpt.c2049 qp_init->qp_type = IB_QPT_RC; in srpt_create_ch_ib()