Home
last modified time | relevance | path

Searched refs:qp_attr (Results 1 – 25 of 51) sorted by relevance

123

/linux/drivers/infiniband/ulp/ipoib/
A Dipoib_verbs.c55 qp_attr = kmalloc(sizeof(*qp_attr), GFP_KERNEL); in ipoib_mcast_attach()
56 if (!qp_attr) in ipoib_mcast_attach()
60 qp_attr->qkey = qkey; in ipoib_mcast_attach()
74 kfree(qp_attr); in ipoib_mcast_attach()
93 struct ib_qp_attr qp_attr; in ipoib_init_qp() local
99 qp_attr.qp_state = IB_QPS_INIT; in ipoib_init_qp()
100 qp_attr.qkey = 0; in ipoib_init_qp()
101 qp_attr.port_num = priv->port; in ipoib_init_qp()
114 qp_attr.qp_state = IB_QPS_RTR; in ipoib_init_qp()
123 qp_attr.qp_state = IB_QPS_RTS; in ipoib_init_qp()
[all …]
A Dipoib_cm.c278 struct ib_qp_attr qp_attr; in ipoib_cm_modify_rx_qp() local
281 qp_attr.qp_state = IB_QPS_INIT; in ipoib_cm_modify_rx_qp()
292 qp_attr.qp_state = IB_QPS_RTR; in ipoib_cm_modify_rx_qp()
298 qp_attr.rq_psn = psn; in ipoib_cm_modify_rx_qp()
313 qp_attr.qp_state = IB_QPS_RTS; in ipoib_cm_modify_rx_qp()
992 struct ib_qp_attr qp_attr; in ipoib_cm_rep_handler() local
1004 qp_attr.qp_state = IB_QPS_RTR; in ipoib_cm_rep_handler()
1011 qp_attr.rq_psn = 0 /* FIXME */; in ipoib_cm_rep_handler()
1018 qp_attr.qp_state = IB_QPS_RTS; in ipoib_cm_rep_handler()
1123 struct ib_qp_attr qp_attr; in ipoib_cm_modify_tx_init() local
[all …]
A Dipoib_ib.c351 struct ib_qp_attr qp_attr; in ipoib_qp_state_validate_work() local
362 __func__, priv->qp->qp_num, qp_attr.qp_state); in ipoib_qp_state_validate_work()
365 if (qp_attr.qp_state == IB_QPS_SQE) { in ipoib_qp_state_validate_work()
366 qp_attr.qp_state = IB_QPS_RTS; in ipoib_qp_state_validate_work()
378 priv->qp->qp_num, qp_attr.qp_state); in ipoib_qp_state_validate_work()
739 struct ib_qp_attr qp_attr; in check_qp_movement_and_print() local
753 new_state, qp_attr.qp_state); in check_qp_movement_and_print()
775 struct ib_qp_attr qp_attr; in ipoib_ib_dev_stop_default() local
789 qp_attr.qp_state = IB_QPS_ERR; in ipoib_ib_dev_stop_default()
790 if (ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE)) in ipoib_ib_dev_stop_default()
[all …]
/linux/net/smc/
A Dsmc_ib.c47 struct ib_qp_attr qp_attr; in smc_ib_modify_qp_init() local
49 memset(&qp_attr, 0, sizeof(qp_attr)); in smc_ib_modify_qp_init()
50 qp_attr.qp_state = IB_QPS_INIT; in smc_ib_modify_qp_init()
51 qp_attr.pkey_index = 0; in smc_ib_modify_qp_init()
65 struct ib_qp_attr qp_attr; in smc_ib_modify_qp_rtr() local
68 memset(&qp_attr, 0, sizeof(qp_attr)); in smc_ib_modify_qp_rtr()
69 qp_attr.qp_state = IB_QPS_RTR; in smc_ib_modify_qp_rtr()
95 struct ib_qp_attr qp_attr; in smc_ib_modify_qp_rts() local
97 memset(&qp_attr, 0, sizeof(qp_attr)); in smc_ib_modify_qp_rts()
114 struct ib_qp_attr qp_attr; in smc_ib_modify_qp_error() local
[all …]
/linux/net/sunrpc/xprtrdma/
A Dsvc_rdma_transport.c372 struct ib_qp_init_attr qp_attr; in svc_rdma_accept() local
443 memset(&qp_attr, 0, sizeof qp_attr); in svc_rdma_accept()
445 qp_attr.qp_context = &newxprt->sc_xprt; in svc_rdma_accept()
447 qp_attr.cap.max_rdma_ctxs = ctxts; in svc_rdma_accept()
449 qp_attr.cap.max_recv_wr = rq_depth; in svc_rdma_accept()
451 qp_attr.cap.max_recv_sge = 1; in svc_rdma_accept()
453 qp_attr.qp_type = IB_QPT_RC; in svc_rdma_accept()
454 qp_attr.send_cq = newxprt->sc_sq_cq; in svc_rdma_accept()
455 qp_attr.recv_cq = newxprt->sc_rq_cq; in svc_rdma_accept()
459 qp_attr.cap.max_send_wr, qp_attr.cap.max_recv_wr); in svc_rdma_accept()
[all …]
/linux/net/9p/
A Dtrans_rdma.c633 struct ib_qp_init_attr qp_attr; in rdma_create_trans() local
701 memset(&qp_attr, 0, sizeof qp_attr); in rdma_create_trans()
702 qp_attr.event_handler = qp_event_handler; in rdma_create_trans()
703 qp_attr.qp_context = client; in rdma_create_trans()
704 qp_attr.cap.max_send_wr = opts.sq_depth; in rdma_create_trans()
705 qp_attr.cap.max_recv_wr = opts.rq_depth; in rdma_create_trans()
706 qp_attr.cap.max_send_sge = P9_RDMA_SEND_SGE; in rdma_create_trans()
708 qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR; in rdma_create_trans()
709 qp_attr.qp_type = IB_QPT_RC; in rdma_create_trans()
710 qp_attr.send_cq = rdma->cq; in rdma_create_trans()
[all …]
/linux/drivers/infiniband/hw/mlx5/
A Dmem.c210 struct ib_qp_attr qp_attr = { .port_num = 1 }; in mlx5_ib_test_wc() local
254 qp_attr.qp_state = IB_QPS_INIT; in mlx5_ib_test_wc()
255 ret = ib_modify_qp(qp, &qp_attr, in mlx5_ib_test_wc()
261 qp_attr.qp_state = IB_QPS_RTR; in mlx5_ib_test_wc()
262 ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE); in mlx5_ib_test_wc()
266 qp_attr.qp_state = IB_QPS_RTS; in mlx5_ib_test_wc()
267 ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE | IB_QP_SQ_PSN); in mlx5_ib_test_wc()
A Dqp.c4795 struct ib_qp_attr *qp_attr) in query_qp_attr() argument
4814 qp_attr->sq_draining = 1; in query_qp_attr()
4891 qp_attr->qp_state = IB_QPS_RTR; in mlx5_ib_dct_query_qp()
4939 memset(qp_attr, 0, sizeof(*qp_attr)); in mlx5_ib_query_qp()
4953 qp_attr->port_num = 1; in mlx5_ib_query_qp()
4955 err = query_qp_attr(dev, qp, qp_attr); in mlx5_ib_query_qp()
4960 qp_attr->qp_state = qp->state; in mlx5_ib_query_qp()
4961 qp_attr->cur_qp_state = qp_attr->qp_state; in mlx5_ib_query_qp()
4970 qp_attr->cap.max_send_wr = 0; in mlx5_ib_query_qp()
4971 qp_attr->cap.max_send_sge = 0; in mlx5_ib_query_qp()
[all …]
/linux/drivers/infiniband/hw/bnxt_re/
A Dib_verbs.c1825 new_qp_state = qp_attr->qp_state; in bnxt_re_modify_qp()
1880 qp->qplib_qp.qkey = qp_attr->qkey; in bnxt_re_modify_qp()
1909 qp_attr->ah_attr.roce.dmac); in bnxt_re_modify_qp()
1982 if (qp_attr->max_dest_rd_atomic > in bnxt_re_modify_qp()
1986 qp_attr->max_dest_rd_atomic, in bnxt_re_modify_qp()
2016 qp_attr->cap.max_send_wr; in bnxt_re_modify_qp()
2075 qp_attr->qkey = qplib_qp->qkey; in bnxt_re_query_qp()
2089 qp_attr->rq_psn = qplib_qp->rq.psn; in bnxt_re_query_qp()
2102 qp_init_attr->cap = qp_attr->cap; in bnxt_re_query_qp()
2545 struct ib_qp_attr qp_attr; in bnxt_ud_qp_hw_stall_workaround() local
[all …]
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_hw_v1.c3423 qp_attr->rq_psn = 0; in hns_roce_v1_q_sqp()
3424 qp_attr->sq_psn = 0; in hns_roce_v1_q_sqp()
3425 qp_attr->dest_qp_num = 1; in hns_roce_v1_q_sqp()
3432 qp_attr->sq_draining = 0; in hns_roce_v1_q_sqp()
3436 qp_attr->timeout = 0; in hns_roce_v1_q_sqp()
3437 qp_attr->retry_cnt = 0; in hns_roce_v1_q_sqp()
3438 qp_attr->rnr_retry = 0; in hns_roce_v1_q_sqp()
3439 qp_attr->alt_timeout = 0; in hns_roce_v1_q_sqp()
3442 qp_attr->cur_qp_state = qp_attr->qp_state; in hns_roce_v1_q_sqp()
3472 memset(qp_attr, 0, sizeof(*qp_attr)); in hns_roce_v1_q_qp()
[all …]
/linux/drivers/infiniband/hw/mthca/
A Dmthca_qp.c444 qp_attr->qp_state = IB_QPS_RESET; in mthca_query_qp()
465 qp_attr->qp_state = qp->state; in mthca_query_qp()
467 qp_attr->path_mig_state = in mthca_query_qp()
473 qp_attr->qp_access_flags = in mthca_query_qp()
479 qp_attr->alt_pkey_index = in mthca_query_qp()
481 qp_attr->alt_port_num = in mthca_query_qp()
486 qp_attr->port_num = in mthca_query_qp()
494 qp_attr->max_dest_rd_atomic = in mthca_query_qp()
496 qp_attr->min_rnr_timer = in mthca_query_qp()
504 qp_attr->cur_qp_state = qp_attr->qp_state; in mthca_query_qp()
[all …]
/linux/drivers/infiniband/core/
A Diwcm.c272 struct ib_qp_attr qp_attr; in iwcm_modify_qp_err() local
277 qp_attr.qp_state = IB_QPS_ERR; in iwcm_modify_qp_err()
278 return ib_modify_qp(qp, &qp_attr, IB_QP_STATE); in iwcm_modify_qp_err()
287 struct ib_qp_attr qp_attr; in iwcm_modify_qp_sqd() local
290 qp_attr.qp_state = IB_QPS_SQD; in iwcm_modify_qp_sqd()
1108 struct ib_qp_attr *qp_attr, in iwcm_init_qp_init_attr() argument
1134 struct ib_qp_attr *qp_attr, in iwcm_init_qp_rts_attr() argument
1158 struct ib_qp_attr *qp_attr, in iw_cm_init_qp_attr() argument
1165 switch (qp_attr->qp_state) { in iw_cm_init_qp_attr()
1169 qp_attr, qp_attr_mask); in iw_cm_init_qp_attr()
[all …]
A Dsecurity.c332 const struct ib_qp_attr *qp_attr, in get_new_pps() argument
343 new_pps->main.port_num = qp_attr->port_num; in get_new_pps()
348 new_pps->main.pkey_index = qp_attr->pkey_index; in get_new_pps()
358 new_pps->alt.port_num = qp_attr->alt_port_num; in get_new_pps()
359 new_pps->alt.pkey_index = qp_attr->alt_pkey_index; in get_new_pps()
572 struct ib_qp_attr *qp_attr, in ib_security_modify_qp() argument
587 rdma_protocol_ib(real_qp->device, qp_attr->port_num) && in ib_security_modify_qp()
601 qp_attr, in ib_security_modify_qp()
626 qp_attr, in ib_security_modify_qp()
A Dcma.c906 struct ib_qp_attr qp_attr; in cma_init_ud_qp() local
918 qp_attr.qp_state = IB_QPS_RTR; in cma_init_ud_qp()
923 qp_attr.qp_state = IB_QPS_RTS; in cma_init_ud_qp()
924 qp_attr.sq_psn = 0; in cma_init_ud_qp()
932 struct ib_qp_attr qp_attr; in cma_init_conn_qp() local
999 struct ib_qp_attr qp_attr; in cma_modify_qp_rtr() local
1018 qp_attr.qp_state = IB_QPS_RTR; in cma_modify_qp_rtr()
1036 struct ib_qp_attr qp_attr; in cma_modify_qp_rts() local
1045 qp_attr.qp_state = IB_QPS_RTS; in cma_modify_qp_rts()
1060 struct ib_qp_attr qp_attr; in cma_modify_qp_err() local
[all …]
A Dcore_priv.h227 struct ib_qp_attr *qp_attr,
254 struct ib_qp_attr *qp_attr, in ib_security_modify_qp() argument
259 qp_attr, in ib_security_modify_qp()
A Dcm.c4080 struct ib_qp_attr *qp_attr, in cm_init_qp_init_attr() argument
4118 struct ib_qp_attr *qp_attr, in cm_init_qp_rtr_attr() argument
4136 qp_attr->path_mtu = cm_id_priv->path_mtu; in cm_init_qp_rtr_attr()
4143 qp_attr->max_dest_rd_atomic = in cm_init_qp_rtr_attr()
4145 qp_attr->min_rnr_timer = 0; in cm_init_qp_rtr_attr()
4167 struct ib_qp_attr *qp_attr, in cm_init_qp_rts_attr() argument
4205 qp_attr->path_mig_state = IB_MIG_REARM; in cm_init_qp_rts_attr()
4210 qp_attr->alt_port_num = in cm_init_qp_rts_attr()
4215 qp_attr->path_mig_state = IB_MIG_REARM; in cm_init_qp_rts_attr()
4229 struct ib_qp_attr *qp_attr, in ib_cm_init_qp_attr() argument
[all …]
/linux/drivers/infiniband/hw/ocrdma/
A Docrdma_verbs.c1471 qp_attr->path_mtu = in ocrdma_query_qp()
1478 qp_attr->dest_qp_num = in ocrdma_query_qp()
1512 qp_attr->retry_cnt = in ocrdma_query_qp()
1515 qp_attr->min_rnr_timer = 0; in ocrdma_query_qp()
1516 qp_attr->pkey_index = 0; in ocrdma_query_qp()
1517 qp_attr->port_num = 1; in ocrdma_query_qp()
1521 qp_attr->alt_port_num = 0; in ocrdma_query_qp()
1522 qp_attr->alt_timeout = 0; in ocrdma_query_qp()
1523 memset(&qp_attr->alt_ah_attr, 0, sizeof(qp_attr->alt_ah_attr)); in ocrdma_query_qp()
1527 qp_attr->cur_qp_state = qp_attr->qp_state; in ocrdma_query_qp()
[all …]
/linux/drivers/infiniband/hw/efa/
A Defa_verbs.c308 memset(qp_attr, 0, sizeof(*qp_attr)); in efa_query_qp()
316 qp_attr->qp_state = result.qp_state; in efa_query_qp()
317 qp_attr->qkey = result.qkey; in efa_query_qp()
318 qp_attr->sq_psn = result.sq_psn; in efa_query_qp()
319 qp_attr->sq_draining = result.sq_draining; in efa_query_qp()
320 qp_attr->port_num = 1; in efa_query_qp()
321 qp_attr->rnr_retry = result.rnr_retry; in efa_query_qp()
333 qp_init_attr->cap = qp_attr->cap; in efa_query_qp()
963 params.qkey = qp_attr->qkey; in efa_modify_qp()
968 params.sq_psn = qp_attr->sq_psn; in efa_modify_qp()
[all …]
A Defa.h139 int efa_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr,
173 int efa_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr,
/linux/drivers/infiniband/hw/qedr/
A Dverbs.c2728 struct ib_qp_attr *qp_attr, in qedr_query_qp() argument
2737 memset(qp_attr, 0, sizeof(*qp_attr)); in qedr_query_qp()
2752 qp_attr->rq_psn = params.rq_psn; in qedr_query_qp()
2753 qp_attr->sq_psn = params.sq_psn; in qedr_query_qp()
2763 qp_init_attr->cap = qp_attr->cap; in qedr_query_qp()
2777 qp_attr->port_num = 1; in qedr_query_qp()
2780 qp_attr->alt_pkey_index = 0; in qedr_query_qp()
2781 qp_attr->alt_port_num = 0; in qedr_query_qp()
2782 qp_attr->alt_timeout = 0; in qedr_query_qp()
2783 memset(&qp_attr->alt_ah_attr, 0, sizeof(qp_attr->alt_ah_attr)); in qedr_query_qp()
[all …]
/linux/drivers/nvme/target/
A Drdma.c1261 struct ib_qp_init_attr qp_attr = { }; in nvmet_rdma_create_queue_ib() local
1279 qp_attr.qp_context = queue; in nvmet_rdma_create_queue_ib()
1280 qp_attr.event_handler = nvmet_rdma_qp_event; in nvmet_rdma_create_queue_ib()
1281 qp_attr.send_cq = queue->cq; in nvmet_rdma_create_queue_ib()
1282 qp_attr.recv_cq = queue->cq; in nvmet_rdma_create_queue_ib()
1283 qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR; in nvmet_rdma_create_queue_ib()
1284 qp_attr.qp_type = IB_QPT_RC; in nvmet_rdma_create_queue_ib()
1286 qp_attr.cap.max_send_wr = queue->send_queue_size + 1; in nvmet_rdma_create_queue_ib()
1294 qp_attr.srq = queue->nsrq->srq; in nvmet_rdma_create_queue_ib()
1302 qp_attr.create_flags |= IB_QP_CREATE_INTEGRITY_EN; in nvmet_rdma_create_queue_ib()
[all …]
/linux/drivers/infiniband/hw/mlx4/
A Dqp.c3986 qp_attr->qp_state = IB_QPS_RESET; in mlx4_ib_query_qp()
4001 qp_attr->path_mig_state = in mlx4_ib_query_qp()
4007 qp_attr->qp_access_flags = in mlx4_ib_query_qp()
4016 qp_attr->alt_port_num = in mlx4_ib_query_qp()
4022 qp_attr->port_num = qp->port; in mlx4_ib_query_qp()
4031 qp_attr->max_dest_rd_atomic = in mlx4_ib_query_qp()
4033 qp_attr->min_rnr_timer = in mlx4_ib_query_qp()
4041 qp_attr->cur_qp_state = qp_attr->qp_state; in mlx4_ib_query_qp()
4049 qp_attr->cap.max_send_wr = 0; in mlx4_ib_query_qp()
4050 qp_attr->cap.max_send_sge = 0; in mlx4_ib_query_qp()
[all …]
/linux/drivers/infiniband/hw/usnic/
A Dusnic_ib_verbs.c385 int usnic_ib_query_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr, in usnic_ib_query_qp() argument
395 memset(qp_attr, 0, sizeof(*qp_attr)); in usnic_ib_query_qp()
402 qp_attr->qp_state = qp_grp->state; in usnic_ib_query_qp()
403 qp_attr->cur_qp_state = qp_grp->state; in usnic_ib_query_qp()
407 qp_attr->qkey = 0; in usnic_ib_query_qp()
/linux/fs/cifs/
A Dsmbdirect.c1524 struct ib_qp_init_attr qp_attr; in _smbd_get_connection() local
1596 memset(&qp_attr, 0, sizeof(qp_attr)); in _smbd_get_connection()
1598 qp_attr.qp_context = info; in _smbd_get_connection()
1601 qp_attr.cap.max_send_sge = SMBDIRECT_MAX_SGE; in _smbd_get_connection()
1602 qp_attr.cap.max_recv_sge = SMBDIRECT_MAX_SGE; in _smbd_get_connection()
1603 qp_attr.cap.max_inline_data = 0; in _smbd_get_connection()
1604 qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR; in _smbd_get_connection()
1605 qp_attr.qp_type = IB_QPT_RC; in _smbd_get_connection()
1606 qp_attr.send_cq = info->send_cq; in _smbd_get_connection()
1607 qp_attr.recv_cq = info->recv_cq; in _smbd_get_connection()
[all …]
/linux/drivers/infiniband/sw/siw/
A Dsiw_verbs.c507 if (base_qp && qp_attr && qp_init_attr) { in siw_query_qp()
513 qp_attr->cap.max_inline_data = SIW_MAX_INLINE; in siw_query_qp()
514 qp_attr->cap.max_send_wr = qp->attrs.sq_size; in siw_query_qp()
515 qp_attr->cap.max_send_sge = qp->attrs.sq_max_sges; in siw_query_qp()
516 qp_attr->cap.max_recv_wr = qp->attrs.rq_size; in siw_query_qp()
517 qp_attr->cap.max_recv_sge = qp->attrs.rq_max_sges; in siw_query_qp()
518 qp_attr->path_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu); in siw_query_qp()
519 qp_attr->max_rd_atomic = qp->attrs.irq_size; in siw_query_qp()
520 qp_attr->max_dest_rd_atomic = qp->attrs.orq_size; in siw_query_qp()
522 qp_attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE | in siw_query_qp()
[all …]

Completed in 439 milliseconds

123