Lines Matching refs:MPCI2CState
39 OBJECT_DECLARE_SIMPLE_TYPE(MPCI2CState, MPC_I2C)
72 struct MPCI2CState { struct
88 static bool mpc_i2c_is_enabled(MPCI2CState *s) in mpc_i2c_is_enabled() argument
93 static bool mpc_i2c_is_master(MPCI2CState *s) in mpc_i2c_is_master()
98 static bool mpc_i2c_direction_is_tx(MPCI2CState *s) in mpc_i2c_direction_is_tx()
103 static bool mpc_i2c_irq_pending(MPCI2CState *s) in mpc_i2c_irq_pending()
108 static bool mpc_i2c_irq_is_enabled(MPCI2CState *s) in mpc_i2c_irq_is_enabled()
115 MPCI2CState *i2c = MPC_I2C(dev); in mpc_i2c_reset()
125 static void mpc_i2c_irq(MPCI2CState *s) in mpc_i2c_irq()
141 static void mpc_i2c_soft_reset(MPCI2CState *s) in mpc_i2c_soft_reset()
149 static void mpc_i2c_address_send(MPCI2CState *s) in mpc_i2c_address_send()
163 static void mpc_i2c_data_send(MPCI2CState *s) in mpc_i2c_data_send()
177 static void mpc_i2c_data_recive(MPCI2CState *s) in mpc_i2c_data_recive()
195 MPCI2CState *s = opaque; in mpc_i2c_read()
235 MPCI2CState *s = opaque; in mpc_i2c_write()
316 VMSTATE_UINT8(address, MPCI2CState),
317 VMSTATE_UINT8(adr, MPCI2CState),
318 VMSTATE_UINT8(fdr, MPCI2CState),
319 VMSTATE_UINT8(cr, MPCI2CState),
320 VMSTATE_UINT8(sr, MPCI2CState),
321 VMSTATE_UINT8(dr, MPCI2CState),
322 VMSTATE_UINT8(dfsrr, MPCI2CState),
329 MPCI2CState *i2c = MPC_I2C(dev); in mpc_i2c_realize()
351 .instance_size = sizeof(MPCI2CState),