Lines Matching refs:buf_attr
171 struct hns_roce_buf_attr buf_attr = {}; in alloc_srq_idx() local
176 buf_attr.page_shift = hr_dev->caps.idx_buf_pg_sz + PAGE_SHIFT; in alloc_srq_idx()
177 buf_attr.region[0].size = to_hr_hem_entries_size(srq->wqe_cnt, in alloc_srq_idx()
179 buf_attr.region[0].hopnum = hr_dev->caps.idx_hop_num; in alloc_srq_idx()
180 buf_attr.region_count = 1; in alloc_srq_idx()
182 ret = hns_roce_mtr_create(hr_dev, &idx_que->mtr, &buf_attr, in alloc_srq_idx()
224 struct hns_roce_buf_attr buf_attr = {}; in alloc_srq_wqe_buf() local
231 buf_attr.page_shift = hr_dev->caps.srqwqe_buf_pg_sz + PAGE_SHIFT; in alloc_srq_wqe_buf()
232 buf_attr.region[0].size = to_hr_hem_entries_size(srq->wqe_cnt, in alloc_srq_wqe_buf()
234 buf_attr.region[0].hopnum = hr_dev->caps.srqwqe_hop_num; in alloc_srq_wqe_buf()
235 buf_attr.region_count = 1; in alloc_srq_wqe_buf()
237 ret = hns_roce_mtr_create(hr_dev, &srq->buf_mtr, &buf_attr, in alloc_srq_wqe_buf()