Lines Matching refs:buf_attr
93 struct hns_roce_buf_attr buf_attr = {}; in alloc_mr_pbl() local
97 buf_attr.page_shift = is_fast ? PAGE_SHIFT : in alloc_mr_pbl()
99 buf_attr.region[0].size = mr->size; in alloc_mr_pbl()
100 buf_attr.region[0].hopnum = mr->pbl_hop_num; in alloc_mr_pbl()
101 buf_attr.region_count = 1; in alloc_mr_pbl()
102 buf_attr.user_access = mr->access; in alloc_mr_pbl()
104 buf_attr.mtt_only = is_fast; in alloc_mr_pbl()
106 err = hns_roce_mtr_create(hr_dev, &mr->pbl_mtr, &buf_attr, in alloc_mr_pbl()
664 struct hns_roce_buf_attr *buf_attr, in mtr_alloc_bufs() argument
670 total_size = mtr_bufs_size(buf_attr); in mtr_alloc_bufs()
675 buf_attr->user_access); in mtr_alloc_bufs()
684 buf_attr->page_shift, in mtr_alloc_bufs()
950 struct hns_roce_buf_attr *buf_attr, in hns_roce_mtr_create() argument
959 buf_page_cnt = mtr_init_buf_cfg(hr_dev, buf_attr, &mtr->hem_cfg, in hns_roce_mtr_create()
977 if (buf_attr->mtt_only) { in hns_roce_mtr_create()
983 ret = mtr_alloc_bufs(hr_dev, mtr, buf_attr, udata, user_addr); in hns_roce_mtr_create()