Lines Matching refs:drm_printer
52 * void log_some_info(struct drm_printer *p)
61 * struct drm_printer p = drm_seq_file_printer(f);
68 * struct drm_printer p = drm_info_printer(drm->dev);
169 * struct drm_printer - drm output "stream"
174 struct drm_printer {
176 void (*printfn)(struct drm_printer *p, struct va_format *vaf);
177 void (*puts)(struct drm_printer *p, const char *str);
188 void __drm_printfn_coredump(struct drm_printer *p, struct va_format *vaf);
189 void __drm_puts_coredump(struct drm_printer *p, const char *str);
190 void __drm_printfn_seq_file(struct drm_printer *p, struct va_format *vaf);
191 void __drm_puts_seq_file(struct drm_printer *p, const char *str);
192 void __drm_printfn_info(struct drm_printer *p, struct va_format *vaf);
193 void __drm_printfn_dbg(struct drm_printer *p, struct va_format *vaf);
194 void __drm_printfn_err(struct drm_printer *p, struct va_format *vaf);
195 void __drm_printfn_line(struct drm_printer *p, struct va_format *vaf);
198 void drm_printf(struct drm_printer *p, const char *f, ...);
199 void drm_puts(struct drm_printer *p, const char *str);
200 void drm_print_regset32(struct drm_printer *p, struct debugfs_regset32 *regset);
201 void drm_print_bits(struct drm_printer *p, unsigned long value,
203 void drm_print_hex_dump(struct drm_printer *p, const char *prefix,
208 * drm_vprintf - print to a &drm_printer stream
209 * @p: the &drm_printer
214 drm_vprintf(struct drm_printer *p, const char *fmt, va_list *va)
222 * drm_printf_indent - Print to a &drm_printer stream with indentation
246 * drm_coredump_printer - construct a &drm_printer that can output to a buffer
260 * struct drm_printer p;
295 * struct drm_printer p;
330 * The &drm_printer object
332 static inline struct drm_printer
335 struct drm_printer p = {
357 static inline bool drm_coredump_printer_is_full(struct drm_printer *p)
368 * drm_seq_file_printer - construct a &drm_printer that outputs to &seq_file
372 * The &drm_printer object
374 static inline struct drm_printer drm_seq_file_printer(struct seq_file *f)
376 struct drm_printer p = {
385 * drm_info_printer - construct a &drm_printer that outputs to dev_printk()
389 * The &drm_printer object
391 static inline struct drm_printer drm_info_printer(struct device *dev)
393 struct drm_printer p = {
401 * drm_dbg_printer - construct a &drm_printer for drm device specific output
407 * The &drm_printer object
409 static inline struct drm_printer drm_dbg_printer(struct drm_device *drm,
413 struct drm_printer p = {
424 * drm_err_printer - construct a &drm_printer that outputs to drm_err()
429 * The &drm_printer object
431 static inline struct drm_printer drm_err_printer(struct drm_device *drm,
434 struct drm_printer p = {
443 * drm_line_printer - construct a &drm_printer that prefixes outputs with line numbers
444 * @p: the &struct drm_printer which actually generates the output
457 * struct drm_printer p = drm_err_printer(drm, "crash");
458 * struct drm_printer lp = drm_line_printer(&p, "dump", ++id);
473 * struct drm_printer p = drm_info_printer(dev);
474 * struct drm_printer lp = drm_line_printer(&p, NULL, 0);
486 * The &drm_printer object
488 static inline struct drm_printer drm_line_printer(struct drm_printer *p,
492 struct drm_printer lp = {