Lines Matching refs:bundle
23 struct gb_bundle *bundle;
78 const struct gb_bundle *bundle = gbphy_dev->bundle;
79 const struct gb_interface *intf = bundle->intf;
92 if (add_uevent_var(env, "BUNDLE=%u", gbphy_dev->bundle->id))
94 if (add_uevent_var(env, "BUNDLE_CLASS=%02x", bundle->class))
145 ret = gb_pm_runtime_get_sync(gbphy_dev->bundle);
167 gb_pm_runtime_put_autosuspend(gbphy_dev->bundle);
221 static struct gbphy_device *gb_gbphy_create_dev(struct gb_bundle *bundle,
239 gbphy_dev->bundle = bundle;
241 gbphy_dev->dev.parent = &bundle->dev;
245 gbphy_dev->dev.dma_mask = bundle->dev.dma_mask;
257 static void gb_gbphy_disconnect(struct gb_bundle *bundle)
259 struct gbphy_host *gbphy_host = greybus_get_drvdata(bundle);
263 ret = gb_pm_runtime_get_sync(bundle);
265 gb_pm_runtime_get_noresume(bundle);
275 static int gb_gbphy_probe(struct gb_bundle *bundle,
282 if (bundle->num_cports == 0)
289 gbphy_host->bundle = bundle;
291 greybus_set_drvdata(bundle, gbphy_host);
297 for (i = 0; i < bundle->num_cports; ++i) {
298 gbphy_dev = gb_gbphy_create_dev(bundle, &bundle->cport_desc[i]);
300 gb_gbphy_disconnect(bundle);
306 gb_pm_runtime_put_autosuspend(bundle);