/linux/drivers/greybus/ |
H A D | connection.c | 65 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 …]
|
H A D | operation.c | 44 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 …]
|
H A D | control.c | 28 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/ |
H A D | connection.h | 77 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/ |
H A D | drbd_receiver.c | 835 err = decode_header(connection, connection->data.rbuf, &pi); in receive_first_packet() 932 .connection = connection, in conn_connect() 1242 err = decode_header(connection, connection->data.rbuf, pi); in drbd_recv_header_maybe_unplug() 1768 connection->current_epoch->connection = connection; in receive_Barrier() 2270 struct drbd_connection *connection = peer_req->peer_device->connection; in e_send_retry_write() local 3233 struct drbd_connection *const connection = peer_device->connection; in drbd_uuid_compare() local 5541 struct drbd_connection *connection = thi->connection; in drbd_receiver() local 5560 drbdd(connection); in drbd_receiver() 5963 struct drbd_connection *connection = thi->connection; in drbd_ack_receiver() local 6044 if (decode_header(connection, connection->meta.rbuf, &pi)) in drbd_ack_receiver() [all …]
|
H A D | drbd_main.c | 354 if (thi->connection) in drbd_thread_setup() 2451 connection = NULL; in conn_get_by_addrs() 2454 return connection; in conn_get_by_addrs() 2585 if (!connection) in conn_create() 2621 connection->receiver.connection = connection; in conn_create() 2623 connection->worker.connection = connection; in conn_create() 2625 connection->ack_receiver.connection = connection; in conn_create() 2637 return connection; in conn_create() 2646 kfree(connection); in conn_create() 2665 kfree(connection); in drbd_destroy_connection() [all …]
|
H A D | drbd_worker.c | 107 struct drbd_connection *connection = peer_device->connection; in drbd_endio_write_sec_final() local 844 struct drbd_connection *connection = first_peer_device(device)->connection; in ping_peer() local 847 request_ping(connection); in ping_peer() 855 struct drbd_connection *connection = peer_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 1741 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in drbd_start_resync() local 1750 if (!connection) { in drbd_start_resync() [all …]
|
H A D | drbd_nl.c | 290 : 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 1237 drbd_info(connection, in drbd_discard_supported() 1744 connection = peer_device->connection; in drbd_adm_attach() 2371 connection = adm_ctx.connection; in drbd_adm_net_opts() 2702 drbd_err(connection, in conn_try_disconnect() 2726 connection = adm_ctx.connection; in drbd_adm_disconnect() 3197 if (connection) { in nla_put_drbd_cfg_context() 3930 if (connection) { in get_one_status() [all …]
|
H A D | drbd_state.c | 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() 273 if (connection) in forget_state_change() 1267 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in _drbd_set_state() local 1461 connection->connect_cnt++; in _drbd_set_state() 1566 struct drbd_connection *connection = p->connection; in notify_connection_state_change() local 1714 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in after_state_ch() local 2051 struct drbd_connection *connection = acscw->connection; in w_after_conn_state_ch() local 2107 conn_md_sync(connection); in w_after_conn_state_ch() [all …]
|
/linux/drivers/staging/greybus/ |
H A D | audio_gb.c | 12 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 …]
|
H A D | audio_codec.h | 95 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, 193 int gb_audio_gb_get_pcm(struct gb_connection *connection, 197 int gb_audio_gb_set_pcm(struct gb_connection *connection, 203 int gb_audio_gb_activate_tx(struct gb_connection *connection, 205 int gb_audio_gb_deactivate_tx(struct gb_connection *connection, 209 int gb_audio_gb_activate_rx(struct gb_connection *connection, [all …]
|
H A D | audio_apbridgea.c | 24 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 …]
|
H A D | bootrom.c | 34 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 …]
|
H A D | fw-core.c | 35 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 …]
|
H A D | spi.c | 20 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 …]
|
H A D | log.c | 15 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 …]
|
H A D | usb.c | 34 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 …]
|
H A D | i2c.c | 18 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 …]
|
H A D | pwm.c | 18 struct gb_connection *connection; member 247 struct gb_connection *connection; in gb_pwm_probe() local 255 if (IS_ERR(connection)) in gb_pwm_probe() 256 return PTR_ERR(connection); in gb_pwm_probe() 263 ret = gb_pwm_get_npwm(connection); in gb_pwm_probe() 276 pwmc->connection = connection; in gb_pwm_probe() 293 gb_connection_disable(connection); in gb_pwm_probe() 295 gb_connection_destroy(connection); in gb_pwm_probe() 303 struct gb_connection *connection = pwmc->connection; in gb_pwm_remove() local 312 gb_connection_disable(connection); in gb_pwm_remove() [all …]
|
H A D | vibrator.c | 19 struct gb_connection *connection; member 119 struct gb_connection *connection; in gb_vibrator_probe() local 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() 143 vib->connection = connection; in gb_vibrator_probe() 147 retval = gb_connection_enable(connection); in gb_vibrator_probe() 178 gb_connection_disable(connection); in gb_vibrator_probe() 180 gb_connection_destroy(connection); in gb_vibrator_probe() 201 gb_connection_disable(vib->connection); in gb_vibrator_disconnect() [all …]
|
H A D | authentication.c | 28 struct gb_connection *connection; member 89 struct gb_connection *connection = cap->connection; in cap_get_endpoint_uid() local 108 struct gb_connection *connection = cap->connection; in cap_get_ims_certificate() local 147 struct gb_connection *connection = cap->connection; in cap_authenticate() local 306 if (!connection) in gb_cap_connection_init() 313 cap->parent = &connection->bundle->dev; in gb_cap_connection_init() 314 cap->connection = connection; in gb_cap_connection_init() 323 ret = gb_connection_enable(connection); in gb_cap_connection_init() 356 gb_connection_disable(connection); in gb_cap_connection_init() 371 if (!connection) in gb_cap_connection_exit() [all …]
|
H A D | raw.c | 19 struct gb_connection *connection; member 94 struct gb_connection *connection = op->connection; in gb_raw_request_handler() local 128 struct gb_connection *connection = raw->connection; in gb_raw_send() local 155 struct gb_connection *connection; in gb_raw_probe() local 173 if (IS_ERR(connection)) { in gb_raw_probe() 174 retval = PTR_ERR(connection); in gb_raw_probe() 181 raw->connection = connection; in gb_raw_probe() 214 gb_connection_disable(connection); in gb_raw_probe() 220 gb_connection_destroy(connection); in gb_raw_probe() 230 struct gb_connection *connection = raw->connection; in gb_raw_disconnect() local [all …]
|
H A D | light.c | 59 struct gb_connection *connection; member 74 return light->glights->connection; in get_conn_from_light() 1143 struct gb_connection *connection = glights->connection; in gb_lights_create_all() local 1175 struct gb_connection *connection = glights->connection; in gb_lights_register_all() local 1195 struct gb_connection *connection = op->connection; in gb_lights_request_handler() local 1250 struct gb_connection *connection; in gb_lights_probe() local 1269 if (IS_ERR(connection)) { in gb_lights_probe() 1270 ret = PTR_ERR(connection); in gb_lights_probe() 1274 glights->connection = connection; in gb_lights_probe() 1307 gb_connection_disable(connection); in gb_lights_probe() [all …]
|
H A D | power_supply.c | 50 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 …]
|
/linux/sound/firewire/ |
H A D | cmp.h | 38 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);
|