The current hns driver still partially uses roce_set_xxx()/roce_get_xxx() to write and read data fields. To make the code clearer, replace all roce_set_xxx()/roce_get_xxx() with hr_reg_xxx(). Wenpeng Liang (2): RDMA/hns: Use hr_reg_xxx() instead of remaining roce_set_xxx() RDMA/hns: Use hr_reg_read() instead of remaining roce_get_xxx() drivers/infiniband/hw/hns/hns_roce_device.h | 14 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 398 ++++++------------ drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 324 +++++--------- drivers/infiniband/hw/hns/hns_roce_restrack.c | 49 +-- 4 files changed, 261 insertions(+), 524 deletions(-) -- 2.33.0