Home
last modified time | relevance | path

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

12345678910>>...21

/linux/drivers/greybus/
A Dconnection.c65 connection = NULL; in gb_connection_hd_find()
69 return connection; in gb_connection_hd_find()
84 if (!connection) { in greybus_data_rcvd()
102 kfree(connection); in gb_connection_kref_release()
116 snprintf(connection->name, sizeof(connection->name), in gb_connection_init_name()
168 connection = kzalloc(sizeof(*connection), GFP_KERNEL); in _gb_connection_create()
169 if (!connection) { in _gb_connection_create()
215 return connection; in _gb_connection_create()
218 kfree(connection); in _gb_connection_create()
883 if (!connection) in gb_connection_destroy()
[all …]
A Doperation.c44 struct gb_connection *connection = operation->connection; in gb_operation_get_active() local
81 struct gb_connection *connection = operation->connection; in gb_operation_put_active() local
98 struct gb_connection *connection = operation->connection; in gb_operation_is_active() local
217 struct gb_connection *connection = message->operation->connection; in gb_message_send() local
220 return connection->hd->driver->message_send(connection->hd, in gb_message_send()
238 struct gb_connection *connection = operation->connection; in gb_operation_request_handle() local
529 operation->connection = connection; in gb_operation_create_common()
725 struct gb_connection *connection = operation->connection; in gb_operation_request_send() local
826 struct gb_connection *connection = operation->connection; in gb_operation_response_send() local
875 struct gb_connection *connection = operation->connection; in greybus_message_sent() local
[all …]
A Dcontrol.c28 ret = gb_operation_sync(control->connection, in gb_control_get_version()
65 ret = gb_operation_sync(control->connection, in gb_control_get_bundle_version()
107 struct gb_connection *connection = intf->control->connection; in gb_control_get_manifest_size_operation() local
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
446 struct gb_connection *connection; in gb_control_create() local
456 if (IS_ERR(connection)) { in gb_control_create()
459 PTR_ERR(connection)); in gb_control_create()
461 return ERR_CAST(connection); in gb_control_create()
464 control->connection = connection; in gb_control_create()
[all …]
/linux/include/linux/greybus/
A Dconnection.h77 void gb_connection_destroy(struct gb_connection *connection);
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);
87 void gb_connection_disable(struct gb_connection *connection);
101 return !(connection->flags & GB_CONNECTION_FLAG_CSD); in gb_connection_e2efc_enabled()
107 return connection->flags & GB_CONNECTION_FLAG_NO_FLOWCTRL; in gb_connection_flow_control_disabled()
112 return connection->flags & GB_CONNECTION_FLAG_OFFLOADED; in gb_connection_is_offloaded()
117 return connection->flags & GB_CONNECTION_FLAG_CONTROL; in gb_connection_is_control()
122 return connection->private; in gb_connection_get_data()
[all …]
/linux/drivers/block/drbd/
A Ddrbd_receiver.c836 err = decode_header(connection, connection->data.rbuf, &pi); in receive_first_packet()
933 .connection = connection, in conn_connect()
1240 err = decode_header(connection, connection->data.rbuf, pi); in drbd_recv_header_maybe_unplug()
1780 connection->current_epoch->connection = connection; in receive_Barrier()
2300 struct drbd_connection *connection = peer_req->peer_device->connection; in e_send_retry_write() local
2480 struct drbd_connection *connection = peer_req->peer_device->connection; in handle_write_conflicts() local
5582 struct drbd_connection *connection = thi->connection; in drbd_receiver() local
5601 drbdd(connection); in drbd_receiver()
6003 struct drbd_connection *connection = thi->connection; in drbd_ack_receiver() local
6084 if (decode_header(connection, connection->meta.rbuf, &pi)) in drbd_ack_receiver()
[all …]
A Ddrbd_main.c347 if (thi->connection) in drbd_thread_setup()
2463 connection = NULL; in conn_get_by_addrs()
2466 return connection; in conn_get_by_addrs()
2597 if (!connection) in conn_create()
2633 connection->receiver.connection = connection; in conn_create()
2635 connection->worker.connection = connection; in conn_create()
2637 connection->ack_receiver.connection = connection; in conn_create()
2649 return connection; in conn_create()
2658 kfree(connection); in conn_create()
2677 memset(connection, 0xfc, sizeof(*connection)); in drbd_destroy_connection()
[all …]
A Ddrbd_worker.c107 struct drbd_connection *connection = peer_device->connection; in drbd_endio_write_sec_final() local
846 struct drbd_connection *connection = first_peer_device(device)->connection; in ping_peer() local
849 request_ping(connection); in ping_peer()
856 struct drbd_connection *connection = first_peer_device(device)->connection; in drbd_resync_finished() local
1372 sock = &connection->data; in drbd_send_barrier()
1429 struct drbd_connection *const connection = peer_device->connection; in w_send_out_of_sync() local
1460 struct drbd_connection *connection = peer_device->connection; in w_send_dblock() local
1493 struct drbd_connection *connection = peer_device->connection; in w_send_read_req() local
1740 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in drbd_start_resync() local
1749 if (!connection) { in drbd_start_resync()
[all …]
A Ddrbd_nl.c290 : adm_ctx->connection ? adm_ctx->connection->resource : NULL; in drbd_adm_prepare()
332 if (connection->my_addr_len == 0 || connection->peer_addr_len == 0) in setup_khelper_env()
364 struct drbd_connection *connection = first_peer_device(device)->connection; in drbd_khelper() local
1215 struct drbd_connection *connection = first_peer_device(device)->connection; in decide_on_discard_support() local
1274 struct drbd_connection *connection = peer_device->connection; in decide_on_write_same_support() local
1812 connection = peer_device->connection; in drbd_adm_attach()
2436 connection = adm_ctx.connection; in drbd_adm_net_opts()
2792 connection = adm_ctx.connection; in drbd_adm_disconnect()
3262 if (connection) { in nla_put_drbd_cfg_context()
3995 if (connection) { in get_one_status()
[all …]
A Ddrbd_state.c113 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()
273 if (connection) in forget_state_change()
1265 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in _drbd_set_state() local
1459 connection->connect_cnt++; in _drbd_set_state()
1561 struct drbd_connection *connection = connection_state_change->connection; in notify_connection_state_change() local
1707 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in after_state_ch() local
2042 struct drbd_connection *connection = acscw->connection; in w_after_conn_state_ch() local
2099 conn_md_sync(connection); in w_after_conn_state_ch()
[all …]
A Ddrbd_req.c325 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in set_if_null_req_next() local
326 if (!connection) in set_if_null_req_next()
334 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in advance_conn_req_next() local
335 if (!connection) in advance_conn_req_next()
351 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in set_if_null_req_ack_pending() local
352 if (!connection) in set_if_null_req_ack_pending()
361 if (!connection) in advance_conn_req_ack_pending()
378 if (!connection) in set_if_null_req_not_net_done()
387 if (!connection) in advance_conn_req_not_net_done()
977 struct drbd_connection *connection = first_peer_device(device)->connection; in maybe_pull_ahead() local
[all …]
/linux/drivers/staging/greybus/
A Dbootrom.c34 struct gb_connection *connection; member
114 struct gb_connection *connection = bootrom->connection; in bootrom_es2_fixup_vid_pid() local
124 dev_err(&connection->bundle->dev, in bootrom_es2_fixup_vid_pid()
146 struct gb_connection *connection = bootrom->connection; in find_firmware() local
179 &connection->bundle->dev); in find_firmware()
181 dev_err(&connection->bundle->dev, in find_firmware()
313 struct gb_connection *connection = op->connection; in gb_bootrom_ready_to_boot() local
416 struct gb_connection *connection; in gb_bootrom_probe() local
434 if (IS_ERR(connection)) { in gb_bootrom_probe()
435 ret = PTR_ERR(connection); in gb_bootrom_probe()
[all …]
A Daudio_codec.h94 struct gb_connection *connection; member
180 int gb_audio_gb_get_topology(struct gb_connection *connection,
182 int gb_audio_gb_get_control(struct gb_connection *connection,
185 int gb_audio_gb_set_control(struct gb_connection *connection,
188 int gb_audio_gb_enable_widget(struct gb_connection *connection,
192 int gb_audio_gb_get_pcm(struct gb_connection *connection,
196 int gb_audio_gb_set_pcm(struct gb_connection *connection,
202 int gb_audio_gb_activate_tx(struct gb_connection *connection,
204 int gb_audio_gb_deactivate_tx(struct gb_connection *connection,
208 int gb_audio_gb_activate_rx(struct gb_connection *connection,
[all …]
A 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()
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
117 ret = gb_operation_sync(connection, GB_AUDIO_TYPE_GET_PCM, in gb_audio_gb_get_pcm()
143 return gb_operation_sync(connection, GB_AUDIO_TYPE_SET_PCM, in gb_audio_gb_set_pcm()
161 int gb_audio_gb_activate_tx(struct gb_connection *connection, in gb_audio_gb_activate_tx() argument
[all …]
A Daudio_apbridgea.c24 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_config()
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()
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()
80 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_tx_data_size()
93 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_prepare_tx()
107 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_start_tx()
119 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_stop_tx()
132 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_shutdown_tx()
[all …]
A Dfw-core.c35 if (!connection) in gb_fw_spi_connection_init()
42 ret = gb_spilib_master_init(connection, &connection->bundle->dev, in gb_fw_spi_connection_init()
54 if (!connection) in gb_fw_spi_connection_exit()
93 if (IS_ERR(connection)) { in gb_fw_core_probe()
94 ret = PTR_ERR(connection); in gb_fw_core_probe()
114 if (IS_ERR(connection)) { in gb_fw_core_probe()
116 PTR_ERR(connection)); in gb_fw_core_probe()
133 if (IS_ERR(connection)) { in gb_fw_core_probe()
135 PTR_ERR(connection)); in gb_fw_core_probe()
151 if (IS_ERR(connection)) { in gb_fw_core_probe()
[all …]
A 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
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()
101 gb_connection_destroy(connection); in gb_log_probe()
110 struct gb_connection *connection = log->connection; in gb_log_disconnect() local
112 gb_connection_disable(connection); in gb_log_disconnect()
[all …]
A 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()
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()
59 gb_spilib_master_exit(connection); in gb_spi_remove()
60 gb_connection_disable(connection); in gb_spi_remove()
[all …]
A Di2c.c18 struct gb_connection *connection; member
176 struct gb_connection *connection = gb_i2c_dev->connection; in gb_i2c_transfer_operation() local
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()
247 ret = PTR_ERR(connection); in gb_i2c_probe()
251 gb_i2c_dev->connection = connection; in gb_i2c_probe()
282 gb_connection_disable(connection); in gb_i2c_probe()
284 gb_connection_destroy(connection); in gb_i2c_probe()
294 struct gb_connection *connection = gb_i2c_dev->connection; in gb_i2c_remove() local
[all …]
A Dusb.c34 struct gb_connection *connection; member
161 struct gb_connection *connection; in gb_usb_probe() local
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()
187 retval = gb_connection_enable(connection); in gb_usb_probe()
210 gb_connection_disable(connection); in gb_usb_probe()
212 gb_connection_destroy(connection); in gb_usb_probe()
222 struct gb_connection *connection = gb_usb_dev->connection; in gb_usb_remove() local
226 gb_connection_disable(connection); in gb_usb_remove()
[all …]
A Dvibrator.c19 struct gb_connection *connection; member
120 struct gb_connection *connection; in gb_vibrator_probe() local
138 if (IS_ERR(connection)) { in gb_vibrator_probe()
139 retval = PTR_ERR(connection); in gb_vibrator_probe()
142 gb_connection_set_data(connection, vib); in gb_vibrator_probe()
144 vib->connection = connection; in gb_vibrator_probe()
148 retval = gb_connection_enable(connection); in gb_vibrator_probe()
179 gb_connection_disable(connection); in gb_vibrator_probe()
181 gb_connection_destroy(connection); in gb_vibrator_probe()
202 gb_connection_disable(vib->connection); in gb_vibrator_disconnect()
[all …]
A Dauthentication.c28 struct gb_connection *connection; member
86 struct gb_connection *connection = cap->connection; in cap_get_endpoint_uid() local
105 struct gb_connection *connection = cap->connection; in cap_get_ims_certificate() local
144 struct gb_connection *connection = cap->connection; in cap_authenticate() local
303 if (!connection) in gb_cap_connection_init()
310 cap->parent = &connection->bundle->dev; in gb_cap_connection_init()
311 cap->connection = connection; in gb_cap_connection_init()
320 ret = gb_connection_enable(connection); in gb_cap_connection_init()
353 gb_connection_disable(connection); in gb_cap_connection_init()
368 if (!connection) in gb_cap_connection_exit()
[all …]
A Dlight.c63 struct gb_connection *connection; member
78 return light->glights->connection; in get_conn_from_light()
1158 struct gb_connection *connection = glights->connection; in gb_lights_create_all() local
1190 struct gb_connection *connection = glights->connection; in gb_lights_register_all() local
1210 struct gb_connection *connection = op->connection; in gb_lights_request_handler() local
1265 struct gb_connection *connection; in gb_lights_probe() local
1284 if (IS_ERR(connection)) { in gb_lights_probe()
1285 ret = PTR_ERR(connection); in gb_lights_probe()
1289 glights->connection = connection; in gb_lights_probe()
1322 gb_connection_disable(connection); in gb_lights_probe()
[all …]
A Draw.c19 struct gb_connection *connection; member
91 struct gb_connection *connection = op->connection; in gb_raw_request_handler() local
125 struct gb_connection *connection = raw->connection; in gb_raw_send() local
152 struct gb_connection *connection; in gb_raw_probe() local
170 if (IS_ERR(connection)) { in gb_raw_probe()
171 retval = PTR_ERR(connection); in gb_raw_probe()
178 raw->connection = connection; in gb_raw_probe()
211 gb_connection_disable(connection); in gb_raw_probe()
217 gb_connection_destroy(connection); in gb_raw_probe()
227 struct gb_connection *connection = raw->connection; in gb_raw_disconnect() local
[all …]
A Dpwm.c18 struct gb_connection *connection; member
250 struct gb_connection *connection; in gb_pwm_probe() local
262 if (IS_ERR(connection)) { in gb_pwm_probe()
263 ret = PTR_ERR(connection); in gb_pwm_probe()
267 pwmc->connection = connection; in gb_pwm_probe()
271 ret = gb_connection_enable(connection); in gb_pwm_probe()
298 gb_connection_disable(connection); in gb_pwm_probe()
300 gb_connection_destroy(connection); in gb_pwm_probe()
309 struct gb_connection *connection = pwmc->connection; in gb_pwm_remove() local
317 gb_connection_disable(connection); in gb_pwm_remove()
[all …]
A Dpower_supply.c50 struct gb_connection *connection; member
312 return gbpsy->supplies->connection; in get_conn_from_psy()
374 dev_err(&connection->bundle->dev, in gb_power_supply_state_change()
483 ret = gb_operation_sync(connection, in gb_power_supply_description_get()
935 struct gb_connection *connection = supplies->connection; in gb_power_supplies_setup() local
969 struct gb_connection *connection = supplies->connection; in gb_power_supplies_register() local
990 struct gb_connection *connection = op->connection; in gb_supplies_request_handler() local
1056 struct gb_connection *connection; in gb_power_supply_probe() local
1073 if (IS_ERR(connection)) { in gb_power_supply_probe()
1074 ret = PTR_ERR(connection); in gb_power_supply_probe()
[all …]

Completed in 96 milliseconds

12345678910>>...21