Lines Matching full:tick
94 uint tick; member
179 /* One tick = the duration of a period at the specified speed in ns (we in calc_tick()
266 uint tick) in twsi_wait() argument
282 ndelay(tick); /* One clock cycle */ in twsi_wait()
298 * @tick: The duration of a clock cycle at the current I2C speed.
303 uint tick) in twsi_start() argument
309 return twsi_wait(twsi, expected_status, tick); in twsi_start()
321 * @tick: The duration of a clock cycle at the current I2C speed.
326 int expected_status, uint tick) in twsi_send() argument
334 return twsi_wait(twsi, expected_status, tick); in twsi_send()
346 * @tick: The duration of a clock cycle at the current I2C speed.
351 uint tick) in twsi_recv() argument
363 status = twsi_wait(twsi, expected_status, tick); in twsi_recv()
377 * @tick: The duration of a clock cycle at the current I2C speed.
381 static int twsi_stop(struct mvtwsi_registers *twsi, uint tick) in twsi_stop() argument
395 ndelay(tick); /* One clock cycle */ in twsi_stop()
469 /* Wait for controller for one tick */ in __twsi_i2c_set_bus_speed()
524 * @tick: The duration of a clock cycle at the current
530 u8 addr, uint tick) in i2c_begin() argument
541 status = twsi_start(twsi, expected_start_status, tick); in i2c_begin()
544 status = twsi_send(twsi, addr, expected_addr_status, tick); in i2c_begin()
557 * @tick: The duration of a clock cycle at the current I2C speed.
562 uint tick) in __twsi_i2c_probe_chip() argument
568 status = i2c_begin(twsi, MVTWSI_STATUS_START, (chip << 1) | 1, tick); in __twsi_i2c_probe_chip()
571 status = twsi_recv(twsi, &dummy_byte, MVTWSI_READ_NAK, tick); in __twsi_i2c_probe_chip()
573 twsi_stop(twsi, tick); in __twsi_i2c_probe_chip()
596 * @tick: The duration of a clock cycle at the current I2C speed.
602 uint tick) in __twsi_i2c_read() argument
610 status = i2c_begin(twsi, expected_start, (chip << 1), tick); in __twsi_i2c_read()
614 MVTWSI_STATUS_DATA_W_ACK, tick); in __twsi_i2c_read()
620 status = i2c_begin(twsi, expected_start, (chip << 1) | 1, tick); in __twsi_i2c_read()
626 MVTWSI_READ_ACK : MVTWSI_READ_NAK, tick); in __twsi_i2c_read()
628 stop_status = twsi_stop(twsi, tick); in __twsi_i2c_read()
645 * @tick: The duration of a clock cycle at the current I2C speed.
651 uint tick) in __twsi_i2c_write() argument
657 status = i2c_begin(twsi, MVTWSI_STATUS_START, (chip << 1), tick); in __twsi_i2c_write()
661 tick); in __twsi_i2c_write()
665 tick); in __twsi_i2c_write()
667 stop_status = twsi_stop(twsi, tick); in __twsi_i2c_write()
771 return __twsi_i2c_probe_chip(dev->base, chip_addr, dev->tick);
779 dev->tick = calc_tick(dev->speed);
826 dev->tick = calc_tick(dev->speed);
850 dev->tick);
854 dev->tick);