Lines Matching refs:bundle

30 static bool greybus_match_one_id(struct gb_bundle *bundle,  in greybus_match_one_id()  argument
34 (id->vendor != bundle->intf->vendor_id)) in greybus_match_one_id()
38 (id->product != bundle->intf->product_id)) in greybus_match_one_id()
42 (id->class != bundle->class)) in greybus_match_one_id()
49 greybus_match_id(struct gb_bundle *bundle, const struct greybus_bundle_id *id) in greybus_match_id() argument
56 if (greybus_match_one_id(bundle, id)) in greybus_match_id()
66 struct gb_bundle *bundle; in greybus_match_device() local
72 bundle = to_gb_bundle(dev); in greybus_match_device()
74 id = greybus_match_id(bundle, driver->id_table); in greybus_match_device()
87 struct gb_bundle *bundle = NULL; in greybus_uevent() local
105 bundle = to_gb_bundle(dev); in greybus_uevent()
106 intf = bundle->intf; in greybus_uevent()
133 if (bundle) { in greybus_uevent()
139 if (add_uevent_var(env, "BUNDLE=%u", bundle->id)) in greybus_uevent()
141 if (add_uevent_var(env, "BUNDLE_CLASS=%02x", bundle->class)) in greybus_uevent()
168 struct gb_bundle *bundle = to_gb_bundle(dev); in greybus_probe() local
173 id = greybus_match_id(bundle, driver->id_table); in greybus_probe()
177 retval = pm_runtime_get_sync(&bundle->intf->dev); in greybus_probe()
179 pm_runtime_put_noidle(&bundle->intf->dev); in greybus_probe()
183 retval = gb_control_bundle_activate(bundle->intf->control, bundle->id); in greybus_probe()
185 pm_runtime_put(&bundle->intf->dev); in greybus_probe()
202 retval = driver->probe(bundle, id); in greybus_probe()
207 WARN_ON(!list_empty(&bundle->connections)); in greybus_probe()
209 gb_control_bundle_deactivate(bundle->intf->control, bundle->id); in greybus_probe()
215 pm_runtime_put(&bundle->intf->dev); in greybus_probe()
220 pm_runtime_put(&bundle->intf->dev); in greybus_probe()
228 struct gb_bundle *bundle = to_gb_bundle(dev); in greybus_remove() local
241 list_for_each_entry(connection, &bundle->connections, bundle_links) { in greybus_remove()
245 if (bundle->intf->disconnected) in greybus_remove()
251 driver->disconnect(bundle); in greybus_remove()
254 WARN_ON(!list_empty(&bundle->connections)); in greybus_remove()
256 if (!bundle->intf->disconnected) in greybus_remove()
257 gb_control_bundle_deactivate(bundle->intf->control, bundle->id); in greybus_remove()