#include <kunit/test.h>
#include <drm/display/drm_dp_mst_helper.h>
#include <drm/drm_print.h>
#include "../display/drm_dp_mst_topology_internal.h"
struct drm_dp_mst_calc_pbn_mode_test { … };
static const struct drm_dp_mst_calc_pbn_mode_test drm_dp_mst_calc_pbn_mode_cases[] = …;
static void drm_test_dp_mst_calc_pbn_mode(struct kunit *test)
{ … }
static void dp_mst_calc_pbn_mode_desc(const struct drm_dp_mst_calc_pbn_mode_test *t, char *desc)
{ … }
KUNIT_ARRAY_PARAM(drm_dp_mst_calc_pbn_mode, drm_dp_mst_calc_pbn_mode_cases,
dp_mst_calc_pbn_mode_desc);
struct drm_dp_mst_calc_pbn_div_test { … };
#define fp_init(__int, __frac) …
static const struct drm_dp_mst_calc_pbn_div_test drm_dp_mst_calc_pbn_div_dp1_4_cases[] = …;
static void drm_test_dp_mst_calc_pbn_div(struct kunit *test)
{ … }
static void dp_mst_calc_pbn_div_desc(const struct drm_dp_mst_calc_pbn_div_test *t, char *desc)
{ … }
KUNIT_ARRAY_PARAM(drm_dp_mst_calc_pbn_div, drm_dp_mst_calc_pbn_div_dp1_4_cases,
dp_mst_calc_pbn_div_desc);
static u8 data[] = …;
struct drm_dp_mst_sideband_msg_req_test { … };
static const struct drm_dp_mst_sideband_msg_req_test drm_dp_mst_sideband_msg_req_cases[] = …;
static bool
sideband_msg_req_equal(const struct drm_dp_sideband_msg_req_body *in,
const struct drm_dp_sideband_msg_req_body *out)
{ … }
static void drm_test_dp_mst_msg_printf(struct drm_printer *p, struct va_format *vaf)
{ … }
static void drm_test_dp_mst_sideband_msg_req_decode(struct kunit *test)
{ … }
static void
drm_dp_mst_sideband_msg_req_desc(const struct drm_dp_mst_sideband_msg_req_test *t, char *desc)
{ … }
KUNIT_ARRAY_PARAM(drm_dp_mst_sideband_msg_req, drm_dp_mst_sideband_msg_req_cases,
drm_dp_mst_sideband_msg_req_desc);
static struct kunit_case drm_dp_mst_helper_tests[] = …;
static int drm_dp_mst_helper_tests_init(struct kunit *test)
{ … }
static struct kunit_suite drm_dp_mst_helper_test_suite = …;
kunit_test_suite(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;