// SPDX-License-Identifier: GPL-2.0 /* * (C) COPYRIGHT 2019 ARM Limited. All rights reserved. * Author: James.Qian.Wang <[email protected]> * */ #include <drm/drm_atomic.h> #include <drm/drm_print.h> #include "komeda_dev.h" struct komeda_str { … }; /* return 0 on success, < 0 on no space. */ __printf(2, 3) static int komeda_sprintf(struct komeda_str *str, const char *fmt, ...) { … } static void evt_sprintf(struct komeda_str *str, u64 evt, const char *msg) { … } static void evt_str(struct komeda_str *str, u64 events) { … } static bool is_new_frame(struct komeda_events *a) { … } void komeda_print_events(struct komeda_events *evts, struct drm_device *dev) { … }