Lines Matching defs:adapter

126    smbus adapter to call this function. */
127 s32 i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command,
131 s32 __i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr, unsigned short flags, char read_write, u8 command,
275 * @addr: Address used on the I2C bus connected to the parent adapter.
278 * @adapter: manages the bus segment hosting this I2C device
284 * @slave_cb: Callback when I2C slave mode of an adapter is used. The adapter
306 struct i2c_adapter *adapter; /* the adapter we sit on */
386 * i2c_new_client_device() does this dynamically with the adapter already known.
435 struct i2c_client *i2c_new_dummy_device(struct i2c_adapter *adapter, u16 address);
459 * @master_xfer: Issue a set of i2c transactions to the given I2C adapter
461 * the adapter specified by adap.
464 * @smbus_xfer: Issue smbus transactions to the given I2C adapter. If this
469 * @functionality: Return the flags that this algorithm/adapter pair supports
471 * @reg_slave: Register given client to I2C slave mode of this adapter
472 * @unreg_slave: Unregister given client from I2C slave mode of this adapter
485 * If an adapter algorithm can't do I2C-level access, set master_xfer
486 * to NULL. If an adapter algorithm can do SMBus access, set
500 /* To determine what the adapter supports */
518 void (*lock_bus)(struct i2c_adapter *adapter, unsigned int flags);
519 int (*trylock_bus)(struct i2c_adapter *adapter, unsigned int flags);
520 void (*unlock_bus)(struct i2c_adapter *adapter, unsigned int flags);
604 * struct i2c_adapter_quirks - describe flaws of an i2c adapter
650 /* adapter cannot do repeated START */
670 struct device dev; /* the adapter device */
699 static inline struct i2c_adapter *i2c_parent_is_i2c_adapter(const struct i2c_adapter *adapter)
702 struct device *parent = adapter->dev.parent;
719 * @adapter: Target I2C bus segment
720 * @flags: I2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT
721 * locks only this branch in the adapter tree
723 static inline void i2c_lock_bus(struct i2c_adapter *adapter, unsigned int flags)
725 adapter->lock_ops->lock_bus(adapter, flags);
730 * @adapter: Target I2C bus segment
731 * @flags: I2C_LOCK_ROOT_ADAPTER tries to locks the root i2c adapter,
732 * I2C_LOCK_SEGMENT tries to lock only this branch in the adapter tree
736 static inline int i2c_trylock_bus(struct i2c_adapter *adapter, unsigned int flags)
738 return adapter->lock_ops->trylock_bus(adapter, flags);
743 * @adapter: Target I2C bus segment
744 * @flags: I2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT
745 * unlocks only this branch in the adapter tree
747 static inline void i2c_unlock_bus(struct i2c_adapter *adapter, unsigned int flags)
749 adapter->lock_ops->unlock_bus(adapter, flags);
753 * i2c_mark_adapter_suspended - Report suspended state of the adapter to the core
756 * When using this helper to mark an adapter as suspended, the core will reject
757 * further transfers to this adapter. The usage of this helper is optional but
770 * i2c_mark_adapter_resumed - Report resumed state of the adapter to the core
773 * When using this helper to mark an adapter as resumed, the core will allow
774 * further transfers to this adapter. See also further notes to
784 /* i2c adapter classes (bitmask) */
788 /* Warn users that the adapter doesn't support classes anymore */
823 unsigned int i2c_adapter_depth(struct i2c_adapter *adapter);
833 /* Return 1 if adapter supports everything we need, 0 if not. */
840 * i2c_check_quirks() - Function for checking the quirk flags in an i2c adapter
841 * @adap: i2c adapter
844 * Return: true if the adapter has all the specified quirk flags, false if not
854 /* Return the adapter number for a specific adapter */