Home
last modified time | relevance | path

Searched refs:bundle (Results 1 – 25 of 65) sorted by relevance

123

/drivers/staging/greybus/
Dbundle.c16 struct gb_bundle *bundle = to_gb_bundle(dev); in bundle_class_show() local
18 return sprintf(buf, "0x%02x\n", bundle->class); in bundle_class_show()
25 struct gb_bundle *bundle = to_gb_bundle(dev); in bundle_id_show() local
27 return sprintf(buf, "%u\n", bundle->id); in bundle_id_show()
34 struct gb_bundle *bundle = to_gb_bundle(dev); in state_show() local
36 if (bundle->state == NULL) in state_show()
39 return sprintf(buf, "%s\n", bundle->state); in state_show()
45 struct gb_bundle *bundle = to_gb_bundle(dev); in state_store() local
47 kfree(bundle->state); in state_store()
48 bundle->state = kstrdup(buf, GFP_KERNEL); in state_store()
[all …]
Dcore.c31 static bool greybus_match_one_id(struct gb_bundle *bundle, in greybus_match_one_id() argument
35 (id->vendor != bundle->intf->vendor_id)) in greybus_match_one_id()
39 (id->product != bundle->intf->product_id)) in greybus_match_one_id()
43 (id->class != bundle->class)) in greybus_match_one_id()
50 greybus_match_id(struct gb_bundle *bundle, const struct greybus_bundle_id *id) in greybus_match_id() argument
57 if (greybus_match_one_id(bundle, id)) in greybus_match_id()
67 struct gb_bundle *bundle; in greybus_match_device() local
73 bundle = to_gb_bundle(dev); in greybus_match_device()
75 id = greybus_match_id(bundle, driver->id_table); in greybus_match_device()
88 struct gb_bundle *bundle = NULL; in greybus_uevent() local
[all …]
Dfw-core.c43 ret = gb_spilib_master_init(connection, &connection->bundle->dev, in gb_fw_spi_connection_init()
62 static int gb_fw_core_probe(struct gb_bundle *bundle, in gb_fw_core_probe() argument
77 for (i = 0; i < bundle->num_cports; i++) { in gb_fw_core_probe()
78 cport_desc = &bundle->cport_desc[i]; in gb_fw_core_probe()
86 dev_err(&bundle->dev, in gb_fw_core_probe()
92 connection = gb_connection_create(bundle, cport_id, in gb_fw_core_probe()
96 dev_err(&bundle->dev, in gb_fw_core_probe()
107 dev_err(&bundle->dev, in gb_fw_core_probe()
113 connection = gb_connection_create(bundle, cport_id, in gb_fw_core_probe()
116 dev_err(&bundle->dev, "failed to create download connection (%ld)\n", in gb_fw_core_probe()
[all …]
Dbundle.h40 int gb_bundle_add(struct gb_bundle *bundle);
41 void gb_bundle_destroy(struct gb_bundle *bundle);
45 static inline int gb_pm_runtime_get_sync(struct gb_bundle *bundle) in gb_pm_runtime_get_sync() argument
49 retval = pm_runtime_get_sync(&bundle->dev); in gb_pm_runtime_get_sync()
51 dev_err(&bundle->dev, in gb_pm_runtime_get_sync()
53 pm_runtime_put_noidle(&bundle->dev); in gb_pm_runtime_get_sync()
60 static inline int gb_pm_runtime_put_autosuspend(struct gb_bundle *bundle) in gb_pm_runtime_put_autosuspend() argument
64 pm_runtime_mark_last_busy(&bundle->dev); in gb_pm_runtime_put_autosuspend()
65 retval = pm_runtime_put_autosuspend(&bundle->dev); in gb_pm_runtime_put_autosuspend()
70 static inline void gb_pm_runtime_get_noresume(struct gb_bundle *bundle) in gb_pm_runtime_get_noresume() argument
[all …]
Dgbphy.c24 struct gb_bundle *bundle; member
79 struct gb_bundle *bundle = gbphy_dev->bundle; in gbphy_dev_uevent() local
80 struct gb_interface *intf = bundle->intf; in gbphy_dev_uevent()
93 if (add_uevent_var(env, "BUNDLE=%u", gbphy_dev->bundle->id)) in gbphy_dev_uevent()
95 if (add_uevent_var(env, "BUNDLE_CLASS=%02x", bundle->class)) in gbphy_dev_uevent()
146 ret = gb_pm_runtime_get_sync(gbphy_dev->bundle); in gbphy_dev_probe()
168 gb_pm_runtime_put_autosuspend(gbphy_dev->bundle); in gbphy_dev_probe()
224 static struct gbphy_device *gb_gbphy_create_dev(struct gb_bundle *bundle, in gb_gbphy_create_dev() argument
242 gbphy_dev->bundle = bundle; in gb_gbphy_create_dev()
244 gbphy_dev->dev.parent = &bundle->dev; in gb_gbphy_create_dev()
[all …]
Dvibrator.c33 struct gb_bundle *bundle = vib->connection->bundle; in turn_off() local
39 gb_pm_runtime_put_autosuspend(bundle); in turn_off()
46 struct gb_bundle *bundle = vib->connection->bundle; in turn_on() local
49 ret = gb_pm_runtime_get_sync(bundle); in turn_on()
60 gb_pm_runtime_put_autosuspend(bundle); in turn_on()
118 static int gb_vibrator_probe(struct gb_bundle *bundle, in gb_vibrator_probe() argument
127 if (bundle->num_cports != 1) in gb_vibrator_probe()
130 cport_desc = &bundle->cport_desc[0]; in gb_vibrator_probe()
138 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_vibrator_probe()
148 greybus_set_drvdata(bundle, vib); in gb_vibrator_probe()
[all …]
Dbootrom.c58 struct device *dev = &bootrom->connection->bundle->dev; in gb_bootrom_timedout()
115 struct gb_interface *intf = connection->bundle->intf; in bootrom_es2_fixup_vid_pid()
124 dev_err(&connection->bundle->dev, in bootrom_es2_fixup_vid_pid()
139 dev_dbg(&connection->bundle->dev, "Bootrom got vid (0x%x)/pid (0x%x)\n", in bootrom_es2_fixup_vid_pid()
147 struct gb_interface *intf = connection->bundle->intf; in find_firmware()
156 dev_err(&connection->bundle->dev, "Invalid boot stage: %u\n", in find_firmware()
175 dev_info(&connection->bundle->dev, "Firmware file '%s' requested\n", in find_firmware()
179 &connection->bundle->dev); in find_firmware()
181 dev_err(&connection->bundle->dev, in find_firmware()
194 struct device *dev = &op->connection->bundle->dev; in gb_bootrom_firmware_size_request()
[all …]
Daudio_module.c146 greybus_get_drvdata(connection->bundle); in gbaudio_codec_request_handler()
170 dev_err_ratelimited(&connection->bundle->dev, in gbaudio_codec_request_handler()
180 struct gb_bundle *bundle) in gb_audio_add_mgmt_connection() argument
186 dev_err(&bundle->dev, in gb_audio_add_mgmt_connection()
191 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_audio_add_mgmt_connection()
196 greybus_set_drvdata(bundle, gbmodule); in gb_audio_add_mgmt_connection()
204 struct gb_bundle *bundle) in gb_audio_add_data_connection() argument
213 connection = gb_connection_create_offloaded(bundle, in gb_audio_add_data_connection()
221 greybus_set_drvdata(bundle, gbmodule); in gb_audio_add_data_connection()
234 static int gb_audio_probe(struct gb_bundle *bundle, in gb_audio_probe() argument
[all …]
Dhid.c21 struct gb_bundle *bundle; member
48 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_get_report_desc()
56 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_get_report_desc()
65 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_set_power()
71 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_set_power()
82 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_get_report()
92 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_get_report()
104 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_set_report()
112 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_set_report()
123 dev_err(&operation->connection->bundle->dev, in gb_hid_set_report()
[all …]
Dlight.c121 struct gb_bundle *bundle = connection->bundle; in __gb_lights_flash_intensity_set() local
128 ret = gb_pm_runtime_get_sync(bundle); in __gb_lights_flash_intensity_set()
139 gb_pm_runtime_put_autosuspend(bundle); in __gb_lights_flash_intensity_set()
324 struct gb_bundle *bundle = connection->bundle; in gb_lights_fade_set() local
331 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_fade_set()
342 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_fade_set()
350 struct gb_bundle *bundle = connection->bundle; in gb_lights_color_set() local
357 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_color_set()
367 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_color_set()
376 struct gb_bundle *bundle = connection->bundle; in __gb_lights_led_brightness_set() local
[all …]
Dmanifest.c72 if (desc_cport->bundle == bundle_id) in release_cport_descriptors()
229 static u32 gb_manifest_parse_cports(struct gb_bundle *bundle) in gb_manifest_parse_cports() argument
231 struct gb_interface *intf = bundle->intf; in gb_manifest_parse_cports()
235 u8 bundle_id = bundle->id; in gb_manifest_parse_cports()
246 if (desc_cport->bundle != bundle_id) in gb_manifest_parse_cports()
255 dev_err(&bundle->dev, "invalid cport id found (%02u)\n", in gb_manifest_parse_cports()
267 dev_err(&bundle->dev, in gb_manifest_parse_cports()
280 bundle->cport_desc = kcalloc(count, sizeof(*bundle->cport_desc), in gb_manifest_parse_cports()
282 if (!bundle->cport_desc) in gb_manifest_parse_cports()
285 bundle->num_cports = count; in gb_manifest_parse_cports()
[all …]
Dlog.c23 struct device *dev = &connection->bundle->dev; in gb_log_request_handler()
67 static int gb_log_probe(struct gb_bundle *bundle, in gb_log_probe() argument
75 if (bundle->num_cports != 1) in gb_log_probe()
78 cport_desc = &bundle->cport_desc[0]; in gb_log_probe()
86 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_log_probe()
94 greybus_set_drvdata(bundle, log); in gb_log_probe()
109 static void gb_log_disconnect(struct gb_bundle *bundle) in gb_log_disconnect() argument
111 struct gb_log *log = greybus_get_drvdata(bundle); in gb_log_disconnect()
Dloopback.c204 gb_loopback_check_attr(gb, bundle); \
416 dev_err(&gb->connection->bundle->dev, in gb_loopback_operation_sync()
424 dev_err(&gb->connection->bundle->dev, in gb_loopback_operation_sync()
541 dev_dbg(&gb->connection->bundle->dev, "complete operation %d\n", in gb_loopback_async_operation_callback()
568 dev_dbg(&gb->connection->bundle->dev, "timeout operation %d\n", in gb_loopback_async_operation_work()
692 dev_err(&gb->connection->bundle->dev, in gb_loopback_sync_transfer()
746 dev_err(&gb->connection->bundle->dev, in gb_loopback_async_transfer_complete()
796 struct device *dev = &connection->bundle->dev; in gb_loopback_request_handler()
981 struct gb_bundle *bundle = gb->connection->bundle; in gb_loopback_fn() local
983 ret = gb_pm_runtime_get_sync(bundle); in gb_loopback_fn()
[all …]
Dgreybus.h60 int (*probe)(struct gb_bundle *bundle,
62 void (*disconnect)(struct gb_bundle *bundle);
70 static inline void greybus_set_drvdata(struct gb_bundle *bundle, void *data) in greybus_set_drvdata() argument
72 dev_set_drvdata(&bundle->dev, data); in greybus_set_drvdata()
75 static inline void *greybus_get_drvdata(struct gb_bundle *bundle) in greybus_get_drvdata() argument
77 return dev_get_drvdata(&bundle->dev); in greybus_get_drvdata()
Dcamera.c52 struct gb_bundle *bundle; member
184 #define gcam_dbg(gcam, format...) dev_dbg(&gcam->bundle->dev, format)
185 #define gcam_info(gcam, format...) dev_info(&gcam->bundle->dev, format)
186 #define gcam_err(gcam, format...) dev_err(&gcam->bundle->dev, format)
394 conn = gb_connection_create_offloaded(gcam->bundle, gcam->data_cport_id, in gb_camera_setup_data_connection()
495 ret = gb_pm_runtime_get_sync(gcam->bundle); in gb_camera_capabilities()
517 gb_pm_runtime_put_autosuspend(gcam->bundle); in gb_camera_capabilities()
565 ret = gb_pm_runtime_get_sync(gcam->bundle); in gb_camera_configure_streams()
617 gb_pm_runtime_put_noidle(gcam->bundle); in gb_camera_configure_streams()
627 gb_pm_runtime_get_noresume(gcam->bundle); in gb_camera_configure_streams()
[all …]
Draw.c60 struct device *dev = &raw->connection->bundle->dev; in receive_data()
94 struct device *dev = &connection->bundle->dev; in gb_raw_request_handler()
95 struct gb_raw *raw = greybus_get_drvdata(connection->bundle); in gb_raw_request_handler()
150 static int gb_raw_probe(struct gb_bundle *bundle, in gb_raw_probe() argument
159 if (bundle->num_cports != 1) in gb_raw_probe()
162 cport_desc = &bundle->cport_desc[0]; in gb_raw_probe()
170 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_raw_probe()
181 greybus_set_drvdata(bundle, raw); in gb_raw_probe()
200 raw->device = device_create(raw_class, &connection->bundle->dev, in gb_raw_probe()
226 static void gb_raw_disconnect(struct gb_bundle *bundle) in gb_raw_disconnect() argument
[all …]
Daudio_topology.c222 struct gb_bundle *bundle; in gbcodec_mixer_ctl_get() local
231 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_get()
233 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_mixer_ctl_get()
240 gb_pm_runtime_put_autosuspend(bundle); in gbcodec_mixer_ctl_get()
284 struct gb_bundle *bundle; in gbcodec_mixer_ctl_put() local
293 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_put()
322 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_mixer_ctl_put()
329 gb_pm_runtime_put_autosuspend(bundle); in gbcodec_mixer_ctl_put()
393 struct gb_bundle *bundle; in gbcodec_mixer_dapm_ctl_get() local
402 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_dapm_ctl_get()
[all …]
Dpower_supply.c374 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_power_supply_state_change()
376 dev_err(&connection->bundle->dev, in gb_power_supply_state_change()
382 ret = gb_pm_runtime_put_autosuspend(connection->bundle); in gb_power_supply_state_change()
384 dev_err(&connection->bundle->dev, in gb_power_supply_state_change()
543 dev_warn(&connection->bundle->dev, in gb_power_supply_prop_descriptors_get()
676 dev_err(&connection->bundle->dev, "get property %u\n", psp); in _gb_power_supply_property_get()
706 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_power_supply_status_get()
720 gb_pm_runtime_put_autosuspend(connection->bundle); in gb_power_supply_status_get()
775 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_power_supply_property_set()
798 gb_pm_runtime_put_autosuspend(connection->bundle); in gb_power_supply_property_set()
[all …]
Dgreybus_trace.h181 __entry->bundle_id = connection->bundle ?
182 connection->bundle->id : BUNDLE_ID_NONE;
240 TP_PROTO(struct gb_bundle *bundle),
242 TP_ARGS(bundle),
252 __entry->intf_id = bundle->intf->interface_id;
253 __entry->id = bundle->id;
254 __entry->class = bundle->class;
255 __entry->num_cports = bundle->num_cports;
265 TP_PROTO(struct gb_bundle *bundle), \
266 TP_ARGS(bundle))
Dconnection.c151 struct gb_bundle *bundle, int cport_id, in _gb_connection_create() argument
183 connection->bundle = bundle; in _gb_connection_create()
209 if (bundle) in _gb_connection_create()
210 list_add(&connection->bundle_links, &bundle->connections); in _gb_connection_create()
249 gb_connection_create(struct gb_bundle *bundle, u16 cport_id, in gb_connection_create() argument
252 struct gb_interface *intf = bundle->intf; in gb_connection_create()
254 return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id, in gb_connection_create()
260 gb_connection_create_flags(struct gb_bundle *bundle, u16 cport_id, in gb_connection_create_flags() argument
264 struct gb_interface *intf = bundle->intf; in gb_connection_create_flags()
269 return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id, in gb_connection_create_flags()
[all …]
Dconnection.h39 struct gb_bundle *bundle; member
68 struct gb_connection *gb_connection_create(struct gb_bundle *bundle,
70 struct gb_connection *gb_connection_create_flags(struct gb_bundle *bundle,
73 struct gb_connection *gb_connection_create_offloaded(struct gb_bundle *bundle,
Dcontrol.c58 struct gb_bundle *bundle) in gb_control_get_bundle_version() argument
65 request.bundle_id = bundle->id; in gb_control_get_bundle_version()
74 bundle->id, ret); in gb_control_get_bundle_version()
78 bundle->class_major = response.major; in gb_control_get_bundle_version()
79 bundle->class_minor = response.minor; in gb_control_get_bundle_version()
81 dev_dbg(&intf->dev, "%s - %u: %u.%u\n", __func__, bundle->id, in gb_control_get_bundle_version()
90 struct gb_bundle *bundle; in gb_control_get_bundle_versions() local
96 list_for_each_entry(bundle, &intf->bundles, links) { in gb_control_get_bundle_versions()
97 ret = gb_control_get_bundle_version(control, bundle); in gb_control_get_bundle_versions()
Daudio_codec.c419 struct gb_bundle *bundle; in gbcodec_hw_params() local
479 bundle = to_gb_bundle(module->dev); in gbcodec_hw_params()
480 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_hw_params()
497 gb_pm_runtime_put_noidle(bundle); in gbcodec_hw_params()
520 struct gb_bundle *bundle; in gbcodec_prepare() local
551 bundle = to_gb_bundle(module->dev); in gbcodec_prepare()
552 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_prepare()
575 gb_pm_runtime_put_noidle(bundle); in gbcodec_prepare()
587 struct gb_bundle *bundle; in gbcodec_mute_stream() local
629 bundle = to_gb_bundle(module->dev); in gbcodec_mute_stream()
[all …]
Dauthentication.c267 struct gb_bundle *bundle = cap->connection->bundle; in cap_ioctl_unlocked() local
282 ret = gb_pm_runtime_get_sync(bundle); in cap_ioctl_unlocked()
285 gb_pm_runtime_put_autosuspend(bundle); in cap_ioctl_unlocked()
312 cap->parent = &connection->bundle->dev; in gb_cap_connection_init()
/drivers/dma/ioat/
Dhw.h93 unsigned int bundle:1; member
125 unsigned int bundle:1; member
172 unsigned int bundle:1; member
221 unsigned int bundle:1; member

123