Lines Matching defs:i2c
89 static void oc_setreg_8(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_8()
94 static void oc_setreg_16(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_16()
99 static void oc_setreg_32(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_32()
104 static void oc_setreg_16be(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_16be()
109 static void oc_setreg_32be(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_32be()
114 static inline u8 oc_getreg_8(struct ocores_i2c *i2c, int reg) in oc_getreg_8()
119 static inline u8 oc_getreg_16(struct ocores_i2c *i2c, int reg) in oc_getreg_16()
124 static inline u8 oc_getreg_32(struct ocores_i2c *i2c, int reg) in oc_getreg_32()
129 static inline u8 oc_getreg_16be(struct ocores_i2c *i2c, int reg) in oc_getreg_16be()
134 static inline u8 oc_getreg_32be(struct ocores_i2c *i2c, int reg) in oc_getreg_32be()
139 static void oc_setreg_io_8(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_io_8()
144 static inline u8 oc_getreg_io_8(struct ocores_i2c *i2c, int reg) in oc_getreg_io_8()
149 static inline void oc_setreg(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg()
154 static inline u8 oc_getreg(struct ocores_i2c *i2c, int reg) in oc_getreg()
159 static void ocores_process(struct ocores_i2c *i2c, u8 stat) in ocores_process()
238 struct ocores_i2c *i2c = dev_id; in ocores_isr() local
256 static void ocores_process_timeout(struct ocores_i2c *i2c) in ocores_process_timeout()
279 static int ocores_wait(struct ocores_i2c *i2c, in ocores_wait()
306 static int ocores_poll_wait(struct ocores_i2c *i2c) in ocores_poll_wait()
346 static void ocores_process_polling(struct ocores_i2c *i2c) in ocores_process_polling()
369 static int ocores_xfer_core(struct ocores_i2c *i2c, in ocores_xfer_core()
417 static int ocores_init(struct device *dev, struct ocores_i2c *i2c) in ocores_init()
492 static u8 oc_getreg_grlib(struct ocores_i2c *i2c, int reg) in oc_getreg_grlib()
506 static void oc_setreg_grlib(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_grlib()
526 struct ocores_i2c *i2c) in ocores_i2c_of_probe()
599 #define ocores_i2c_of_probe(pdev, i2c) -ENODEV argument
604 struct ocores_i2c *i2c; in ocores_i2c_probe() local
745 struct ocores_i2c *i2c = platform_get_drvdata(pdev); in ocores_i2c_remove() local
764 struct ocores_i2c *i2c = dev_get_drvdata(dev); in ocores_i2c_suspend() local
778 struct ocores_i2c *i2c = dev_get_drvdata(dev); in ocores_i2c_resume() local