Home
last modified time | relevance | path

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

/openbmc/qemu/hw/i2c/
H A Dnpcm7xx_smbus.c214 (s->rxf_ctl & NPCM7XX_SMBRXF_CTL_THR_RXIE && in npcm7xx_smbus_update_irq()
281 uint8_t expected_bytes = NPCM7XX_SMBRXF_CTL_RX_THR(s->rxf_ctl); in npcm7xx_smbus_recv_fifo()
309 if (s->rxf_ctl & NPCM7XX_SMBRXF_CTL_LAST) { in npcm7xx_smbus_recv_fifo()
312 s->rxf_ctl &= ~NPCM7XX_SMBRXF_CTL_LAST; in npcm7xx_smbus_recv_fifo()
317 } else if (!(s->rxf_ctl & NPCM7XX_SMBRXF_CTL_THR_RXIE)) { in npcm7xx_smbus_recv_fifo()
651 new_ctl = KEEP_OLD_BIT(s->rxf_ctl, new_ctl, NPCM7XX_SMBRXF_CTL_LAST); in npcm7xx_smbus_write_rxf_ctl()
653 s->rxf_ctl = new_ctl; in npcm7xx_smbus_write_rxf_ctl()
738 value = s->rxf_ctl; in npcm7xx_smbus_read()
1018 s->rxf_ctl = NPCM7XX_SMB_RXF_CTL_INIT_VAL; in npcm7xx_smbus_enter_reset()
1070 VMSTATE_UINT8(rxf_ctl, NPCM7xxSMBusState),
/openbmc/qemu/include/hw/i2c/
H A Dnpcm7xx_smbus.h101 uint8_t rxf_ctl; member
/openbmc/qemu/tests/qtest/
H A Dnpcm7xx_smbus-test.c246 uint8_t st, fif_ctl, rxf_ctl, rxf_sts; in check_recv() local
258 rxf_ctl = qtest_readb(qts, base_addr + OFFSET_RXF_CTL); in check_recv()
261 if ((rxf_ctl & RXF_CTL_THR_RXIE) && RXF_STS_RX_BYTES(rxf_sts) < 16) { in check_recv()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-npcm7xx.c1052 u8 rxf_ctl = 0; in npcm_i2c_set_fifo() local
1062 rxf_ctl = min_t(int, nread, bus->data->fifo_size); in npcm_i2c_set_fifo()
1066 rxf_ctl |= bus->data->rxf_ctl_last_pec; in npcm_i2c_set_fifo()
1075 rxf_ctl = 1; in npcm_i2c_set_fifo()
1079 iowrite8(rxf_ctl, bus->reg + NPCM_I2CRXF_CTL); in npcm_i2c_set_fifo()