Searched refs:ki2c (Results 1 – 1 of 1) sorted by relevance
49 struct ki2c { struct58 static int ki2c_inuse_lock(struct ki2c *ki2c) in ki2c_inuse_lock() argument77 ret = readb_poll_timeout(ki2c->base + KI2C_STATUS_REG, in ki2c_inuse_lock()81 dev_err(&ki2c->auxdev->auxdev.dev, "%s err!\n", __func__); in ki2c_inuse_lock()86 static void ki2c_inuse_unlock(struct ki2c *ki2c) in ki2c_inuse_unlock() argument89 iowrite8(KI2C_STATUS_IN_USE, ki2c->base + KI2C_STATUS_REG); in ki2c_inuse_unlock()100 static int ki2c_wait_for_mcf(struct ki2c *ki2c) in ki2c_wait_for_mcf() argument102 return ki2c_wait_for_bit(ki2c->base + KI2C_STATUS_REG, KI2C_STATUS_MCF, in ki2c_wait_for_mcf()103 ki2c->adapter.timeout); in ki2c_wait_for_mcf()106 static int ki2c_wait_for_data(struct ki2c *ki2c) in ki2c_wait_for_data() argument[all …]