Lines Matching refs:qp_attr
506 int siw_query_qp(struct ib_qp *base_qp, struct ib_qp_attr *qp_attr, in siw_query_qp() argument
512 if (base_qp && qp_attr && qp_init_attr) { in siw_query_qp()
518 qp_attr->cap.max_inline_data = SIW_MAX_INLINE; in siw_query_qp()
519 qp_attr->cap.max_send_wr = qp->attrs.sq_size; in siw_query_qp()
520 qp_attr->cap.max_send_sge = qp->attrs.sq_max_sges; in siw_query_qp()
521 qp_attr->cap.max_recv_wr = qp->attrs.rq_size; in siw_query_qp()
522 qp_attr->cap.max_recv_sge = qp->attrs.rq_max_sges; in siw_query_qp()
523 qp_attr->path_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu); in siw_query_qp()
524 qp_attr->max_rd_atomic = qp->attrs.irq_size; in siw_query_qp()
525 qp_attr->max_dest_rd_atomic = qp->attrs.orq_size; in siw_query_qp()
527 qp_attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE | in siw_query_qp()
536 qp_init_attr->cap = qp_attr->cap; in siw_query_qp()