Home
last modified time | relevance | path

Searched refs:OFFSET_CTL2 (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/tests/qtest/
H A Dnpcm7xx_smbus-test.c39 OFFSET_CTL2 = 0xa, enumerator
197 uint8_t ctl2 = qtest_readb(qts, base_addr + OFFSET_CTL2); in enable_bus()
200 qtest_writeb(qts, base_addr + OFFSET_CTL2, ctl2); in enable_bus()
201 g_assert_true(qtest_readb(qts, base_addr + OFFSET_CTL2) & CTL2_ENABLE); in enable_bus()
206 uint8_t ctl2 = qtest_readb(qts, base_addr + OFFSET_CTL2); in disable_bus()
209 qtest_writeb(qts, base_addr + OFFSET_CTL2, ctl2); in disable_bus()
210 g_assert_false(qtest_readb(qts, base_addr + OFFSET_CTL2) & CTL2_ENABLE); in disable_bus()