Home
last modified time | relevance | path

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

1234

/linux/drivers/greybus/
H A 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 …]
H A Dcore.c60 static bool greybus_match_one_id(struct gb_bundle *bundle, in greybus_match_one_id() argument
64 (id->vendor != bundle->intf->vendor_id)) in greybus_match_one_id()
68 (id->product != bundle->intf->product_id)) in greybus_match_one_id()
72 (id->class != bundle->class)) in greybus_match_one_id()
79 greybus_match_id(struct gb_bundle *bundle, const struct greybus_bundle_id *id) in greybus_match_id() argument
86 if (greybus_match_one_id(bundle, id)) in greybus_match_id()
96 struct gb_bundle *bundle; in greybus_match_device() local
102 bundle = to_gb_bundle(dev); in greybus_match_device()
104 id = greybus_match_id(bundle, driver->id_table); in greybus_match_device()
117 const struct gb_bundle *bundle = NULL; in greybus_uevent() local
[all …]
H A 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 …]
H A 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))
H A 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 …]
/linux/net/rxrpc/
H A 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 …]
H A Dproc.c229 struct rxrpc_bundle *bundle; in rxrpc_bundle_seq_show() local
243 bundle = list_entry(v, struct rxrpc_bundle, proc_link); in rxrpc_bundle_seq_show()
245 sprintf(lbuff, "%pISpc", &bundle->local->srx.transport); in rxrpc_bundle_seq_show()
246 sprintf(rbuff, "%pISpc", &bundle->peer->srx.transport); in rxrpc_bundle_seq_show()
252 bundle->service_id, in rxrpc_bundle_seq_show()
253 refcount_read(&bundle->ref), in rxrpc_bundle_seq_show()
254 atomic_read(&bundle->active), in rxrpc_bundle_seq_show()
255 bundle->try_upgrade ? 'U' : '-', in rxrpc_bundle_seq_show()
256 bundle->exclusive ? 'e' : '-', in rxrpc_bundle_seq_show()
257 bundle->upgrade ? 'u' : '-', in rxrpc_bundle_seq_show()
[all …]
/linux/include/linux/greybus/
H A 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/drivers/staging/greybus/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A Dlight.c113 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()
302 struct gb_bundle *bundle = connection->bundle; in gb_lights_fade_set() local
309 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_fade_set()
320 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_fade_set()
328 struct gb_bundle *bundle = connection->bundle; in gb_lights_color_set() local
335 ret = gb_pm_runtime_get_sync(bundle); in gb_lights_color_set()
345 gb_pm_runtime_put_autosuspend(bundle); in gb_lights_color_set()
354 struct gb_bundle *bundle = connection->bundle; in __gb_lights_led_brightness_set() local
[all …]
H A Dcamera.c51 struct gb_bundle *bundle; member
231 dev_err(&gcam->bundle->dev, "unsupported greybus image format: %d\n", in gb_camera_get_max_pkt_size()
240 dev_err(&gcam->bundle->dev, in gb_camera_get_max_pkt_size()
249 dev_err(&gcam->bundle->dev, in gb_camera_get_max_pkt_size()
274 dev_err(&gcam->bundle->dev, "response padding != 0\n"); in gb_camera_configure_streams_validate_response()
279 dev_err(&gcam->bundle->dev, "got #streams %u > request %u\n", in gb_camera_configure_streams_validate_response()
288 dev_err(&gcam->bundle->dev, "stream #%u padding != 0\n", i); in gb_camera_configure_streams_validate_response()
339 dev_err(&gcam->bundle->dev, "failed to set module interface to %s (%d)\n", in gb_camera_set_power_mode()
347 dev_err(&gcam->bundle->dev, "failed to set AP interface to %s (%d)\n", in gb_camera_set_power_mode()
388 conn = gb_connection_create_offloaded(gcam->bundle, gcam->data_cport_id, in gb_camera_setup_data_connection()
[all …]
H A 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()
H A Draw.c61 struct device *dev = &raw->connection->bundle->dev; in receive_data()
95 struct device *dev = &connection->bundle->dev; in gb_raw_request_handler()
96 struct gb_raw *raw = greybus_get_drvdata(connection->bundle); in gb_raw_request_handler()
151 static int gb_raw_probe(struct gb_bundle *bundle, in gb_raw_probe() argument
160 if (bundle->num_cports != 1) in gb_raw_probe()
163 cport_desc = &bundle->cport_desc[0]; in gb_raw_probe()
171 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_raw_probe()
182 greybus_set_drvdata(bundle, raw); in gb_raw_probe()
201 raw->device = device_create(&raw_class, &connection->bundle->dev, in gb_raw_probe()
227 static void gb_raw_disconnect(struct gb_bundle *bundle) in gb_raw_disconnect() argument
[all …]
H A Daudio_topology.c219 struct gb_bundle *bundle; in gbcodec_mixer_ctl_get() local
228 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_get()
230 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_mixer_ctl_get()
237 gb_pm_runtime_put_autosuspend(bundle); in gbcodec_mixer_ctl_get()
281 struct gb_bundle *bundle; in gbcodec_mixer_ctl_put() local
290 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_ctl_put()
319 ret = gb_pm_runtime_get_sync(bundle); in gbcodec_mixer_ctl_put()
326 gb_pm_runtime_put_autosuspend(bundle); in gbcodec_mixer_ctl_put()
385 struct gb_bundle *bundle; in gbcodec_mixer_dapm_ctl_get() local
393 bundle = to_gb_bundle(module->dev); in gbcodec_mixer_dapm_ctl_get()
[all …]
H A 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 …]
H A 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 …]
/linux/drivers/infiniband/core/
H A Duverbs_ioctl.c69 struct uverbs_attr_bundle_hdr bundle; member
82 struct uverbs_attr_bundle *bundle; in uapi_compute_bundle_size() local
85 sizeof(*bundle->attrs) * method_elm->key_bitmap_len + in uapi_compute_bundle_size()
109 __malloc void *_uverbs_alloc(struct uverbs_attr_bundle *bundle, size_t size, in _uverbs_alloc() argument
113 container_of(&bundle->hdr, struct bundle_priv, bundle); in _uverbs_alloc()
151 static int uverbs_set_output(const struct uverbs_attr_bundle *bundle, in uverbs_set_output() argument
155 container_of(&bundle->hdr, struct bundle_priv, bundle); in uverbs_set_output()
172 struct uverbs_attr_bundle *bundle = in uverbs_process_idrs_array() local
173 container_of(&pbundle->bundle, struct uverbs_attr_bundle, hdr); in uverbs_process_idrs_array()
192 uverbs_alloc(bundle, in uverbs_process_idrs_array()
[all …]
/linux/include/linux/
H A 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()
H A 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/include/net/
H A 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()
83 bpf_mprog_bundle_init(&tcx->bundle); in tcx_entry_create_noprof()
84 return &tcx->bundle.a; in tcx_entry_create_noprof()

1234