/drivers/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) 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 | 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 | 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() 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() [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 | 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() 249 return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id, 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() 264 return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id, in gb_connection_create_flags() [all …]
|
D | control.c | 56 struct gb_bundle *bundle) in gb_control_get_bundle_version() argument 63 request.bundle_id = bundle->id; in gb_control_get_bundle_version() 72 bundle->id, ret); in gb_control_get_bundle_version() 76 bundle->class_major = response.major; in gb_control_get_bundle_version() 77 bundle->class_minor = response.minor; in gb_control_get_bundle_version() 79 dev_dbg(&intf->dev, "%s - %u: %u.%u\n", __func__, bundle->id, in gb_control_get_bundle_version() 88 struct gb_bundle *bundle; in gb_control_get_bundle_versions() local 94 list_for_each_entry(bundle, &intf->bundles, links) { in gb_control_get_bundle_versions() 95 ret = gb_control_get_bundle_version(control, bundle); in gb_control_get_bundle_versions()
|
/drivers/staging/greybus/ |
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() 221 static struct gbphy_device *gb_gbphy_create_dev(struct gb_bundle *bundle, in gb_gbphy_create_dev() argument 239 gbphy_dev->bundle = bundle; in gb_gbphy_create_dev() 241 gbphy_dev->dev.parent = &bundle->dev; in gb_gbphy_create_dev() [all …]
|
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() 116 static int gb_vibrator_probe(struct gb_bundle *bundle, in gb_vibrator_probe() argument 125 if (bundle->num_cports != 1) in gb_vibrator_probe() 128 cport_desc = &bundle->cport_desc[0]; in gb_vibrator_probe() 136 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_vibrator_probe() 146 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() 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 …]
|
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 | 19 struct gb_bundle *bundle; member 46 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_get_report_desc() 54 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_get_report_desc() 63 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_set_power() 69 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_set_power() 80 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_get_report() 90 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_get_report() 102 ret = gb_pm_runtime_get_sync(ghid->bundle); in gb_hid_set_report() 110 gb_pm_runtime_put_autosuspend(ghid->bundle); in gb_hid_set_report() 121 dev_err(&operation->connection->bundle->dev, in gb_hid_set_report() [all …]
|
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 327 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_fade_set() 338 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_fade_set() 346 struct gb_bundle *bundle = connection->bundle; in gb_lights_color_set() local 353 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_color_set() 363 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_color_set() 372 struct gb_bundle *bundle = connection->bundle; in __gb_lights_led_brightness_set() local [all …]
|
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()
|
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 | 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 …]
|
D | audio_topology.c | 226 struct gb_bundle *bundle; in gbcodec_mixer_ctl_get() local 235 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_get() 237 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_mixer_ctl_get() 244 gb_pm_runtime_put_autosuspend(bundle); in gbcodec_mixer_ctl_get() 288 struct gb_bundle *bundle; in gbcodec_mixer_ctl_put() local 297 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_put() 326 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_mixer_ctl_put() 333 gb_pm_runtime_put_autosuspend(bundle); in gbcodec_mixer_ctl_put() 392 struct gb_bundle *bundle; in gbcodec_mixer_dapm_ctl_get() local 400 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_dapm_ctl_get() [all …]
|
D | power_supply.c | 372 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_power_supply_state_change() 374 dev_err(&connection->bundle->dev, in gb_power_supply_state_change() 380 ret = gb_pm_runtime_put_autosuspend(connection->bundle); 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() 674 dev_err(&connection->bundle->dev, "get property %u\n", psp); in _gb_power_supply_property_get() 704 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_power_supply_status_get() 718 gb_pm_runtime_put_autosuspend(connection->bundle); in gb_power_supply_status_get() 773 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_power_supply_property_set() 796 gb_pm_runtime_put_autosuspend(connection->bundle); in gb_power_supply_property_set() [all …]
|
D | loopback.c | 190 gb_loopback_check_attr(gb, bundle); \ 389 dev_err(&gb->connection->bundle->dev, in gb_loopback_operation_sync() 397 dev_err(&gb->connection->bundle->dev, in gb_loopback_operation_sync() 453 dev_dbg(&gb->connection->bundle->dev, "complete operation %d\n", in gb_loopback_async_operation_callback() 554 dev_err(&gb->connection->bundle->dev, in gb_loopback_sync_transfer() 608 dev_err(&gb->connection->bundle->dev, in gb_loopback_async_transfer_complete() 658 struct device *dev = &connection->bundle->dev; in gb_loopback_request_handler() 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() 851 gb_pm_runtime_put_autosuspend(bundle); in gb_loopback_fn() [all …]
|
D | audio_codec.c | 401 struct gb_bundle *bundle; in gbcodec_hw_params() local 460 bundle = to_gb_bundle(module->dev); in gbcodec_hw_params() 461 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_hw_params() 474 gb_pm_runtime_put_noidle(bundle); in gbcodec_hw_params() 479 gb_pm_runtime_put_noidle(bundle); in gbcodec_hw_params() 502 struct gb_bundle *bundle; in gbcodec_prepare() local 533 bundle = to_gb_bundle(module->dev); in gbcodec_prepare() 534 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_prepare() 549 gb_pm_runtime_put_noidle(bundle); in gbcodec_prepare() 555 gb_pm_runtime_put_noidle(bundle); in gbcodec_prepare() [all …]
|
/drivers/infiniband/core/ |
D | uverbs_ioctl.c | 67 struct uverbs_attr_bundle bundle; member 82 sizeof(*pbundle->bundle.attrs) * method_elm->key_bitmap_len + in uapi_compute_bundle_size() 106 __malloc void *_uverbs_alloc(struct uverbs_attr_bundle *bundle, size_t size, in _uverbs_alloc() argument 110 container_of(bundle, struct bundle_priv, bundle); in _uverbs_alloc() 148 static int uverbs_set_output(const struct uverbs_attr_bundle *bundle, in uverbs_set_output() argument 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() 243 struct uverbs_attr *e = &pbundle->bundle.attrs[attr_bkey]; in uverbs_process_attr() 291 p = uverbs_alloc(&pbundle->bundle, uattr->len); in uverbs_process_attr() [all …]
|
D | uverbs_main.c | 567 struct uverbs_attr_bundle bundle; in ib_uverbs_write() local 602 memset(bundle.attr_present, 0, sizeof(bundle.attr_present)); in ib_uverbs_write() 603 bundle.ufile = file; in ib_uverbs_write() 604 bundle.context = NULL; /* only valid if bundle has uobject */ in ib_uverbs_write() 605 bundle.uobject = NULL; in ib_uverbs_write() 612 bundle.driver_udata.inlen = in ib_uverbs_write() 615 if (bundle.driver_udata.inlen) in ib_uverbs_write() 616 bundle.driver_udata.inbuf = buf + in_len; in ib_uverbs_write() 618 bundle.driver_udata.inbuf = NULL; in ib_uverbs_write() 620 memset(&bundle.driver_udata, 0, in ib_uverbs_write() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | ctxgk20a.c | 62 gf100_gr_icmd(gr, gr->bundle); in gk20a_grctx_generate_main() 64 grctx->bundle(info); in gk20a_grctx_generate_main() 71 .bundle = gk104_grctx_generate_bundle,
|
D | ctxgm20b.c | 65 gf100_gr_icmd(gr, gr->bundle); in gm20b_grctx_generate_main() 67 grctx->bundle(info); in gm20b_grctx_generate_main() 74 .bundle = gm107_grctx_generate_bundle,
|
/drivers/dma/ioat/ |
D | hw.h | 84 unsigned int bundle:1; member 116 unsigned int bundle:1; member 163 unsigned int bundle:1; member 212 unsigned int bundle:1; member
|