From a4a26e7bc456f8303f1018f55033249ff36d9af3 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Wed, 5 Jan 2022 19:38:56 -0800 Subject: [PATCH] Fix register accesses --- modules/mqnic/mqnic_if.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/mqnic/mqnic_if.c b/modules/mqnic/mqnic_if.c index 7e13b78d0..56e9f4803 100644 --- a/modules/mqnic/mqnic_if.c +++ b/modules/mqnic/mqnic_if.c @@ -328,30 +328,30 @@ void mqnic_destroy_interface(struct mqnic_if **interface_ptr) u32 mqnic_interface_get_rss_mask(struct mqnic_if *interface) { - return ioread32(interface->if_ctrl_rx_rb + MQNIC_RB_IF_CTRL_RX_REG_RSS_MASK); + return ioread32(interface->if_ctrl_rx_rb->regs + MQNIC_RB_IF_CTRL_RX_REG_RSS_MASK); } void mqnic_interface_set_rss_mask(struct mqnic_if *interface, u32 rss_mask) { - iowrite32(rss_mask, interface->if_ctrl_rx_rb + MQNIC_RB_IF_CTRL_RX_REG_RSS_MASK); + iowrite32(rss_mask, interface->if_ctrl_rx_rb->regs + MQNIC_RB_IF_CTRL_RX_REG_RSS_MASK); } u32 mqnic_interface_get_tx_mtu(struct mqnic_if *interface) { - return ioread32(interface->if_ctrl_tx_rb + MQNIC_RB_IF_CTRL_TX_REG_MTU); + return ioread32(interface->if_ctrl_tx_rb->regs + MQNIC_RB_IF_CTRL_TX_REG_MTU); } void mqnic_interface_set_tx_mtu(struct mqnic_if *interface, u32 mtu) { - iowrite32(mtu, interface->if_ctrl_tx_rb + MQNIC_RB_IF_CTRL_TX_REG_MTU); + iowrite32(mtu, interface->if_ctrl_tx_rb->regs + MQNIC_RB_IF_CTRL_TX_REG_MTU); } u32 mqnic_interface_get_rx_mtu(struct mqnic_if *interface) { - return ioread32(interface->if_ctrl_rx_rb + MQNIC_RB_IF_CTRL_RX_REG_MTU); + return ioread32(interface->if_ctrl_rx_rb->regs + MQNIC_RB_IF_CTRL_RX_REG_MTU); } void mqnic_interface_set_rx_mtu(struct mqnic_if *interface, u32 mtu) { - iowrite32(mtu, interface->if_ctrl_rx_rb + MQNIC_RB_IF_CTRL_RX_REG_MTU); + iowrite32(mtu, interface->if_ctrl_rx_rb->regs + MQNIC_RB_IF_CTRL_RX_REG_MTU); }