idxd: Rename idxd_cmdsts_reg to idxd_cmdsts_register

All of the other structs and unions spell out register, so match the
style.

Change-Id: Ie502e80206305037d1518a1db590d89b7479abb4
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11433
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
Ben Walker 2022-02-02 10:45:10 -07:00 committed by Jim Harris
parent 4ac05e3abc
commit dbdd27ff47
3 changed files with 5 additions and 5 deletions

View File

@ -399,7 +399,7 @@ union idxd_gensts_register {
};
SPDK_STATIC_ASSERT(sizeof(union idxd_gensts_register) == 4, "size mismatch");
union idxd_cmdsts_reg {
union idxd_cmdsts_register {
struct {
uint32_t err : 8;
uint32_t result : 16;
@ -408,7 +408,7 @@ union idxd_cmdsts_reg {
};
uint32_t raw;
};
SPDK_STATIC_ASSERT(sizeof(union idxd_cmdsts_reg) == 4, "size mismatch");
SPDK_STATIC_ASSERT(sizeof(union idxd_cmdsts_register) == 4, "size mismatch");
union idxd_swerr_register {
struct {

View File

@ -109,7 +109,7 @@ static int
idxd_wait_cmd(struct spdk_idxd_device *idxd, int _timeout)
{
uint32_t timeout = _timeout;
union idxd_cmdsts_reg cmd_status = {};
union idxd_cmdsts_register cmd_status = {};
cmd_status.raw = _idxd_read_4(idxd, IDXD_CMDSTS_OFFSET);
while (cmd_status.active && --timeout) {

View File

@ -200,7 +200,7 @@ static int
test_idxd_reset_dev(void)
{
struct spdk_user_idxd_device user_idxd = {};
union idxd_cmdsts_reg *fake_cmd_status_reg;
union idxd_cmdsts_register *fake_cmd_status_reg;
int rc;
user_idxd.reg_base = calloc(1, FAKE_REG_SIZE);
@ -226,7 +226,7 @@ test_idxd_wait_cmd(void)
{
struct spdk_user_idxd_device user_idxd = {};
int timeout = 1;
union idxd_cmdsts_reg *fake_cmd_status_reg;
union idxd_cmdsts_register *fake_cmd_status_reg;
int rc;
user_idxd.reg_base = calloc(1, FAKE_REG_SIZE);