Lines Matching full:drm

34 #include <drm/drm.h>
67 * struct drm_printer p = drm_info_printer(drm->dev);
73 * enum drm_debug_category - The DRM debug categories
75 * Each of the DRM debug logging macros use a specific category, and the logging
76 * is filtered by the drm.debug module parameter. This enum specifies the values
82 * Enabling verbose debug messages is done through the drm.debug parameter, each
85 * - drm.debug=0x1 will enable CORE messages
86 * - drm.debug=0x2 will enable DRIVER messages
87 * - drm.debug=0x3 will enable CORE and DRIVER messages
89 * - drm.debug=0x1ff will enable all messages
94 * # echo 0xf > /sys/module/drm/parameters/debug
100 * @DRM_UT_CORE: Used in the generic drm code: drm_ioctl.c, drm_mm.c,
138 * @DRM_UT_DRMRES: Used in the drm managed resources code.
156 * the drm.debug API uses dyndbg, so each drm_*dbg macro/callsite gets
168 * struct drm_printer - drm output "stream"
215 * @printer: DRM printer
373 * drm_dbg_printer - construct a &drm_printer for drm device specific output
374 * @drm: the &struct drm_device pointer, or NULL
381 static inline struct drm_printer drm_dbg_printer(struct drm_device *drm, in drm_dbg_printer() argument
387 .arg = drm, in drm_dbg_printer()
397 * @drm: the &struct drm_device pointer
403 static inline struct drm_printer drm_err_printer(struct drm_device *drm, in drm_err_printer() argument
408 .arg = drm, in drm_err_printer()
484 * DRM_DEV_DEBUG() - Debug output for generic drm code
521 #define __drm_printk(drm, level, type, fmt, ...) \ argument
522 dev_##level##type((drm) ? (drm)->dev : NULL, "[drm] " fmt, ##__VA_ARGS__)
525 #define drm_info(drm, fmt, ...) \ argument
526 __drm_printk((drm), info,, fmt, ##__VA_ARGS__)
528 #define drm_notice(drm, fmt, ...) \ argument
529 __drm_printk((drm), notice,, fmt, ##__VA_ARGS__)
531 #define drm_warn(drm, fmt, ...) \ argument
532 __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
534 #define drm_err(drm, fmt, ...) \ argument
535 __drm_printk((drm), err,, "*ERROR* " fmt, ##__VA_ARGS__)
538 #define drm_info_once(drm, fmt, ...) \ argument
539 __drm_printk((drm), info, _once, fmt, ##__VA_ARGS__)
541 #define drm_notice_once(drm, fmt, ...) \ argument
542 __drm_printk((drm), notice, _once, fmt, ##__VA_ARGS__)
544 #define drm_warn_once(drm, fmt, ...) \ argument
545 __drm_printk((drm), warn, _once, fmt, ##__VA_ARGS__)
547 #define drm_err_once(drm, fmt, ...) \ argument
548 __drm_printk((drm), err, _once, "*ERROR* " fmt, ##__VA_ARGS__)
551 #define drm_err_ratelimited(drm, fmt, ...) \ argument
552 __drm_printk((drm), err, _ratelimited, "*ERROR* " fmt, ##__VA_ARGS__)
555 #define drm_dbg_core(drm, fmt, ...) \ argument
556 drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_CORE, fmt, ##__VA_ARGS__)
557 #define drm_dbg_driver(drm, fmt, ...) \ argument
558 drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
559 #define drm_dbg_kms(drm, fmt, ...) \ argument
560 drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_KMS, fmt, ##__VA_ARGS__)
561 #define drm_dbg_prime(drm, fmt, ...) \ argument
562 drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_PRIME, fmt, ##__VA_ARGS__)
563 #define drm_dbg_atomic(drm, fmt, ...) \ argument
564 drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_ATOMIC, fmt, ##__VA_ARGS__)
565 #define drm_dbg_vbl(drm, fmt, ...) \ argument
566 drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_VBL, fmt, ##__VA_ARGS__)
567 #define drm_dbg_state(drm, fmt, ...) \ argument
568 drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_STATE, fmt, ##__VA_ARGS__)
569 #define drm_dbg_lease(drm, fmt, ...) \ argument
570 drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_LEASE, fmt, ##__VA_ARGS__)
571 #define drm_dbg_dp(drm, fmt, ...) \ argument
572 drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DP, fmt, ##__VA_ARGS__)
573 #define drm_dbg_drmres(drm, fmt, ...) \ argument
574 drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__VA_ARGS__)
576 #define drm_dbg(drm, fmt, ...) drm_dbg_driver(drm, fmt, ##__VA_ARGS__) argument
660 #define __DRM_DEFINE_DBG_RATELIMITED(category, drm, fmt, ...) \ argument
663 const struct drm_device *drm_ = (drm); \
669 #define drm_dbg_ratelimited(drm, fmt, ...) \ argument
670 __DRM_DEFINE_DBG_RATELIMITED(DRIVER, drm, fmt, ## __VA_ARGS__)
672 #define drm_dbg_kms_ratelimited(drm, fmt, ...) \ argument
673 __DRM_DEFINE_DBG_RATELIMITED(KMS, drm, fmt, ## __VA_ARGS__)
686 #define drm_WARN(drm, condition, format, arg...) \ argument
687 WARN(condition, "%s %s: [drm] " format, \
688 dev_driver_string((drm)->dev), \
689 dev_name((drm)->dev), ## arg)
691 #define drm_WARN_ONCE(drm, condition, format, arg...) \ argument
692 WARN_ONCE(condition, "%s %s: [drm] " format, \
693 dev_driver_string((drm)->dev), \
694 dev_name((drm)->dev), ## arg)
696 #define drm_WARN_ON(drm, x) \ argument
697 drm_WARN((drm), (x), "%s", \
700 #define drm_WARN_ON_ONCE(drm, x) \ argument
701 drm_WARN_ONCE((drm), (x), "%s", \