Home
last modified time | relevance | path

Searched refs:fseg (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/infiniband/hw/mlx4/
Dqp.c3307 static void set_reg_seg(struct mlx4_wqe_fmr_seg *fseg, in set_reg_seg() argument
3312 fseg->flags = convert_access(wr->access); in set_reg_seg()
3313 fseg->mem_key = cpu_to_be32(wr->key); in set_reg_seg()
3314 fseg->buf_list = cpu_to_be64(mr->page_map); in set_reg_seg()
3315 fseg->start_addr = cpu_to_be64(mr->ibmr.iova); in set_reg_seg()
3316 fseg->reg_len = cpu_to_be64(mr->ibmr.length); in set_reg_seg()
3317 fseg->offset = 0; /* XXX -- is this just for ZBVA? */ in set_reg_seg()
3318 fseg->page_size = cpu_to_be32(ilog2(mr->ibmr.page_size)); in set_reg_seg()
3319 fseg->reserved[0] = 0; in set_reg_seg()
3320 fseg->reserved[1] = 0; in set_reg_seg()
/Linux-v6.6/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c138 struct hns_roce_wqe_frmr_seg *fseg = in set_frmr_seg() local
144 hr_reg_write_bool(fseg, FRMR_BIND_EN, wr->access & IB_ACCESS_MW_BIND); in set_frmr_seg()
145 hr_reg_write_bool(fseg, FRMR_ATOMIC, in set_frmr_seg()
147 hr_reg_write_bool(fseg, FRMR_RR, wr->access & IB_ACCESS_REMOTE_READ); in set_frmr_seg()
148 hr_reg_write_bool(fseg, FRMR_RW, wr->access & IB_ACCESS_REMOTE_WRITE); in set_frmr_seg()
149 hr_reg_write_bool(fseg, FRMR_LW, wr->access & IB_ACCESS_LOCAL_WRITE); in set_frmr_seg()
161 hr_reg_write(fseg, FRMR_PBL_SIZE, mr->npages); in set_frmr_seg()
162 hr_reg_write(fseg, FRMR_PBL_BUF_PG_SZ, in set_frmr_seg()
164 hr_reg_clear(fseg, FRMR_BLK_MODE); in set_frmr_seg()