Lines Matching +full:0 +full:- +full:128
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2024-2025 Intel Corporation
7 #include "../iwl-utils.h"
20 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
21 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
22 128, 128
24 .result = -128,
29 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
30 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
31 0, 0,
33 .result = 0,
38 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
39 0xff, 0xff, 0xff, 0xff, 0xff,
40 0xff, 0xff, 0xff, 0xff, 0xff,
41 0xff, 0xff,
43 .result = -128,
48 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
49 0xff, 0xff, 0xff, 0xff, 0xff,
50 0xff, 0xff, 0xff, 0xff, 0xff,
51 0xff, 0xff,
53 .result = 0,
56 .desc = "Adding -80dBm to -75dBm until it is still rounded to -79dBm",
59 80, 80, 80, 80, 80, 80, 80, 0xff, 0xff, 0xff,
60 0xff, 0xff,
62 .result = -79,
65 .desc = "Adding -80dBm to -75dBm until it is just rounded to -80dBm",
68 80, 80, 80, 80, 80, 80, 80, 80, 0xff, 0xff,
69 0xff, 0xff,
71 .result = -80,
79 const struct average_neg_db_case *params = test->param_value; in KUNIT_ARRAY_PARAM_DESC()
80 u8 reversed[ARRAY_SIZE(params->neg_dbm)]; in KUNIT_ARRAY_PARAM_DESC()
85 iwl_average_neg_dbm(params->neg_dbm, in KUNIT_ARRAY_PARAM_DESC()
86 ARRAY_SIZE(params->neg_dbm)), in KUNIT_ARRAY_PARAM_DESC()
87 params->result); in KUNIT_ARRAY_PARAM_DESC()
90 for (i = 0; i < ARRAY_SIZE(params->neg_dbm); i++) in KUNIT_ARRAY_PARAM_DESC()
91 reversed[ARRAY_SIZE(params->neg_dbm) - i - 1] = in KUNIT_ARRAY_PARAM_DESC()
92 params->neg_dbm[i]; in KUNIT_ARRAY_PARAM_DESC()
95 ARRAY_SIZE(params->neg_dbm)), in KUNIT_ARRAY_PARAM_DESC()
96 params->result); in KUNIT_ARRAY_PARAM_DESC()
105 .name = "iwl-average-db",