Lines Matching refs:unit0_dev

99 	struct device *unit0_dev = (struct device *)&unit0.device;  in device_attr_simple_avc()  local
110 KUNIT_ASSERT_FALSE(test, is_fw_device(unit0_dev)); in device_attr_simple_avc()
111 KUNIT_ASSERT_TRUE(test, is_fw_unit(unit0_dev)); in device_attr_simple_avc()
113 KUNIT_ASSERT_PTR_EQ(test, fw_unit(unit0_dev), &unit0); in device_attr_simple_avc()
136 KUNIT_EXPECT_LT(test, show_immediate(unit0_dev, &config_rom_attributes[0].attr, buf), 0); in device_attr_simple_avc()
139 KUNIT_EXPECT_GT(test, show_immediate(unit0_dev, &config_rom_attributes[4].attr, buf), 0); in device_attr_simple_avc()
143 KUNIT_EXPECT_LT(test, show_text_leaf(unit0_dev, &config_rom_attributes[5].attr, buf), 0); in device_attr_simple_avc()
146 KUNIT_EXPECT_GT(test, show_text_leaf(unit0_dev, &config_rom_attributes[6].attr, buf), 0); in device_attr_simple_avc()
150 KUNIT_EXPECT_GT(test, show_immediate(unit0_dev, &config_rom_attributes[2].attr, buf), 0); in device_attr_simple_avc()
154 KUNIT_EXPECT_GT(test, show_immediate(unit0_dev, &config_rom_attributes[3].attr, buf), 0); in device_attr_simple_avc()
180 struct device *unit0_dev = (struct device *)&unit0.device; in device_attr_legacy_avc() local
191 KUNIT_ASSERT_FALSE(test, is_fw_device(unit0_dev)); in device_attr_legacy_avc()
192 KUNIT_ASSERT_TRUE(test, is_fw_unit(unit0_dev)); in device_attr_legacy_avc()
194 KUNIT_ASSERT_PTR_EQ(test, fw_unit(unit0_dev), &unit0); in device_attr_legacy_avc()
216 KUNIT_EXPECT_LT(test, show_immediate(unit0_dev, &config_rom_attributes[0].attr, buf), 0); in device_attr_legacy_avc()
219 KUNIT_EXPECT_LT(test, show_immediate(unit0_dev, &config_rom_attributes[4].attr, buf), 0); in device_attr_legacy_avc()
222 KUNIT_EXPECT_LT(test, show_text_leaf(unit0_dev, &config_rom_attributes[5].attr, buf), 0); in device_attr_legacy_avc()
225 KUNIT_EXPECT_LT(test, show_text_leaf(unit0_dev, &config_rom_attributes[6].attr, buf), 0); in device_attr_legacy_avc()
228 KUNIT_EXPECT_GT(test, show_immediate(unit0_dev, &config_rom_attributes[2].attr, buf), 0); in device_attr_legacy_avc()
232 KUNIT_EXPECT_GT(test, show_immediate(unit0_dev, &config_rom_attributes[3].attr, buf), 0); in device_attr_legacy_avc()