Lines Matching full:condition
39 * warning is triggered when provided condition is false. Additionally all above
40 * assert macros cannot be used in expressions or as a condition, since
84 #define __xe_assert_msg(xe, condition, msg, arg...) ({ \
85 (void)drm_WARN(&(xe)->drm, !(condition), "Assertion `%s` failed!\n" msg, \
86 __stringify(condition), ## arg); \
89 #define __xe_assert_msg(xe, condition, msg, arg...) ({ \
91 BUILD_BUG_ON_INVALID(condition); \
96 * xe_assert - warn if condition is false when debugging.
97 * @xe: the &struct xe_device pointer to which &condition applies
98 * @condition: condition to check
101 * that could be read from the &xe pointer if provided &condition is false.
105 * or as a condition.
109 #define xe_assert(xe, condition) xe_assert_msg((xe), condition, "")
110 #define xe_assert_msg(xe, condition, msg, arg...) ({ \
112 __xe_assert_msg(__xe, condition, \
130 * xe_tile_assert - warn if condition is false when debugging.
131 * @tile: the &struct xe_tile pointer to which &condition applies
132 * @condition: condition to check
135 * information that could be read from the &tile pointer if provided &condition
140 * or as a condition.
144 #define xe_tile_assert(tile, condition) xe_tile_assert_msg((tile), condition, "")
145 #define xe_tile_assert_msg(tile, condition, msg, arg...) ({ \
148 xe_assert_msg(tile_to_xe(__tile), condition, "tile: %u VRAM %s\n" msg, \
155 * xe_gt_assert - warn if condition is false when debugging.
156 * @gt: the &struct xe_gt pointer to which &condition applies
157 * @condition: condition to check
161 * &condition is false.
165 * or as a condition.
169 #define xe_gt_assert(gt, condition) xe_gt_assert_msg((gt), condition, "")
170 #define xe_gt_assert_msg(gt, condition, msg, arg...) ({ \
172 xe_tile_assert_msg(gt_to_tile(__gt), condition, "GT: %u type %d\n" msg, \