Lines Matching refs:timeout
1281 u32 timeout = 0; in __hns_roce_cmq_send() local
1304 } while (++timeout < priv->cmq.tx_timeout); in __hns_roce_cmq_send()
2773 attr->timeout = HNS_ROCE_FREE_MR_USED_QP_TIMEOUT; in free_mr_modify_rsv_qp()
2963 static int v2_wait_mbox_complete(struct hns_roce_dev *hr_dev, u32 timeout, in v2_wait_mbox_complete() argument
2974 end = msecs_to_jiffies(timeout) + jiffies; in v2_wait_mbox_complete()
5005 static bool check_qp_timeout_cfg_range(struct hns_roce_dev *hr_dev, u8 *timeout) in check_qp_timeout_cfg_range() argument
5011 if (*timeout > QP_ACK_TIMEOUT_MAX_HIP08) { in check_qp_timeout_cfg_range()
5016 *timeout += HNS_ROCE_V2_QP_ACK_TIMEOUT_OFS_HIP08; in check_qp_timeout_cfg_range()
5018 if (*timeout > QP_ACK_TIMEOUT_MAX) { in check_qp_timeout_cfg_range()
5037 u8 timeout; in hns_roce_v2_set_opt_fields() local
5047 timeout = attr->timeout; in hns_roce_v2_set_opt_fields()
5048 if (check_qp_timeout_cfg_range(hr_dev, &timeout)) { in hns_roce_v2_set_opt_fields()
5049 hr_reg_write(context, QPC_AT, timeout); in hns_roce_v2_set_opt_fields()
5305 u8 timeout; in get_qp_timeout_attr() local
5307 timeout = (u8)hr_reg_read(context, QPC_AT); in get_qp_timeout_attr()
5309 timeout -= HNS_ROCE_V2_QP_ACK_TIMEOUT_OFS_HIP08; in get_qp_timeout_attr()
5311 return timeout; in get_qp_timeout_attr()
5391 qp_attr->timeout = get_qp_timeout_attr(hr_dev, &context); in hns_roce_v2_query_qp()