Lines Matching defs:connection

31 static int gb_fw_spi_connection_init(struct gb_connection *connection)
35 if (!connection)
38 ret = gb_connection_enable(connection);
42 ret = gb_spilib_master_init(connection, &connection->bundle->dev,
45 gb_connection_disable(connection);
52 static void gb_fw_spi_connection_exit(struct gb_connection *connection)
54 if (!connection)
57 gb_spilib_master_exit(connection);
58 gb_connection_disable(connection);
65 struct gb_connection *connection;
91 connection = gb_connection_create(bundle, cport_id,
93 if (IS_ERR(connection)) {
94 ret = PTR_ERR(connection);
96 "failed to create management connection (%d)\n",
101 fw_core->mgmt_connection = connection;
112 connection = gb_connection_create(bundle, cport_id,
114 if (IS_ERR(connection)) {
115 dev_err(&bundle->dev, "failed to create download connection (%ld)\n",
116 PTR_ERR(connection));
118 fw_core->download_connection = connection;
131 connection = gb_connection_create(bundle, cport_id,
133 if (IS_ERR(connection)) {
134 dev_err(&bundle->dev, "failed to create SPI connection (%ld)\n",
135 PTR_ERR(connection));
137 fw_core->spi_connection = connection;
149 connection = gb_connection_create(bundle, cport_id,
151 if (IS_ERR(connection)) {
152 dev_err(&bundle->dev, "failed to create Authentication connection (%ld)\n",
153 PTR_ERR(connection));
155 fw_core->cap_connection = connection;
167 /* Firmware Management connection is mandatory */
169 dev_err(&bundle->dev, "missing management connection\n");
177 dev_err(&bundle->dev, "failed to initialize firmware download connection, disable it (%d)\n",
186 dev_err(&bundle->dev, "failed to initialize SPI connection, disable it (%d)\n",
195 dev_err(&bundle->dev, "failed to initialize CAP connection, disable it (%d)\n",
204 dev_err(&bundle->dev, "failed to initialize firmware management connection, disable it (%d)\n",