Lines Matching refs:control
38 struct i2c_control *control; member
156 writel(data, &i2c_bus->control->tx_fifo); in send_packet_headers()
161 writel(data, &i2c_bus->control->tx_fifo); in send_packet_headers()
174 writel(data, &i2c_bus->control->tx_fifo); in send_packet_headers()
178 static int wait_for_tx_fifo_empty(struct i2c_control *control) in wait_for_tx_fifo_empty() argument
184 count = (readl(&control->fifo_status) & TX_FIFO_EMPTY_CNT_MASK) in wait_for_tx_fifo_empty()
195 static int wait_for_rx_fifo_notempty(struct i2c_control *control) in wait_for_rx_fifo_notempty() argument
201 count = (readl(&control->fifo_status) & TX_FIFO_FULL_CNT_MASK) in wait_for_rx_fifo_notempty()
212 static int wait_for_transfer_complete(struct i2c_control *control) in wait_for_transfer_complete() argument
218 int_status = readl(&control->int_status); in wait_for_transfer_complete()
236 struct i2c_control *control = i2c_bus->control; in send_recv_packets() local
246 int_status = readl(&control->int_status); in send_recv_packets()
247 writel(int_status, &control->int_status); in send_recv_packets()
269 writel(local, &control->tx_fifo); in send_recv_packets()
271 if (!wait_for_tx_fifo_empty(control)) { in send_recv_packets()
276 if (!wait_for_rx_fifo_notempty(control)) { in send_recv_packets()
284 local = readl(&control->rx_fifo); in send_recv_packets()
297 if (wait_for_transfer_complete(control)) { in send_recv_packets()
404 i2c_bus->control = in tegra_i2c_probe()
405 &((struct dvc_ctlr *)i2c_bus->regs)->control; in tegra_i2c_probe()
407 i2c_bus->control = &i2c_bus->regs->control; in tegra_i2c_probe()