Lines Matching full:tick
91 uint tick; member
176 /* One tick = the duration of a period at the specified speed in ns (we in calc_tick()
263 uint tick) in twsi_wait() argument
279 ndelay(tick); /* One clock cycle */ in twsi_wait()
295 * @tick: The duration of a clock cycle at the current I2C speed.
300 uint tick) in twsi_start() argument
306 return twsi_wait(twsi, expected_status, tick); in twsi_start()
318 * @tick: The duration of a clock cycle at the current I2C speed.
323 int expected_status, uint tick) in twsi_send() argument
331 return twsi_wait(twsi, expected_status, tick); in twsi_send()
343 * @tick: The duration of a clock cycle at the current I2C speed.
348 uint tick) in twsi_recv() argument
360 status = twsi_wait(twsi, expected_status, tick); in twsi_recv()
374 * @tick: The duration of a clock cycle at the current I2C speed.
378 static int twsi_stop(struct mvtwsi_registers *twsi, uint tick) in twsi_stop() argument
392 ndelay(tick); /* One clock cycle */ in twsi_stop()
466 /* Wait for controller for one tick */ in __twsi_i2c_set_bus_speed()
517 * @tick: The duration of a clock cycle at the current
523 u8 addr, uint tick) in i2c_begin() argument
534 status = twsi_start(twsi, expected_start_status, tick); in i2c_begin()
537 status = twsi_send(twsi, addr, expected_addr_status, tick); in i2c_begin()
550 * @tick: The duration of a clock cycle at the current I2C speed.
555 uint tick) in __twsi_i2c_probe_chip() argument
561 status = i2c_begin(twsi, MVTWSI_STATUS_START, (chip << 1) | 1, tick); in __twsi_i2c_probe_chip()
564 status = twsi_recv(twsi, &dummy_byte, MVTWSI_READ_NAK, tick); in __twsi_i2c_probe_chip()
566 twsi_stop(twsi, tick); in __twsi_i2c_probe_chip()
589 * @tick: The duration of a clock cycle at the current I2C speed.
595 uint tick) in __twsi_i2c_read() argument
603 status = i2c_begin(twsi, expected_start, (chip << 1), tick); in __twsi_i2c_read()
607 MVTWSI_STATUS_DATA_W_ACK, tick); in __twsi_i2c_read()
613 status = i2c_begin(twsi, expected_start, (chip << 1) | 1, tick); in __twsi_i2c_read()
619 MVTWSI_READ_ACK : MVTWSI_READ_NAK, tick); in __twsi_i2c_read()
621 stop_status = twsi_stop(twsi, tick); in __twsi_i2c_read()
638 * @tick: The duration of a clock cycle at the current I2C speed.
644 uint tick) in __twsi_i2c_write() argument
650 status = i2c_begin(twsi, MVTWSI_STATUS_START, (chip << 1), tick); in __twsi_i2c_write()
654 tick); in __twsi_i2c_write()
658 tick); in __twsi_i2c_write()
660 stop_status = twsi_stop(twsi, tick); in __twsi_i2c_write()
764 return __twsi_i2c_probe_chip(dev->base, chip_addr, dev->tick);
772 dev->tick = calc_tick(dev->speed);
802 dev->tick = calc_tick(dev->speed);
826 dev->tick);
830 dev->tick);