Lines Matching +full:current +full:- +full:speed
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
191 * struct dw_i2c_dev - private i2c-designware data
202 * @get_clk_rate_khz: callback to retrieve IP specific bus speed
206 * @msg_write_idx: the element index of the current tx message in the msgs array
207 * @tx_buf_len: the length of the current tx buffer
208 * @tx_buf: the current tx buffer
209 * @msg_read_idx: the element index of the current rx message in the msgs array
210 * @rx_buf_len: the length of the current rx buffer
211 * @rx_buf: the current rx buffer
212 * @msg_err: error status of the current transfer
223 * @rx_outstanding: current master-rx elements in tx fifo
226 * @ss_hcnt: standard speed HCNT value
227 * @ss_lcnt: standard speed LCNT value
228 * @fs_hcnt: fast speed HCNT value
229 * @fs_lcnt: fast speed LCNT value
232 * @hs_hcnt: high speed HCNT value
233 * @hs_lcnt: high speed LCNT value
237 * -1 if there is no semaphore.
242 * @mode: operation mode - DW_IC_MASTER or DW_IC_SLAVE
344 dev->status |= STATUS_ACTIVE; in __i2c_dw_enable()
345 regmap_write(dev->map, DW_IC_ENABLE, 1); in __i2c_dw_enable()
350 regmap_write(dev->map, DW_IC_ENABLE, 0); in __i2c_dw_disable_nowait()
351 dev->status &= ~STATUS_ACTIVE; in __i2c_dw_disable_nowait()
364 static inline int i2c_dw_probe_slave(struct dw_i2c_dev *dev) { return -EINVAL; } in i2c_dw_probe_slave()
369 switch (dev->mode) { in i2c_dw_probe()
375 dev_err(dev->dev, "Wrong operation mode: %d\n", dev->mode); in i2c_dw_probe()
376 return -EINVAL; in i2c_dw_probe()
382 if (i2c_detect_slave_mode(dev->dev)) in i2c_dw_configure()
402 static inline int i2c_dw_acpi_configure(struct device *device) { return -ENODEV; } in i2c_dw_acpi_configure()