Lines Matching defs:connection

20 	struct gb_interface *intf = control->connection->intf;
28 ret = gb_operation_sync(control->connection,
58 struct gb_interface *intf = control->connection->intf;
65 ret = gb_operation_sync(control->connection,
87 struct gb_interface *intf = control->connection->intf;
107 struct gb_connection *connection = intf->control->connection;
110 ret = gb_operation_sync(connection, GB_CONTROL_TYPE_GET_MANIFEST_SIZE,
113 dev_err(&connection->intf->dev,
125 struct gb_connection *connection = intf->control->connection;
127 return gb_operation_sync(connection, GB_CONTROL_TYPE_GET_MANIFEST,
136 return gb_operation_sync(control->connection, GB_CONTROL_TYPE_CONNECTED,
145 return gb_operation_sync(control->connection,
157 operation = gb_operation_create_core(control->connection,
183 operation = gb_operation_create_core(control->connection,
222 ret = gb_operation_sync(control->connection,
247 ret = gb_operation_sync(control->connection,
272 ret = gb_operation_sync(control->connection,
301 ret = gb_operation_sync(control->connection,
337 ret = gb_operation_sync(control->connection,
360 ret = gb_operation_sync(control->connection,
383 ret = gb_operation_sync(control->connection,
431 gb_connection_destroy(control->connection);
446 struct gb_connection *connection;
455 connection = gb_connection_create_control(intf);
456 if (IS_ERR(connection)) {
458 "failed to create control connection: %ld\n",
459 PTR_ERR(connection));
461 return ERR_CAST(connection);
464 control->connection = connection;
474 gb_connection_set_data(control->connection, control);
483 dev_dbg(&control->connection->intf->dev, "%s\n", __func__);
485 ret = gb_connection_enable_tx(control->connection);
487 dev_err(&control->connection->intf->dev,
488 "failed to enable control connection: %d\n",
507 gb_connection_disable(control->connection);
514 dev_dbg(&control->connection->intf->dev, "%s\n", __func__);
517 gb_connection_disable_forced(control->connection);
519 gb_connection_disable(control->connection);
524 gb_connection_disable(control->connection);
533 ret = gb_connection_enable_tx(control->connection);
535 dev_err(&control->connection->intf->dev,
536 "failed to enable control connection: %d\n", ret);
578 gb_connection_mode_switch_prepare(control->connection);
583 gb_connection_mode_switch_complete(control->connection);