Lines Matching full:drm

34 #include <drm/drm.h>
35 #include <drm/drm_device.h>
68 * struct drm_printer p = drm_info_printer(drm->dev);
74 * enum drm_debug_category - The DRM debug categories
76 * Each of the DRM debug logging macros use a specific category, and the logging
77 * is filtered by the drm.debug module parameter. This enum specifies the values
83 * Enabling verbose debug messages is done through the drm.debug parameter, each
86 * - drm.debug=0x1 will enable CORE messages
87 * - drm.debug=0x2 will enable DRIVER messages
88 * - drm.debug=0x3 will enable CORE and DRIVER messages
90 * - drm.debug=0x1ff will enable all messages
95 * # echo 0xf > /sys/module/drm/parameters/debug
101 * @DRM_UT_CORE: Used in the generic drm code: drm_ioctl.c, drm_mm.c,
139 * @DRM_UT_DRMRES: Used in the drm managed resources code.
157 * the drm.debug API uses dyndbg, so each drm_*dbg macro/callsite gets
169 * struct drm_printer - drm output "stream"
223 * @printer: DRM printer
381 * drm_dbg_printer - construct a &drm_printer for drm device specific output
382 * @drm: the &struct drm_device pointer, or NULL
389 static inline struct drm_printer drm_dbg_printer(struct drm_device *drm, in drm_dbg_printer() argument
395 .arg = drm, in drm_dbg_printer()
405 * @drm: the &struct drm_device pointer
411 static inline struct drm_printer drm_err_printer(struct drm_device *drm, in drm_err_printer() argument
416 .arg = drm, in drm_err_printer()
434 * void crash_dump(struct drm_device *drm)
437 * struct drm_printer p = drm_err_printer(drm, "crash");
446 * [ ] 0000:00:00.0: [drm] *ERROR* crash dump 1.1: foo
447 * [ ] 0000:00:00.0: [drm] *ERROR* crash dump 1.2: bar
462 * [ ] 0000:00:00.0: [drm] 1: foo
463 * [ ] 0000:00:00.0: [drm] 2: bar
551 * DRM_DEV_DEBUG() - Debug output for generic drm code
588 static inline struct device *__drm_to_dev(const struct drm_device *drm) in __drm_to_dev() argument
590 return drm ? drm->dev : NULL; in __drm_to_dev()
594 #define __drm_printk(drm, level, type, fmt, ...) \ argument
595 dev_##level##type(__drm_to_dev(drm), "[drm] " fmt, ##__VA_ARGS__)
598 #define drm_info(drm, fmt, ...) \ argument
599 __drm_printk((drm), info,, fmt, ##__VA_ARGS__)
601 #define drm_notice(drm, fmt, ...) \ argument
602 __drm_printk((drm), notice,, fmt, ##__VA_ARGS__)
604 #define drm_warn(drm, fmt, ...) \ argument
605 __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
607 #define drm_err(drm, fmt, ...) \ argument
608 __drm_printk((drm), err,, "*ERROR* " fmt, ##__VA_ARGS__)
611 #define drm_info_once(drm, fmt, ...) \ argument
612 __drm_printk((drm), info, _once, fmt, ##__VA_ARGS__)
614 #define drm_notice_once(drm, fmt, ...) \ argument
615 __drm_printk((drm), notice, _once, fmt, ##__VA_ARGS__)
617 #define drm_warn_once(drm, fmt, ...) \ argument
618 __drm_printk((drm), warn, _once, fmt, ##__VA_ARGS__)
620 #define drm_err_once(drm, fmt, ...) \ argument
621 __drm_printk((drm), err, _once, "*ERROR* " fmt, ##__VA_ARGS__)
624 #define drm_err_ratelimited(drm, fmt, ...) \ argument
625 __drm_printk((drm), err, _ratelimited, "*ERROR* " fmt, ##__VA_ARGS__)
628 #define drm_dbg_core(drm, fmt, ...) \ argument
629 drm_dev_dbg(__drm_to_dev(drm), DRM_UT_CORE, fmt, ##__VA_ARGS__)
630 #define drm_dbg_driver(drm, fmt, ...) \ argument
631 drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
632 #define drm_dbg_kms(drm, fmt, ...) \ argument
633 drm_dev_dbg(__drm_to_dev(drm), DRM_UT_KMS, fmt, ##__VA_ARGS__)
634 #define drm_dbg_prime(drm, fmt, ...) \ argument
635 drm_dev_dbg(__drm_to_dev(drm), DRM_UT_PRIME, fmt, ##__VA_ARGS__)
636 #define drm_dbg_atomic(drm, fmt, ...) \ argument
637 drm_dev_dbg(__drm_to_dev(drm), DRM_UT_ATOMIC, fmt, ##__VA_ARGS__)
638 #define drm_dbg_vbl(drm, fmt, ...) \ argument
639 drm_dev_dbg(__drm_to_dev(drm), DRM_UT_VBL, fmt, ##__VA_ARGS__)
640 #define drm_dbg_state(drm, fmt, ...) \ argument
641 drm_dev_dbg(__drm_to_dev(drm), DRM_UT_STATE, fmt, ##__VA_ARGS__)
642 #define drm_dbg_lease(drm, fmt, ...) \ argument
643 drm_dev_dbg(__drm_to_dev(drm), DRM_UT_LEASE, fmt, ##__VA_ARGS__)
644 #define drm_dbg_dp(drm, fmt, ...) \ argument
645 drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DP, fmt, ##__VA_ARGS__)
646 #define drm_dbg_drmres(drm, fmt, ...) \ argument
647 drm_dev_dbg(__drm_to_dev(drm), DRM_UT_DRMRES, fmt, ##__VA_ARGS__)
649 #define drm_dbg(drm, fmt, ...) drm_dbg_driver(drm, fmt, ##__VA_ARGS__) argument
733 #define __DRM_DEFINE_DBG_RATELIMITED(category, drm, fmt, ...) \ argument
738 drm_dev_printk(__drm_to_dev(drm), KERN_DEBUG, fmt, ## __VA_ARGS__); \
741 #define drm_dbg_ratelimited(drm, fmt, ...) \ argument
742 __DRM_DEFINE_DBG_RATELIMITED(DRIVER, drm, fmt, ## __VA_ARGS__)
744 #define drm_dbg_kms_ratelimited(drm, fmt, ...) \ argument
745 __DRM_DEFINE_DBG_RATELIMITED(KMS, drm, fmt, ## __VA_ARGS__)
758 #define drm_WARN(drm, condition, format, arg...) \ argument
759 WARN(condition, "%s %s: [drm] " format, \
760 dev_driver_string(__drm_to_dev(drm)), \
761 dev_name(__drm_to_dev(drm)), ## arg)
763 #define drm_WARN_ONCE(drm, condition, format, arg...) \ argument
764 WARN_ONCE(condition, "%s %s: [drm] " format, \
765 dev_driver_string(__drm_to_dev(drm)), \
766 dev_name(__drm_to_dev(drm)), ## arg)
768 #define drm_WARN_ON(drm, x) \ argument
769 drm_WARN((drm), (x), "%s", \
772 #define drm_WARN_ON_ONCE(drm, x) \ argument
773 drm_WARN_ONCE((drm), (x), "%s", \