Home
last modified time | relevance | path

Searched full:connection (Results 1 – 25 of 3864) sorted by relevance

12345678910>>...155

/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.c37 * Increment operation active count and add to connection list unless the
38 * connection is going away.
44 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()
[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->name));
[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.h74 * connection between two UniPro interfaces.
77 * end of the connection coupled with a reply message returned to
79 * dependent on the protocol associated with the connection.
82 * directly usable by protocol handlers: the operation's connection
93 struct gb_connection *connection; member
111 struct list_head links; /* connection->operations */
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
[all …]
/linux/drivers/staging/greybus/
H A 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 …]
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 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 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 Di2c.c18 struct gb_connection *connection; member
39 * Note: gb_i2c_dev->connection is assumed to have been valid.
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()
[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 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 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 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-download.c38 struct gb_connection *connection; member
72 * Incoming requests are serialized for a connection, and the only race possible
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()
[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->net_conf)->ping_timeo * HZ/10; in drbd_recv()
[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_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 : NULL; in make_resync_request() local
617 if (connection->agreed_features & DRBD_FF_THIN_RESYNC) { in make_resync_request()
631 mutex_lock(&connection->data.mutex); in make_resync_request()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_devids.h27 /* Intel(R) Ethernet Connection E823-L for backplane */
29 /* Intel(R) Ethernet Connection E823-L for SFP */
31 /* Intel(R) Ethernet Connection E823-L/X557-AT 10GBASE-T */
33 /* Intel(R) Ethernet Connection E823-L 1GbE */
35 /* Intel(R) Ethernet Connection E823-L for QSFP */
76 /* Intel(R) Ethernet Connection E823-C for backplane */
78 /* Intel(R) Ethernet Connection E823-C for QSFP */
80 /* Intel(R) Ethernet Connection E823-C for SFP */
82 /* Intel(R) Ethernet Connection E823-C/X557-AT 10GBASE-T */
84 /* Intel(R) Ethernet Connection E823-C 1GbE */
[all …]
/linux/include/rdma/
H A Dib_cm.h312 * Communication identifiers are used to track connection states, service
320 * ib_destroy_cm_id - Destroy a connection identifier.
321 * @cm_id: Connection identifier to destroy.
323 * This call blocks until the connection identifier is destroyed.
336 * connection and service ID resolution requests.
337 * @cm_id: Connection identifier associated with the listen request.
338 * @service_id: Service identifier matched against incoming connection
374 * ib_send_cm_req - Sends a connection request to the remote node.
375 * @cm_id: Connection identifier that will be associated with the
376 * connection request.
[all …]
/linux/include/uapi/linux/netfilter/
H A Dnf_conntrack_common.h4 /* Connection state tracking for netfilter. This is separated from,
8 /* Part of an established connection (either direction). */
11 /* Like NEW, but related to an existing connection, or ICMP error
15 /* Started a new connection to track (only
41 /* Bitset representing status of connection. */
43 /* It's an expected connection: bit 0 set. This bit never changed */
55 /* Connection is confirmed: originating packet has left box */
59 /* Connection needs src nat in orig dir. This bit never changed. */
63 /* Connection needs dst nat in orig dir. This bit never changed. */
70 /* Connection needs TCP sequence adjusted. */
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dsdk.h29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
87 * @conn: FPGA Connection this packet was sent to
98 * struct mlx5_fpga_conn_attr - FPGA connection attributes
99 * Describes the attributes of a connection
102 /** @tx_size: Size of connection TX queue, in packets */
104 /** @rx_size: Size of connection RX queue, in packets */
122 * mlx5_fpga_sbu_conn_create() - Initialize a new FPGA SBU connection
124 * @attr: Attributes of the new connection
126 * Sets up a new FPGA SBU connection with the specified attributes.
130 * The caller must eventually destroy the connection by calling
[all …]

12345678910>>...155