Home
last modified time | relevance | path

Searched refs:g_assert_cmpuint (Results 1 – 25 of 67) sorted by relevance

123

/openbmc/qemu/tests/qtest/
H A Dtest-arm-mptimer.c102 g_assert_cmpuint(timer_get_and_clr_int_sts(), ==, 0); in test_timer_oneshot()
103 g_assert_cmpuint(timer_counter(), ==, 9990000); in test_timer_oneshot()
107 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_oneshot()
108 g_assert_cmpuint(timer_get_and_clr_int_sts(), ==, 1); in test_timer_oneshot()
112 g_assert_cmpuint(timer_counter(), ==, 0); in test_timer_oneshot()
113 g_assert_cmpuint(timer_get_and_clr_int_sts(), ==, 0); in test_timer_oneshot()
126 g_assert_cmpuint(timer_counter(), ==, 999999000); in test_timer_pause()
127 g_assert_cmpuint(timer_get_and_clr_int_sts(), ==, 0); in test_timer_pause()
131 g_assert_cmpuint(timer_counter(), ==, 999990000); in test_timer_pause()
132 g_assert_cmpuint(timer_get_and_clr_int_sts(), ==, 0); in test_timer_pause()
[all …]
H A Dsse-timer-test.c86 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_LO), ==, 0); in test_counter()
87 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_HI), ==, 0); in test_counter()
91 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_LO), ==, 100); in test_counter()
92 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_HI), ==, 0); in test_counter()
98 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_LO), ==, 110); in test_counter()
99 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_HI), ==, 0); in test_counter()
118 g_assert_cmpuint(readl(TIMER_BASE + CNTP_CTL), ==, 0); in test_timer()
119 g_assert_cmpuint(readl(TIMER_BASE + CNTPCT_LO), ==, 0); in test_timer()
120 g_assert_cmpuint(readl(TIMER_BASE + CNTPCT_HI), ==, 0); in test_timer()
127 g_assert_cmpuint(readl(TIMER_BASE + CNTPCT_LO), ==, 100); in test_timer()
[all …]
H A Dcmsdk-apb-watchdog-test.c89 g_assert_cmpuint(readl(wdog_base + WDOGRIS), ==, 0); in test_watchdog()
96 g_assert_cmpuint(readl(wdog_base + WDOGRIS), ==, 0); in test_watchdog()
97 g_assert_cmpuint(readl(wdog_base + WDOGVALUE), ==, 500); in test_watchdog()
101 g_assert_cmpuint(readl(wdog_base + WDOGRIS), ==, 1); in test_watchdog()
102 g_assert_cmpuint(readl(wdog_base + WDOGVALUE), ==, 0); in test_watchdog()
106 g_assert_cmpuint(readl(wdog_base + WDOGVALUE), ==, 1000); in test_watchdog()
110 g_assert_cmpuint(readl(wdog_base + WDOGVALUE), ==, 500); in test_watchdog()
111 g_assert_cmpuint(readl(wdog_base + WDOGRIS), ==, 1); in test_watchdog()
113 g_assert_cmpuint(readl(wdog_base + WDOGVALUE), ==, 1000); in test_watchdog()
114 g_assert_cmpuint(readl(wdog_base + WDOGRIS), ==, 0); in test_watchdog()
[all …]
H A Dufs-test.c365 g_assert_cmpuint(hce, ==, 1); in ufs_init()
388 g_assert_cmpuint(ucmdarg2, ==, 0); in ufs_init()
390 g_assert_cmpuint(is, ==, 0); in ufs_init()
475 g_assert_cmpuint(ocs, ==, UFS_OCS_SUCCESS); in ufs_init()
481 g_assert_cmpuint(ocs, ==, UFS_OCS_SUCCESS); in ufs_init()
482 g_assert_cmpuint(rsp_upiu.header.response, ==, UFS_COMMAND_RESULT_SUCCESS); in ufs_init()
492 g_assert_cmpuint(ocs, ==, UFS_OCS_SUCCESS); in ufs_init()
493 g_assert_cmpuint(rsp_upiu.header.response, ==, in ufs_init()
497 g_assert_cmpuint(be32_to_cpu(rsp_upiu.qr.value), ==, 0); in ufs_init()
553 g_assert_cmpuint(FIELD_EX32(cap, CAP, NUTRS), ==, 31); in ufstest_reg_read()
[all …]
H A Driscv-iommu-test.c50 g_assert_cmpuint(vendorid, ==, RISCV_IOMMU_PCI_VENDOR_ID); in test_pci_config()
51 g_assert_cmpuint(deviceid, ==, RISCV_IOMMU_PCI_DEVICE_ID); in test_pci_config()
52 g_assert_cmpuint(classid, ==, RISCV_IOMMU_PCI_DEVICE_CLASS); in test_pci_config()
62 g_assert_cmpuint(cap & RISCV_IOMMU_CAP_VERSION, ==, 0x10); in test_reg_reset()
65 g_assert_cmpuint(reg & RISCV_IOMMU_CQCSR_CQEN, ==, 0); in test_reg_reset()
66 g_assert_cmpuint(reg & RISCV_IOMMU_CQCSR_CIE, ==, 0); in test_reg_reset()
67 g_assert_cmpuint(reg & RISCV_IOMMU_CQCSR_CQON, ==, 0); in test_reg_reset()
68 g_assert_cmpuint(reg & RISCV_IOMMU_CQCSR_BUSY, ==, 0); in test_reg_reset()
71 g_assert_cmpuint(reg & RISCV_IOMMU_FQCSR_FQEN, ==, 0); in test_reg_reset()
72 g_assert_cmpuint(reg & RISCV_IOMMU_FQCSR_FIE, ==, 0); in test_reg_reset()
[all …]
H A Dcmsdk-apb-dualtimer-test.c59 g_assert_cmpuint(readl(TIMER_BASE + TIMER1RIS), ==, 0); in test_dualtimer()
60 g_assert_cmpuint(readl(TIMER_BASE + TIMER1VALUE), ==, 500); in test_dualtimer()
64 g_assert_cmpuint(readl(TIMER_BASE + TIMER1RIS), ==, 1); in test_dualtimer()
65 g_assert_cmpuint(readl(TIMER_BASE + TIMER1VALUE), ==, 0); in test_dualtimer()
76 g_assert_cmpuint(readl(TIMER_BASE + TIMER1RIS), ==, 0); in test_dualtimer()
94 g_assert_cmpuint(readl(TIMER_BASE + TIMER2RIS), ==, 0); in test_prescale()
95 g_assert_cmpuint(readl(TIMER_BASE + TIMER2VALUE), ==, 500); in test_prescale()
99 g_assert_cmpuint(readl(TIMER_BASE + TIMER2RIS), ==, 1); in test_prescale()
100 g_assert_cmpuint(readl(TIMER_BASE + TIMER2VALUE), ==, 0); in test_prescale()
104 g_assert_cmpuint(readl(TIMER_BASE + TIMER2VALUE), ==, 1000); in test_prescale()
[all …]
H A Dmax34451-test.c97 g_assert_cmpuint(value, ==, DEFAULT_TEMPERATURE); in test_defaults()
103 g_assert_cmpuint(i2c_value, ==, DEFAULT_TEMPERATURE); in test_defaults()
106 g_assert_cmpuint(i2c_value, ==, DEFAULT_OT_LIMIT); in test_defaults()
109 g_assert_cmpuint(i2c_value, ==, DEFAULT_OT_LIMIT); in test_defaults()
116 g_assert_cmpuint(value, ==, DEFAULT_VOUT); in test_defaults()
121 g_assert_cmpuint(i2c_value, ==, DEFAULT_VOUT); in test_defaults()
124 g_assert_cmpuint(i2c_value, ==, DEFAULT_OV_LIMIT); in test_defaults()
127 g_assert_cmpuint(i2c_value, ==, DEFAULT_OV_LIMIT); in test_defaults()
130 g_assert_cmpuint(i2c_value, ==, DEFAULT_UV_LIMIT); in test_defaults()
133 g_assert_cmpuint(i2c_value, ==, DEFAULT_UV_LIMIT); in test_defaults()
[all …]
H A Dcmsdk-apb-timer-test.c38 g_assert_cmpuint(readl(TIMER_BASE + INTSTATUS), ==, 0); in test_timer()
39 g_assert_cmpuint(readl(TIMER_BASE + VALUE), ==, 500); in test_timer()
43 g_assert_cmpuint(readl(TIMER_BASE + INTSTATUS), ==, 1); in test_timer()
44 g_assert_cmpuint(readl(TIMER_BASE + VALUE), ==, 0); in test_timer()
48 g_assert_cmpuint(readl(TIMER_BASE + VALUE), ==, 1000); in test_timer()
52 g_assert_cmpuint(readl(TIMER_BASE + INTSTATUS), ==, 1); in test_timer()
54 g_assert_cmpuint(readl(TIMER_BASE + INTSTATUS), ==, 0); in test_timer()
H A Dsdhci-test.c34 g_assert_cmpuint(v, ==, version); in check_specs_version()
51 g_assert_cmpuint(capab0, !=, vrand); in check_capab_readonly()
55 g_assert_cmpuint(capab1, !=, vrand); in check_capab_readonly()
56 g_assert_cmpuint(capab1, ==, capab0); in check_capab_readonly()
68 g_assert_cmpuint(capab_freq, ==, expec_freq); in check_capab_baseclock()
77 g_assert_cmpuint(capab_sdma, ==, supported); in check_capab_sdma()
88 g_assert_cmpuint(capab_v3, ==, 0); in check_capab_v3()
90 g_assert_cmpuint(capab_v3, ==, 0); in check_capab_v3()
H A Dpnv-xive2-nvpg_bar.c109 g_assert_cmpuint(count, ==, vp_count[i]); in test_nvpg_bar()
112 g_assert_cmpuint(count, ==, group_count[i]); in test_nvpg_bar()
121 g_assert_cmpuint(count, ==, vp_count[vp_priority]); in test_nvpg_bar()
123 g_assert_cmpuint(count, ==, vp_count[vp_priority]); in test_nvpg_bar()
126 g_assert_cmpuint(count, ==, vp_count[vp_priority]); in test_nvpg_bar()
130 g_assert_cmpuint(count, ==, vp_count[vp_priority]); in test_nvpg_bar()
138 g_assert_cmpuint(count, ==, 0); in test_nvpg_bar()
143 g_assert_cmpuint(count, ==, group_count[group_priority]); in test_nvpg_bar()
148 g_assert_cmpuint(count, ==, group_count[group_priority]); in test_nvpg_bar()
151 g_assert_cmpuint(count, ==, group_count[group_priority]); in test_nvpg_bar()
H A Derst-test.c109 g_assert_cmpuint(s->reg_barsize, ==, 16); in setup_vm_cmd()
141 g_assert_cmpuint(log_address_range, !=, 0ULL); in test_acpi_erst_basic()
142 g_assert_cmpuint(log_address_range, !=, ~0ULL); in test_acpi_erst_basic()
143 g_assert_cmpuint(log_address_range, !=, state.reg_bar.addr); in test_acpi_erst_basic()
144 g_assert_cmpuint(log_address_range, ==, state.mem_bar.addr); in test_acpi_erst_basic()
147 g_assert_cmpuint(log_address_length, ==, state.mem_barsize); in test_acpi_erst_basic()
150 g_assert_cmpuint(log_address_attr, ==, 0); in test_acpi_erst_basic()
H A Disl_pmbus_vr-test.c81 g_assert_cmpuint(value, ==, ISL_READ_VOUT_DEFAULT); in test_defaults()
84 g_assert_cmpuint(i2c_value, ==, ISL_READ_IOUT_DEFAULT); in test_defaults()
87 g_assert_cmpuint(value, ==, ISL_READ_POUT_DEFAULT); in test_defaults()
90 g_assert_cmpuint(i2c_value, ==, ISL_READ_VIN_DEFAULT); in test_defaults()
93 g_assert_cmpuint(value, ==, ISL_READ_IIN_DEFAULT); in test_defaults()
96 g_assert_cmpuint(i2c_value, ==, ISL_READ_PIN_DEFAULT); in test_defaults()
99 g_assert_cmpuint(value, ==, ISL_READ_TEMP_DEFAULT); in test_defaults()
102 g_assert_cmpuint(i2c_value, ==, ISL_READ_TEMP_DEFAULT); in test_defaults()
160 g_assert_cmpuint(value, ==, 0); in raa228000_test_defaults()
163 g_assert_cmpuint(i2c_value, ==, 0); in raa228000_test_defaults()
[all …]
H A Dtmp105-test.c51 g_assert_cmpuint(value, ==, 0); in send_and_receive()
58 g_assert_cmpuint(value, ==, 20000); in send_and_receive()
65 g_assert_cmpuint(value, >=, 20938 - TMP105_PRECISION/2); in send_and_receive()
66 g_assert_cmpuint(value, <, 20938 + TMP105_PRECISION/2); in send_and_receive()
94 g_assert_cmpuint(value, >=, 20938 - TMP105_PRECISION/2); in send_and_receive()
95 g_assert_cmpuint(value, <, 20938 + TMP105_PRECISION/2); in send_and_receive()
H A Dnpcm7xx_timer-test.c248 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps5()
253 g_assert_cmpuint(tim_read_tdr(td), <, count); in test_oneshot_ps5()
259 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps5()
286 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps0()
291 g_assert_cmpuint(tim_read_tdr(td), <, count); in test_oneshot_ps0()
297 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps0()
314 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps255()
319 g_assert_cmpuint(tim_read_tdr(td), <, count); in test_oneshot_ps255()
325 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps255()
366 g_assert_cmpuint(tim_read_tdr(td), ==, count / 2); in test_pause_resume()
[all …]
H A Divshmem-test.c122 g_assert_cmpuint(barsize, ==, 256); in setup_vm_cmd()
129 g_assert_cmpuint(barsize, ==, TMPSHMSIZE); in setup_vm_cmd()
155 g_assert_cmpuint(in_reg(s, INTRMASK), ==, 0); in test_ivshmem_single()
156 g_assert_cmpuint(in_reg(s, INTRSTATUS), ==, 0); in test_ivshmem_single()
157 g_assert_cmpuint(in_reg(s, IVPOSITION), ==, 0); in test_ivshmem_single()
164 g_assert_cmpuint(in_reg(s, INTRSTATUS), ==, 1); in test_ivshmem_single()
166 g_assert_cmpuint(in_reg(s, INTRSTATUS), ==, 0); in test_ivshmem_single()
184 g_assert_cmpuint(((uint32_t *)tmpshmem)[i], ==, i); in test_ivshmem_single()
191 g_assert_cmpuint(data[i], ==, i); in test_ivshmem_single()
343 g_assert_cmpuint(ret, ==, nvectors); in test_ivshmem_server()
[all …]
H A Drs5c372-test.c28 g_assert_cmpuint(from_bcd(resp[5]), == , utc->tm_mday); in rs5c372_read_date()
29 g_assert_cmpuint(from_bcd(resp[6]), == , 1 + utc->tm_mon); in rs5c372_read_date()
30 g_assert_cmpuint(2000 + from_bcd(resp[7]), == , 1900 + utc->tm_year); in rs5c372_read_date()
/openbmc/qemu/tests/unit/
H A Dtest-x86-topo.c38 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 0); in test_topo_bits()
39 g_assert_cmpuint(apicid_core_width(&topo_info), ==, 0); in test_topo_bits()
40 g_assert_cmpuint(apicid_module_width(&topo_info), ==, 0); in test_topo_bits()
41 g_assert_cmpuint(apicid_die_width(&topo_info), ==, 0); in test_topo_bits()
44 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 0), ==, 0); in test_topo_bits()
45 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 1), ==, 1); in test_topo_bits()
46 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 2), ==, 2); in test_topo_bits()
47 g_assert_cmpuint(x86_apicid_from_cpu_idx(&topo_info, 3), ==, 3); in test_topo_bits()
53 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 1); in test_topo_bits()
55 g_assert_cmpuint(apicid_smt_width(&topo_info), ==, 2); in test_topo_bits()
[all …]
H A Dptimer-test.c76 g_assert_cmpuint(ptimer_get_count(ptimer), ==, 1000); in check_set_count()
91 g_assert_cmpuint(ptimer_get_count(ptimer), ==, 0); in check_set_limit()
92 g_assert_cmpuint(ptimer_get_limit(ptimer), ==, 1000); in check_set_limit()
98 g_assert_cmpuint(ptimer_get_count(ptimer), ==, 2000); in check_set_limit()
99 g_assert_cmpuint(ptimer_get_limit(ptimer), ==, 2000); in check_set_limit()
120 g_assert_cmpuint(ptimer_get_count(ptimer), ==, no_round_down ? 8 : 7); in check_oneshot()
127 g_assert_cmpuint(ptimer_get_count(ptimer), ==, no_round_down ? 8 : 7); in check_oneshot()
132 g_assert_cmpuint(ptimer_get_count(ptimer), ==, no_round_down ? 8 : 7); in check_oneshot()
141 g_assert_cmpuint(ptimer_get_count(ptimer), ==, no_round_down ? 1 : 0); in check_oneshot()
153 g_assert_cmpuint(ptimer_get_count(ptimer), ==, 0); in check_oneshot()
[all …]
H A Dtest-int128.c57 g_assert_cmpuint(int128_getlo(r), ==, int128_getlo(s)); in test_and()
58 g_assert_cmpuint(int128_gethi(r), ==, int128_gethi(s)); in test_and()
73 g_assert_cmpuint(int128_getlo(r), ==, int128_getlo(s)); in test_add()
74 g_assert_cmpuint(int128_gethi(r), ==, int128_gethi(s)); in test_add()
89 g_assert_cmpuint(int128_getlo(r), ==, int128_getlo(s)); in test_sub()
90 g_assert_cmpuint(int128_gethi(r), ==, int128_gethi(s)); in test_sub()
103 g_assert_cmpuint(int128_getlo(r), ==, int128_getlo(s)); in test_neg()
104 g_assert_cmpuint(int128_gethi(r), ==, int128_gethi(s)); in test_neg()
115 g_assert_cmpuint(int128_nz(a), ==, tests[i] != 0); in test_nz()
129 g_assert_cmpuint(int128_le(expand(a), expand(b)), ==, a <= b); in test_le()
[all …]
H A Dtest-div128.c169 g_assert_cmpuint(tmp.low, ==, tmp.rlow); in test_divu128()
170 g_assert_cmpuint(tmp.high, ==, tmp.rhigh); in test_divu128()
171 g_assert_cmpuint(rem, ==, tmp.remainder); in test_divu128()
185 g_assert_cmpuint(tmp.low, ==, tmp.rlow); in test_divs128()
186 g_assert_cmpuint(tmp.high, ==, tmp.rhigh); in test_divs128()
187 g_assert_cmpuint(rem, ==, tmp.remainder); in test_divs128()
H A Dtest-shift128.c115 g_assert_cmpuint(tmp.low, ==, tmp.rlow); in test_lshift()
116 g_assert_cmpuint(tmp.high, ==, tmp.rhigh); in test_lshift()
117 g_assert_cmpuint(tmp.overflow, ==, overflow); in test_lshift()
128 g_assert_cmpuint(tmp.low, ==, tmp.rlow); in test_rshift()
129 g_assert_cmpuint(tmp.high, ==, tmp.rhigh); in test_rshift()
H A Dtest-cutils.c43 g_assert_cmpuint(i, ==, 0); in test_parse_uint_null()
57 g_assert_cmpuint(i, ==, 0); in test_parse_uint_empty()
71 g_assert_cmpuint(i, ==, 0); in test_parse_uint_whitespace()
86 g_assert_cmpuint(i, ==, 0); in test_parse_uint_invalid()
101 g_assert_cmpuint(i, ==, 123); in test_parse_uint_trailing()
115 g_assert_cmpuint(i, ==, 123); in test_parse_uint_correct()
129 g_assert_cmpuint(i, ==, 0123); in test_parse_uint_octal()
143 g_assert_cmpuint(i, ==, 123); in test_parse_uint_decimal()
157 g_assert_cmpuint(i, ==, (unsigned long long)LLONG_MAX + 1); in test_parse_uint_llong_max()
173 g_assert_cmpuint( in test_parse_uint_max()
[all...]
H A Dtest-bitmap.c83 g_assert_cmpuint(bmap[1], ==, -1ul); in bitmap_set_case()
84 g_assert_cmpuint(bmap[2], ==, -1ul); in bitmap_set_case()
93 g_assert_cmpuint(bmap[1], ==, -1ul); in bitmap_set_case()
94 g_assert_cmpuint(bmap[2], ==, -1ul); in bitmap_set_case()
107 g_assert_cmpuint(bmap[1], ==, -1ul); in bitmap_set_case()
108 g_assert_cmpuint(bmap[2], ==, -1ul); in bitmap_set_case()
H A Dtest-qemu-opts.c435 g_assert_cmpuint(opts_count(opts), ==, 0); in test_opts_parse()
439 g_assert_cmpuint(opts_count(opts), ==, 1); in test_opts_parse()
445 g_assert_cmpuint(opts_count(opts), ==, 3); in test_opts_parse()
452 g_assert_cmpuint(opts_count(opts), ==, 0); in test_opts_parse()
459 g_assert_cmpuint(opts_count(opts), ==, 1); in test_opts_parse()
464 g_assert_cmpuint(opts_count(opts), ==, 1); in test_opts_parse()
475 g_assert_cmpuint(opts_count(opts), ==, 1); in test_opts_parse()
487 g_assert_cmpuint(opts_count(opts), ==, 3); in test_opts_parse()
494 g_assert_cmpuint(opts_count(opts), ==, 1); in test_opts_parse()
500 g_assert_cmpuint(opts_count(opts), ==, 3); in test_opts_parse()
[all …]
H A Dtest-qdev-global-props.c102 g_assert_cmpuint(mt->prop1, ==, PROP_DEFAULT); in test_static_prop_subprocess()
137 g_assert_cmpuint(mt->prop1, ==, 200); in test_static_globalprop_subprocess()
138 g_assert_cmpuint(mt->prop2, ==, PROP_DEFAULT); in test_static_globalprop_subprocess()
255 g_assert_cmpuint(mt->prop1, ==, 101); in test_dynamic_globalprop_subprocess()
256 g_assert_cmpuint(mt->prop2, ==, 102); in test_dynamic_globalprop_subprocess()
258 g_assert_cmpuint(global_error, ==, 1); in test_dynamic_globalprop_subprocess()
301 g_assert_cmpuint(mt->prop1, ==, 102); in test_subclass_global_props()
302 g_assert_cmpuint(mt->prop2, ==, 104); in test_subclass_global_props()

123