Lines Matching defs:connection

50 	struct gb_connection	*connection;
312 return gbpsy->supplies->connection;
361 struct gb_connection *connection = get_conn_from_psy(gbpsy);
372 ret = gb_pm_runtime_get_sync(connection->bundle);
374 dev_err(&connection->bundle->dev,
380 ret = gb_pm_runtime_put_autosuspend(connection->bundle);
382 dev_err(&connection->bundle->dev,
476 struct gb_connection *connection = get_conn_from_psy(gbpsy);
483 ret = gb_operation_sync(connection,
508 struct gb_connection *connection = get_conn_from_psy(gbpsy);
520 op = gb_operation_create(connection,
541 dev_warn(&connection->bundle->dev,
592 struct gb_connection *connection = get_conn_from_psy(gbpsy);
605 ret = gb_operation_sync(connection, GB_POWER_SUPPLY_TYPE_GET_PROPERTY,
661 struct gb_connection *connection = get_conn_from_psy(gbpsy);
674 dev_err(&connection->bundle->dev, "get property %u\n", psp);
697 struct gb_connection *connection = get_conn_from_psy(gbpsy);
704 ret = gb_pm_runtime_get_sync(connection->bundle);
718 gb_pm_runtime_put_autosuspend(connection->bundle);
768 struct gb_connection *connection = get_conn_from_psy(gbpsy);
773 ret = gb_pm_runtime_get_sync(connection->bundle);
787 ret = gb_operation_sync(connection, GB_POWER_SUPPLY_TYPE_SET_PROPERTY,
796 gb_pm_runtime_put_autosuspend(connection->bundle);
819 struct gb_connection *connection = get_conn_from_psy(gbpsy);
832 gbpsy->psy = power_supply_register(&connection->bundle->dev,
878 ret = gb_operation_sync(supplies->connection,
935 struct gb_connection *connection = supplies->connection;
957 dev_err(&connection->bundle->dev,
969 struct gb_connection *connection = supplies->connection;
978 dev_err(&connection->bundle->dev,
990 struct gb_connection *connection = op->connection;
991 struct gb_power_supplies *supplies = gb_connection_get_data(connection);
1000 dev_err(&connection->bundle->dev,
1008 dev_err(&connection->bundle->dev,
1019 dev_err(&connection->bundle->dev,
1056 struct gb_connection *connection;
1071 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id),
1073 if (IS_ERR(connection)) {
1074 ret = PTR_ERR(connection);
1078 supplies->connection = connection;
1079 gb_connection_set_data(connection, supplies);
1086 ret = gb_connection_enable_tx(connection);
1095 ret = gb_connection_enable(connection);
1107 gb_connection_disable(connection);
1109 gb_connection_destroy(connection);
1119 gb_connection_disable(supplies->connection);
1120 gb_connection_destroy(supplies->connection);