Lines Matching refs:_x
65 # define DECLARE_HVM_SAVE_TYPE_COMPAT(_x, _code, _type, _ctype, _fix) \
66 static inline int __HVM_SAVE_FIX_COMPAT_##_x(void *h) { return _fix(h); } \
67 struct __HVM_SAVE_TYPE_##_x { _type t; char c[_code]; char cpt[2];}; \
68 struct __HVM_SAVE_TYPE_COMPAT_##_x { _ctype t; }
71 # define DECLARE_HVM_SAVE_TYPE(_x, _code, _type) \
72 static inline int __HVM_SAVE_FIX_COMPAT_##_x(void *h) { BUG(); return -1; } \
73 struct __HVM_SAVE_TYPE_##_x { _type t; char c[_code]; char cpt[1];}; \
74 struct __HVM_SAVE_TYPE_COMPAT_##_x { _type t; }
76 # define DECLARE_HVM_SAVE_TYPE_COMPAT(_x, _code, _type, _ctype, _fix) \
77 struct __HVM_SAVE_TYPE_##_x { _type t; char c[_code]; char cpt[2];}
79 # define DECLARE_HVM_SAVE_TYPE(_x, _code, _type) \
80 struct __HVM_SAVE_TYPE_##_x { _type t; char c[_code]; char cpt[1];}
83 #define HVM_SAVE_TYPE(_x) typeof (((struct __HVM_SAVE_TYPE_##_x *)(0))->t)
84 #define HVM_SAVE_LENGTH(_x) (sizeof (HVM_SAVE_TYPE(_x)))
85 #define HVM_SAVE_CODE(_x) (sizeof (((struct __HVM_SAVE_TYPE_##_x *)(0))->c))
88 # define HVM_SAVE_TYPE_COMPAT(_x) typeof (((struct __HVM_SAVE_TYPE_COMPAT_##_x *)(0))->t)
89 # define HVM_SAVE_LENGTH_COMPAT(_x) (sizeof (HVM_SAVE_TYPE_COMPAT(_x)))
91 # define HVM_SAVE_HAS_COMPAT(_x) (sizeof (((struct __HVM_SAVE_TYPE_##_x *)(0))->cpt)-1)
92 # define HVM_SAVE_FIX_COMPAT(_x, _dst) __HVM_SAVE_FIX_COMPAT_##_x(_dst)