Searched refs:lpi2c_imx (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-imx-lpi2c.c | 111 static void lpi2c_imx_intctrl(struct lpi2c_imx_struct *lpi2c_imx, in lpi2c_imx_intctrl() argument 114 writel(enable, lpi2c_imx->base + LPI2C_MIER); in lpi2c_imx_intctrl() 117 static int lpi2c_imx_bus_busy(struct lpi2c_imx_struct *lpi2c_imx) in lpi2c_imx_bus_busy() argument 123 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 127 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 135 dev_dbg(&lpi2c_imx->adapter.dev, "bus not work\n"); in lpi2c_imx_bus_busy() 144 static void lpi2c_imx_set_mode(struct lpi2c_imx_struct *lpi2c_imx) in lpi2c_imx_set_mode() argument 146 unsigned int bitrate = lpi2c_imx->bitrate; in lpi2c_imx_set_mode() 160 lpi2c_imx->mode = mode; in lpi2c_imx_set_mode() 163 static int lpi2c_imx_start(struct lpi2c_imx_struct *lpi2c_imx, in lpi2c_imx_start() argument 179 lpi2c_imx_stop(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_stop() argument 201 lpi2c_imx_config(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_config() argument 260 lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_master_enable() argument 290 lpi2c_imx_master_disable(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_master_disable() argument 304 lpi2c_imx_msg_complete(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_msg_complete() argument 313 lpi2c_imx_txfifo_empty(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_txfifo_empty() argument 337 lpi2c_imx_set_tx_watermark(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_set_tx_watermark() argument 342 lpi2c_imx_set_rx_watermark(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_set_rx_watermark() argument 356 lpi2c_imx_write_txfifo(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_write_txfifo() argument 377 lpi2c_imx_read_rxfifo(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_read_rxfifo() argument 424 lpi2c_imx_write(struct lpi2c_imx_struct *lpi2c_imx, struct i2c_msg *msgs) lpi2c_imx_write() argument 432 lpi2c_imx_read(struct lpi2c_imx_struct *lpi2c_imx, struct i2c_msg *msgs) lpi2c_imx_read() argument 451 struct lpi2c_imx_struct *lpi2c_imx = i2c_get_adapdata(adapter); lpi2c_imx_xfer() local 509 struct lpi2c_imx_struct *lpi2c_imx = dev_id; lpi2c_imx_isr() local 548 struct lpi2c_imx_struct *lpi2c_imx; lpi2c_imx_probe() local 624 struct lpi2c_imx_struct *lpi2c_imx = platform_get_drvdata(pdev); lpi2c_imx_remove() local 634 struct lpi2c_imx_struct *lpi2c_imx = dev_get_drvdata(dev); lpi2c_runtime_suspend() local 644 struct lpi2c_imx_struct *lpi2c_imx = dev_get_drvdata(dev); lpi2c_runtime_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-imx-lpi2c.c | 111 static void lpi2c_imx_intctrl(struct lpi2c_imx_struct *lpi2c_imx, in lpi2c_imx_intctrl() argument 114 writel(enable, lpi2c_imx->base + LPI2C_MIER); in lpi2c_imx_intctrl() 117 static int lpi2c_imx_bus_busy(struct lpi2c_imx_struct *lpi2c_imx) in lpi2c_imx_bus_busy() argument 123 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 127 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy() 135 dev_dbg(&lpi2c_imx->adapter.dev, "bus not work\n"); in lpi2c_imx_bus_busy() 144 static void lpi2c_imx_set_mode(struct lpi2c_imx_struct *lpi2c_imx) in lpi2c_imx_set_mode() argument 146 unsigned int bitrate = lpi2c_imx->bitrate; in lpi2c_imx_set_mode() 160 lpi2c_imx->mode = mode; in lpi2c_imx_set_mode() 163 static int lpi2c_imx_start(struct lpi2c_imx_struct *lpi2c_imx, in lpi2c_imx_start() argument 179 lpi2c_imx_stop(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_stop() argument 201 lpi2c_imx_config(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_config() argument 257 lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_master_enable() argument 287 lpi2c_imx_master_disable(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_master_disable() argument 301 lpi2c_imx_msg_complete(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_msg_complete() argument 310 lpi2c_imx_txfifo_empty(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_txfifo_empty() argument 334 lpi2c_imx_set_tx_watermark(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_set_tx_watermark() argument 339 lpi2c_imx_set_rx_watermark(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_set_rx_watermark() argument 353 lpi2c_imx_write_txfifo(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_write_txfifo() argument 374 lpi2c_imx_read_rxfifo(struct lpi2c_imx_struct *lpi2c_imx) lpi2c_imx_read_rxfifo() argument 421 lpi2c_imx_write(struct lpi2c_imx_struct *lpi2c_imx, struct i2c_msg *msgs) lpi2c_imx_write() argument 429 lpi2c_imx_read(struct lpi2c_imx_struct *lpi2c_imx, struct i2c_msg *msgs) lpi2c_imx_read() argument 448 struct lpi2c_imx_struct *lpi2c_imx = i2c_get_adapdata(adapter); lpi2c_imx_xfer() local 506 struct lpi2c_imx_struct *lpi2c_imx = dev_id; lpi2c_imx_isr() local 547 struct lpi2c_imx_struct *lpi2c_imx; lpi2c_imx_probe() local 628 struct lpi2c_imx_struct *lpi2c_imx = platform_get_drvdata(pdev); lpi2c_imx_remove() local 640 struct lpi2c_imx_struct *lpi2c_imx = dev_get_drvdata(dev); lpi2c_runtime_suspend() local 650 struct lpi2c_imx_struct *lpi2c_imx = dev_get_drvdata(dev); lpi2c_runtime_resume() local [all...] |
Completed in 2 milliseconds