Home
last modified time | relevance | path

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

12345

/linux-6.6.21/drivers/greybus/
Dbundle.c15 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 …]
Dcore.c30 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 const struct gb_bundle *bundle = NULL; in greybus_uevent() local
[all …]
Dmanifest.c71 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 …]
Dgreybus_trace.h180 __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))
/linux-6.6.21/net/rxrpc/
Dconn_client.c37 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(sizeof(*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 …]
/linux-6.6.21/include/linux/greybus/
Dbundle.h42 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 int gb_pm_runtime_put_autosuspend(struct gb_bundle *bundle) in gb_pm_runtime_put_autosuspend() argument
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()
72 static inline void gb_pm_runtime_get_noresume(struct gb_bundle *bundle) in gb_pm_runtime_get_noresume() argument
[all …]
/linux-6.6.21/drivers/staging/greybus/
Dfw-core.c42 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 …]
Dgbphy.c23 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 = bundle; in gb_gbphy_create_dev()
241 gbphy_dev->dev.parent = &bundle->dev; in gb_gbphy_create_dev()
[all …]
Dvibrator.c31 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()
115 static int gb_vibrator_probe(struct gb_bundle *bundle, in gb_vibrator_probe() argument
124 if (bundle->num_cports != 1) in gb_vibrator_probe()
127 cport_desc = &bundle->cport_desc[0]; in gb_vibrator_probe()
135 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_vibrator_probe()
145 greybus_set_drvdata(bundle, vib); in gb_vibrator_probe()
[all …]
Dbootrom.c57 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.c145 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 …]
Dhid.c19 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 …]
Dlight.c118 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 …]
Dlog.c21 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()
Draw.c58 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 …]
Dcamera.c51 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 …]
Daudio_topology.c225 struct gb_bundle *bundle; in gbcodec_mixer_ctl_get() local
234 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_get()
236 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_mixer_ctl_get()
243 gb_pm_runtime_put_autosuspend(bundle); in gbcodec_mixer_ctl_get()
287 struct gb_bundle *bundle; in gbcodec_mixer_ctl_put() local
296 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_put()
325 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_mixer_ctl_put()
332 gb_pm_runtime_put_autosuspend(bundle); in gbcodec_mixer_ctl_put()
391 struct gb_bundle *bundle; in gbcodec_mixer_dapm_ctl_get() local
399 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_dapm_ctl_get()
[all …]
Dpower_supply.c372 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 …]
Dloopback.c189 gb_loopback_check_attr(gb, bundle); \
388 dev_err(&gb->connection->bundle->dev, in gb_loopback_operation_sync()
396 dev_err(&gb->connection->bundle->dev, in gb_loopback_operation_sync()
452 dev_dbg(&gb->connection->bundle->dev, "complete operation %d\n", in gb_loopback_async_operation_callback()
553 dev_err(&gb->connection->bundle->dev, in gb_loopback_sync_transfer()
607 dev_err(&gb->connection->bundle->dev, in gb_loopback_async_transfer_complete()
657 struct device *dev = &connection->bundle->dev; in gb_loopback_request_handler()
842 struct gb_bundle *bundle = gb->connection->bundle; in gb_loopback_fn() local
844 ret = gb_pm_runtime_get_sync(bundle); in gb_loopback_fn()
850 gb_pm_runtime_put_autosuspend(bundle); in gb_loopback_fn()
[all …]
/linux-6.6.21/drivers/infiniband/core/
Duverbs_ioctl.c67 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 …]
/linux-6.6.21/arch/ia64/kernel/
Dbrl_emu.c58 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()
Dkprobes.c292 bundle_t *bundle = &p->opcode.bundle; in prepare_break_inst() local
302 bundle->quad0.slot0 = break_inst; in prepare_break_inst()
305 bundle->quad0.slot1_p0 = break_inst; in prepare_break_inst()
306 bundle->quad1.slot1_p1 = break_inst >> (64-46); in prepare_break_inst()
309 bundle->quad1.slot2 = break_inst; in prepare_break_inst()
321 static void __kprobes get_kprobe_inst(bundle_t *bundle, uint slot, in get_kprobe_inst() argument
327 template = bundle->quad0.template; in get_kprobe_inst()
331 *major_opcode = (bundle->quad0.slot0 >> SLOT0_OPCODE_SHIFT); in get_kprobe_inst()
332 *kprobe_inst = bundle->quad0.slot0; in get_kprobe_inst()
335 *major_opcode = (bundle->quad1.slot1_p1 >> SLOT1_p1_OPCODE_SHIFT); in get_kprobe_inst()
[all …]
/linux-6.6.21/include/linux/
Dbpf_mprog.h167 static inline void bpf_mprog_bundle_init(struct bpf_mprog_bundle *bundle) in bpf_mprog_bundle_init() argument
169 BUILD_BUG_ON(sizeof(bundle->a.fp_items[0]) > sizeof(u64)); in bpf_mprog_bundle_init()
170 BUILD_BUG_ON(ARRAY_SIZE(bundle->a.fp_items) != in bpf_mprog_bundle_init()
171 ARRAY_SIZE(bundle->cp_items)); in bpf_mprog_bundle_init()
173 memset(bundle, 0, sizeof(*bundle)); in bpf_mprog_bundle_init()
174 atomic64_set(&bundle->revision, 1); in bpf_mprog_bundle_init()
175 bundle->a.parent = bundle; in bpf_mprog_bundle_init()
176 bundle->b.parent = bundle; in bpf_mprog_bundle_init()
Dgreybus.h59 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-6.6.21/include/net/
Dtcx.h15 struct bpf_mprog_bundle bundle; member
36 struct bpf_mprog_bundle *bundle = entry->parent; in tcx_entry() local
38 return container_of(bundle, struct tcx_entry, bundle); in tcx_entry()
88 bpf_mprog_bundle_init(&tcx->bundle); in tcx_entry_create()
89 return &tcx->bundle.a; in tcx_entry_create()

12345