/linux/drivers/greybus/ |
A D | bundle.c | 35 if (!bundle->state) in state_show() 46 kfree(bundle->state); in state_store() 48 if (!bundle->state) in state_store() 74 return bundle; in gb_bundle_find() 86 kfree(bundle->state); in gb_bundle_release() 88 kfree(bundle); in gb_bundle_release() 122 ret = gb_control_bundle_suspend(bundle->intf->control, bundle->id); in gb_bundle_suspend() 141 ret = gb_control_bundle_resume(bundle->intf->control, bundle->id); in gb_bundle_resume() 200 bundle = kzalloc(sizeof(*bundle), GFP_KERNEL); in gb_bundle_create() 201 if (!bundle) in gb_bundle_create() [all …]
|
A D | core.c | 42 (id->class != bundle->class)) in greybus_match_one_id() 66 struct gb_bundle *bundle; in greybus_match_device() local 72 bundle = to_gb_bundle(dev); 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() 183 retval = gb_control_bundle_activate(bundle->intf->control, bundle->id); in greybus_probe() 209 gb_control_bundle_deactivate(bundle->intf->control, bundle->id); in greybus_probe() 251 driver->disconnect(bundle); in greybus_remove() [all …]
|
A D | manifest.c | 71 if (desc_cport->bundle == bundle_id) in release_cport_descriptors() 234 u8 bundle_id = bundle->id; in gb_manifest_parse_cports() 245 if (desc_cport->bundle != bundle_id) in gb_manifest_parse_cports() 266 dev_err(&bundle->dev, in gb_manifest_parse_cports() 278 bundle->cport_desc = kcalloc(count, sizeof(*bundle->cport_desc), in gb_manifest_parse_cports() 280 if (!bundle->cport_desc) in gb_manifest_parse_cports() 283 bundle->num_cports = count; in gb_manifest_parse_cports() 315 struct gb_bundle *bundle; in gb_manifest_parse_bundles() local 350 if (!bundle) in gb_manifest_parse_bundles() 371 gb_bundle_destroy(bundle); in gb_manifest_parse_bundles() [all …]
|
A D | greybus_trace.h | 180 __entry->bundle_id = connection->bundle ? 181 connection->bundle->id : BUNDLE_ID_NONE; 239 TP_PROTO(struct gb_bundle *bundle), 241 TP_ARGS(bundle), 251 __entry->intf_id = bundle->intf->interface_id; 252 __entry->id = bundle->id; 253 __entry->class = bundle->class; 254 __entry->num_cports = bundle->num_cports; 264 TP_PROTO(struct gb_bundle *bundle), \ 265 TP_ARGS(bundle))
|
A D | connection.c | 146 struct gb_bundle *bundle, int cport_id, in _gb_connection_create() argument 178 connection->bundle = bundle; in _gb_connection_create() 204 if (bundle) in _gb_connection_create() 205 list_add(&connection->bundle_links, &bundle->connections); in _gb_connection_create() 244 gb_connection_create(struct gb_bundle *bundle, u16 cport_id, in gb_connection_create() argument 247 struct gb_interface *intf = bundle->intf; in gb_connection_create() 255 gb_connection_create_flags(struct gb_bundle *bundle, u16 cport_id, in gb_connection_create_flags() argument 259 struct gb_interface *intf = bundle->intf; in gb_connection_create_flags() 275 return gb_connection_create_flags(bundle, cport_id, NULL, flags); in gb_connection_create_offloaded() 468 dev_err(&connection->bundle->dev, in gb_connection_control_connected() [all …]
|
/linux/net/rxrpc/ |
A D | conn_client.c | 121 bundle = kzalloc(sizeof(*bundle), gfp); in rxrpc_alloc_bundle() 122 if (bundle) { in rxrpc_alloc_bundle() 129 return bundle; in rxrpc_alloc_bundle() 135 return bundle; in rxrpc_get_bundle() 141 kfree(bundle); in rxrpc_free_bundle() 173 conn->bundle = bundle; in rxrpc_alloc_client_connection() 340 return bundle; in rxrpc_look_up_bundle() 373 if (!bundle) in rxrpc_prep_call() 384 return bundle; in rxrpc_prep_call() 509 struct rxrpc_bundle *bundle = conn->bundle; in rxrpc_activate_one_channel() local [all …]
|
/linux/drivers/staging/greybus/ |
A D | fw-core.c | 61 static int gb_fw_core_probe(struct gb_bundle *bundle, in gb_fw_core_probe() argument 76 for (i = 0; i < bundle->num_cports; i++) { in gb_fw_core_probe() 77 cport_desc = &bundle->cport_desc[i]; in gb_fw_core_probe() 85 dev_err(&bundle->dev, in gb_fw_core_probe() 95 dev_err(&bundle->dev, in gb_fw_core_probe() 106 dev_err(&bundle->dev, in gb_fw_core_probe() 125 dev_err(&bundle->dev, in gb_fw_core_probe() 209 greybus_set_drvdata(bundle, fw_core); in gb_fw_core_probe() 213 gb_pm_runtime_put_autosuspend(bundle); in gb_fw_core_probe() 238 ret = gb_pm_runtime_get_sync(bundle); in gb_fw_core_disconnect() [all …]
|
A D | gbphy.c | 23 struct gb_bundle *bundle; member 78 struct gb_bundle *bundle = gbphy_dev->bundle; in gbphy_dev_uevent() local 79 struct gb_interface *intf = bundle->intf; in gbphy_dev_uevent() 239 gbphy_dev->bundle = bundle; in gb_gbphy_create_dev() 241 gbphy_dev->dev.parent = &bundle->dev; in gb_gbphy_create_dev() 263 ret = gb_pm_runtime_get_sync(bundle); in gb_gbphy_disconnect() 265 gb_pm_runtime_get_noresume(bundle); in gb_gbphy_disconnect() 282 if (bundle->num_cports == 0) in gb_gbphy_probe() 289 gbphy_host->bundle = bundle; in gb_gbphy_probe() 298 gbphy_dev = gb_gbphy_create_dev(bundle, &bundle->cport_desc[i]); in gb_gbphy_probe() [all …]
|
A D | vibrator.c | 31 struct gb_bundle *bundle = vib->connection->bundle; in turn_off() local 37 gb_pm_runtime_put_autosuspend(bundle); in turn_off() 44 struct gb_bundle *bundle = vib->connection->bundle; in turn_on() local 47 ret = gb_pm_runtime_get_sync(bundle); in turn_on() 58 gb_pm_runtime_put_autosuspend(bundle); in turn_on() 125 if (bundle->num_cports != 1) in gb_vibrator_probe() 128 cport_desc = &bundle->cport_desc[0]; in gb_vibrator_probe() 146 greybus_set_drvdata(bundle, vib); in gb_vibrator_probe() 172 gb_pm_runtime_put_autosuspend(bundle); in gb_vibrator_probe() 193 ret = gb_pm_runtime_get_sync(bundle); in gb_vibrator_disconnect() [all …]
|
A D | bootrom.c | 124 dev_err(&connection->bundle->dev, in bootrom_es2_fixup_vid_pid() 179 &connection->bundle->dev); in find_firmware() 181 dev_err(&connection->bundle->dev, in find_firmware() 369 dev_err(&op->connection->bundle->dev, in gb_bootrom_request_handler() 377 struct gb_bundle *bundle = bootrom->connection->bundle; in gb_bootrom_get_version() local 390 dev_err(&bundle->dev, in gb_bootrom_get_version() 397 dev_err(&bundle->dev, in gb_bootrom_get_version() 420 if (bundle->num_cports != 1) in gb_bootrom_probe() 423 cport_desc = &bundle->cport_desc[0]; in gb_bootrom_probe() 445 greybus_set_drvdata(bundle, bootrom); in gb_bootrom_probe() [all …]
|
A D | audio_module.c | 179 struct gb_bundle *bundle) in gb_audio_add_mgmt_connection() argument 185 dev_err(&bundle->dev, in gb_audio_add_mgmt_connection() 195 greybus_set_drvdata(bundle, gbmodule); in gb_audio_add_mgmt_connection() 203 struct gb_bundle *bundle) in gb_audio_add_data_connection() argument 236 struct device *dev = &bundle->dev; in gb_audio_probe() 245 if (bundle->num_cports < 2) in gb_audio_probe() 269 cport_desc = &bundle->cport_desc[i]; in gb_audio_probe() 274 bundle); in gb_audio_probe() 280 bundle); in gb_audio_probe() 391 gb_pm_runtime_get_sync(bundle); in gb_audio_disconnect() [all …]
|
A D | hid.c | 19 struct gb_bundle *bundle; member 46 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_get_report_desc() 63 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_set_power() 140 dev_err(&connection->bundle->dev, in gb_hid_request_handler() 430 if (bundle->num_cports != 1) in gb_hid_probe() 433 cport_desc = &bundle->cport_desc[0]; in gb_hid_probe() 458 ghid->bundle = bundle; in gb_hid_probe() 460 greybus_set_drvdata(bundle, ghid); in gb_hid_probe() 476 gb_pm_runtime_put_autosuspend(bundle); in gb_hid_probe() 496 if (gb_pm_runtime_get_sync(bundle)) in gb_hid_disconnect() [all …]
|
A D | light.c | 118 struct gb_bundle *bundle = connection->bundle; in __gb_lights_flash_intensity_set() local 125 ret = gb_pm_runtime_get_sync(bundle); in __gb_lights_flash_intensity_set() 136 gb_pm_runtime_put_autosuspend(bundle); in __gb_lights_flash_intensity_set() 320 struct gb_bundle *bundle = connection->bundle; in gb_lights_fade_set() local 346 struct gb_bundle *bundle = connection->bundle; in gb_lights_color_set() local 372 struct gb_bundle *bundle = connection->bundle; in __gb_lights_led_brightness_set() local 454 struct gb_bundle *bundle = connection->bundle; in gb_blink_set() local 635 struct gb_bundle *bundle = connection->bundle; in gb_lights_flash_strobe_set() local 676 struct gb_bundle *bundle = connection->bundle; in gb_lights_flash_timeout_set() local 707 struct gb_bundle *bundle = connection->bundle; in gb_lights_flash_fault_get() local [all …]
|
A D | log.c | 21 struct device *dev = &connection->bundle->dev; in gb_log_request_handler() 65 static int gb_log_probe(struct gb_bundle *bundle, in gb_log_probe() argument 73 if (bundle->num_cports != 1) in gb_log_probe() 76 cport_desc = &bundle->cport_desc[0]; in gb_log_probe() 84 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_log_probe() 92 greybus_set_drvdata(bundle, log); in gb_log_probe() 107 static void gb_log_disconnect(struct gb_bundle *bundle) in gb_log_disconnect() argument 109 struct gb_log *log = greybus_get_drvdata(bundle); in gb_log_disconnect()
|
A D | camera.c | 51 struct gb_bundle *bundle; member 494 ret = gb_pm_runtime_get_sync(gcam->bundle); in gb_camera_capabilities() 616 gb_pm_runtime_put_noidle(gcam->bundle); in gb_camera_configure_streams() 626 gb_pm_runtime_get_noresume(gcam->bundle); in gb_camera_configure_streams() 638 gb_pm_runtime_put_noidle(gcam->bundle); in gb_camera_configure_streams() 1167 gcam->bundle->id); in gb_camera_debugfs_init() 1242 if (bundle->num_cports != 2) in gb_camera_probe() 1269 gcam->bundle = bundle; in gb_camera_probe() 1299 greybus_set_drvdata(bundle, gcam); in gb_camera_probe() 1316 ret = gb_pm_runtime_get_sync(bundle); in gb_camera_disconnect() [all …]
|
A D | raw.c | 58 struct device *dev = &raw->connection->bundle->dev; in receive_data() 92 struct device *dev = &connection->bundle->dev; in gb_raw_request_handler() 93 struct gb_raw *raw = greybus_get_drvdata(connection->bundle); in gb_raw_request_handler() 148 static int gb_raw_probe(struct gb_bundle *bundle, in gb_raw_probe() argument 157 if (bundle->num_cports != 1) in gb_raw_probe() 160 cport_desc = &bundle->cport_desc[0]; in gb_raw_probe() 168 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_raw_probe() 179 greybus_set_drvdata(bundle, raw); in gb_raw_probe() 198 raw->device = device_create(raw_class, &connection->bundle->dev, in gb_raw_probe() 224 static void gb_raw_disconnect(struct gb_bundle *bundle) in gb_raw_disconnect() argument [all …]
|
A D | audio_topology.c | 223 struct gb_bundle *bundle; in gbcodec_mixer_ctl_get() local 232 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_get() 285 struct gb_bundle *bundle; in gbcodec_mixer_ctl_put() local 294 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_put() 389 struct gb_bundle *bundle; in gbcodec_mixer_dapm_ctl_get() local 438 struct gb_bundle *bundle; in gbcodec_mixer_dapm_ctl_put() local 555 struct gb_bundle *bundle; in gbcodec_enum_ctl_get() local 600 struct gb_bundle *bundle; in gbcodec_enum_ctl_put() local 720 struct gb_bundle *bundle; in gbcodec_enum_dapm_ctl_get() local 768 struct gb_bundle *bundle; in gbcodec_enum_dapm_ctl_put() local [all …]
|
A D | power_supply.c | 374 dev_err(&connection->bundle->dev, in gb_power_supply_state_change() 382 dev_err(&connection->bundle->dev, in gb_power_supply_state_change() 541 dev_warn(&connection->bundle->dev, in gb_power_supply_prop_descriptors_get() 957 dev_err(&connection->bundle->dev, in gb_power_supplies_setup() 978 dev_err(&connection->bundle->dev, in gb_power_supplies_register() 1000 dev_err(&connection->bundle->dev, in gb_supplies_request_handler() 1008 dev_err(&connection->bundle->dev, in gb_supplies_request_handler() 1019 dev_err(&connection->bundle->dev, in gb_supplies_request_handler() 1060 if (bundle->num_cports != 1) in gb_power_supply_probe() 1063 cport_desc = &bundle->cport_desc[0]; in gb_power_supply_probe() [all …]
|
A D | loopback.c | 190 gb_loopback_check_attr(gb, bundle); \ 389 dev_err(&gb->connection->bundle->dev, in gb_loopback_operation_sync() 843 struct gb_bundle *bundle = gb->connection->bundle; in gb_loopback_fn() local 845 ret = gb_pm_runtime_get_sync(bundle); in gb_loopback_fn() 885 dev_dbg(&bundle->dev, in gb_loopback_fn() 985 if (bundle->num_cports != 1) in gb_loopback_probe() 988 cport_desc = &bundle->cport_desc[0]; in gb_loopback_probe() 1004 greybus_set_drvdata(bundle, gb); in gb_loopback_probe() 1043 &connection->bundle->dev, in gb_loopback_probe() 1100 ret = gb_pm_runtime_get_sync(bundle); in gb_loopback_disconnect() [all …]
|
/linux/include/linux/greybus/ |
A D | bundle.h | 42 int gb_bundle_add(struct gb_bundle *bundle); 43 void gb_bundle_destroy(struct gb_bundle *bundle); 47 static inline int gb_pm_runtime_get_sync(struct gb_bundle *bundle) in gb_pm_runtime_get_sync() argument 51 retval = pm_runtime_get_sync(&bundle->dev); in gb_pm_runtime_get_sync() 53 dev_err(&bundle->dev, in gb_pm_runtime_get_sync() 55 pm_runtime_put_noidle(&bundle->dev); in gb_pm_runtime_get_sync() 66 pm_runtime_mark_last_busy(&bundle->dev); in gb_pm_runtime_put_autosuspend() 67 retval = pm_runtime_put_autosuspend(&bundle->dev); in gb_pm_runtime_put_autosuspend() 74 pm_runtime_get_noresume(&bundle->dev); in gb_pm_runtime_get_noresume() 79 pm_runtime_put_noidle(&bundle->dev); in gb_pm_runtime_put_noidle() [all …]
|
/linux/drivers/infiniband/core/ |
A D | uverbs_ioctl.c | 67 struct uverbs_attr_bundle bundle; member 110 container_of(bundle, struct bundle_priv, bundle); in _uverbs_alloc() 152 container_of(bundle, struct bundle_priv, bundle); in uverbs_set_output() 187 uverbs_alloc(&pbundle->bundle, in uverbs_process_idrs_array() 212 idr_vals[i], &pbundle->bundle); in uverbs_process_idrs_array() 463 ret = handler(&pbundle->bundle); in ib_uverbs_run_method() 466 ret = handler(&pbundle->bundle); in ib_uverbs_run_method() 510 &pbundle->bundle); in bundle_destroy() 583 pbundle->bundle.ufile = ufile; in ib_uverbs_cmd_verbs() 695 container_of(bundle, struct bundle_priv, bundle); in uverbs_fill_udata() [all …]
|
A D | uverbs_main.c | 569 struct uverbs_attr_bundle bundle; in ib_uverbs_write() local 604 memset(bundle.attr_present, 0, sizeof(bundle.attr_present)); in ib_uverbs_write() 605 bundle.ufile = file; in ib_uverbs_write() 607 bundle.uobject = NULL; in ib_uverbs_write() 614 bundle.driver_udata.inlen = in ib_uverbs_write() 617 if (bundle.driver_udata.inlen) in ib_uverbs_write() 637 bundle.driver_udata.outlen = in ib_uverbs_write() 641 bundle.driver_udata.outbuf = in ib_uverbs_write() 663 &bundle.driver_udata, buf + bundle.ucore.inlen, in ib_uverbs_write() 671 if (bundle.uobject) in ib_uverbs_write() [all …]
|
/linux/arch/ia64/kernel/ |
A D | kprobes.c | 292 bundle_t *bundle = &p->opcode.bundle; in prepare_break_inst() local 302 bundle->quad0.slot0 = break_inst; in prepare_break_inst() 309 bundle->quad1.slot2 = break_inst; in prepare_break_inst() 327 template = bundle->quad0.template; in get_kprobe_inst() 332 *kprobe_inst = bundle->quad0.slot0; in get_kprobe_inst() 497 bundle_t *bundle; in arch_prepare_kprobe() local 500 bundle = &((kprobe_opcode_t *)kprobe_addr)->bundle; in arch_prepare_kprobe() 501 template = bundle->quad0.template; in arch_prepare_kprobe() 537 src = &p->opcode.bundle; in arch_arm_kprobe() 565 src = &p->ainsn.insn->bundle; in arch_disarm_kprobe() [all …]
|
A D | brl_emu.c | 58 unsigned long bundle[2]; in ia64_emulate_brl() local 70 if (copy_from_user(bundle, (void *) (regs->cr_iip), sizeof(bundle))) in ia64_emulate_brl() 79 if ((bundle[0] & 0x1e) != 0x4) return rv; in ia64_emulate_brl() 81 opcode = (bundle[1] >> 60); in ia64_emulate_brl() 82 btype = ((bundle[1] >> 29) & 0x7); in ia64_emulate_brl() 83 qp = ((bundle[1] >> 23) & 0x3f); in ia64_emulate_brl() 84 offset = ((bundle[1] & 0x0800000000000000L) << 4) in ia64_emulate_brl() 85 | ((bundle[1] & 0x00fffff000000000L) >> 32) in ia64_emulate_brl() 86 | ((bundle[1] & 0x00000000007fffffL) << 40) in ia64_emulate_brl() 87 | ((bundle[0] & 0xffff000000000000L) >> 24); in ia64_emulate_brl()
|
/linux/include/linux/ |
A D | greybus.h | 59 int (*probe)(struct gb_bundle *bundle, 61 void (*disconnect)(struct gb_bundle *bundle); 69 static inline void greybus_set_drvdata(struct gb_bundle *bundle, void *data) in greybus_set_drvdata() argument 71 dev_set_drvdata(&bundle->dev, data); in greybus_set_drvdata() 74 static inline void *greybus_get_drvdata(struct gb_bundle *bundle) in greybus_get_drvdata() argument 76 return dev_get_drvdata(&bundle->dev); in greybus_get_drvdata()
|