Lines Matching refs:g_assert_cmpint
104 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_basic()
109 g_assert_cmpint(v, ==, 0); in tpm_tis_i2c_test_basic()
115 g_assert_cmpint(v, ==, 0); in tpm_tis_i2c_test_basic()
121 g_assert_cmpint(v, ==, TPM_DATA_CSUM_ENABLED); in tpm_tis_i2c_test_basic()
124 g_assert_cmpint(v, ==, TPM_DATA_CSUM_ENABLED); in tpm_tis_i2c_test_basic()
130 g_assert_cmpint(v, ==, 0); in tpm_tis_i2c_test_basic()
135 g_assert_cmpint(v, ==, 0xffffffff); in tpm_tis_i2c_test_basic()
142 g_assert_cmpint(v, ==, 0); in tpm_tis_i2c_test_basic()
148 g_assert_cmpint(v, ==, v2); in tpm_tis_i2c_test_basic()
157 g_assert_cmpint(v, ==, 0); in tpm_tis_i2c_test_basic()
170 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_localities()
180 g_assert_cmpint(capability, ==, i2c_cap); in tpm_tis_i2c_test_check_localities()
183 g_assert_cmpint(didvid, ==, (1 << 16) | PCI_VENDOR_ID_IBM); in tpm_tis_i2c_test_check_localities()
186 g_assert_cmpint(rid, !=, 0); in tpm_tis_i2c_test_check_localities()
187 g_assert_cmpint(rid, !=, 0xffffffff); in tpm_tis_i2c_test_check_localities()
191 g_assert_cmpint(l, ==, locty); in tpm_tis_i2c_test_check_localities()
203 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg()
211 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg()
219 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg()
238 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
245 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
254 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
269 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
279 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
290 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
297 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
324 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
335 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
346 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
354 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
364 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
391 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
398 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
416 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_seize()
436 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_release()
443 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_release()
460 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_release()
480 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_release()
492 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_access_reg_release()
514 g_assert_cmpint(v, ==, TPM_DATA_CSUM_ENABLED); in tpm_tis_i2c_test_check_transmit()
517 g_assert_cmpint(v, ==, TPM_DATA_CSUM_ENABLED); in tpm_tis_i2c_test_check_transmit()
522 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_check_transmit()
529 g_assert_cmpint(sts & 0xff, ==, 0); in tpm_tis_i2c_test_check_transmit()
532 g_assert_cmpint(bcount, >=, 128); in tpm_tis_i2c_test_check_transmit()
536 g_assert_cmpint(bcount, ==, bcount2); in tpm_tis_i2c_test_check_transmit()
539 g_assert_cmpint(sts & (0x1f << 26), ==, 0); in tpm_tis_i2c_test_check_transmit()
544 g_assert_cmpint(sts & 0xff, ==, TPM_TIS_STS_COMMAND_READY); in tpm_tis_i2c_test_check_transmit()
552 g_assert_cmpint(sts & 0xff, ==, in tpm_tis_i2c_test_check_transmit()
555 g_assert_cmpint(sts & 0xff, ==, TPM_TIS_STS_VALID); in tpm_tis_i2c_test_check_transmit()
557 g_assert_cmpint((sts >> 8) & 0xffff, ==, --bcount); in tpm_tis_i2c_test_check_transmit()
561 g_assert_cmpint(csum, ==, 0x6733); in tpm_tis_i2c_test_check_transmit()
576 g_assert_cmpint(sts & 0xff, == , in tpm_tis_i2c_test_check_transmit()
582 g_assert_cmpint(sizeof(tpm_msg), ==, bcount); in tpm_tis_i2c_test_check_transmit()
589 g_assert_cmpint((sts >> 8) & 0xffff, ==, --bcount); in tpm_tis_i2c_test_check_transmit()