Lines Matching defs:i2c
90 static void oc_setreg_8(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_8()
95 static void oc_setreg_16(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_16()
100 static void oc_setreg_32(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_32()
105 static void oc_setreg_16be(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_16be()
110 static void oc_setreg_32be(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_32be()
115 static inline u8 oc_getreg_8(struct ocores_i2c *i2c, int reg) in oc_getreg_8()
120 static inline u8 oc_getreg_16(struct ocores_i2c *i2c, int reg) in oc_getreg_16()
125 static inline u8 oc_getreg_32(struct ocores_i2c *i2c, int reg) in oc_getreg_32()
130 static inline u8 oc_getreg_16be(struct ocores_i2c *i2c, int reg) in oc_getreg_16be()
135 static inline u8 oc_getreg_32be(struct ocores_i2c *i2c, int reg) in oc_getreg_32be()
140 static void oc_setreg_io_8(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_io_8()
145 static inline u8 oc_getreg_io_8(struct ocores_i2c *i2c, int reg) in oc_getreg_io_8()
150 static inline void oc_setreg(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg()
155 static inline u8 oc_getreg(struct ocores_i2c *i2c, int reg) in oc_getreg()
160 static void ocores_process(struct ocores_i2c *i2c, u8 stat) in ocores_process()
239 struct ocores_i2c *i2c = dev_id; in ocores_isr() local
257 static void ocores_process_timeout(struct ocores_i2c *i2c) in ocores_process_timeout()
280 static int ocores_wait(struct ocores_i2c *i2c, in ocores_wait()
307 static int ocores_poll_wait(struct ocores_i2c *i2c) in ocores_poll_wait()
347 static void ocores_process_polling(struct ocores_i2c *i2c) in ocores_process_polling()
370 static int ocores_xfer_core(struct ocores_i2c *i2c, in ocores_xfer_core()
418 static int ocores_init(struct device *dev, struct ocores_i2c *i2c) in ocores_init()
495 static u8 oc_getreg_grlib(struct ocores_i2c *i2c, int reg) in oc_getreg_grlib()
509 static void oc_setreg_grlib(struct ocores_i2c *i2c, int reg, u8 value) in oc_setreg_grlib()
529 struct ocores_i2c *i2c) in ocores_i2c_of_probe()
602 #define ocores_i2c_of_probe(pdev, i2c) -ENODEV argument
607 struct ocores_i2c *i2c; in ocores_i2c_probe() local
746 struct ocores_i2c *i2c = platform_get_drvdata(pdev); in ocores_i2c_remove() local
765 struct ocores_i2c *i2c = dev_get_drvdata(dev); in ocores_i2c_suspend() local
779 struct ocores_i2c *i2c = dev_get_drvdata(dev); in ocores_i2c_resume() local