D | igc_diag.c | 1 // SPDX-License-Identifier: GPL-2.0 35 static bool reg_pattern_test(struct igc_adapter *adapter, u64 *data, int reg, in reg_pattern_test() argument 36 u32 mask, u32 write) in reg_pattern_test() argument 38 struct igc_hw *hw = &adapter->hw; in reg_pattern_test() 46 wr32(reg, test_pattern[pat] & write); in reg_pattern_test() 48 if (val != (test_pattern[pat] & write & mask)) { in reg_pattern_test() 49 netdev_err(adapter->netdev, in reg_pattern_test() 51 reg, val, test_pattern[pat] & write & mask); in reg_pattern_test() 52 *data = reg; in reg_pattern_test() 61 static bool reg_set_and_check(struct igc_adapter *adapter, u64 *data, int reg, in reg_set_and_check() argument [all …]
|