/Linux-v4.19/drivers/staging/greybus/ |
D | bundle.c | 15 struct gb_bundle *bundle = to_gb_bundle(dev); in bundle_class_show() local 17 return sprintf(buf, "0x%02x\n", bundle->class); in bundle_class_show() 24 struct gb_bundle *bundle = to_gb_bundle(dev); in bundle_id_show() local 26 return sprintf(buf, "%u\n", bundle->id); in bundle_id_show() 33 struct gb_bundle *bundle = to_gb_bundle(dev); in state_show() local 35 if (bundle->state == NULL) in state_show() 38 return sprintf(buf, "%s\n", bundle->state); in state_show() 44 struct gb_bundle *bundle = to_gb_bundle(dev); in state_store() local 46 kfree(bundle->state); in state_store() 47 bundle->state = kstrdup(buf, GFP_KERNEL); in state_store() [all …]
|
D | bundle.h | 39 int gb_bundle_add(struct gb_bundle *bundle); 40 void gb_bundle_destroy(struct gb_bundle *bundle); 44 static inline int gb_pm_runtime_get_sync(struct gb_bundle *bundle) in gb_pm_runtime_get_sync() argument 48 retval = pm_runtime_get_sync(&bundle->dev); in gb_pm_runtime_get_sync() 50 dev_err(&bundle->dev, in gb_pm_runtime_get_sync() 52 pm_runtime_put_noidle(&bundle->dev); in gb_pm_runtime_get_sync() 59 static inline int gb_pm_runtime_put_autosuspend(struct gb_bundle *bundle) in gb_pm_runtime_put_autosuspend() argument 63 pm_runtime_mark_last_busy(&bundle->dev); in gb_pm_runtime_put_autosuspend() 64 retval = pm_runtime_put_autosuspend(&bundle->dev); in gb_pm_runtime_put_autosuspend() 69 static inline void gb_pm_runtime_get_noresume(struct gb_bundle *bundle) in gb_pm_runtime_get_noresume() argument [all …]
|
D | core.c | 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 [all …]
|
D | fw-core.c | 42 ret = gb_spilib_master_init(connection, &connection->bundle->dev, in gb_fw_spi_connection_init() 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() 91 connection = gb_connection_create(bundle, cport_id, 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() 112 connection = gb_connection_create(bundle, cport_id, in gb_fw_core_probe() 115 dev_err(&bundle->dev, "failed to create download connection (%ld)\n", in gb_fw_core_probe() [all …]
|
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() 92 if (add_uevent_var(env, "BUNDLE=%u", gbphy_dev->bundle->id)) in gbphy_dev_uevent() 94 if (add_uevent_var(env, "BUNDLE_CLASS=%02x", bundle->class)) in gbphy_dev_uevent() 145 ret = gb_pm_runtime_get_sync(gbphy_dev->bundle); in gbphy_dev_probe() 167 gb_pm_runtime_put_autosuspend(gbphy_dev->bundle); in gbphy_dev_probe() 223 static struct gbphy_device *gb_gbphy_create_dev(struct gb_bundle *bundle, in gb_gbphy_create_dev() argument 241 gbphy_dev->bundle = bundle; in gb_gbphy_create_dev() 243 gbphy_dev->dev.parent = &bundle->dev; in gb_gbphy_create_dev() [all …]
|
D | vibrator.c | 32 struct gb_bundle *bundle = vib->connection->bundle; in turn_off() local 38 gb_pm_runtime_put_autosuspend(bundle); in turn_off() 45 struct gb_bundle *bundle = vib->connection->bundle; in turn_on() local 48 ret = gb_pm_runtime_get_sync(bundle); in turn_on() 59 gb_pm_runtime_put_autosuspend(bundle); in turn_on() 117 static int gb_vibrator_probe(struct gb_bundle *bundle, in gb_vibrator_probe() argument 126 if (bundle->num_cports != 1) in gb_vibrator_probe() 129 cport_desc = &bundle->cport_desc[0]; in gb_vibrator_probe() 137 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_vibrator_probe() 147 greybus_set_drvdata(bundle, vib); in gb_vibrator_probe() [all …]
|
D | bootrom.c | 57 struct device *dev = &bootrom->connection->bundle->dev; in gb_bootrom_timedout() 114 struct gb_interface *intf = connection->bundle->intf; in bootrom_es2_fixup_vid_pid() 123 dev_err(&connection->bundle->dev, in bootrom_es2_fixup_vid_pid() 138 dev_dbg(&connection->bundle->dev, "Bootrom got vid (0x%x)/pid (0x%x)\n", in bootrom_es2_fixup_vid_pid() 146 struct gb_interface *intf = connection->bundle->intf; in find_firmware() 155 dev_err(&connection->bundle->dev, "Invalid boot stage: %u\n", in find_firmware() 174 dev_info(&connection->bundle->dev, "Firmware file '%s' requested\n", in find_firmware() 178 &connection->bundle->dev); in find_firmware() 180 dev_err(&connection->bundle->dev, in find_firmware() 193 struct device *dev = &op->connection->bundle->dev; in gb_bootrom_firmware_size_request() [all …]
|
D | audio_module.c | 145 greybus_get_drvdata(connection->bundle); in gbaudio_codec_request_handler() 169 dev_err_ratelimited(&connection->bundle->dev, in gbaudio_codec_request_handler() 179 struct gb_bundle *bundle) in gb_audio_add_mgmt_connection() argument 185 dev_err(&bundle->dev, in gb_audio_add_mgmt_connection() 190 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), 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 212 connection = gb_connection_create_offloaded(bundle, in gb_audio_add_data_connection() 220 greybus_set_drvdata(bundle, gbmodule); in gb_audio_add_data_connection() 233 static int gb_audio_probe(struct gb_bundle *bundle, in gb_audio_probe() argument [all …]
|
D | hid.c | 20 struct gb_bundle *bundle; member 47 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_get_report_desc() 55 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_get_report_desc() 64 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_set_power() 70 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_set_power() 81 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_get_report() 91 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_get_report() 103 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_set_report() 111 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_set_report() 122 dev_err(&operation->connection->bundle->dev, in gb_hid_set_report() [all …]
|
D | manifest.c | 71 if (desc_cport->bundle == bundle_id) in release_cport_descriptors() 228 static u32 gb_manifest_parse_cports(struct gb_bundle *bundle) in gb_manifest_parse_cports() argument 230 struct gb_interface *intf = bundle->intf; in gb_manifest_parse_cports() 234 u8 bundle_id = bundle->id; in gb_manifest_parse_cports() 245 if (desc_cport->bundle != bundle_id) in gb_manifest_parse_cports() 254 dev_err(&bundle->dev, "invalid cport id found (%02u)\n", in gb_manifest_parse_cports() 266 dev_err(&bundle->dev, in gb_manifest_parse_cports() 279 bundle->cport_desc = kcalloc(count, sizeof(*bundle->cport_desc), in gb_manifest_parse_cports() 281 if (!bundle->cport_desc) in gb_manifest_parse_cports() 284 bundle->num_cports = count; in gb_manifest_parse_cports() [all …]
|
D | light.c | 120 struct gb_bundle *bundle = connection->bundle; in __gb_lights_flash_intensity_set() local 127 ret = gb_pm_runtime_get_sync(bundle); in __gb_lights_flash_intensity_set() 138 gb_pm_runtime_put_autosuspend(bundle); in __gb_lights_flash_intensity_set() 323 struct gb_bundle *bundle = connection->bundle; in gb_lights_fade_set() local 330 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_fade_set() 341 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_fade_set() 349 struct gb_bundle *bundle = connection->bundle; in gb_lights_color_set() local 356 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_color_set() 366 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_color_set() 375 struct gb_bundle *bundle = connection->bundle; in __gb_lights_led_brightness_set() local [all …]
|
D | log.c | 22 struct device *dev = &connection->bundle->dev; in gb_log_request_handler() 66 static int gb_log_probe(struct gb_bundle *bundle, in gb_log_probe() argument 74 if (bundle->num_cports != 1) in gb_log_probe() 77 cport_desc = &bundle->cport_desc[0]; in gb_log_probe() 85 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_log_probe() 93 greybus_set_drvdata(bundle, log); in gb_log_probe() 108 static void gb_log_disconnect(struct gb_bundle *bundle) in gb_log_disconnect() argument 110 struct gb_log *log = greybus_get_drvdata(bundle); in gb_log_disconnect()
|
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()
|
D | loopback.c | 197 gb_loopback_check_attr(gb, bundle); \ 396 dev_err(&gb->connection->bundle->dev, in gb_loopback_operation_sync() 404 dev_err(&gb->connection->bundle->dev, in gb_loopback_operation_sync() 460 dev_dbg(&gb->connection->bundle->dev, "complete operation %d\n", in gb_loopback_async_operation_callback() 561 dev_err(&gb->connection->bundle->dev, in gb_loopback_sync_transfer() 615 dev_err(&gb->connection->bundle->dev, in gb_loopback_async_transfer_complete() 665 struct device *dev = &connection->bundle->dev; in gb_loopback_request_handler() 850 struct gb_bundle *bundle = gb->connection->bundle; in gb_loopback_fn() local 852 ret = gb_pm_runtime_get_sync(bundle); in gb_loopback_fn() 858 gb_pm_runtime_put_autosuspend(bundle); in gb_loopback_fn() [all …]
|
D | raw.c | 59 struct device *dev = &raw->connection->bundle->dev; in receive_data() 93 struct device *dev = &connection->bundle->dev; in gb_raw_request_handler() 94 struct gb_raw *raw = greybus_get_drvdata(connection->bundle); in gb_raw_request_handler() 149 static int gb_raw_probe(struct gb_bundle *bundle, in gb_raw_probe() argument 158 if (bundle->num_cports != 1) in gb_raw_probe() 161 cport_desc = &bundle->cport_desc[0]; in gb_raw_probe() 169 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_raw_probe() 180 greybus_set_drvdata(bundle, raw); in gb_raw_probe() 199 raw->device = device_create(raw_class, &connection->bundle->dev, in gb_raw_probe() 225 static void gb_raw_disconnect(struct gb_bundle *bundle) in gb_raw_disconnect() argument [all …]
|
D | camera.c | 51 struct gb_bundle *bundle; member 183 #define gcam_dbg(gcam, format...) dev_dbg(&gcam->bundle->dev, format) 184 #define gcam_info(gcam, format...) dev_info(&gcam->bundle->dev, format) 185 #define gcam_err(gcam, format...) dev_err(&gcam->bundle->dev, format) 393 conn = gb_connection_create_offloaded(gcam->bundle, gcam->data_cport_id, in gb_camera_setup_data_connection() 494 ret = gb_pm_runtime_get_sync(gcam->bundle); in gb_camera_capabilities() 516 gb_pm_runtime_put_autosuspend(gcam->bundle); in gb_camera_capabilities() 564 ret = gb_pm_runtime_get_sync(gcam->bundle); in gb_camera_configure_streams() 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() [all …]
|
D | audio_topology.c | 221 struct gb_bundle *bundle; in gbcodec_mixer_ctl_get() local 230 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_get() 232 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_mixer_ctl_get() 239 gb_pm_runtime_put_autosuspend(bundle); in gbcodec_mixer_ctl_get() 283 struct gb_bundle *bundle; in gbcodec_mixer_ctl_put() local 292 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_put() 321 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_mixer_ctl_put() 328 gb_pm_runtime_put_autosuspend(bundle); in gbcodec_mixer_ctl_put() 392 struct gb_bundle *bundle; in gbcodec_mixer_dapm_ctl_get() local 401 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_dapm_ctl_get() [all …]
|
D | power_supply.c | 373 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_power_supply_state_change() 375 dev_err(&connection->bundle->dev, in gb_power_supply_state_change() 381 ret = gb_pm_runtime_put_autosuspend(connection->bundle); in gb_power_supply_state_change() 383 dev_err(&connection->bundle->dev, in gb_power_supply_state_change() 542 dev_warn(&connection->bundle->dev, in gb_power_supply_prop_descriptors_get() 675 dev_err(&connection->bundle->dev, "get property %u\n", psp); in _gb_power_supply_property_get() 705 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_power_supply_status_get() 719 gb_pm_runtime_put_autosuspend(connection->bundle); in gb_power_supply_status_get() 774 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_power_supply_property_set() 797 gb_pm_runtime_put_autosuspend(connection->bundle); in gb_power_supply_property_set() [all …]
|
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))
|
D | connection.c | 150 struct gb_bundle *bundle, int cport_id, in _gb_connection_create() argument 182 connection->bundle = bundle; in _gb_connection_create() 208 if (bundle) in _gb_connection_create() 209 list_add(&connection->bundle_links, &bundle->connections); in _gb_connection_create() 248 gb_connection_create(struct gb_bundle *bundle, u16 cport_id, in gb_connection_create() argument 251 struct gb_interface *intf = bundle->intf; in gb_connection_create() 253 return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id, in gb_connection_create() 259 gb_connection_create_flags(struct gb_bundle *bundle, u16 cport_id, in gb_connection_create_flags() argument 263 struct gb_interface *intf = bundle->intf; in gb_connection_create_flags() 268 return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id, in gb_connection_create_flags() [all …]
|
D | connection.h | 38 struct gb_bundle *bundle; member 67 struct gb_connection *gb_connection_create(struct gb_bundle *bundle, 69 struct gb_connection *gb_connection_create_flags(struct gb_bundle *bundle, 72 struct gb_connection *gb_connection_create_offloaded(struct gb_bundle *bundle,
|
D | control.c | 57 struct gb_bundle *bundle) in gb_control_get_bundle_version() argument 64 request.bundle_id = bundle->id; in gb_control_get_bundle_version() 73 bundle->id, ret); in gb_control_get_bundle_version() 77 bundle->class_major = response.major; in gb_control_get_bundle_version() 78 bundle->class_minor = response.minor; in gb_control_get_bundle_version() 80 dev_dbg(&intf->dev, "%s - %u: %u.%u\n", __func__, bundle->id, in gb_control_get_bundle_version() 89 struct gb_bundle *bundle; in gb_control_get_bundle_versions() local 95 list_for_each_entry(bundle, &intf->bundles, links) { in gb_control_get_bundle_versions() 96 ret = gb_control_get_bundle_version(control, bundle); in gb_control_get_bundle_versions()
|
/Linux-v4.19/drivers/infiniband/core/ |
D | uverbs_ioctl.c | 65 struct uverbs_attr_bundle bundle; member 80 sizeof(*pbundle->bundle.attrs) * method_elm->key_bitmap_len + in uapi_compute_bundle_size() 104 __malloc void *_uverbs_alloc(struct uverbs_attr_bundle *bundle, size_t size, in _uverbs_alloc() argument 108 container_of(bundle, struct bundle_priv, bundle); in _uverbs_alloc() 151 struct uverbs_attr *e = &pbundle->bundle.attrs[attr_bkey]; in uverbs_process_attr() 199 p = uverbs_alloc(&pbundle->bundle, uattr->len); in uverbs_process_attr() 232 pbundle->bundle.ufile, in uverbs_process_attr() 304 *slot, &pbundle->bundle.ufile->device->disassociate_srcu); in uverbs_set_attr() 307 if (test_bit(attr_bkey, pbundle->bundle.attr_present)) in uverbs_set_attr() 314 __set_bit(attr_bkey, pbundle->bundle.attr_present); in uverbs_set_attr() [all …]
|
/Linux-v4.19/arch/ia64/kernel/ |
D | brl_emu.c | 58 unsigned long bundle[2]; in ia64_emulate_brl() local 72 if (copy_from_user(bundle, (void *) (regs->cr_iip), sizeof(bundle))) in ia64_emulate_brl() 81 if ((bundle[0] & 0x1e) != 0x4) return rv; in ia64_emulate_brl() 83 opcode = (bundle[1] >> 60); in ia64_emulate_brl() 84 btype = ((bundle[1] >> 29) & 0x7); in ia64_emulate_brl() 85 qp = ((bundle[1] >> 23) & 0x3f); in ia64_emulate_brl() 86 offset = ((bundle[1] & 0x0800000000000000L) << 4) in ia64_emulate_brl() 87 | ((bundle[1] & 0x00fffff000000000L) >> 32) in ia64_emulate_brl() 88 | ((bundle[1] & 0x00000000007fffffL) << 40) in ia64_emulate_brl() 89 | ((bundle[0] & 0xffff000000000000L) >> 24); in ia64_emulate_brl()
|
D | kprobes.c | 305 bundle_t *bundle = &p->opcode.bundle; in prepare_break_inst() local 315 bundle->quad0.slot0 = break_inst; in prepare_break_inst() 318 bundle->quad0.slot1_p0 = break_inst; in prepare_break_inst() 319 bundle->quad1.slot1_p1 = break_inst >> (64-46); in prepare_break_inst() 322 bundle->quad1.slot2 = break_inst; in prepare_break_inst() 334 static void __kprobes get_kprobe_inst(bundle_t *bundle, uint slot, in get_kprobe_inst() argument 340 template = bundle->quad0.template; in get_kprobe_inst() 344 *major_opcode = (bundle->quad0.slot0 >> SLOT0_OPCODE_SHIFT); in get_kprobe_inst() 345 *kprobe_inst = bundle->quad0.slot0; in get_kprobe_inst() 348 *major_opcode = (bundle->quad1.slot1_p1 >> SLOT1_p1_OPCODE_SHIFT); in get_kprobe_inst() [all …]
|