Lines Matching +full:current +full:- +full:speed
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
183 * struct dw_i2c_dev - private i2c-designware data
196 * @msg_write_idx: the element index of the current tx message in the msgs
198 * @tx_buf_len: the length of the current tx buffer
199 * @tx_buf: the current tx buffer
200 * @msg_read_idx: the element index of the current rx message in the msgs
202 * @rx_buf_len: the length of the current rx buffer
203 * @rx_buf: the current rx buffer
204 * @msg_err: error status of the current transfer
212 * @rx_outstanding: current master-rx elements in tx fifo
215 * @ss_hcnt: standard speed HCNT value
216 * @ss_lcnt: standard speed LCNT value
217 * @fs_hcnt: fast speed HCNT value
218 * @fs_lcnt: fast speed LCNT value
221 * @hs_hcnt: high speed HCNT value
222 * @hs_lcnt: high speed LCNT value
229 * @mode: operation mode - DW_IC_MASTER or DW_IC_SLAVE
315 regmap_write(dev->map, DW_IC_ENABLE, 1); in __i2c_dw_enable()
320 regmap_write(dev->map, DW_IC_ENABLE, 0); in __i2c_dw_disable_nowait()
333 static inline int i2c_dw_probe_slave(struct dw_i2c_dev *dev) { return -EINVAL; } in i2c_dw_probe_slave()
338 switch (dev->mode) { in i2c_dw_probe()
344 dev_err(dev->dev, "Wrong operation mode: %d\n", dev->mode); in i2c_dw_probe()
345 return -EINVAL; in i2c_dw_probe()
351 if (i2c_detect_slave_mode(dev->dev)) in i2c_dw_configure()
369 static inline int i2c_dw_acpi_configure(struct device *device) { return -ENODEV; } in i2c_dw_acpi_configure()