Lines Matching refs:buf_attr
649 struct hns_roce_buf_attr *buf_attr) in set_wqe_buf_attr() argument
660 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { in set_wqe_buf_attr()
661 buf_attr->region[idx].size = buf_size; in set_wqe_buf_attr()
662 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sq_hop_num; in set_wqe_buf_attr()
671 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { in set_wqe_buf_attr()
672 buf_attr->region[idx].size = buf_size; in set_wqe_buf_attr()
673 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sge_hop_num; in set_wqe_buf_attr()
682 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { in set_wqe_buf_attr()
683 buf_attr->region[idx].size = buf_size; in set_wqe_buf_attr()
684 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_rq_hop_num; in set_wqe_buf_attr()
692 buf_attr->page_shift = HNS_HW_PAGE_SHIFT + hr_dev->caps.mtt_buf_pg_sz; in set_wqe_buf_attr()
693 buf_attr->region_count = idx; in set_wqe_buf_attr()
752 struct hns_roce_buf_attr buf_attr = {}; in alloc_qp_buf() local
755 ret = set_wqe_buf_attr(hr_dev, hr_qp, &buf_attr); in alloc_qp_buf()
760 ret = hns_roce_mtr_create(hr_dev, &hr_qp->mtr, &buf_attr, in alloc_qp_buf()