Lines Matching refs:mtk_i2c
288 struct mtk_i2c { struct
516 static u16 mtk_i2c_readw(struct mtk_i2c *i2c, enum I2C_REGS_OFFSET reg) in mtk_i2c_readw()
521 static void mtk_i2c_writew(struct mtk_i2c *i2c, u16 val, in mtk_i2c_writew()
527 static void mtk_i2c_init_hw(struct mtk_i2c *i2c) in mtk_i2c_init_hw()
634 static int mtk_i2c_get_clk_div_restri(struct mtk_i2c *i2c, in mtk_i2c_get_clk_div_restri()
671 static int mtk_i2c_check_ac_timing(struct mtk_i2c *i2c, in mtk_i2c_check_ac_timing()
773 static int mtk_i2c_calculate_speed(struct mtk_i2c *i2c, unsigned int clk_src, in mtk_i2c_calculate_speed()
846 static int mtk_i2c_set_speed(struct mtk_i2c *i2c, unsigned int parent_clk) in mtk_i2c_set_speed()
921 static void i2c_dump_register(struct mtk_i2c *i2c) in i2c_dump_register()
972 static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs, in mtk_i2c_do_transfer()
1221 struct mtk_i2c *i2c = i2c_get_adapdata(adap); in mtk_i2c_transfer()
1283 struct mtk_i2c *i2c = dev_id; in mtk_i2c_irq()
1327 static int mtk_i2c_parse_dt(struct device_node *np, struct mtk_i2c *i2c) in mtk_i2c_parse_dt()
1354 struct mtk_i2c *i2c; in mtk_i2c_probe()
1486 struct mtk_i2c *i2c = platform_get_drvdata(pdev); in mtk_i2c_remove()
1498 struct mtk_i2c *i2c = dev_get_drvdata(dev); in mtk_i2c_suspend_noirq()
1509 struct mtk_i2c *i2c = dev_get_drvdata(dev); in mtk_i2c_resume_noirq()