Lines Matching refs:condition

38  * warning is triggered when provided condition is false. Additionally all above
39 * assert macros cannot be used in expressions or as a condition, since
83 #define __xe_assert_msg(xe, condition, msg, arg...) ({ \
84 (void)drm_WARN(&(xe)->drm, !(condition), "[" DRM_NAME "] Assertion `%s` failed!\n" msg, \
85 __stringify(condition), ## arg); \
88 #define __xe_assert_msg(xe, condition, msg, arg...) ({ \
90 BUILD_BUG_ON_INVALID(condition); \
95 * xe_assert - warn if condition is false when debugging.
96 * @xe: the &struct xe_device pointer to which &condition applies
97 * @condition: condition to check
100 * that could be read from the &xe pointer if provided &condition is false.
104 * or as a condition.
108 #define xe_assert(xe, condition) xe_assert_msg((xe), condition, "")
109 #define xe_assert_msg(xe, condition, msg, arg...) ({ \
111 __xe_assert_msg(__xe, condition, \
129 * xe_tile_assert - warn if condition is false when debugging.
130 * @tile: the &struct xe_tile pointer to which &condition applies
131 * @condition: condition to check
134 * information that could be read from the &tile pointer if provided &condition
139 * or as a condition.
143 #define xe_tile_assert(tile, condition) xe_tile_assert_msg((tile), condition, "")
144 #define xe_tile_assert_msg(tile, condition, msg, arg...) ({ \
147 xe_assert_msg(tile_to_xe(__tile), condition, "tile: %u VRAM %s\n" msg, \
153 * xe_gt_assert - warn if condition is false when debugging.
154 * @gt: the &struct xe_gt pointer to which &condition applies
155 * @condition: condition to check
159 * &condition is false.
163 * or as a condition.
167 #define xe_gt_assert(gt, condition) xe_gt_assert_msg((gt), condition, "")
168 #define xe_gt_assert_msg(gt, condition, msg, arg...) ({ \
170 xe_tile_assert_msg(gt_to_tile(__gt), condition, "GT: %u type %d\n" msg, \