Lines Matching refs:hd

24 	struct gb_host_device *hd = intf->hd;
27 list_for_each_entry(connection, &hd->connections, hd_links) {
54 gb_connection_hd_find(struct gb_host_device *hd, u16 cport_id)
60 list_for_each_entry(connection, &hd->connections, hd_links)
76 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id,
81 trace_gb_hd_in(hd);
83 connection = gb_connection_hd_find(hd, cport_id);
85 dev_err(&hd->dev,
122 * @hd: host device of the connection
144 _gb_connection_create(struct gb_host_device *hd, int hd_cport_id,
161 ret = gb_hd_cport_allocate(hd, hd_cport_id, flags);
163 dev_err(&hd->dev, "failed to allocate cport: %d\n", ret);
176 connection->hd = hd;
190 connection->wq = alloc_ordered_workqueue("%s:%d", 0, dev_name(&hd->dev),
202 list_add(&connection->hd_links, &hd->connections);
220 gb_hd_cport_release(hd, hd_cport_id);
228 gb_connection_create_static(struct gb_host_device *hd, u16 hd_cport_id,
231 return _gb_connection_create(hd, hd_cport_id, NULL, NULL, 0, handler,
238 return _gb_connection_create(intf->hd, -1, intf, NULL, 0, NULL,
249 return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id,
264 return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id,
281 struct gb_host_device *hd = connection->hd;
284 if (!hd->driver->cport_enable)
287 ret = hd->driver->cport_enable(hd, connection->hd_cport_id,
290 dev_err(&hd->dev, "%s: failed to enable host cport: %d\n",
300 struct gb_host_device *hd = connection->hd;
303 if (!hd->driver->cport_disable)
306 ret = hd->driver->cport_disable(hd, connection->hd_cport_id);
308 dev_err(&hd->dev, "%s: failed to disable host cport: %d\n",
315 struct gb_host_device *hd = connection->hd;
318 if (!hd->driver->cport_connected)
321 ret = hd->driver->cport_connected(hd, connection->hd_cport_id);
323 dev_err(&hd->dev, "%s: failed to set connected state: %d\n",
333 struct gb_host_device *hd = connection->hd;
336 if (!hd->driver->cport_flush)
339 ret = hd->driver->cport_flush(hd, connection->hd_cport_id);
341 dev_err(&hd->dev, "%s: failed to flush host cport: %d\n",
351 struct gb_host_device *hd = connection->hd;
355 if (!hd->driver->cport_quiesce)
364 ret = hd->driver->cport_quiesce(hd, connection->hd_cport_id,
368 dev_err(&hd->dev, "%s: failed to quiesce host cport: %d\n",
378 struct gb_host_device *hd = connection->hd;
381 if (!hd->driver->cport_clear)
384 ret = hd->driver->cport_clear(hd, connection->hd_cport_id);
386 dev_err(&hd->dev, "%s: failed to clear host cport: %d\n",
401 struct gb_host_device *hd = connection->hd;
422 ret = gb_svc_connection_create(hd->svc,
423 hd->svc->ap_intf_id,
429 dev_err(&connection->hd->dev,
444 gb_svc_connection_destroy(connection->hd->svc,
445 connection->hd->svc->ap_intf_id,
490 dev_err(&connection->hd->dev,
557 struct gb_host_device *hd = connection->hd;
558 const struct gb_hd_driver *drv = hd->driver;
568 ret = drv->cport_shutdown(hd, connection->hd_cport_id, phase,
575 dev_err(&hd->dev, "%s: failed to send cport shutdown (phase %d): %d\n",
898 gb_hd_cport_release(connection->hd, connection->hd_cport_id);
909 struct gb_host_device *hd = connection->hd;
912 if (!hd->driver->latency_tag_enable)
915 ret = hd->driver->latency_tag_enable(hd, connection->hd_cport_id);
917 dev_err(&connection->hd->dev,
926 struct gb_host_device *hd = connection->hd;
929 if (!hd->driver->latency_tag_disable)
932 ret = hd->driver->latency_tag_disable(hd, connection->hd_cport_id);
934 dev_err(&connection->hd->dev,