Lines Matching refs:connection
18 struct gb_connection *connection; member
47 ret = gb_operation_sync(gb_i2c_dev->connection, in gb_i2c_device_setup()
78 gb_i2c_operation_create(struct gb_connection *connection, in gb_i2c_operation_create() argument
81 struct gb_i2c_device *gb_i2c_dev = gb_connection_get_data(connection); in gb_i2c_operation_create()
116 operation = gb_operation_create(connection, GB_I2C_TYPE_TRANSFER, in gb_i2c_operation_create()
176 struct gb_connection *connection = gb_i2c_dev->connection; in gb_i2c_transfer_operation() local
181 operation = gb_i2c_operation_create(connection, msgs, msg_count); in gb_i2c_transfer_operation()
233 struct gb_connection *connection; in gb_i2c_probe() local
242 connection = in gb_i2c_probe()
246 if (IS_ERR(connection)) { in gb_i2c_probe()
247 ret = PTR_ERR(connection); in gb_i2c_probe()
251 gb_i2c_dev->connection = connection; in gb_i2c_probe()
252 gb_connection_set_data(connection, gb_i2c_dev); in gb_i2c_probe()
256 ret = gb_connection_enable(connection); in gb_i2c_probe()
282 gb_connection_disable(connection); in gb_i2c_probe()
284 gb_connection_destroy(connection); in gb_i2c_probe()
294 struct gb_connection *connection = gb_i2c_dev->connection; in gb_i2c_remove() local
302 gb_connection_disable(connection); in gb_i2c_remove()
303 gb_connection_destroy(connection); in gb_i2c_remove()