Lines Matching refs:mt

78     MyType *mt;  in test_static_prop_subprocess()  local
80 mt = STATIC_TYPE(object_new(TYPE_STATIC_PROPS)); in test_static_prop_subprocess()
81 qdev_realize(DEVICE(mt), NULL, &error_fatal); in test_static_prop_subprocess()
83 g_assert_cmpuint(mt->prop1, ==, PROP_DEFAULT); in test_static_prop_subprocess()
107 MyType *mt; in test_static_globalprop_subprocess() local
115 mt = STATIC_TYPE(object_new(TYPE_STATIC_PROPS)); in test_static_globalprop_subprocess()
116 qdev_realize(DEVICE(mt), NULL, &error_fatal); in test_static_globalprop_subprocess()
118 g_assert_cmpuint(mt->prop1, ==, 200); in test_static_globalprop_subprocess()
119 g_assert_cmpuint(mt->prop2, ==, PROP_DEFAULT); in test_static_globalprop_subprocess()
140 MyType *mt = DYNAMIC_TYPE(obj); in DECLARE_INSTANCE_CHECKER() local
142 visit_type_uint32(v, name, &mt->prop1, errp); in DECLARE_INSTANCE_CHECKER()
148 MyType *mt = DYNAMIC_TYPE(obj); in prop2_accessor() local
150 visit_type_uint32(v, name, &mt->prop2, errp); in prop2_accessor()
219 MyType *mt; in test_dynamic_globalprop_subprocess() local
233 mt = DYNAMIC_TYPE(object_new(TYPE_DYNAMIC_PROPS)); in test_dynamic_globalprop_subprocess()
234 qdev_realize(DEVICE(mt), NULL, &error_fatal); in test_dynamic_globalprop_subprocess()
236 g_assert_cmpuint(mt->prop1, ==, 101); in test_dynamic_globalprop_subprocess()
237 g_assert_cmpuint(mt->prop2, ==, 102); in test_dynamic_globalprop_subprocess()
267 MyType *mt; in test_subclass_global_props() local
279 mt = STATIC_TYPE(object_new(TYPE_SUBCLASS)); in test_subclass_global_props()
280 qdev_realize(DEVICE(mt), NULL, &error_fatal); in test_subclass_global_props()
282 g_assert_cmpuint(mt->prop1, ==, 102); in test_subclass_global_props()
283 g_assert_cmpuint(mt->prop2, ==, 104); in test_subclass_global_props()