Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/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 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))
Dconnection.c146 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 …]
/kernel/linux/linux-5.10/net/rxrpc/
Dconn_client.c43 static void rxrpc_deactivate_bundle(struct rxrpc_bundle *bundle);
121 struct rxrpc_bundle *bundle; in rxrpc_alloc_bundle() local
123 bundle = kzalloc(sizeof(*bundle), gfp); in rxrpc_alloc_bundle()
124 if (bundle) { in rxrpc_alloc_bundle()
125 bundle->params = *cp; in rxrpc_alloc_bundle()
126 rxrpc_get_peer(bundle->params.peer); in rxrpc_alloc_bundle()
127 refcount_set(&bundle->ref, 1); in rxrpc_alloc_bundle()
128 atomic_set(&bundle->active, 1); in rxrpc_alloc_bundle()
129 spin_lock_init(&bundle->channel_lock); in rxrpc_alloc_bundle()
130 INIT_LIST_HEAD(&bundle->waiting_calls); in rxrpc_alloc_bundle()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 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 …]
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()
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 …]
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()
321 struct gb_bundle *bundle = connection->bundle; in gb_lights_fade_set() local
328 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_fade_set()
339 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_fade_set()
347 struct gb_bundle *bundle = connection->bundle; in gb_lights_color_set() local
354 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_color_set()
364 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_color_set()
373 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.c226 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 …]
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.c190 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 …]
/kernel/linux/linux-5.10/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 …]
Duverbs_main.c569 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()
606 bundle.context = NULL; /* only valid if bundle has uobject */ 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()
618 bundle.driver_udata.inbuf = buf + in_len; in ib_uverbs_write()
620 bundle.driver_udata.inbuf = NULL; in ib_uverbs_write()
622 memset(&bundle.driver_udata, 0, in ib_uverbs_write()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/include/linux/
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()

12345