| /linux/drivers/greybus/ |
| H A 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 …]
|
| H 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)) [all...] |
| H 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() 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 …]
|
| H A 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()
|
| H A D | interface.c | 1071 struct gb_bundle *bundle, *tmp; in gb_interface_enable() local 1144 list_for_each_entry_safe_reverse(bundle, tmp, &intf->bundles, links) { in gb_interface_enable() 1145 ret = gb_bundle_add(bundle); in gb_interface_enable() 1147 gb_bundle_destroy(bundle); in gb_interface_enable() 1163 list_for_each_entry_safe(bundle, tmp, &intf->bundles, links) in gb_interface_enable() 1164 gb_bundle_destroy(bundle); in gb_interface_enable() 1183 struct gb_bundle *bundle; in gb_interface_disable() local 1197 list_for_each_entry_safe(bundle, next, &intf->bundles, links) in gb_interface_disable() 1198 gb_bundle_destroy(bundle); in gb_interface_disable()
|
| /linux/net/rxrpc/ |
| H A D | conn_client.c | 37 static void rxrpc_activate_bundle(struct rxrpc_bundle *bundle) in rxrpc_activate_bundle() argument 39 atomic_inc(&bundle->active); in rxrpc_activate_bundle() 77 struct rxrpc_bundle *bundle; in rxrpc_alloc_bundle() local 79 bundle = kzalloc_obj(*bundle, gfp); in rxrpc_alloc_bundle() 80 if (bundle) { in rxrpc_alloc_bundle() 81 bundle->local = call->local; in rxrpc_alloc_bundle() 82 bundle->peer = rxrpc_get_peer(call->peer, rxrpc_peer_get_bundle); in rxrpc_alloc_bundle() 83 bundle->key = key_get(call->key); in rxrpc_alloc_bundle() 84 bundle->security = call->security; in rxrpc_alloc_bundle() 85 bundle->exclusive = test_bit(RXRPC_CALL_EXCLUSIVE, &call->flags); in rxrpc_alloc_bundle() [all …]
|
| H A D | proc.c | 233 struct rxrpc_bundle *bundle; in rxrpc_bundle_seq_show() local 247 bundle = list_entry(v, struct rxrpc_bundle, proc_link); in rxrpc_bundle_seq_show() 249 scnprintf(lbuff, sizeof(lbuff), "%pISpc", &bundle->local->srx.transport); in rxrpc_bundle_seq_show() 250 scnprintf(rbuff, sizeof(rbuff), "%pISpc", &bundle->peer->srx.transport); in rxrpc_bundle_seq_show() 256 bundle->service_id, in rxrpc_bundle_seq_show() 257 refcount_read(&bundle->ref), in rxrpc_bundle_seq_show() 258 atomic_read(&bundle->active), in rxrpc_bundle_seq_show() 259 bundle->try_upgrade ? 'U' : '-', in rxrpc_bundle_seq_show() 260 bundle->exclusive ? 'e' : '-', in rxrpc_bundle_seq_show() 261 bundle->upgrade ? 'u' : '-', in rxrpc_bundle_seq_show() [all …]
|
| /linux/include/linux/greybus/ |
| H 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() 62 static inline void gb_pm_runtime_put_autosuspend(struct gb_bundle *bundle) in gb_pm_runtime_put_autosuspend() argument 64 pm_runtime_put_autosuspend(&bundle->dev); in gb_pm_runtime_put_autosuspend() 67 static inline void gb_pm_runtime_get_noresume(struct gb_bundle *bundle) in gb_pm_runtime_put_autosuspend() 69 pm_runtime_get_noresume(&bundle in gb_pm_runtime_put_autosuspend() 72 gb_pm_runtime_get_noresume(struct gb_bundle * bundle) gb_pm_runtime_get_noresume() argument 77 gb_pm_runtime_put_noidle(struct gb_bundle * bundle) gb_pm_runtime_put_noidle() argument 83 gb_pm_runtime_get_sync(struct gb_bundle * bundle) gb_pm_runtime_get_sync() argument 85 gb_pm_runtime_put_autosuspend(struct gb_bundle * bundle) gb_pm_runtime_put_autosuspend() argument 88 gb_pm_runtime_get_noresume(struct gb_bundle * bundle) gb_pm_runtime_get_noresume() argument 89 gb_pm_runtime_put_noidle(struct gb_bundle * bundle) gb_pm_runtime_put_noidle() argument [all...] |
| H A D | connection.h | 41 struct gb_bundle *bundle; member 70 struct gb_connection *gb_connection_create(struct gb_bundle *bundle, 72 struct gb_connection *gb_connection_create_flags(struct gb_bundle *bundle, 75 struct gb_connection *gb_connection_create_offloaded(struct gb_bundle *bundle,
|
| H A D | greybus_manifest.h | 150 __u8 bundle; member 165 struct greybus_descriptor_bundle bundle; member
|
| /linux/drivers/staging/greybus/ |
| H A D | fw-core.c | 35 ret = gb_spilib_master_init(connection, &connection->bundle->dev, in gb_fw_spi_connection_init() 54 static int gb_fw_core_probe(struct gb_bundle *bundle, in gb_fw_spi_connection_exit() 69 for (i = 0; i < bundle->num_cports; i++) { in gb_fw_core_probe() 70 cport_desc = &bundle->cport_desc[i]; in gb_fw_core_probe() 78 dev_err(&bundle->dev, in gb_fw_core_probe() 84 connection = gb_connection_create(bundle, cport_id, in gb_fw_core_probe() 88 dev_err(&bundle->dev, in gb_fw_core_probe() 99 dev_err(&bundle->dev, in gb_fw_core_probe() 105 connection = gb_connection_create(bundle, cport_id, in gb_fw_core_probe() 108 dev_err(&bundle in gb_fw_core_probe() 61 gb_fw_core_probe(struct gb_bundle * bundle,const struct greybus_bundle_id * id) gb_fw_core_probe() argument 231 gb_fw_core_disconnect(struct gb_bundle * bundle) gb_fw_core_disconnect() argument [all...] |
| H A D | gbphy.c | 23 struct gb_bundle *bundle; member 78 const struct gb_bundle *bundle = gbphy_dev->bundle; in gbphy_dev_uevent() local 79 const 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 in gb_gbphy_create_dev() 257 gb_gbphy_disconnect(struct gb_bundle * bundle) gb_gbphy_disconnect() argument 275 gb_gbphy_probe(struct gb_bundle * bundle,const struct greybus_bundle_id * id) gb_gbphy_probe() argument [all...] |
| H A 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 …]
|
| H A D | light.c | 113 struct gb_bundle *bundle = connection->bundle; in __gb_lights_flash_intensity_set() local 120 ret = gb_pm_runtime_get_sync(bundle); in __gb_lights_flash_intensity_set() 131 gb_pm_runtime_put_autosuspend(bundle); in __gb_lights_flash_intensity_set() 301 struct gb_bundle *bundle = connection->bundle; in gb_lights_fade_set() local 308 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_fade_set() 319 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_fade_set() 327 struct gb_bundle *bundle = connection->bundle; in gb_lights_color_set() local 334 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_color_set() 344 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_color_set() 353 struct gb_bundle *bundle = connection->bundle; in __gb_lights_led_brightness_set() local [all …]
|
| H A D | camera.c | |
| H 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()
|
| H A D | raw.c | 62 struct device *dev = &raw->connection->bundle->dev; in receive_data() 96 struct device *dev = &connection->bundle->dev; in gb_raw_request_handler() 97 struct gb_raw *raw = greybus_get_drvdata(connection->bundle); in gb_raw_request_handler() 161 static int gb_raw_probe(struct gb_bundle *bundle, in gb_raw_probe() argument 170 if (bundle->num_cports != 1) in gb_raw_probe() 173 cport_desc = &bundle->cport_desc[0]; in gb_raw_probe() 190 raw->dev.parent = &bundle->dev; in gb_raw_probe() 196 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_raw_probe() 208 greybus_set_drvdata(bundle, raw); in gb_raw_probe() 233 static void gb_raw_disconnect(struct gb_bundle *bundle) in gb_raw_disconnect() argument [all …]
|
| H A D | fw-management.c | 521 struct gb_bundle *bundle = fw_mgmt->connection->bundle; in fw_mgmt_ioctl_unlocked() local 538 ret = gb_pm_runtime_get_sync(bundle); in fw_mgmt_ioctl_unlocked() 541 gb_pm_runtime_put_autosuspend(bundle); in fw_mgmt_ioctl_unlocked() 566 dev_err(&op->connection->bundle->dev, in gb_fw_mgmt_request_handler() 584 fw_mgmt->parent = &connection->bundle->dev; in gb_fw_mgmt_connection_init()
|
| /linux/include/linux/ |
| H 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()
|
| /linux/include/net/ |
| H A D | tcx.h | 15 struct bpf_mprog_bundle bundle; member 35 struct bpf_mprog_bundle *bundle = entry->parent; in tcx_entry() local 37 return container_of(bundle, struct tcx_entry, bundle); in tcx_entry() 82 bpf_mprog_bundle_init(&tcx->bundle); in tcx_entry_create_noprof() 83 return &tcx->bundle.a; in tcx_entry_create_noprof()
|
| /linux/drivers/infiniband/core/ |
| H A D | uverbs_main.c | 520 struct uverbs_attr_bundle bundle; in ib_uverbs_write() local 555 memset(bundle.attr_present, 0, sizeof(bundle.attr_present)); in ib_uverbs_write() 556 bundle.ufile = file; in ib_uverbs_write() 557 bundle.context = NULL; /* only valid if bundle has uobject */ in ib_uverbs_write() 558 bundle.uobject = NULL; in ib_uverbs_write() 559 bundle.method_elm = NULL; in ib_uverbs_write() 566 bundle.driver_udata.inlen = in ib_uverbs_write() 569 if (bundle.driver_udata.inlen) in ib_uverbs_write() 570 bundle.driver_udata.inbuf = buf + in_len; in ib_uverbs_write() 572 bundle.driver_udata.inbuf = NULL; in ib_uverbs_write() [all …]
|
| /linux/include/trace/events/ |
| H A D | intel_ifs.h | 47 __field( u16, bundle ) 54 __entry->bundle = activate.bundle_idx; 60 __entry->bundle,
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | ctxgk20a.c | 64 gf100_gr_icmd(gr, gr->bundle); in gk20a_grctx_generate_main() 66 grctx->bundle(chan, chan->bundle_cb->addr, grctx->bundle_size); in gk20a_grctx_generate_main() 73 .bundle = gk104_grctx_generate_bundle,
|
| H A D | ctxgm20b.c | 67 gf100_gr_icmd(gr, gr->bundle); in gm20b_grctx_generate_main() 69 grctx->bundle(chan, chan->bundle_cb->addr, grctx->bundle_size); in gm20b_grctx_generate_main() 76 .bundle = gm107_grctx_generate_bundle,
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm.c | 1785 } *bundle __free(kfree); 1788 bundle = kzalloc_obj(*bundle); 1790 if (!bundle) { 1791 drm_err(dm->ddev, "Failed to allocate update bundle\n"); 1796 bundle->stream_update.stream = dc_state->streams[k]; in amdgpu_dm_dump_links_and_sinks() 1799 bundle->surface_updates[m].surface = in amdgpu_dm_dump_links_and_sinks() 1801 bundle->surface_updates[m].surface->force_full_update = in amdgpu_dm_dump_links_and_sinks() 1808 &bundle->stream_update, in amdgpu_dm_dump_links_and_sinks() 1809 bundle in amdgpu_dm_dump_links_and_sinks() 3832 } *bundle; amdgpu_dm_commit_planes() local [all...] |