RDMA/hns: Use hr_reg_xxx() instead of remaining roce_set_xxx()
authorWenpeng Liang <liangwenpeng@huawei.com>
Thu, 12 May 2022 08:00:11 +0000 (16:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 17:15:26 +0000 (18:15 +0100)
commit85ab79ac94135a1db4c88d281a23766563c35be2
tree97ea0ffecf725a606bf10c92fae726cc34a7dbee
parentbe16cc7abdae599dc3265b613bae38ed2f38c421
RDMA/hns: Use hr_reg_xxx() instead of remaining roce_set_xxx()

[ Upstream commit 82600b2d3cd57428bdb03c66ae67708d3c8f7281 ]

To reduce the code size and make the code clearer, replace all
roce_set_xxx() with hr_reg_xxx() to write the data fields.

Link: https://lore.kernel.org/r/20220512080012.38728-2-liangwenpeng@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Stable-dep-of: 9e272ed69ad6 ("RDMA/hns: Disable local invalidate operation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h