Lines Matching refs:i2c_adapter

47 struct i2c_adapter;
132 extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
135 extern int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
143 s32 i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr,
148 s32 __i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr,
334 struct i2c_adapter *adapter; /* the adapter we sit on */
346 extern struct i2c_adapter *i2c_verify_adapter(struct device *dev);
449 i2c_new_device(struct i2c_adapter *adap, struct i2c_board_info const *info);
458 i2c_new_probed_device(struct i2c_adapter *adap,
461 int (*probe)(struct i2c_adapter *, unsigned short addr));
464 extern int i2c_probe_func_quick_read(struct i2c_adapter *, unsigned short addr);
470 i2c_new_dummy(struct i2c_adapter *adap, u16 address);
526 int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs,
528 int (*smbus_xfer) (struct i2c_adapter *adap, u16 addr,
533 u32 (*functionality) (struct i2c_adapter *);
550 void (*lock_bus)(struct i2c_adapter *, unsigned int flags);
551 int (*trylock_bus)(struct i2c_adapter *, unsigned int flags);
552 void (*unlock_bus)(struct i2c_adapter *, unsigned int flags);
597 int (*recover_bus)(struct i2c_adapter *adap);
599 int (*get_scl)(struct i2c_adapter *adap);
600 void (*set_scl)(struct i2c_adapter *adap, int val);
601 int (*get_sda)(struct i2c_adapter *adap);
602 void (*set_sda)(struct i2c_adapter *adap, int val);
603 int (*get_bus_free)(struct i2c_adapter *adap);
605 void (*prepare_recovery)(struct i2c_adapter *adap);
606 void (*unprepare_recovery)(struct i2c_adapter *adap);
613 int i2c_recover_bus(struct i2c_adapter *adap);
616 int i2c_generic_scl_recovery(struct i2c_adapter *adap);
672 struct i2c_adapter { struct
699 #define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev) argument
701 static inline void *i2c_get_adapdata(const struct i2c_adapter *dev) in i2c_get_adapdata()
706 static inline void i2c_set_adapdata(struct i2c_adapter *dev, void *data) in i2c_set_adapdata()
711 static inline struct i2c_adapter *
712 i2c_parent_is_i2c_adapter(const struct i2c_adapter *adapter) in i2c_parent_is_i2c_adapter()
737 i2c_lock_bus(struct i2c_adapter *adapter, unsigned int flags) in i2c_lock_bus()
751 i2c_trylock_bus(struct i2c_adapter *adapter, unsigned int flags) in i2c_trylock_bus()
763 i2c_unlock_bus(struct i2c_adapter *adapter, unsigned int flags) in i2c_unlock_bus()
798 extern int i2c_add_adapter(struct i2c_adapter *);
799 extern void i2c_del_adapter(struct i2c_adapter *);
800 extern int i2c_add_numbered_adapter(struct i2c_adapter *);
814 extern void i2c_clients_command(struct i2c_adapter *adap,
817 extern struct i2c_adapter *i2c_get_adapter(int nr);
818 extern void i2c_put_adapter(struct i2c_adapter *adap);
819 extern unsigned int i2c_adapter_depth(struct i2c_adapter *adapter);
824 static inline u32 i2c_get_functionality(struct i2c_adapter *adap) in i2c_get_functionality()
830 static inline int i2c_check_functionality(struct i2c_adapter *adap, u32 func) in i2c_check_functionality()
842 static inline bool i2c_check_quirks(struct i2c_adapter *adap, u64 quirks) in i2c_check_quirks()
850 static inline int i2c_adapter_id(struct i2c_adapter *adap) in i2c_adapter_id()
863 int i2c_handle_smbus_host_notify(struct i2c_adapter *adap, unsigned short addr);
894 extern struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node *node);
897 struct i2c_adapter *of_get_i2c_adapter_by_node(struct device_node *node);
913 static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node *node) in of_find_i2c_adapter_by_node()
918 static inline struct i2c_adapter *of_get_i2c_adapter_by_node(struct device_node *node) in of_get_i2c_adapter_by_node()