Lines Matching refs:buf_attr
94 struct hns_roce_buf_attr buf_attr = {}; in alloc_mr_pbl() local
98 buf_attr.page_shift = is_fast ? PAGE_SHIFT : in alloc_mr_pbl()
100 buf_attr.region[0].size = mr->size; in alloc_mr_pbl()
101 buf_attr.region[0].hopnum = mr->pbl_hop_num; in alloc_mr_pbl()
102 buf_attr.region_count = 1; in alloc_mr_pbl()
103 buf_attr.user_access = mr->access; in alloc_mr_pbl()
105 buf_attr.mtt_only = is_fast; in alloc_mr_pbl()
107 err = hns_roce_mtr_create(hr_dev, &mr->pbl_mtr, &buf_attr, in alloc_mr_pbl()
669 struct hns_roce_buf_attr *buf_attr, in mtr_alloc_bufs() argument
675 total_size = mtr_bufs_size(buf_attr); in mtr_alloc_bufs()
680 buf_attr->user_access); in mtr_alloc_bufs()
689 buf_attr->page_shift, in mtr_alloc_bufs()
997 struct hns_roce_buf_attr *buf_attr, in hns_roce_mtr_create() argument
1006 buf_page_cnt = mtr_init_buf_cfg(hr_dev, buf_attr, &mtr->hem_cfg, in hns_roce_mtr_create()
1024 if (buf_attr->mtt_only) { in hns_roce_mtr_create()
1030 ret = mtr_alloc_bufs(hr_dev, mtr, buf_attr, udata, user_addr); in hns_roce_mtr_create()