Lines Matching refs:rcar_i2c_priv
119 struct rcar_i2c_priv { struct
150 static void rcar_i2c_write(struct rcar_i2c_priv *priv, int reg, u32 val) in rcar_i2c_write() argument
155 static u32 rcar_i2c_read(struct rcar_i2c_priv *priv, int reg) in rcar_i2c_read()
160 static void rcar_i2c_clear_irq(struct rcar_i2c_priv *priv, u32 val) in rcar_i2c_clear_irq()
167 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); in rcar_i2c_get_scl()
175 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); in rcar_i2c_set_scl()
187 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); in rcar_i2c_set_sda()
199 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); in rcar_i2c_get_bus_free()
212 static void rcar_i2c_init(struct rcar_i2c_priv *priv) in rcar_i2c_init()
226 static int rcar_i2c_bus_barrier(struct rcar_i2c_priv *priv) in rcar_i2c_bus_barrier()
242 static int rcar_i2c_clock_calculate(struct rcar_i2c_priv *priv) in rcar_i2c_clock_calculate()
341 static void rcar_i2c_prepare_msg(struct rcar_i2c_priv *priv) in rcar_i2c_prepare_msg()
360 static void rcar_i2c_first_msg(struct rcar_i2c_priv *priv, in rcar_i2c_first_msg()
369 static void rcar_i2c_next_msg(struct rcar_i2c_priv *priv) in rcar_i2c_next_msg()
377 static void rcar_i2c_cleanup_dma(struct rcar_i2c_priv *priv, bool terminate) in rcar_i2c_cleanup_dma()
402 struct rcar_i2c_priv *priv = data; in rcar_i2c_dma_callback()
409 static bool rcar_i2c_dma(struct rcar_i2c_priv *priv) in rcar_i2c_dma()
482 static void rcar_i2c_irq_send(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_send()
531 static void rcar_i2c_irq_recv(struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq_recv()
587 static bool rcar_i2c_slave_irq(struct rcar_i2c_priv *priv) in rcar_i2c_slave_irq()
655 static irqreturn_t rcar_i2c_irq(int irq, struct rcar_i2c_priv *priv, u32 msr) in rcar_i2c_irq()
704 struct rcar_i2c_priv *priv = ptr; in rcar_i2c_gen2_irq()
721 struct rcar_i2c_priv *priv = ptr; in rcar_i2c_gen3_irq()
777 static void rcar_i2c_request_dma(struct rcar_i2c_priv *priv, in rcar_i2c_request_dma()
800 static void rcar_i2c_release_dma(struct rcar_i2c_priv *priv) in rcar_i2c_release_dma()
814 static int rcar_i2c_do_reset(struct rcar_i2c_priv *priv) in rcar_i2c_do_reset()
830 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); in rcar_i2c_master_xfer()
893 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); in rcar_i2c_master_xfer_atomic()
950 struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter); in rcar_reg_slave()
972 struct rcar_i2c_priv *priv = i2c_get_adapdata(slave->adapter); in rcar_unreg_slave()
993 struct rcar_i2c_priv *priv = i2c_get_adapdata(adap); in rcar_i2c_func()
1042 struct rcar_i2c_priv *priv; in rcar_i2c_probe()
1052 priv = devm_kzalloc(dev, sizeof(struct rcar_i2c_priv), GFP_KERNEL); in rcar_i2c_probe()
1160 struct rcar_i2c_priv *priv = platform_get_drvdata(pdev); in rcar_i2c_remove()
1177 struct rcar_i2c_priv *priv = dev_get_drvdata(dev); in rcar_i2c_suspend()
1185 struct rcar_i2c_priv *priv = dev_get_drvdata(dev); in rcar_i2c_resume()