Lines Matching defs:connection

42  * @connection: the greybus connection for camera management
43 * @data_connection: the greybus connection for camera data
45 * @mutex: protects the connection and state fields
52 struct gb_connection *connection;
187 static int gb_camera_operation_sync_flags(struct gb_connection *connection,
195 operation = gb_operation_create_flags(connection, type, request_size,
206 dev_err(&connection->hd->dev,
208 connection->name, type, ret);
307 struct gb_svc *svc = gcam->connection->hd->svc;
337 struct gb_interface *intf = gcam->connection->intf;
338 struct gb_svc *svc = gcam->connection->hd->svc;
389 * Create the data connection between the camera module data CPort and
434 ret = gb_hd_output(gcam->connection->hd, &csi_cfg,
468 ret = gb_hd_output(gcam->connection->hd, &csi_cfg,
478 /* Destroy the data connection. */
499 if (!gcam->connection) {
504 ret = gb_camera_operation_sync_flags(gcam->connection,
567 if (!gcam->connection) {
572 ret = gb_camera_operation_sync_flags(gcam->connection,
627 /* Setup CSI-2 connection from APB-A to AP */
631 gb_operation_sync(gcam->connection,
677 if (!gcam->connection) {
682 ret = gb_operation_sync(gcam->connection, GB_CAMERA_TYPE_CAPTURE,
699 if (!gcam->connection) {
704 ret = gb_operation_sync(gcam->connection, GB_CAMERA_TYPE_FLUSH, NULL, 0,
721 struct gb_camera *gcam = gb_connection_get_data(op->connection);
1158 struct gb_connection *connection = gcam->connection;
1165 snprintf(dirname, 27, "camera-%u.%u", connection->intf->interface_id,
1212 if (gcam->connection) {
1213 gb_connection_disable(gcam->connection);
1214 gb_connection_destroy(gcam->connection);
1215 gcam->connection = NULL;
1279 gcam->connection = conn;
1292 gcam->module.interface_id = gcam->connection->intf->interface_id;
1337 gb_connection_disable(gcam->connection);
1348 ret = gb_connection_enable(gcam->connection);
1350 gcam_err(gcam, "failed to enable connection: %d\n", ret);
1358 "failed to enable data connection: %d\n", ret);