Lines Matching refs:ctrl
365 u8 ctrl; in ocores_xfer_core() local
367 ctrl = oc_getreg(i2c, OCI2C_CONTROL); in ocores_xfer_core()
369 oc_setreg(i2c, OCI2C_CONTROL, ctrl & ~OCI2C_CTRL_IEN); in ocores_xfer_core()
371 oc_setreg(i2c, OCI2C_CONTROL, ctrl | OCI2C_CTRL_IEN); in ocores_xfer_core()
413 u8 ctrl = oc_getreg(i2c, OCI2C_CONTROL); in ocores_init() local
416 ctrl &= ~(OCI2C_CTRL_EN | OCI2C_CTRL_IEN); in ocores_init()
417 oc_setreg(i2c, OCI2C_CONTROL, ctrl); in ocores_init()
434 oc_setreg(i2c, OCI2C_CONTROL, ctrl | OCI2C_CTRL_EN); in ocores_init()
729 u8 ctrl = oc_getreg(i2c, OCI2C_CONTROL); in ocores_i2c_remove() local
732 ctrl &= ~(OCI2C_CTRL_EN | OCI2C_CTRL_IEN); in ocores_i2c_remove()
733 oc_setreg(i2c, OCI2C_CONTROL, ctrl); in ocores_i2c_remove()
742 u8 ctrl = oc_getreg(i2c, OCI2C_CONTROL); in ocores_i2c_suspend() local
745 ctrl &= ~(OCI2C_CTRL_EN | OCI2C_CTRL_IEN); in ocores_i2c_suspend()
746 oc_setreg(i2c, OCI2C_CONTROL, ctrl); in ocores_i2c_suspend()