Lines Matching refs:attr_mask

300 			int attr_mask)  in store_attrs()  argument
302 if (attr_mask & IB_QP_PKEY_INDEX) in store_attrs()
304 if (attr_mask & IB_QP_QKEY) in store_attrs()
306 if (attr_mask & IB_QP_SQ_PSN) in store_attrs()
329 int attr_mask) in get_hw_access_flags() argument
335 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in get_hw_access_flags()
340 if (attr_mask & IB_QP_ACCESS_FLAGS) in get_hw_access_flags()
557 const struct ib_qp_attr *attr, int attr_mask, in __mthca_modify_qp() argument
584 if (!(attr_mask & IB_QP_PATH_MIG_STATE)) in __mthca_modify_qp()
605 else if (attr_mask & IB_QP_PATH_MTU) { in __mthca_modify_qp()
631 if (attr_mask & IB_QP_DEST_QPN) { in __mthca_modify_qp()
639 if (attr_mask & IB_QP_PORT) { in __mthca_modify_qp()
646 if (attr_mask & IB_QP_PKEY_INDEX) { in __mthca_modify_qp()
652 if (attr_mask & IB_QP_RNR_RETRY) { in __mthca_modify_qp()
659 if (attr_mask & IB_QP_AV) { in __mthca_modify_qp()
661 attr_mask & IB_QP_PORT ? attr->port_num : qp->port)) in __mthca_modify_qp()
680 if (attr_mask & IB_QP_TIMEOUT) { in __mthca_modify_qp()
685 if (attr_mask & IB_QP_ALT_PATH) { in __mthca_modify_qp()
717 if (attr_mask & IB_QP_RETRY_CNT) { in __mthca_modify_qp()
722 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC) { in __mthca_modify_qp()
733 if (attr_mask & IB_QP_SQ_PSN) in __mthca_modify_qp()
742 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) { in __mthca_modify_qp()
750 if (attr_mask & (IB_QP_ACCESS_FLAGS | IB_QP_MAX_DEST_RD_ATOMIC)) { in __mthca_modify_qp()
751 qp_context->params2 |= get_hw_access_flags(qp, attr, attr_mask); in __mthca_modify_qp()
762 if (attr_mask & IB_QP_MIN_RNR_TIMER) { in __mthca_modify_qp()
766 if (attr_mask & IB_QP_RQ_PSN) in __mthca_modify_qp()
779 if (attr_mask & IB_QP_QKEY) { in __mthca_modify_qp()
789 attr_mask & IB_QP_EN_SQD_ASYNC_NOTIFY && in __mthca_modify_qp()
802 if (attr_mask & IB_QP_ACCESS_FLAGS) in __mthca_modify_qp()
804 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) in __mthca_modify_qp()
806 if (attr_mask & IB_QP_PORT) in __mthca_modify_qp()
808 if (attr_mask & IB_QP_ALT_PATH) in __mthca_modify_qp()
812 store_attrs(qp->sqp, attr, attr_mask); in __mthca_modify_qp()
858 int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, in mthca_modify_qp() argument
866 if (attr_mask & ~IB_QP_ATTR_STANDARD_BITS) in mthca_modify_qp()
870 if (attr_mask & IB_QP_CUR_STATE) { in mthca_modify_qp()
880 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in mthca_modify_qp()
883 attr_mask)) { in mthca_modify_qp()
887 attr_mask); in mthca_modify_qp()
891 if ((attr_mask & IB_QP_PKEY_INDEX) && in mthca_modify_qp()
898 if ((attr_mask & IB_QP_PORT) && in mthca_modify_qp()
904 if (attr_mask & IB_QP_MAX_QP_RD_ATOMIC && in mthca_modify_qp()
911 if (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC && in mthca_modify_qp()
923 err = __mthca_modify_qp(ibqp, attr, attr_mask, cur_state, new_state, in mthca_modify_qp()