Home
last modified time | relevance | path

Searched refs:connection (Results 1 – 25 of 540) sorted by relevance

12345678910>>...22

/linux-6.6.21/drivers/greybus/
Dconnection.c25 struct gb_connection *connection; in gb_connection_cport_in_use() local
27 list_for_each_entry(connection, &hd->connections, hd_links) { in gb_connection_cport_in_use()
28 if (connection->intf == intf && in gb_connection_cport_in_use()
29 connection->intf_cport_id == cport_id) in gb_connection_cport_in_use()
36 static void gb_connection_get(struct gb_connection *connection) in gb_connection_get() argument
38 kref_get(&connection->kref); in gb_connection_get()
40 trace_gb_connection_get(connection); in gb_connection_get()
43 static void gb_connection_put(struct gb_connection *connection) in gb_connection_put() argument
45 trace_gb_connection_put(connection); in gb_connection_put()
47 kref_put(&connection->kref, gb_connection_kref_release); in gb_connection_put()
[all …]
Doperation.c44 struct gb_connection *connection = operation->connection; in gb_operation_get_active() local
47 spin_lock_irqsave(&connection->lock, flags); in gb_operation_get_active()
48 switch (connection->state) { in gb_operation_get_active()
64 list_add_tail(&operation->links, &connection->operations); in gb_operation_get_active()
68 spin_unlock_irqrestore(&connection->lock, flags); in gb_operation_get_active()
73 spin_unlock_irqrestore(&connection->lock, flags); in gb_operation_get_active()
81 struct gb_connection *connection = operation->connection; in gb_operation_put_active() local
84 spin_lock_irqsave(&connection->lock, flags); in gb_operation_put_active()
93 spin_unlock_irqrestore(&connection->lock, flags); in gb_operation_put_active()
98 struct gb_connection *connection = operation->connection; in gb_operation_is_active() local
[all …]
Dcontrol.c20 struct gb_interface *intf = control->connection->intf; in gb_control_get_version()
28 ret = gb_operation_sync(control->connection, in gb_control_get_version()
58 struct gb_interface *intf = control->connection->intf; in gb_control_get_bundle_version()
65 ret = gb_operation_sync(control->connection, in gb_control_get_bundle_version()
87 struct gb_interface *intf = control->connection->intf; in gb_control_get_bundle_versions()
107 struct gb_connection *connection = intf->control->connection; in gb_control_get_manifest_size_operation() local
110 ret = gb_operation_sync(connection, GB_CONTROL_TYPE_GET_MANIFEST_SIZE, in gb_control_get_manifest_size_operation()
113 dev_err(&connection->intf->dev, in gb_control_get_manifest_size_operation()
125 struct gb_connection *connection = intf->control->connection; in gb_control_get_manifest_operation() local
127 return gb_operation_sync(connection, GB_CONTROL_TYPE_GET_MANIFEST, in gb_control_get_manifest_operation()
[all …]
/linux-6.6.21/include/linux/greybus/
Dconnection.h77 void gb_connection_destroy(struct gb_connection *connection);
79 static inline bool gb_connection_is_static(struct gb_connection *connection) in gb_connection_is_static() argument
81 return !connection->intf; in gb_connection_is_static()
84 int gb_connection_enable(struct gb_connection *connection);
85 int gb_connection_enable_tx(struct gb_connection *connection);
86 void gb_connection_disable_rx(struct gb_connection *connection);
87 void gb_connection_disable(struct gb_connection *connection);
88 void gb_connection_disable_forced(struct gb_connection *connection);
90 void gb_connection_mode_switch_prepare(struct gb_connection *connection);
91 void gb_connection_mode_switch_complete(struct gb_connection *connection);
[all …]
/linux-6.6.21/drivers/block/drbd/
Ddrbd_receiver.c56 static int drbd_do_features(struct drbd_connection *connection);
57 static int drbd_do_auth(struct drbd_connection *connection);
59 static void conn_wait_active_ee_empty(struct drbd_connection *connection);
222 static void conn_reclaim_net_peer_reqs(struct drbd_connection *connection) in conn_reclaim_net_peer_reqs() argument
228 idr_for_each_entry(&connection->peer_devices, peer_device, vnr) { in conn_reclaim_net_peer_reqs()
272 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages()
513 static int drbd_recv(struct drbd_connection *connection, void *buf, size_t size) in drbd_recv() argument
517 rv = drbd_recv_short(connection->data.socket, buf, size, 0); in drbd_recv()
521 drbd_info(connection, "sock was reset by peer\n"); in drbd_recv()
523 drbd_err(connection, "sock_recvmsg returned %d\n", rv); in drbd_recv()
[all …]
Ddrbd_main.c169 void tl_release(struct drbd_connection *connection, unsigned int barrier_nr, in tl_release() argument
177 spin_lock_irq(&connection->resource->req_lock); in tl_release()
181 list_for_each_entry(r, &connection->transfer_log, tl_requests) { in tl_release()
206 drbd_err(connection, "BAD! BarrierAck #%u received, but no epoch in tl!?\n", in tl_release()
211 drbd_err(connection, "BAD! BarrierAck #%u received, expected #%u!\n", in tl_release()
217 drbd_err(connection, "BAD! BarrierAck #%u received with n_writes=%u, expected n_writes=%u!\n", in tl_release()
226 list_for_each_entry(req, &connection->transfer_log, tl_requests) in tl_release()
231 req = list_prepare_entry(tmp, &connection->transfer_log, tl_requests); in tl_release()
232 list_for_each_entry_safe_from(req, r, &connection->transfer_log, tl_requests) { in tl_release()
236 peer_device = conn_peer_device(connection, req->device->vnr); in tl_release()
[all …]
Ddrbd_worker.c96 drbd_queue_work(&peer_device->connection->sender_work, &peer_req->w); in drbd_endio_read_sec_final()
107 struct drbd_connection *connection = peer_device->connection; in drbd_endio_write_sec_final() local
149 if (connection->cstate >= C_WF_REPORT_PARAMS) { in drbd_endio_write_sec_final()
151 if (!queue_work(connection->ack_sender, &peer_device->send_acks_work)) in drbd_endio_write_sec_final()
353 digest_size = crypto_shash_digestsize(peer_device->connection->csums_tfm); in w_e_send_csum()
358 drbd_csum_ee(peer_device->connection->csums_tfm, peer_req, digest); in w_e_send_csum()
448 &first_peer_device(device)->connection->sender_work, in resync_timer_fn()
588 struct drbd_connection *const connection = peer_device ? peer_device->connection : NULL; in make_resync_request() local
616 if (connection->agreed_features & DRBD_FF_THIN_RESYNC) { in make_resync_request()
630 mutex_lock(&connection->data.mutex); in make_resync_request()
[all …]
Ddrbd_nl.c216 nla_len(adm_ctx->my_addr) > sizeof(adm_ctx->connection->my_addr)) || in drbd_adm_prepare()
218 nla_len(adm_ctx->peer_addr) > sizeof(adm_ctx->connection->peer_addr))) { in drbd_adm_prepare()
258 adm_ctx->connection = conn_get_by_addrs(nla_data(adm_ctx->my_addr), in drbd_adm_prepare()
262 if (!adm_ctx->connection) { in drbd_adm_prepare()
290 : adm_ctx->connection ? adm_ctx->connection->resource : NULL; in drbd_adm_prepare()
310 if (adm_ctx->connection) { in drbd_adm_finish()
311 kref_put(&adm_ctx->connection->kref, &drbd_destroy_connection); in drbd_adm_finish()
312 adm_ctx->connection = NULL; in drbd_adm_finish()
327 static void setup_khelper_env(struct drbd_connection *connection, char **envp) in setup_khelper_env() argument
332 if (connection->my_addr_len == 0 || connection->peer_addr_len == 0) in setup_khelper_env()
[all …]
Ddrbd_state.c46 struct drbd_connection *connection; in count_objects() local
54 for_each_connection(connection, resource) in count_objects()
79 state_change->connections[n].connection = NULL; in alloc_state_change()
88 struct drbd_connection *connection; in remember_old_state() local
112 for_each_connection(connection, resource) { in remember_old_state()
113 kref_get(&connection->kref); in remember_old_state()
114 connection_state_change->connection = connection; in remember_old_state()
116 connection->cstate; in remember_old_state()
118 conn_highest_peer(connection); in remember_old_state()
131 for_each_connection(connection, resource) { in remember_old_state()
[all …]
/linux-6.6.21/drivers/staging/greybus/
Daudio_gb.c12 int gb_audio_gb_get_topology(struct gb_connection *connection, in gb_audio_gb_get_topology() argument
20 ret = gb_operation_sync(connection, GB_AUDIO_TYPE_GET_TOPOLOGY_SIZE, in gb_audio_gb_get_topology()
33 ret = gb_operation_sync(connection, GB_AUDIO_TYPE_GET_TOPOLOGY, NULL, 0, in gb_audio_gb_get_topology()
46 int gb_audio_gb_get_control(struct gb_connection *connection, in gb_audio_gb_get_control() argument
57 ret = gb_operation_sync(connection, GB_AUDIO_TYPE_GET_CONTROL, in gb_audio_gb_get_control()
68 int gb_audio_gb_set_control(struct gb_connection *connection, in gb_audio_gb_set_control() argument
78 return gb_operation_sync(connection, GB_AUDIO_TYPE_SET_CONTROL, in gb_audio_gb_set_control()
83 int gb_audio_gb_enable_widget(struct gb_connection *connection, in gb_audio_gb_enable_widget() argument
90 return gb_operation_sync(connection, GB_AUDIO_TYPE_ENABLE_WIDGET, in gb_audio_gb_enable_widget()
95 int gb_audio_gb_disable_widget(struct gb_connection *connection, in gb_audio_gb_disable_widget() argument
[all …]
Daudio_codec.h95 struct gb_connection *connection; member
181 int gb_audio_gb_get_topology(struct gb_connection *connection,
183 int gb_audio_gb_get_control(struct gb_connection *connection,
186 int gb_audio_gb_set_control(struct gb_connection *connection,
189 int gb_audio_gb_enable_widget(struct gb_connection *connection,
191 int gb_audio_gb_disable_widget(struct gb_connection *connection,
193 int gb_audio_gb_get_pcm(struct gb_connection *connection,
197 int gb_audio_gb_set_pcm(struct gb_connection *connection,
201 int gb_audio_gb_set_tx_data_size(struct gb_connection *connection,
203 int gb_audio_gb_activate_tx(struct gb_connection *connection,
[all …]
Daudio_apbridgea.c12 int gb_audio_apbridgea_set_config(struct gb_connection *connection, in gb_audio_apbridgea_set_config() argument
24 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_config()
29 int gb_audio_apbridgea_register_cport(struct gb_connection *connection, in gb_audio_apbridgea_register_cport() argument
41 ret = gb_pm_runtime_get_sync(connection->bundle); in gb_audio_apbridgea_register_cport()
45 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_register_cport()
50 int gb_audio_apbridgea_unregister_cport(struct gb_connection *connection, in gb_audio_apbridgea_unregister_cport() argument
62 ret = gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_unregister_cport()
65 gb_pm_runtime_put_autosuspend(connection->bundle); in gb_audio_apbridgea_unregister_cport()
71 int gb_audio_apbridgea_set_tx_data_size(struct gb_connection *connection, in gb_audio_apbridgea_set_tx_data_size() argument
80 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_tx_data_size()
[all …]
Dbootrom.c34 struct gb_connection *connection; member
57 struct device *dev = &bootrom->connection->bundle->dev; in gb_bootrom_timedout()
114 struct gb_connection *connection = bootrom->connection; in bootrom_es2_fixup_vid_pid() local
115 struct gb_interface *intf = connection->bundle->intf; in bootrom_es2_fixup_vid_pid()
121 ret = gb_operation_sync(connection, GB_BOOTROM_TYPE_GET_VID_PID, 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()
146 struct gb_connection *connection = bootrom->connection; in find_firmware() local
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()
[all …]
Dfw-core.c31 static int gb_fw_spi_connection_init(struct gb_connection *connection) in gb_fw_spi_connection_init() argument
35 if (!connection) in gb_fw_spi_connection_init()
38 ret = gb_connection_enable(connection); in gb_fw_spi_connection_init()
42 ret = gb_spilib_master_init(connection, &connection->bundle->dev, in gb_fw_spi_connection_init()
45 gb_connection_disable(connection); in gb_fw_spi_connection_init()
52 static void gb_fw_spi_connection_exit(struct gb_connection *connection) in gb_fw_spi_connection_exit() argument
54 if (!connection) in gb_fw_spi_connection_exit()
57 gb_spilib_master_exit(connection); in gb_fw_spi_connection_exit()
58 gb_connection_disable(connection); in gb_fw_spi_connection_exit()
65 struct gb_connection *connection; in gb_fw_core_probe() local
[all …]
Dspi.c20 struct gb_connection *connection; in gb_spi_probe() local
23 connection = gb_connection_create(gbphy_dev->bundle, in gb_spi_probe()
26 if (IS_ERR(connection)) in gb_spi_probe()
27 return PTR_ERR(connection); in gb_spi_probe()
29 ret = gb_connection_enable(connection); in gb_spi_probe()
33 ret = gb_spilib_master_init(connection, &gbphy_dev->dev, spilib_ops); in gb_spi_probe()
37 gb_gbphy_set_data(gbphy_dev, connection); in gb_spi_probe()
43 gb_connection_disable(connection); in gb_spi_probe()
45 gb_connection_destroy(connection); in gb_spi_probe()
52 struct gb_connection *connection = gb_gbphy_get_data(gbphy_dev); in gb_spi_remove() local
[all …]
Dlog.c15 struct gb_connection *connection; member
20 struct gb_connection *connection = op->connection; in gb_log_request_handler() local
21 struct device *dev = &connection->bundle->dev; in gb_log_request_handler()
69 struct gb_connection *connection; in gb_log_probe() local
84 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_log_probe()
86 if (IS_ERR(connection)) { in gb_log_probe()
87 retval = PTR_ERR(connection); in gb_log_probe()
91 log->connection = connection; in gb_log_probe()
94 retval = gb_connection_enable(connection); in gb_log_probe()
101 gb_connection_destroy(connection); in gb_log_probe()
[all …]
Dusb.c34 struct gb_connection *connection; member
53 ret = gb_operation_sync(dev->connection, GB_USB_TYPE_HCD_STOP, in hcd_stop()
65 ret = gb_operation_sync(dev->connection, GB_USB_TYPE_HCD_START, in hcd_start()
111 operation = gb_operation_create(dev->connection, in hub_control()
161 struct gb_connection *connection; in gb_usb_probe() local
171 connection = gb_connection_create(gbphy_dev->bundle, in gb_usb_probe()
174 if (IS_ERR(connection)) { in gb_usb_probe()
175 retval = PTR_ERR(connection); in gb_usb_probe()
180 gb_usb_dev->connection = connection; in gb_usb_probe()
181 gb_connection_set_data(connection, gb_usb_dev); in gb_usb_probe()
[all …]
Di2c.c18 struct gb_connection *connection; member
47 ret = gb_operation_sync(gb_i2c_dev->connection, in gb_i2c_device_setup()
78 gb_i2c_operation_create(struct gb_connection *connection, in gb_i2c_operation_create() argument
81 struct gb_i2c_device *gb_i2c_dev = gb_connection_get_data(connection); in gb_i2c_operation_create()
116 operation = gb_operation_create(connection, GB_I2C_TYPE_TRANSFER, in gb_i2c_operation_create()
176 struct gb_connection *connection = gb_i2c_dev->connection; in gb_i2c_transfer_operation() local
181 operation = gb_i2c_operation_create(connection, msgs, msg_count); in gb_i2c_transfer_operation()
233 struct gb_connection *connection; in gb_i2c_probe() local
242 connection = in gb_i2c_probe()
246 if (IS_ERR(connection)) { in gb_i2c_probe()
[all …]
Dvibrator.c19 struct gb_connection *connection; member
31 struct gb_bundle *bundle = vib->connection->bundle; in turn_off()
34 ret = gb_operation_sync(vib->connection, GB_VIBRATOR_TYPE_OFF, in turn_off()
44 struct gb_bundle *bundle = vib->connection->bundle; in turn_on()
55 ret = gb_operation_sync(vib->connection, GB_VIBRATOR_TYPE_ON, in turn_on()
119 struct gb_connection *connection; in gb_vibrator_probe() local
135 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_vibrator_probe()
137 if (IS_ERR(connection)) { in gb_vibrator_probe()
138 retval = PTR_ERR(connection); in gb_vibrator_probe()
141 gb_connection_set_data(connection, vib); in gb_vibrator_probe()
[all …]
Dauthentication.c28 struct gb_connection *connection; member
86 struct gb_connection *connection = cap->connection; in cap_get_endpoint_uid() local
90 ret = gb_operation_sync(connection, GB_CAP_TYPE_GET_ENDPOINT_UID, NULL, in cap_get_endpoint_uid()
105 struct gb_connection *connection = cap->connection; in cap_get_ims_certificate() local
108 size_t max_size = gb_operation_get_payload_size_max(connection); in cap_get_ims_certificate()
112 op = gb_operation_create_flags(connection, in cap_get_ims_certificate()
144 struct gb_connection *connection = cap->connection; in cap_authenticate() local
147 size_t max_size = gb_operation_get_payload_size_max(connection); in cap_authenticate()
151 op = gb_operation_create_flags(connection, GB_CAP_TYPE_AUTHENTICATE, in cap_authenticate()
265 struct gb_bundle *bundle = cap->connection->bundle; in cap_ioctl_unlocked()
[all …]
Draw.c19 struct gb_connection *connection; member
58 struct device *dev = &raw->connection->bundle->dev; in receive_data()
91 struct gb_connection *connection = op->connection; in gb_raw_request_handler() local
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()
125 struct gb_connection *connection = raw->connection; in gb_raw_send() local
140 retval = gb_operation_sync(connection, GB_RAW_TYPE_SEND, in gb_raw_send()
152 struct gb_connection *connection; in gb_raw_probe() local
168 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_raw_probe()
170 if (IS_ERR(connection)) { in gb_raw_probe()
[all …]
Dpwm.c18 struct gb_connection *connection; member
34 ret = gb_operation_sync(pwmc->connection, GB_PWM_TYPE_PWM_COUNT, in gb_pwm_count_operation()
59 ret = gb_operation_sync(pwmc->connection, GB_PWM_TYPE_ACTIVATE, in gb_pwm_activate_operation()
84 ret = gb_operation_sync(pwmc->connection, GB_PWM_TYPE_DEACTIVATE, in gb_pwm_deactivate_operation()
111 ret = gb_operation_sync(pwmc->connection, GB_PWM_TYPE_CONFIG, in gb_pwm_config_operation()
137 ret = gb_operation_sync(pwmc->connection, GB_PWM_TYPE_POLARITY, in gb_pwm_set_polarity_operation()
162 ret = gb_operation_sync(pwmc->connection, GB_PWM_TYPE_ENABLE, in gb_pwm_enable_operation()
182 ret = gb_operation_sync(pwmc->connection, GB_PWM_TYPE_DISABLE, in gb_pwm_disable_operation()
267 struct gb_connection *connection; in gb_pwm_probe() local
276 connection = gb_connection_create(gbphy_dev->bundle, in gb_pwm_probe()
[all …]
Dlight.c63 struct gb_connection *connection; member
73 return channel->light->glights->connection; in get_conn_from_channel()
78 return light->glights->connection; in get_conn_from_light()
117 struct gb_connection *connection = get_conn_from_channel(channel); in __gb_lights_flash_intensity_set() local
118 struct gb_bundle *bundle = connection->bundle; in __gb_lights_flash_intensity_set()
133 ret = gb_operation_sync(connection, GB_LIGHTS_TYPE_SET_FLASH_INTENSITY, in __gb_lights_flash_intensity_set()
319 struct gb_connection *connection = get_conn_from_channel(channel); in gb_lights_fade_set() local
320 struct gb_bundle *bundle = connection->bundle; in gb_lights_fade_set()
335 ret = gb_operation_sync(connection, GB_LIGHTS_TYPE_SET_FADE, in gb_lights_fade_set()
345 struct gb_connection *connection = get_conn_from_channel(channel); in gb_lights_color_set() local
[all …]
Dpower_supply.c50 struct gb_connection *connection; member
312 return gbpsy->supplies->connection; in get_conn_from_psy()
361 struct gb_connection *connection = get_conn_from_psy(gbpsy); in gb_power_supply_state_change() local
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()
476 struct gb_connection *connection = get_conn_from_psy(gbpsy); in gb_power_supply_description_get() local
483 ret = gb_operation_sync(connection, in gb_power_supply_description_get()
508 struct gb_connection *connection = get_conn_from_psy(gbpsy); in gb_power_supply_prop_descriptors_get() local
[all …]
/linux-6.6.21/sound/firewire/
Dcmp.h38 int cmp_connection_init(struct cmp_connection *connection,
42 int cmp_connection_check_used(struct cmp_connection *connection, bool *used);
43 void cmp_connection_destroy(struct cmp_connection *connection);
45 int cmp_connection_reserve(struct cmp_connection *connection,
47 void cmp_connection_release(struct cmp_connection *connection);
49 int cmp_connection_establish(struct cmp_connection *connection);
50 int cmp_connection_update(struct cmp_connection *connection);
51 void cmp_connection_break(struct cmp_connection *connection);

12345678910>>...22