Lines Matching refs:timeout
126 static int i2c_wait(struct mpc_i2c *i2c, unsigned timeout, int writing) in i2c_wait() argument
135 if (time_after(jiffies, orig_jiffies + timeout)) { in i2c_wait()
147 (i2c->interrupt & CSR_MIF), timeout); in i2c_wait()
465 unsigned timeout = i2c->adap.timeout; in mpc_write() local
473 result = i2c_wait(i2c, timeout, 1); in mpc_write()
481 result = i2c_wait(i2c, timeout, 1); in mpc_write()
492 unsigned timeout = i2c->adap.timeout; in mpc_read() local
501 result = i2c_wait(i2c, timeout, 1); in mpc_read()
517 result = i2c_wait(i2c, timeout, 0); in mpc_read()
643 .timeout = HZ,
723 mpc_ops.timeout = *prop * HZ / 1000000; in fsl_i2c_probe()
724 if (mpc_ops.timeout < 5) in fsl_i2c_probe()
725 mpc_ops.timeout = 5; in fsl_i2c_probe()
727 dev_info(i2c->dev, "timeout %u us\n", mpc_ops.timeout * 1000000 / HZ); in fsl_i2c_probe()