Home
last modified time | relevance | path

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

12345678910>>...14

/linux/drivers/greybus/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dsvc.c137 ret = gb_operation_sync(svc->connection, in gb_svc_pwrmon_rail_count_get()
156 ret = gb_operation_sync(svc->connection, in gb_svc_pwrmon_rail_names_get()
184 ret = gb_operation_sync(svc->connection, GB_SVC_TYPE_PWRMON_SAMPLE_GET, in gb_svc_pwrmon_sample_get()
221 ret = gb_operation_sync(svc->connection, in gb_svc_pwrmon_intf_sample_get()
266 return gb_operation_sync(svc->connection, GB_SVC_TYPE_INTF_DEVICE_ID, in gb_svc_intf_device_id()
281 ret = gb_operation_sync_timeout(svc->connection, in gb_svc_intf_eject()
306 ret = gb_operation_sync(svc->connection, type, in gb_svc_intf_vsys_set()
329 ret = gb_operation_sync(svc->connection, type, in gb_svc_intf_refclk_set()
352 ret = gb_operation_sync(svc->connection, type, in gb_svc_intf_unipro_set()
370 ret = gb_operation_sync_timeout(svc->connection, in gb_svc_intf_activate()
[all …]
H A Dgreybus_trace.h97 __field(u16, cport_id) /* CPort of HD side of connection */
107 __entry->cport_id = operation->connection->hd_cport_id;
165 TP_PROTO(struct gb_connection *connection),
167 TP_ARGS(connection),
173 __dynamic_array(char, name, sizeof(connection->name))
179 __entry->hd_bus_id = connection->hd->bus_id;
180 __entry->bundle_id = connection->bundle ?
181 connection->bundle->id : BUNDLE_ID_NONE;
182 memcpy(__get_str(name), connection->name,
183 sizeof(connection
[all...]
/linux/include/linux/greybus/
H A 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 …]
H A Doperation.h93 struct gb_connection *connection; member
139 void gb_connection_recv(struct gb_connection *connection,
144 size_t gb_operation_get_payload_size_max(struct gb_connection *connection);
146 gb_operation_create_flags(struct gb_connection *connection,
152 gb_operation_create(struct gb_connection *connection, in gb_operation_create() argument
156 return gb_operation_create_flags(connection, type, request_size, in gb_operation_create()
161 gb_operation_create_core(struct gb_connection *connection,
191 int gb_operation_sync_timeout(struct gb_connection *connection, int type,
195 int gb_operation_unidirectional_timeout(struct gb_connection *connection,
199 static inline int gb_operation_sync(struct gb_connection *connection, int type, in gb_operation_sync() argument
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_receiver.c57 static int drbd_do_features(struct drbd_connection *connection);
58 static int drbd_do_auth(struct drbd_connection *connection);
60 static void conn_wait_active_ee_empty(struct drbd_connection *connection);
121 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages()
325 static int drbd_recv(struct drbd_connection *connection, void *buf, size_t size) in drbd_recv() argument
329 rv = drbd_recv_short(connection->data.socket, buf, size, 0); in drbd_recv()
333 drbd_info(connection, "sock was reset by peer\n"); in drbd_recv()
335 drbd_err(connection, "sock_recvmsg returned %d\n", rv); in drbd_recv()
337 if (test_bit(DISCONNECT_SENT, &connection->flags)) { in drbd_recv()
340 t = rcu_dereference(connection in drbd_recv()
358 drbd_recv_all(struct drbd_connection * connection,void * buf,size_t size) drbd_recv_all() argument
371 drbd_recv_all_warn(struct drbd_connection * connection,void * buf,size_t size) drbd_recv_all_warn() argument
400 drbd_try_connect(struct drbd_connection * connection) drbd_try_connect() argument
489 struct drbd_connection *connection; global() member
507 prepare_listen_socket(struct drbd_connection * connection,struct accept_wait_data * ad) prepare_listen_socket() argument
578 drbd_wait_for_connect(struct drbd_connection * connection,struct accept_wait_data * ad) drbd_wait_for_connect() argument
617 send_first_packet(struct drbd_connection * connection,struct drbd_socket * sock,enum drbd_packet cmd) send_first_packet() argument
625 receive_first_packet(struct drbd_connection * connection,struct socket * sock) receive_first_packet() argument
676 connection_established(struct drbd_connection * connection,struct socket ** sock1,struct socket ** sock2) connection_established() argument
735 conn_connect(struct drbd_connection * connection) conn_connect() argument
970 decode_header(struct drbd_connection * connection,void * header,struct packet_info * pi) decode_header() argument
1006 drbd_unplug_all_devices(struct drbd_connection * connection) drbd_unplug_all_devices() argument
1014 drbd_recv_header(struct drbd_connection * connection,struct packet_info * pi) drbd_recv_header() argument
1029 drbd_recv_header_maybe_unplug(struct drbd_connection * connection,struct packet_info * pi) drbd_recv_header_maybe_unplug() argument
1124 drbd_flush(struct drbd_connection * connection) drbd_flush() argument
1171 drbd_may_finish_epoch(struct drbd_connection * connection,struct drbd_epoch * epoch,enum epoch_event ev) drbd_may_finish_epoch() argument
1552 conn_wait_active_ee_empty(struct drbd_connection * connection) conn_wait_active_ee_empty() argument
1570 receive_Barrier(struct drbd_connection * connection,struct packet_info * pi) receive_Barrier() argument
1933 receive_DataReply(struct drbd_connection * connection,struct packet_info * pi) receive_DataReply() argument
1965 receive_RSDataReply(struct drbd_connection * connection,struct packet_info * pi) receive_RSDataReply() argument
2087 struct drbd_connection *connection = peer_req->peer_device->connection; e_send_retry_write() local
2228 wire_flags_to_bio(struct drbd_connection * connection,u32 dpf) wire_flags_to_bio() argument
2265 struct drbd_connection *connection = peer_req->peer_device->connection; handle_write_conflicts() local
2375 receive_Data(struct drbd_connection * connection,struct packet_info * pi) receive_Data() argument
2623 receive_DataRequest(struct drbd_connection * connection,struct packet_info * pi) receive_DataRequest() argument
3054 struct drbd_connection *const connection = peer_device->connection; drbd_uuid_compare() local
3450 receive_protocol(struct drbd_connection * connection,struct packet_info * pi) receive_protocol() argument
3621 ignore_remaining_packet(struct drbd_connection * connection,struct packet_info * pi) ignore_remaining_packet() argument
3652 config_unknown_volume(struct drbd_connection * connection,struct packet_info * pi) config_unknown_volume() argument
3659 receive_SyncParam(struct drbd_connection * connection,struct packet_info * pi) receive_SyncParam() argument
3882 receive_sizes(struct drbd_connection * connection,struct packet_info * pi) receive_sizes() argument
4053 receive_uuids(struct drbd_connection * connection,struct packet_info * pi) receive_uuids() argument
4158 receive_req_state(struct drbd_connection * connection,struct packet_info * pi) receive_req_state() argument
4191 receive_req_conn_state(struct drbd_connection * connection,struct packet_info * pi) receive_req_conn_state() argument
4215 receive_state(struct drbd_connection * connection,struct packet_info * pi) receive_state() argument
4412 receive_sync_uuid(struct drbd_connection * connection,struct packet_info * pi) receive_sync_uuid() argument
4636 receive_bitmap(struct drbd_connection * connection,struct packet_info * pi) receive_bitmap() argument
4724 receive_skip(struct drbd_connection * connection,struct packet_info * pi) receive_skip() argument
4732 receive_UnplugRemote(struct drbd_connection * connection,struct packet_info * pi) receive_UnplugRemote() argument
4740 receive_out_of_sync(struct drbd_connection * connection,struct packet_info * pi) receive_out_of_sync() argument
4766 receive_rs_deallocated(struct drbd_connection * connection,struct packet_info * pi) receive_rs_deallocated() argument
4869 drbdd(struct drbd_connection * connection) drbdd() argument
4926 conn_disconnect(struct drbd_connection * connection) conn_disconnect() argument
5068 drbd_send_features(struct drbd_connection * connection) drbd_send_features() argument
5091 drbd_do_features(struct drbd_connection * connection) drbd_do_features() argument
5158 drbd_do_auth(struct drbd_connection * connection) drbd_do_auth() argument
5173 drbd_do_auth(struct drbd_connection * connection) drbd_do_auth() argument
5352 struct drbd_connection *connection = thi->connection; drbd_receiver() local
5383 got_conn_RqSReply(struct drbd_connection * connection,struct packet_info * pi) got_conn_RqSReply() argument
5400 got_RqSReply(struct drbd_connection * connection,struct packet_info * pi) got_RqSReply() argument
5429 got_Ping(struct drbd_connection * connection,struct packet_info * pi) got_Ping() argument
5435 got_PingAck(struct drbd_connection * connection,struct packet_info * pi) got_PingAck() argument
5445 got_IsInSync(struct drbd_connection * connection,struct packet_info * pi) got_IsInSync() argument
5498 got_BlockAck(struct drbd_connection * connection,struct packet_info * pi) got_BlockAck() argument
5544 got_NegAck(struct drbd_connection * connection,struct packet_info * pi) got_NegAck() argument
5580 got_NegDReply(struct drbd_connection * connection,struct packet_info * pi) got_NegDReply() argument
5602 got_NegRSDReply(struct drbd_connection * connection,struct packet_info * pi) got_NegRSDReply() argument
5639 got_BarrierAck(struct drbd_connection * connection,struct packet_info * pi) got_BarrierAck() argument
5663 got_OVResult(struct drbd_connection * connection,struct packet_info * pi) got_OVResult() argument
5715 got_skip(struct drbd_connection * connection,struct packet_info * pi) got_skip() argument
5725 set_rcvtimeo(struct drbd_connection * connection,bool ping_timeout) set_rcvtimeo() argument
5742 set_ping_timeout(struct drbd_connection * connection) set_ping_timeout() argument
5747 set_idle_timeout(struct drbd_connection * connection) set_idle_timeout() argument
5774 struct drbd_connection *connection = thi->connection; drbd_ack_receiver() local
5910 struct drbd_connection *connection = peer_device->connection; drbd_send_acks_wf() local
[all...]
H A 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()
449 &first_peer_device(device)->connection->sender_work, in resync_timer_fn()
589 struct drbd_connection *const connection = peer_device ? peer_device->connection in make_resync_request() local
845 struct drbd_connection *connection = first_peer_device(device)->connection; ping_peer() local
856 struct drbd_connection *connection = peer_device->connection; drbd_resync_finished() local
1348 drbd_send_barrier(struct drbd_connection * connection) drbd_send_barrier() argument
1383 re_init_if_first_write(struct drbd_connection * connection,unsigned int epoch) re_init_if_first_write() argument
1393 maybe_send_barrier(struct drbd_connection * connection,unsigned int epoch) maybe_send_barrier() argument
1410 struct drbd_connection *const connection = peer_device->connection; w_send_out_of_sync() local
1441 struct drbd_connection *connection = peer_device->connection; w_send_dblock() local
1474 struct drbd_connection *connection = peer_device->connection; w_send_read_req() local
1700 use_checksum_based_resync(struct drbd_connection * connection,struct drbd_device * device) use_checksum_based_resync() argument
1723 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; drbd_start_resync() local
2038 do_unqueued_work(struct drbd_connection * connection) do_unqueued_work() argument
2067 wait_for_work(struct drbd_connection * connection,struct list_head * work_list) wait_for_work() argument
2154 struct drbd_connection *connection = thi->connection; drbd_worker() local
[all...]
H A 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 …]
H A Ddrbd_req.c159 static void wake_all_senders(struct drbd_connection *connection) in wake_all_senders() argument
161 wake_up(&connection->sender_work.q_wait); in wake_all_senders()
165 void start_new_tl_epoch(struct drbd_connection *connection) in start_new_tl_epoch() argument
168 if (connection->current_tle_writes == 0) in start_new_tl_epoch()
171 connection->current_tle_writes = 0; in start_new_tl_epoch()
172 atomic_inc(&connection->current_tle_nr); in start_new_tl_epoch()
173 wake_all_senders(connection); in start_new_tl_epoch()
244 req->epoch == atomic_read(&first_peer_device(device)->connection->current_tle_nr)) in drbd_req_complete()
245 start_new_tl_epoch(first_peer_device(device)->connection); in drbd_req_complete()
322 struct drbd_connection *connection = peer_device ? peer_device->connection : NULL; in set_if_null_req_next() local
[all …]
/linux/drivers/staging/greybus/
H A 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 …]
H A 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 …]
H A Dfw-core.c24 static int gb_fw_spi_connection_init(struct gb_connection *connection) in to_fw_mgmt_connection()
28 if (!connection) in to_fw_mgmt_connection()
31 ret = gb_connection_enable(connection); in gb_fw_spi_connection_init() argument
35 ret = gb_spilib_master_init(connection, &connection->bundle->dev, in gb_fw_spi_connection_init()
38 gb_connection_disable(connection); in gb_fw_spi_connection_init()
45 static void gb_fw_spi_connection_exit(struct gb_connection *connection) in gb_fw_spi_connection_init()
47 if (!connection) in gb_fw_spi_connection_init()
50 gb_spilib_master_exit(connection); in gb_fw_spi_connection_init()
51 gb_connection_disable(connection);
52 gb_fw_spi_connection_exit(struct gb_connection * connection) gb_fw_spi_connection_exit() argument
65 struct gb_connection *connection; gb_fw_core_probe() local
[all...]
H 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()
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 …]
H 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
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 …]
H A 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 …]
H A 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 …]
H A Dlight.c59 struct gb_connection *connection; member
69 return channel->light->glights->connection; in get_conn_from_channel()
74 return light->glights->connection; in get_conn_from_light()
112 struct gb_connection *connection = get_conn_from_channel(channel); in __gb_lights_flash_intensity_set() local
113 struct gb_bundle *bundle = connection->bundle; in __gb_lights_flash_intensity_set()
128 ret = gb_operation_sync(connection, GB_LIGHTS_TYPE_SET_FLASH_INTENSITY, in __gb_lights_flash_intensity_set()
300 struct gb_connection *connection = get_conn_from_channel(channel); in gb_lights_fade_set() local
301 struct gb_bundle *bundle = connection->bundle; in gb_lights_fade_set()
316 ret = gb_operation_sync(connection, GB_LIGHTS_TYPE_SET_FADE, in gb_lights_fade_set()
326 struct gb_connection *connection = get_conn_from_channel(channel); in gb_lights_color_set() local
[all …]
H A Draw.c19 struct gb_connection *connection; member
62 struct device *dev = &raw->connection->bundle->dev; in receive_data()
95 struct gb_connection *connection = op->connection; in gb_raw_request_handler() local
96 struct device *dev = &connection->bundle->dev; in gb_raw_request_handler()
97 struct gb_raw *raw = greybus_get_drvdata(connection->bundle); in gb_raw_request_handler()
129 struct gb_connection *connection = raw->connection; in gb_raw_send() local
144 retval = gb_operation_sync(connection, GB_RAW_TYPE_SEND, in gb_raw_send()
165 struct gb_connection *connection; in gb_raw_probe() local
196 connection = gb_connection_create(bundle, le16_to_cpu(cport_desc->id), in gb_raw_probe()
198 if (IS_ERR(connection)) { in gb_raw_probe()
[all …]
H A Dfw-management.c25 struct gb_connection *connection; member
110 struct gb_connection *connection = fw_mgmt->connection; in fw_mgmt_interface_fw_version_operation() local
114 ret = gb_operation_sync(connection, in fw_mgmt_interface_fw_version_operation()
170 ret = gb_operation_sync(fw_mgmt->connection, in fw_mgmt_load_and_validate_operation()
187 struct gb_connection *connection = op->connection; in fw_mgmt_interface_fw_loaded_operation() local
188 struct fw_mgmt *fw_mgmt = gb_connection_get_data(connection); in fw_mgmt_interface_fw_loaded_operation()
238 struct gb_connection *connection = fw_mgmt->connection; in fw_mgmt_backend_fw_version_operation() local
251 ret = gb_operation_sync(connection, in fw_mgmt_backend_fw_version_operation()
312 ret = gb_operation_sync(fw_mgmt->connection, in fw_mgmt_backend_fw_update_operation()
329 struct gb_connection *connection = op->connection; in fw_mgmt_backend_fw_updated_operation() local
[all …]
H A Dfw-download.c38 struct gb_connection *connection; member
164 struct gb_interface *intf = fw_download->connection->bundle->intf; in find_firmware()
223 struct gb_connection *connection = op->connection; in fw_download_find_firmware() local
224 struct fw_download *fw_download = gb_connection_get_data(connection); in fw_download_find_firmware()
270 struct gb_connection *connection = op->connection; in fw_download_fetch_firmware() local
271 struct fw_download *fw_download = gb_connection_get_data(connection); in fw_download_fetch_firmware()
353 struct gb_connection *connection = op->connection; in fw_download_release_firmware() local
354 struct fw_download *fw_download = gb_connection_get_data(connection); in fw_download_release_firmware()
398 dev_err(&op->connection->bundle->dev, in gb_fw_download_request_handler()
404 int gb_fw_download_connection_init(struct gb_connection *connection) in gb_fw_download_connection_init() argument
[all …]
H A Dgpio.c36 struct gb_connection *connection; member
55 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_LINE_COUNT, in gb_gpio_line_count_operation()
73 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_ACTIVATE, in gb_gpio_activate_operation()
94 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_DEACTIVATE, in gb_gpio_deactivate_operation()
117 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_GET_DIRECTION, in gb_gpio_get_direction_operation()
139 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_DIRECTION_IN, in gb_gpio_direction_in_operation()
154 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_DIRECTION_OUT, in gb_gpio_direction_out_operation()
171 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_GET_VALUE, in gb_gpio_get_value_operation()
197 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_SET_VALUE, in gb_gpio_set_value_operation()
217 ret = gb_operation_sync(ggc->connection, GB_GPIO_TYPE_SET_DEBOUNCE, in gb_gpio_set_debounce_operation()
[all …]
H A Dfirmware.h26 int gb_fw_mgmt_connection_init(struct gb_connection *connection);
27 void gb_fw_mgmt_connection_exit(struct gb_connection *connection);
31 int gb_fw_download_connection_init(struct gb_connection *connection);
32 void gb_fw_download_connection_exit(struct gb_connection *connection);
37 int gb_cap_connection_init(struct gb_connection *connection);
38 void gb_cap_connection_exit(struct gb_connection *connection);
H A Duart.c48 struct gb_connection *connection; member
74 struct gb_connection *connection = op->connection; in gb_uart_receive_data_handler()
75 struct gb_tty *gb_tty = gb_connection_get_data(connection); in gb_uart_receive_data_handler() local
130 struct gb_connection *connection = op->connection; in gb_uart_serial_state_handler()
131 struct gb_tty *gb_tty = gb_connection_get_data(connection); in gb_uart_serial_state_handler() local
150 struct gb_connection *connection = op->connection; in gb_uart_receive_credits_handler()
151 struct gb_tty *gb_tty = gb_connection_get_data(connection); in gb_uart_receive_credits_handler() local
201 struct gb_connection *connection = op->connection; gb_uart_request_handler() local
807 struct gb_connection *connection; gb_uart_probe() local
922 struct gb_connection *connection = gb_tty->connection; gb_uart_remove() local
[all...]

12345678910>>...14