Lines Matching full:connection
20 struct gb_interface *intf = control->connection->intf; in gb_control_get_version()
28 ret = gb_operation_sync(control->connection, in gb_control_get_version()
58 struct gb_interface *intf = control->connection->intf; in gb_control_get_bundle_version()
65 ret = gb_operation_sync(control->connection, in gb_control_get_bundle_version()
87 struct gb_interface *intf = control->connection->intf; in gb_control_get_bundle_versions()
107 struct gb_connection *connection = intf->control->connection; in gb_control_get_manifest_size_operation() local
110 ret = gb_operation_sync(connection, GB_CONTROL_TYPE_GET_MANIFEST_SIZE, in gb_control_get_manifest_size_operation()
113 dev_err(&connection->intf->dev, in gb_control_get_manifest_size_operation()
125 struct gb_connection *connection = intf->control->connection; in gb_control_get_manifest_operation() local
127 return gb_operation_sync(connection, GB_CONTROL_TYPE_GET_MANIFEST, in gb_control_get_manifest_operation()
136 return gb_operation_sync(control->connection, GB_CONTROL_TYPE_CONNECTED, in gb_control_connected_operation()
145 return gb_operation_sync(control->connection, in gb_control_disconnected_operation()
157 operation = gb_operation_create_core(control->connection, in gb_control_disconnecting_operation()
183 operation = gb_operation_create_core(control->connection, in gb_control_mode_switch_operation()
222 ret = gb_operation_sync(control->connection, in gb_control_bundle_suspend()
247 ret = gb_operation_sync(control->connection, in gb_control_bundle_resume()
272 ret = gb_operation_sync(control->connection, in gb_control_bundle_deactivate()
301 ret = gb_operation_sync(control->connection, in gb_control_bundle_activate()
337 ret = gb_operation_sync(control->connection, in gb_control_interface_suspend_prepare()
360 ret = gb_operation_sync(control->connection, in gb_control_interface_deactivate_prepare()
383 ret = gb_operation_sync(control->connection, in gb_control_interface_hibernate_abort()
431 gb_connection_destroy(control->connection); in gb_control_release()
446 struct gb_connection *connection; in gb_control_create() local
455 connection = gb_connection_create_control(intf); in gb_control_create()
456 if (IS_ERR(connection)) { in gb_control_create()
458 "failed to create control connection: %ld\n", in gb_control_create()
459 PTR_ERR(connection)); in gb_control_create()
461 return ERR_CAST(connection); in gb_control_create()
464 control->connection = connection; in gb_control_create()
474 gb_connection_set_data(control->connection, control); in gb_control_create()
483 dev_dbg(&control->connection->intf->dev, "%s\n", __func__); in gb_control_enable()
485 ret = gb_connection_enable_tx(control->connection); in gb_control_enable()
487 dev_err(&control->connection->intf->dev, in gb_control_enable()
488 "failed to enable control connection: %d\n", in gb_control_enable()
507 gb_connection_disable(control->connection); in gb_control_enable()
514 dev_dbg(&control->connection->intf->dev, "%s\n", __func__); in gb_control_disable()
517 gb_connection_disable_forced(control->connection); in gb_control_disable()
519 gb_connection_disable(control->connection); in gb_control_disable()
524 gb_connection_disable(control->connection); in gb_control_suspend()
533 ret = gb_connection_enable_tx(control->connection); in gb_control_resume()
535 dev_err(&control->connection->intf->dev, in gb_control_resume()
536 "failed to enable control connection: %d\n", ret); in gb_control_resume()
578 gb_connection_mode_switch_prepare(control->connection); in gb_control_mode_switch_prepare()
583 gb_connection_mode_switch_complete(control->connection); in gb_control_mode_switch_complete()