Lines Matching refs:qp_attr
501 int siw_query_qp(struct ib_qp *base_qp, struct ib_qp_attr *qp_attr, in siw_query_qp() argument
507 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()
531 qp_init_attr->cap = qp_attr->cap; in siw_query_qp()