Lines Matching refs:bundle

60 static bool greybus_match_one_id(struct gb_bundle *bundle,  in greybus_match_one_id()  argument
64 (id->vendor != bundle->intf->vendor_id)) in greybus_match_one_id()
68 (id->product != bundle->intf->product_id)) in greybus_match_one_id()
72 (id->class != bundle->class)) in greybus_match_one_id()
79 greybus_match_id(struct gb_bundle *bundle, const struct greybus_bundle_id *id) in greybus_match_id() argument
86 if (greybus_match_one_id(bundle, id)) in greybus_match_id()
96 struct gb_bundle *bundle; in greybus_match_device() local
102 bundle = to_gb_bundle(dev); in greybus_match_device()
104 id = greybus_match_id(bundle, driver->id_table); in greybus_match_device()
117 const struct gb_bundle *bundle = NULL; in greybus_uevent() local
135 bundle = to_gb_bundle(dev); in greybus_uevent()
136 intf = bundle->intf; in greybus_uevent()
163 if (bundle) { in greybus_uevent()
169 if (add_uevent_var(env, "BUNDLE=%u", bundle->id)) in greybus_uevent()
171 if (add_uevent_var(env, "BUNDLE_CLASS=%02x", bundle->class)) in greybus_uevent()
198 struct gb_bundle *bundle = to_gb_bundle(dev); in greybus_probe() local
203 id = greybus_match_id(bundle, driver->id_table); in greybus_probe()
207 retval = pm_runtime_get_sync(&bundle->intf->dev); in greybus_probe()
209 pm_runtime_put_noidle(&bundle->intf->dev); in greybus_probe()
213 retval = gb_control_bundle_activate(bundle->intf->control, bundle->id); in greybus_probe()
215 pm_runtime_put(&bundle->intf->dev); in greybus_probe()
232 retval = driver->probe(bundle, id); in greybus_probe()
237 WARN_ON(!list_empty(&bundle->connections)); in greybus_probe()
239 gb_control_bundle_deactivate(bundle->intf->control, bundle->id); in greybus_probe()
245 pm_runtime_put(&bundle->intf->dev); in greybus_probe()
250 pm_runtime_put(&bundle->intf->dev); in greybus_probe()
258 struct gb_bundle *bundle = to_gb_bundle(dev); in greybus_remove() local
271 list_for_each_entry(connection, &bundle->connections, bundle_links) { in greybus_remove()
275 if (bundle->intf->disconnected) in greybus_remove()
281 driver->disconnect(bundle); in greybus_remove()
284 WARN_ON(!list_empty(&bundle->connections)); in greybus_remove()
286 if (!bundle->intf->disconnected) in greybus_remove()
287 gb_control_bundle_deactivate(bundle->intf->control, bundle->id); in greybus_remove()