Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/linux/net/smc/
H A Dsmc_cdc.c31 struct smc_connection *conn = cdcpend->conn; in smc_cdc_tx_handler() local
36 sndbuf_desc = conn->sndbuf_desc; in smc_cdc_tx_handler()
37 smc = container_of(conn, struct smc_sock, conn); in smc_cdc_tx_handler()
41 &cdcpend->conn->tx_curs_fin, in smc_cdc_tx_handler()
45 atomic_add(diff, &cdcpend->conn->sndbuf_space); in smc_cdc_tx_handler()
48 smc_curs_copy(&conn->tx_curs_fin, &cdcpend->cursor, conn); in smc_cdc_tx_handler()
49 smc_curs_copy(&conn->local_tx_ctrl_fin, &cdcpend->p_cursor, in smc_cdc_tx_handler()
50 conn); in smc_cdc_tx_handler()
51 conn->tx_cdc_seq_fin = cdcpend->ctrl_seq; in smc_cdc_tx_handler()
54 if (atomic_dec_and_test(&conn->cdc_pend_tx_wr)) { in smc_cdc_tx_handler()
[all …]
H A Dsmc_rx.c62 struct smc_connection *conn = &smc->conn; in smc_rx_update_consumer() local
67 smc_curs_add(conn->rmb_desc->len, &cons, len); in smc_rx_update_consumer()
70 if (conn->urg_state == SMC_URG_VALID || conn->urg_rx_skip_pend) { in smc_rx_update_consumer()
71 diff = smc_curs_comp(conn->rmb_desc->len, &cons, in smc_rx_update_consumer()
72 &conn->urg_curs); in smc_rx_update_consumer()
77 conn->urg_state = SMC_URG_READ; in smc_rx_update_consumer()
83 smc_curs_add(conn->rmb_desc->len, &cons, 1); in smc_rx_update_consumer()
84 conn->urg_rx_skip_pend = false; in smc_rx_update_consumer()
87 conn->urg_state = SMC_URG_READ; in smc_rx_update_consumer()
91 smc_curs_copy(&conn->local_tx_ctrl.cons, &cons, conn); in smc_rx_update_consumer()
[all …]
H A Dsmc_close.c57 if (!smc_tx_prepared_sends(&smc->conn)) in smc_close_stream_wait()
61 smc_tx_pending(&smc->conn); in smc_close_stream_wait()
69 !smc_tx_prepared_sends(&smc->conn) || in smc_close_stream_wait()
72 smc->conn.killed, in smc_close_stream_wait()
88 static int smc_close_wr(struct smc_connection *conn) in smc_close_wr() argument
90 conn->local_tx_ctrl.conn_state_flags.peer_done_writing = 1; in smc_close_wr()
92 return smc_cdc_get_slot_and_msg_send(conn); in smc_close_wr()
95 static int smc_close_final(struct smc_connection *conn) in smc_close_final() argument
97 if (atomic_read(&conn->bytes_to_rcv)) in smc_close_final()
98 conn->local_tx_ctrl.conn_state_flags.peer_conn_abort = 1; in smc_close_final()
[all …]
/linux/net/rxrpc/
H A Dconn_object.c26 void rxrpc_poke_conn(struct rxrpc_connection *conn, enum rxrpc_conn_trace why) in rxrpc_poke_conn() argument
28 struct rxrpc_local *local = conn->local; in rxrpc_poke_conn()
35 busy = !list_empty(&conn->attend_link); in rxrpc_poke_conn()
37 rxrpc_get_connection(conn, why); in rxrpc_poke_conn()
38 list_add_tail(&conn->attend_link, &local->conn_attend_q); in rxrpc_poke_conn()
46 struct rxrpc_connection *conn = in rxrpc_connection_timer() local
49 rxrpc_poke_conn(conn, rxrpc_conn_get_poke_timer); in rxrpc_connection_timer()
58 struct rxrpc_connection *conn; in rxrpc_alloc_connection() local
62 conn = kzalloc_obj(struct rxrpc_connection, gfp); in rxrpc_alloc_connection()
63 if (conn) { in rxrpc_alloc_connection()
[all …]
H A Dconn_event.c22 static bool rxrpc_set_conn_aborted(struct rxrpc_connection *conn, in rxrpc_set_conn_aborted() argument
28 if (conn->state != RXRPC_CONN_ABORTED) { in rxrpc_set_conn_aborted()
29 spin_lock_irq(&conn->state_lock); in rxrpc_set_conn_aborted()
30 if (conn->state != RXRPC_CONN_ABORTED) { in rxrpc_set_conn_aborted()
31 conn->abort_code = abort_code; in rxrpc_set_conn_aborted()
32 conn->error = err; in rxrpc_set_conn_aborted()
33 conn->completion = compl; in rxrpc_set_conn_aborted()
35 smp_store_release(&conn->state, RXRPC_CONN_ABORTED); in rxrpc_set_conn_aborted()
36 set_bit(RXRPC_CONN_DONT_REUSE, &conn->flags); in rxrpc_set_conn_aborted()
37 set_bit(RXRPC_CONN_EV_ABORT_CALLS, &conn->events); in rxrpc_set_conn_aborted()
[all …]
H A Dconn_client.c46 struct rxrpc_connection *conn) in rxrpc_put_client_connection_id() argument
48 idr_remove(&local->conn_ids, conn->proto.cid >> RXRPC_CIDSHIFT); in rxrpc_put_client_connection_id()
56 struct rxrpc_connection *conn; in rxrpc_destroy_client_conn_ids() local
60 idr_for_each_entry(&local->conn_ids, conn, id) { in rxrpc_destroy_client_conn_ids()
62 conn, refcount_read(&conn->ref)); in rxrpc_destroy_client_conn_ids()
154 struct rxrpc_connection *conn; in rxrpc_alloc_client_connection() local
161 conn = rxrpc_alloc_connection(rxnet, GFP_ATOMIC | __GFP_NOWARN); in rxrpc_alloc_client_connection()
162 if (!conn) in rxrpc_alloc_client_connection()
165 id = idr_alloc_cyclic(&local->conn_ids, conn, 1, 0x40000000, in rxrpc_alloc_client_connection()
168 kfree(conn); in rxrpc_alloc_client_connection()
[all …]
H A Dconn_service.c24 struct rxrpc_connection *conn = NULL; in rxrpc_find_service_conn_rcu() local
43 conn = rb_entry(p, struct rxrpc_connection, service_node); in rxrpc_find_service_conn_rcu()
45 if (conn->proto.index_key < k.index_key) in rxrpc_find_service_conn_rcu()
47 else if (conn->proto.index_key > k.index_key) in rxrpc_find_service_conn_rcu()
51 conn = NULL; in rxrpc_find_service_conn_rcu()
56 _leave(" = %d", conn ? conn->debug_id : -1); in rxrpc_find_service_conn_rcu()
57 return conn; in rxrpc_find_service_conn_rcu()
65 struct rxrpc_connection *conn) in rxrpc_publish_service_conn() argument
68 struct rxrpc_conn_proto k = conn->proto; in rxrpc_publish_service_conn()
88 rb_link_node_rcu(&conn->service_node, parent, pp); in rxrpc_publish_service_conn()
[all …]
H A Drxgk.c86 static struct rxgk_context *rxgk_rekey(struct rxrpc_connection *conn, in rxgk_rekey() argument
90 unsigned int key_number, current_key, mask = ARRAY_SIZE(conn->rxgk.keys) - 1; in rxgk_rekey()
95 mutex_lock(&conn->security_lock); in rxgk_rekey()
97 current_key = conn->rxgk.key_number; in rxgk_rekey()
111 gk = conn->rxgk.keys[key_number & mask]; in rxgk_rekey()
120 mutex_unlock(&conn->security_lock); in rxgk_rekey()
125 trace_rxrpc_rxgk_rekey(conn, current_key, in rxgk_rekey()
130 set_bit(RXRPC_CONN_DONT_REUSE, &conn->flags); in rxgk_rekey()
133 if (WARN_ON(conn->rxgk.keys[key_number & mask])) in rxgk_rekey()
138 gk = conn->rxgk.keys[current_key & mask]; in rxgk_rekey()
[all …]
/linux/fs/smb/server/
H A Dconnection.c31 struct ksmbd_conn *conn; in proc_show_clients() local
40 hash_for_each(conn_list, i, conn, hlist) { in proc_show_clients()
41 jiffies_to_timespec64(jiffies - conn->last_active, &t); in proc_show_clients()
45 if (!conn->inet_addr) in proc_show_clients()
46 seq_printf(m, "%-20pI6c", &conn->inet6_addr); in proc_show_clients()
49 seq_printf(m, "%-20pI4", &conn->inet_addr); in proc_show_clients()
51 conn->dialect, in proc_show_clients()
52 conn->total_credits, in proc_show_clients()
53 atomic_read(&conn->stats.open_files_count), in proc_show_clients()
54 atomic_read(&conn->req_running), in proc_show_clients()
[all …]
H A Dserver.c97 if (ksmbd_conn_exiting(work->conn) || in check_conn_state()
98 ksmbd_conn_need_reconnect(work->conn)) { in check_conn_state()
109 static int __process_request(struct ksmbd_work *work, struct ksmbd_conn *conn, in __process_request() argument
120 conn->ops->set_rsp_status(work, STATUS_INVALID_PARAMETER); in __process_request()
124 command = conn->ops->get_cmd_val(work); in __process_request()
128 if (command >= conn->max_cmds) { in __process_request()
129 conn->ops->set_rsp_status(work, STATUS_INVALID_PARAMETER); in __process_request()
133 cmds = &conn->cmds[command]; in __process_request()
136 conn->ops->set_rsp_status(work, STATUS_NOT_IMPLEMENTED); in __process_request()
140 if (work->sess && conn->ops->is_sign_req(work, command)) { in __process_request()
[all …]
/linux/net/bluetooth/
H A Dhci_conn.c48 struct hci_conn *conn; member
71 void hci_connect_le_scan_cleanup(struct hci_conn *conn, u8 status) in hci_connect_le_scan_cleanup() argument
74 struct hci_dev *hdev = conn->hdev; in hci_connect_le_scan_cleanup()
79 bdaddr = &conn->dst; in hci_connect_le_scan_cleanup()
80 bdaddr_type = conn->dst_type; in hci_connect_le_scan_cleanup()
94 if (params->conn) { in hci_connect_le_scan_cleanup()
95 hci_conn_drop(params->conn); in hci_connect_le_scan_cleanup()
96 hci_conn_put(params->conn); in hci_connect_le_scan_cleanup()
97 params->conn = NULL; in hci_connect_le_scan_cleanup()
110 mgmt_connect_failed(hdev, conn, status); in hci_connect_le_scan_cleanup()
[all …]
H A Dhci_event.c165 struct hci_conn *conn; in hci_cc_role_discovery() local
174 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_role_discovery()
175 if (conn) in hci_cc_role_discovery()
176 conn->role = rp->role; in hci_cc_role_discovery()
187 struct hci_conn *conn; in hci_cc_read_link_policy() local
196 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_link_policy()
197 if (conn) in hci_cc_read_link_policy()
198 conn->link_policy = __le16_to_cpu(rp->policy); in hci_cc_read_link_policy()
209 struct hci_conn *conn; in hci_cc_write_link_policy() local
223 conn in hci_cc_write_link_policy()
717 struct hci_conn *conn; hci_cc_read_enc_key_size() local
800 struct hci_conn *conn; hci_cc_read_auth_payload_timeout() local
822 struct hci_conn *conn; hci_cc_write_auth_payload_timeout() local
1075 struct hci_conn *conn; hci_cc_read_clock() local
1159 struct hci_conn *conn; hci_cc_pin_code_reply() local
1563 struct hci_conn *conn; hci_cc_le_set_adv_enable() local
1606 struct hci_conn *conn; hci_cc_le_set_ext_adv_enable() local
2161 struct hci_conn *conn; hci_cc_read_rssi() local
2184 struct hci_conn *conn; hci_cc_read_tx_power() local
2247 struct hci_conn *conn; hci_cs_create_conn() local
2319 struct hci_conn *conn; hci_cs_auth_requested() local
2346 struct hci_conn *conn; hci_cs_set_conn_encrypt() local
2371 hci_outgoing_auth_needed(struct hci_dev * hdev,struct hci_conn * conn) hci_outgoing_auth_needed() argument
2433 hci_check_pending_name(struct hci_dev * hdev,struct hci_conn * conn,bdaddr_t * bdaddr,u8 * name,u8 name_len) hci_check_pending_name() argument
2480 struct hci_conn *conn; hci_cs_remote_name_req() local
2523 struct hci_conn *conn; hci_cs_read_remote_features() local
2550 struct hci_conn *conn; hci_cs_read_remote_ext_features() local
2634 struct hci_conn *conn; hci_cs_sniff_mode() local
2661 struct hci_conn *conn; hci_cs_exit_sniff_mode() local
2689 struct hci_conn *conn; hci_cs_disconnect() local
2799 struct hci_conn *conn; cs_le_create_conn() local
2875 struct hci_conn *conn; hci_cs_le_read_remote_features() local
2898 struct hci_conn *conn; hci_cs_le_start_enc() local
2928 struct hci_conn *conn; hci_cs_switch_role() local
3051 hci_read_enc_key_size(struct hci_dev * hdev,struct hci_conn * conn) hci_read_enc_key_size() argument
3083 struct hci_conn *conn; hci_conn_complete_evt() local
3247 struct hci_conn *conn; hci_conn_request_evt() local
3371 struct hci_conn *conn; hci_disconn_complete_evt() local
3461 struct hci_conn *conn; hci_auth_complete_evt() local
3525 struct hci_conn *conn; hci_remote_name_evt() local
3566 struct hci_conn *conn; hci_encrypt_change_evt() local
3668 struct hci_conn *conn; hci_change_link_key_complete_evt() local
3691 struct hci_conn *conn; hci_remote_features_evt() local
3784 struct hci_conn *conn, *tmp; hci_unbound_cis_failed() local
3803 struct hci_conn *conn; hci_cc_le_set_cig_params() local
3868 struct hci_conn *conn; hci_cc_le_setup_iso_path() local
3937 struct hci_conn *conn; hci_cs_le_read_all_remote_features() local
4310 struct hci_conn *conn; hci_cs_le_create_cis() local
4427 struct hci_conn *conn; hci_role_change_evt() local
4462 struct hci_conn *conn; hci_num_comp_pkts_evt() local
4539 struct hci_conn *conn; hci_mode_change_evt() local
4568 struct hci_conn *conn; hci_pin_code_request_evt() local
4603 conn_set_key(struct hci_conn * conn,u8 key_type,u8 pin_len) conn_set_key() argument
4640 struct hci_conn *conn; hci_link_key_request_evt() local
4697 struct hci_conn *conn; hci_link_key_notify_evt() local
4767 struct hci_conn *conn; hci_clock_offset_evt() local
4791 struct hci_conn *conn; hci_pkt_type_change_evt() local
4914 struct hci_conn *conn; hci_remote_ext_features_evt() local
4979 struct hci_conn *conn; hci_sync_conn_complete_evt() local
5164 struct hci_conn *conn; hci_key_refresh_complete_evt() local
5210 hci_get_auth_req(struct hci_conn * conn) hci_get_auth_req() argument
5228 bredr_oob_data_present(struct hci_conn * conn) bredr_oob_data_present() argument
5274 struct hci_conn *conn; hci_io_capa_request_evt() local
5347 struct hci_conn *conn; hci_io_capa_reply_evt() local
5369 struct hci_conn *conn; hci_user_confirm_request_evt() local
5461 struct hci_conn *conn; hci_user_passkey_notify_evt() local
5482 struct hci_conn *conn; hci_keypress_notify_evt() local
5521 struct hci_conn *conn; hci_simple_pair_complete_evt() local
5553 struct hci_conn *conn; hci_remote_host_features_evt() local
5624 le_conn_update_addr(struct hci_conn * conn,bdaddr_t * bdaddr,u8 bdaddr_type,bdaddr_t * local_rpa) le_conn_update_addr() argument
5684 struct hci_conn *conn; le_conn_complete_evt() local
5873 struct hci_conn *conn; hci_le_pa_sync_lost_evt() local
5895 struct hci_conn *conn; hci_le_ext_adv_term_evt() local
5977 struct hci_conn *pa_sync, *conn; hci_le_past_received_evt() local
6030 struct hci_conn *conn; hci_le_conn_update_complete_evt() local
6055 struct hci_conn *conn; check_pending_le_conn() local
6149 struct hci_conn *conn; process_adv_report() local
6481 struct hci_conn *conn; hci_le_ext_adv_report_evt() local
6508 struct hci_conn *pa_sync, *conn; hci_le_pa_sync_established_evt() local
6602 struct hci_conn *conn; hci_le_remote_feat_complete_evt() local
6645 struct hci_conn *conn; hci_le_ltk_request_evt() local
6812 struct hci_conn *conn; hci_le_phy_update_evt() local
6836 struct hci_conn *conn; hci_le_cis_established_evt() local
7014 struct hci_conn *conn; hci_le_create_big_complete_evt() local
7062 struct hci_conn *bis, *conn; hci_le_big_sync_established_evt() local
7214 struct hci_conn *conn; hci_le_read_all_remote_features_evt() local
[all...]
H A Dsco.c73 struct sco_conn *conn; member
82 struct sco_conn *conn = container_of(ref, struct sco_conn, ref); in sco_conn_free() local
84 BT_DBG("conn %p", conn); in sco_conn_free()
86 if (conn->sk) in sco_conn_free()
87 sco_pi(conn->sk)->conn = NULL; in sco_conn_free()
89 if (conn->hcon) { in sco_conn_free()
90 conn->hcon->sco_data = NULL; in sco_conn_free()
91 hci_conn_drop(conn->hcon); in sco_conn_free()
95 disable_delayed_work_sync(&conn->timeout_work); in sco_conn_free()
97 kfree(conn); in sco_conn_free()
[all …]
/linux/drivers/target/iscsi/
H A Discsi_target_login.c37 static struct iscsi_login *iscsi_login_init_conn(struct iscsit_conn *conn) in iscsi_login_init_conn() argument
46 conn->login = login; in iscsi_login_init_conn()
47 login->conn = conn; in iscsi_login_init_conn()
62 conn->conn_login = login; in iscsi_login_init_conn()
74 struct iscsit_conn *conn, in iscsi_login_check_initiator_version() argument
82 iscsit_tx_login_rsp(conn, ISCSI_STATUS_CLS_INITIATOR_ERR, in iscsi_login_check_initiator_version()
90 int iscsi_check_for_session_reinstatement(struct iscsit_conn *conn) in iscsi_check_for_session_reinstatement() argument
94 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_check_for_session_reinstatement()
100 INITIATORNAME, conn->param_list); in iscsi_check_for_session_reinstatement()
102 SESSIONTYPE, conn->param_list); in iscsi_check_for_session_reinstatement()
[all …]
H A Discsi_target_util.c61 iscsit_add_cmd_to_immediate_queue(cmd, cmd->conn, ISTATE_SEND_R2T); in iscsit_add_r2t_to_list()
155 struct iscsit_cmd *iscsit_allocate_cmd(struct iscsit_conn *conn, int state) in iscsit_allocate_cmd() argument
158 struct se_session *se_sess = conn->sess->se_sess; in iscsit_allocate_cmd()
167 size = sizeof(struct iscsit_cmd) + conn->conn_transport->priv_size; in iscsit_allocate_cmd()
173 cmd->conn = conn; in iscsit_allocate_cmd()
285 int iscsit_sequence_cmd(struct iscsit_conn *conn, struct iscsit_cmd *cmd, in iscsit_sequence_cmd() argument
292 mutex_lock(&conn->sess->cmdsn_mutex); in iscsit_sequence_cmd()
294 cmdsn_ret = iscsit_check_received_cmdsn(conn->sess, be32_to_cpu(cmdsn)); in iscsit_sequence_cmd()
298 if ((ret >= 0) && !list_empty(&conn->sess->sess_ooo_cmdsn_list)) in iscsit_sequence_cmd()
299 iscsit_execute_ooo_cmdsns(conn->sess); in iscsit_sequence_cmd()
[all …]
H A Discsi_target_nego.c101 static struct iscsi_node_auth *iscsi_get_node_auth(struct iscsit_conn *conn) in iscsi_get_node_auth() argument
107 if (conn->sess->sess_ops->SessionType) in iscsi_get_node_auth()
110 se_nacl = conn->sess->se_sess->se_node_acl; in iscsi_get_node_auth()
127 struct iscsit_conn *conn, in iscsi_handle_authentication() argument
136 auth = iscsi_get_node_auth(conn); in iscsi_handle_authentication()
141 strcpy(conn->sess->auth_type, "CHAP"); in iscsi_handle_authentication()
143 strcpy(conn->sess->auth_type, NONE); in iscsi_handle_authentication()
148 return chap_main_loop(conn, auth, in_buf, out_buf, in iscsi_handle_authentication()
154 static void iscsi_remove_failed_auth_entry(struct iscsit_conn *conn) in iscsi_remove_failed_auth_entry() argument
156 kfree(conn->auth_protocol); in iscsi_remove_failed_auth_entry()
[all …]
H A Discsi_target_erl0.c34 struct iscsit_conn *conn = cmd->conn; in iscsit_set_dataout_sequence_values() local
42 conn->sess->sess_ops->FirstBurstLength); in iscsit_set_dataout_sequence_values()
46 if (!conn->sess->sess_ops->DataSequenceInOrder) in iscsit_set_dataout_sequence_values()
52 conn->sess->sess_ops->MaxBurstLength) ? in iscsit_set_dataout_sequence_values()
54 conn->sess->sess_ops->MaxBurstLength) : cmd->se_cmd.data_length; in iscsit_set_dataout_sequence_values()
58 conn->sess->sess_ops->MaxBurstLength) >= in iscsit_set_dataout_sequence_values()
61 conn->sess->sess_ops->MaxBurstLength); in iscsit_set_dataout_sequence_values()
69 struct iscsit_conn *conn = cmd->conn; in iscsit_dataout_within_command_recovery_check() local
85 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_within_command_recovery_check()
103 if (conn->sess->sess_ops->DataPDUInOrder) { in iscsit_dataout_within_command_recovery_check()
[all …]
H A Discsi_target.c476 int iscsit_queue_rsp(struct iscsit_conn *conn, struct iscsit_cmd *cmd) in iscsit_queue_rsp() argument
478 return iscsit_add_cmd_to_response_queue(cmd, cmd->conn, cmd->i_state); in iscsit_queue_rsp()
482 void iscsit_aborted_task(struct iscsit_conn *conn, struct iscsit_cmd *cmd) in iscsit_aborted_task() argument
484 spin_lock_bh(&conn->cmd_lock); in iscsit_aborted_task()
487 spin_unlock_bh(&conn->cmd_lock); in iscsit_aborted_task()
498 iscsit_xmit_nondatain_pdu(struct iscsit_conn *conn, struct iscsit_cmd *cmd, in iscsit_xmit_nondatain_pdu() argument
510 if (conn->conn_ops->HeaderDigest) { in iscsit_xmit_nondatain_pdu()
537 if (conn->conn_ops->DataDigest) { in iscsit_xmit_nondatain_pdu()
553 ret = iscsit_send_tx_data(cmd, conn, 1); in iscsit_xmit_nondatain_pdu()
555 iscsit_tx_thread_wait_for_tcp(conn); in iscsit_xmit_nondatain_pdu()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dconn.c48 static int mlx5_fpga_conn_map_buf(struct mlx5_fpga_conn *conn, in mlx5_fpga_conn_map_buf() argument
57 dma_device = mlx5_core_dma_dev(conn->fdev->mdev); in mlx5_fpga_conn_map_buf()
62 mlx5_fpga_warn(conn->fdev, "DMA error on sg 0: %d\n", err); in mlx5_fpga_conn_map_buf()
74 mlx5_fpga_warn(conn->fdev, "DMA error on sg 1: %d\n", err); in mlx5_fpga_conn_map_buf()
84 static void mlx5_fpga_conn_unmap_buf(struct mlx5_fpga_conn *conn, in mlx5_fpga_conn_unmap_buf() argument
89 dma_device = mlx5_core_dma_dev(conn->fdev->mdev); in mlx5_fpga_conn_unmap_buf()
99 static int mlx5_fpga_conn_post_recv(struct mlx5_fpga_conn *conn, in mlx5_fpga_conn_post_recv() argument
106 err = mlx5_fpga_conn_map_buf(conn, buf); in mlx5_fpga_conn_post_recv()
110 if (unlikely(conn->qp.rq.pc - conn->qp.rq.cc >= conn->qp.rq.size)) { in mlx5_fpga_conn_post_recv()
111 mlx5_fpga_conn_unmap_buf(conn, buf); in mlx5_fpga_conn_post_recv()
[all …]
/linux/fs/notify/
H A Dmark.c118 static __u32 *fsnotify_conn_mask_p(struct fsnotify_mark_connector *conn) in fsnotify_conn_mask_p() argument
120 if (conn->type == FSNOTIFY_OBJ_TYPE_INODE) in fsnotify_conn_mask_p()
121 return &fsnotify_conn_inode(conn)->i_fsnotify_mask; in fsnotify_conn_mask_p()
122 else if (conn->type == FSNOTIFY_OBJ_TYPE_VFSMOUNT) in fsnotify_conn_mask_p()
123 return &fsnotify_conn_mount(conn)->mnt_fsnotify_mask; in fsnotify_conn_mask_p()
124 else if (conn->type == FSNOTIFY_OBJ_TYPE_SB) in fsnotify_conn_mask_p()
125 return &fsnotify_conn_sb(conn)->s_fsnotify_mask; in fsnotify_conn_mask_p()
126 else if (conn->type == FSNOTIFY_OBJ_TYPE_MNTNS) in fsnotify_conn_mask_p()
127 return &fsnotify_conn_mntns(conn)->n_fsnotify_mask; in fsnotify_conn_mask_p()
131 __u32 fsnotify_conn_mask(struct fsnotify_mark_connector *conn) in fsnotify_conn_mask() argument
[all …]
/linux/drivers/gpu/drm/bridge/
H A Ddisplay-connector.c45 struct display_connector *conn = to_display_connector(bridge); in display_connector_detect() local
47 if (conn->hpd_gpio) { in display_connector_detect()
48 if (gpiod_get_value_cansleep(conn->hpd_gpio)) in display_connector_detect()
54 if (conn->bridge.ddc && drm_probe_ddc(conn->bridge.ddc)) in display_connector_detect()
57 switch (conn->bridge.type) { in display_connector_detect()
93 struct display_connector *conn = to_display_connector(bridge); in display_connector_edid_read() local
95 return drm_edid_read_ddc(connector, conn->bridge.ddc); in display_connector_edid_read()
115 struct drm_connector *conn = conn_state->connector; in display_connector_get_output_bus_fmts() local
123 if (conn->display_info.num_bus_formats && in display_connector_get_output_bus_fmts()
124 conn->display_info.bus_formats) in display_connector_get_output_bus_fmts()
[all …]
/linux/net/rds/
H A Dconnection.c90 struct rds_connection *conn, *ret = NULL; in rds_conn_lookup() local
92 hlist_for_each_entry_rcu(conn, head, c_hash_node) { in rds_conn_lookup()
93 if (ipv6_addr_equal(&conn->c_faddr, faddr) && in rds_conn_lookup()
94 ipv6_addr_equal(&conn->c_laddr, laddr) && in rds_conn_lookup()
95 conn->c_trans == trans && in rds_conn_lookup()
96 conn->c_tos == tos && in rds_conn_lookup()
97 net == rds_conn_net(conn) && in rds_conn_lookup()
98 conn->c_dev_if == dev_if) { in rds_conn_lookup()
99 ret = conn; in rds_conn_lookup()
116 struct rds_connection *conn = cp->cp_conn; in rds_conn_path_reset() local
[all …]
H A Dib_cm.c49 static void rds_ib_set_protocol(struct rds_connection *conn, unsigned int version) in rds_ib_set_protocol() argument
51 conn->c_version = version; in rds_ib_set_protocol()
57 static void rds_ib_set_flow_control(struct rds_connection *conn, u32 credits) in rds_ib_set_flow_control() argument
59 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_set_flow_control()
64 rds_ib_send_add_credits(conn, credits); in rds_ib_set_flow_control()
74 void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_event *event) in rds_ib_cm_connect_complete() argument
76 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_cm_connect_complete()
84 dp = event->param.conn.private_data; in rds_ib_cm_connect_complete()
85 if (conn->c_isv6) { in rds_ib_cm_connect_complete()
86 if (event->param.conn.private_data_len >= in rds_ib_cm_connect_complete()
[all …]
/linux/drivers/scsi/
H A Discsi_tcp.c87 struct iscsi_conn *conn = rd_desc->arg.data; in iscsi_sw_tcp_recv() local
91 ISCSI_SW_TCP_DBG(conn, "in %d bytes\n", skb->len - offset); in iscsi_sw_tcp_recv()
95 consumed = iscsi_tcp_recv_skb(conn, skb, offset, 0, &status); in iscsi_sw_tcp_recv()
100 ISCSI_SW_TCP_DBG(conn, "read %d bytes status %d\n", in iscsi_sw_tcp_recv()
117 struct iscsi_conn *conn = sk->sk_user_data; in iscsi_sw_sk_state_check() local
120 (conn->session->state != ISCSI_STATE_LOGGING_OUT) && in iscsi_sw_sk_state_check()
122 ISCSI_SW_TCP_DBG(conn, "TCP_CLOSE|TCP_CLOSE_WAIT\n"); in iscsi_sw_sk_state_check()
123 iscsi_conn_failure(conn, ISCSI_ERR_TCP_CONN_CLOSE); in iscsi_sw_sk_state_check()
129 static void iscsi_sw_tcp_recv_data(struct iscsi_conn *conn) in iscsi_sw_tcp_recv_data() argument
131 struct iscsi_tcp_conn *tcp_conn = conn->dd_data; in iscsi_sw_tcp_recv_data()
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dtc_conntrack.c45 struct efx_tc_ct_entry *conn = ptr; in efx_tc_ct_free() local
50 conn->cookie); in efx_tc_ct_free()
55 efx_tc_flower_release_counter(efx, conn->cnt); in efx_tc_ct_free()
56 kfree(conn); in efx_tc_ct_free()
94 struct efx_tc_ct_entry *conn) in efx_tc_ct_parse_match() argument
147 conn->eth_proto = fm.key->n_proto; in efx_tc_ct_parse_match()
148 if (conn->eth_proto != (ipv == 4 ? htons(ETH_P_IP) in efx_tc_ct_parse_match()
152 ipv, ntohs(conn->eth_proto)); in efx_tc_ct_parse_match()
161 conn->ip_proto = fm.key->ip_proto; in efx_tc_ct_parse_match()
162 switch (conn->ip_proto) { in efx_tc_ct_parse_match()
[all …]

12345678910>>...15