Lines Matching full:adapter

110 int lkpi_i2c_add_adapter(struct i2c_adapter *adapter);
111 int lkpi_i2c_del_adapter(struct i2c_adapter *adapter);
113 int lkpi_i2cbb_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs);
115 #define i2c_add_adapter(adapter) lkpi_i2c_add_adapter(adapter) argument
116 #define i2c_del_adapter(adapter) lkpi_i2c_del_adapter(adapter) argument
122 do_i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) in do_i2c_transfer() argument
126 retries = adapter->retries == 0 ? 1 : adapter->retries; in do_i2c_transfer()
128 if (adapter->algo != NULL && adapter->algo->master_xfer != NULL) in do_i2c_transfer()
129 ret = adapter->algo->master_xfer(adapter, msgs, nmsgs); in do_i2c_transfer()
131 ret = lkpi_i2cbb_transfer(adapter, msgs, nmsgs); in do_i2c_transfer()
140 i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) in i2c_transfer() argument
144 if (adapter->algo == NULL && adapter->algo_data == NULL) in i2c_transfer()
147 if (adapter->lock_ops) in i2c_transfer()
148 adapter->lock_ops->lock_bus(adapter, 0); in i2c_transfer()
150 ret = do_i2c_transfer(adapter, msgs, nmsgs); in i2c_transfer()
152 if (adapter->lock_ops) in i2c_transfer()
153 adapter->lock_ops->unlock_bus(adapter, 0); in i2c_transfer()
160 __i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) in __i2c_transfer() argument
162 return (do_i2c_transfer(adapter, msgs, nmsgs)); in __i2c_transfer()
166 i2c_set_adapdata(struct i2c_adapter *adapter, void *data) in i2c_set_adapdata() argument
168 adapter->data = data; in i2c_set_adapdata()
172 i2c_get_adapdata(struct i2c_adapter *adapter) in i2c_get_adapdata() argument
174 return (adapter->data); in i2c_get_adapdata()