/Linux-v4.19/net/smc/ |
D | smc_cdc.c | 25 struct smc_connection *conn; /* socket connection */ member 37 struct smc_connection *conn = cdcpend->conn; in smc_cdc_tx_handler() local 41 if (!conn) in smc_cdc_tx_handler() 45 smc = container_of(conn, struct smc_sock, conn); in smc_cdc_tx_handler() 48 diff = smc_curs_diff(cdcpend->conn->sndbuf_desc->len, in smc_cdc_tx_handler() 49 &cdcpend->conn->tx_curs_fin, in smc_cdc_tx_handler() 53 atomic_add(diff, &cdcpend->conn->sndbuf_space); in smc_cdc_tx_handler() 56 smc_curs_copy(&conn->tx_curs_fin, &cdcpend->cursor, conn); in smc_cdc_tx_handler() 62 int smc_cdc_get_free_slot(struct smc_connection *conn, in smc_cdc_get_free_slot() argument 66 struct smc_link *link = &conn->lgr->lnk[SMC_SINGLE_LINK]; in smc_cdc_get_free_slot() [all …]
|
D | smc_tx.c | 46 if (atomic_read(&smc->conn.sndbuf_space) && sock) { in smc_tx_write_space() 76 struct smc_connection *conn = &smc->conn; in smc_tx_wait() local 90 conn->local_tx_ctrl.conn_state_flags.peer_done_writing) { in smc_tx_wait() 94 if (smc_cdc_rxed_any_close(conn)) { in smc_tx_wait() 109 if (atomic_read(&conn->sndbuf_space) && !conn->urg_tx_pend) in smc_tx_wait() 115 smc_cdc_rxed_any_close(conn) || in smc_tx_wait() 116 (atomic_read(&conn->sndbuf_space) && in smc_tx_wait() 117 !conn->urg_tx_pend), in smc_tx_wait() 138 struct smc_connection *conn = &smc->conn; in smc_tx_sendmsg() local 159 conn->local_tx_ctrl.conn_state_flags.peer_conn_abort) in smc_tx_sendmsg() [all …]
|
D | smc_rx.c | 56 struct smc_connection *conn = &smc->conn; in smc_rx_update_consumer() local 61 smc_curs_add(conn->rmb_desc->len, &cons, len); in smc_rx_update_consumer() 64 if (conn->urg_state == SMC_URG_VALID || conn->urg_rx_skip_pend) { in smc_rx_update_consumer() 65 diff = smc_curs_comp(conn->rmb_desc->len, &cons, in smc_rx_update_consumer() 66 &conn->urg_curs); in smc_rx_update_consumer() 71 conn->urg_state = SMC_URG_READ; in smc_rx_update_consumer() 77 smc_curs_add(conn->rmb_desc->len, &cons, 1); in smc_rx_update_consumer() 78 conn->urg_rx_skip_pend = false; in smc_rx_update_consumer() 81 conn->urg_state = SMC_URG_READ; in smc_rx_update_consumer() 85 smc_curs_copy(&conn->local_tx_ctrl.cons, &cons, conn); in smc_rx_update_consumer() [all …]
|
D | smc_close.c | 42 if (!smc_tx_prepared_sends(&smc->conn)) in smc_close_stream_wait() 51 !smc_tx_prepared_sends(&smc->conn) || in smc_close_stream_wait() 69 static int smc_close_wr(struct smc_connection *conn) in smc_close_wr() argument 71 conn->local_tx_ctrl.conn_state_flags.peer_done_writing = 1; in smc_close_wr() 73 return smc_cdc_get_slot_and_msg_send(conn); in smc_close_wr() 76 static int smc_close_final(struct smc_connection *conn) in smc_close_final() argument 78 if (atomic_read(&conn->bytes_to_rcv)) in smc_close_final() 79 conn->local_tx_ctrl.conn_state_flags.peer_conn_abort = 1; in smc_close_final() 81 conn->local_tx_ctrl.conn_state_flags.peer_conn_closed = 1; in smc_close_final() 83 return smc_cdc_get_slot_and_msg_send(conn); in smc_close_final() [all …]
|
D | smc_diag.c | 97 else if (smc->conn.lgr && smc->conn.lgr->is_smcd) in __smc_diag_dump() 111 smc->conn.alert_token_local) { in __smc_diag_dump() 112 struct smc_connection *conn = &smc->conn; in __smc_diag_dump() local 114 .token = conn->alert_token_local, in __smc_diag_dump() 115 .sndbuf_size = conn->sndbuf_desc ? in __smc_diag_dump() 116 conn->sndbuf_desc->len : 0, in __smc_diag_dump() 117 .rmbe_size = conn->rmb_desc ? conn->rmb_desc->len : 0, in __smc_diag_dump() 118 .peer_rmbe_size = conn->peer_rmbe_size, in __smc_diag_dump() 120 .rx_prod.wrap = conn->local_rx_ctrl.prod.wrap, in __smc_diag_dump() 121 .rx_prod.count = conn->local_rx_ctrl.prod.count, in __smc_diag_dump() [all …]
|
/Linux-v4.19/net/bluetooth/ |
D | hci_conn.c | 63 static void hci_connect_le_scan_cleanup(struct hci_conn *conn) in hci_connect_le_scan_cleanup() argument 66 struct hci_dev *hdev = conn->hdev; in hci_connect_le_scan_cleanup() 71 bdaddr = &conn->dst; in hci_connect_le_scan_cleanup() 72 bdaddr_type = conn->dst_type; in hci_connect_le_scan_cleanup() 114 static void hci_conn_cleanup(struct hci_conn *conn) in hci_conn_cleanup() argument 116 struct hci_dev *hdev = conn->hdev; in hci_conn_cleanup() 118 if (test_bit(HCI_CONN_PARAM_REMOVAL_PEND, &conn->flags)) in hci_conn_cleanup() 119 hci_conn_params_del(conn->hdev, &conn->dst, conn->dst_type); in hci_conn_cleanup() 121 hci_chan_list_flush(conn); in hci_conn_cleanup() 123 hci_conn_hash_del(hdev, conn); in hci_conn_cleanup() [all …]
|
D | hci_event.c | 104 struct hci_conn *conn; in hci_cc_role_discovery() local 113 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_role_discovery() 114 if (conn) in hci_cc_role_discovery() 115 conn->role = rp->role; in hci_cc_role_discovery() 123 struct hci_conn *conn; in hci_cc_read_link_policy() local 132 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_link_policy() 133 if (conn) in hci_cc_read_link_policy() 134 conn->link_policy = __le16_to_cpu(rp->policy); in hci_cc_read_link_policy() 142 struct hci_conn *conn; in hci_cc_write_link_policy() local 156 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_write_link_policy() [all …]
|
D | hci_sysfs.c | 13 struct hci_conn *conn = to_hci_conn(dev); in bt_link_release() local 14 kfree(conn); in bt_link_release() 32 void hci_conn_init_sysfs(struct hci_conn *conn) in hci_conn_init_sysfs() argument 34 struct hci_dev *hdev = conn->hdev; in hci_conn_init_sysfs() 36 BT_DBG("conn %p", conn); in hci_conn_init_sysfs() 38 conn->dev.type = &bt_link; in hci_conn_init_sysfs() 39 conn->dev.class = bt_class; in hci_conn_init_sysfs() 40 conn->dev.parent = &hdev->dev; in hci_conn_init_sysfs() 42 device_initialize(&conn->dev); in hci_conn_init_sysfs() 45 void hci_conn_add_sysfs(struct hci_conn *conn) in hci_conn_add_sysfs() argument [all …]
|
/Linux-v4.19/net/rxrpc/ |
D | conn_object.c | 30 struct rxrpc_connection *conn = in rxrpc_connection_timer() local 33 rxrpc_queue_conn(conn); in rxrpc_connection_timer() 41 struct rxrpc_connection *conn; in rxrpc_alloc_connection() local 45 conn = kzalloc(sizeof(struct rxrpc_connection), gfp); in rxrpc_alloc_connection() 46 if (conn) { in rxrpc_alloc_connection() 47 INIT_LIST_HEAD(&conn->cache_link); in rxrpc_alloc_connection() 48 spin_lock_init(&conn->channel_lock); in rxrpc_alloc_connection() 49 INIT_LIST_HEAD(&conn->waiting_calls); in rxrpc_alloc_connection() 50 timer_setup(&conn->timer, &rxrpc_connection_timer, 0); in rxrpc_alloc_connection() 51 INIT_WORK(&conn->processor, &rxrpc_process_connection); in rxrpc_alloc_connection() [all …]
|
D | conn_client.c | 105 static int rxrpc_get_client_connection_id(struct rxrpc_connection *conn, in rxrpc_get_client_connection_id() argument 108 struct rxrpc_net *rxnet = conn->params.local->rxnet; in rxrpc_get_client_connection_id() 116 id = idr_alloc_cyclic(&rxrpc_client_conn_ids, conn, in rxrpc_get_client_connection_id() 124 conn->proto.epoch = rxnet->epoch; in rxrpc_get_client_connection_id() 125 conn->proto.cid = id << RXRPC_CIDSHIFT; in rxrpc_get_client_connection_id() 126 set_bit(RXRPC_CONN_HAS_IDR, &conn->flags); in rxrpc_get_client_connection_id() 127 _leave(" [CID %x]", conn->proto.cid); in rxrpc_get_client_connection_id() 140 static void rxrpc_put_client_connection_id(struct rxrpc_connection *conn) in rxrpc_put_client_connection_id() argument 142 if (test_bit(RXRPC_CONN_HAS_IDR, &conn->flags)) { in rxrpc_put_client_connection_id() 145 conn->proto.cid >> RXRPC_CIDSHIFT); in rxrpc_put_client_connection_id() [all …]
|
D | conn_event.c | 26 static void rxrpc_conn_retransmit_call(struct rxrpc_connection *conn, in rxrpc_conn_retransmit_call() argument 46 _enter("%d", conn->debug_id); in rxrpc_conn_retransmit_call() 48 chan = &conn->channels[channel]; in rxrpc_conn_retransmit_call() 59 msg.msg_name = &conn->params.peer->srx.transport; in rxrpc_conn_retransmit_call() 60 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxrpc_conn_retransmit_call() 72 pkt.whdr.epoch = htonl(conn->proto.epoch); in rxrpc_conn_retransmit_call() 73 pkt.whdr.cid = htonl(conn->proto.cid | channel); in rxrpc_conn_retransmit_call() 77 pkt.whdr.flags = conn->out_clientflag; in rxrpc_conn_retransmit_call() 79 pkt.whdr.securityIndex = conn->security_ix; in rxrpc_conn_retransmit_call() 81 pkt.whdr.serviceId = htons(conn->service_id); in rxrpc_conn_retransmit_call() [all …]
|
D | conn_service.c | 28 struct rxrpc_connection *conn = NULL; in rxrpc_find_service_conn_rcu() local 46 conn = rb_entry(p, struct rxrpc_connection, service_node); in rxrpc_find_service_conn_rcu() 48 if (conn->proto.index_key < k.index_key) in rxrpc_find_service_conn_rcu() 50 else if (conn->proto.index_key > k.index_key) in rxrpc_find_service_conn_rcu() 54 conn = NULL; in rxrpc_find_service_conn_rcu() 59 _leave(" = %d", conn ? conn->debug_id : -1); in rxrpc_find_service_conn_rcu() 60 return conn; in rxrpc_find_service_conn_rcu() 68 struct rxrpc_connection *conn) in rxrpc_publish_service_conn() argument 71 struct rxrpc_conn_proto k = conn->proto; in rxrpc_publish_service_conn() 91 rb_link_node_rcu(&conn->service_node, parent, pp); in rxrpc_publish_service_conn() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | conn.c | 48 static int mlx5_fpga_conn_map_buf(struct mlx5_fpga_conn *conn, in mlx5_fpga_conn_map_buf() argument 57 dma_device = &conn->fdev->mdev->pdev->dev; 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 = &conn->fdev->mdev->pdev->dev; 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-v4.19/drivers/target/iscsi/ |
D | iscsi_target_login.c | 45 static struct iscsi_login *iscsi_login_init_conn(struct iscsi_conn *conn) in iscsi_login_init_conn() argument 54 conn->login = login; in iscsi_login_init_conn() 55 login->conn = conn; in iscsi_login_init_conn() 70 conn->conn_login = login; in iscsi_login_init_conn() 85 int iscsi_login_setup_crypto(struct iscsi_conn *conn) in iscsi_login_setup_crypto() argument 100 conn->conn_rx_hash = ahash_request_alloc(tfm, GFP_KERNEL); in iscsi_login_setup_crypto() 101 if (!conn->conn_rx_hash) { in iscsi_login_setup_crypto() 106 ahash_request_set_callback(conn->conn_rx_hash, 0, NULL, NULL); in iscsi_login_setup_crypto() 108 conn->conn_tx_hash = ahash_request_alloc(tfm, GFP_KERNEL); in iscsi_login_setup_crypto() 109 if (!conn->conn_tx_hash) { in iscsi_login_setup_crypto() [all …]
|
D | iscsi_target_util.c | 85 iscsit_add_cmd_to_immediate_queue(cmd, cmd->conn, ISTATE_SEND_R2T); in iscsit_add_r2t_to_list() 178 struct iscsi_cmd *iscsit_allocate_cmd(struct iscsi_conn *conn, int state) in iscsit_allocate_cmd() argument 181 struct se_session *se_sess = conn->sess->se_sess; in iscsit_allocate_cmd() 190 size = sizeof(struct iscsi_cmd) + conn->conn_transport->priv_size; in iscsit_allocate_cmd() 196 cmd->conn = conn; in iscsit_allocate_cmd() 308 int iscsit_sequence_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd, in iscsit_sequence_cmd() argument 315 mutex_lock(&conn->sess->cmdsn_mutex); in iscsit_sequence_cmd() 317 cmdsn_ret = iscsit_check_received_cmdsn(conn->sess, be32_to_cpu(cmdsn)); in iscsit_sequence_cmd() 321 if ((ret >= 0) && !list_empty(&conn->sess->sess_ooo_cmdsn_list)) in iscsit_sequence_cmd() 322 iscsit_execute_ooo_cmdsns(conn->sess); in iscsit_sequence_cmd() [all …]
|
D | iscsi_target_nego.c | 107 struct iscsi_conn *conn, in iscsi_handle_authentication() argument 114 struct iscsi_session *sess = conn->sess; in iscsi_handle_authentication() 124 se_nacl = conn->sess->se_sess->se_node_acl; in iscsi_handle_authentication() 157 strcpy(conn->sess->auth_type, "CHAP"); in iscsi_handle_authentication() 159 strcpy(conn->sess->auth_type, NONE); in iscsi_handle_authentication() 165 return srp_main_loop(conn, auth, in_buf, out_buf, in iscsi_handle_authentication() 169 return chap_main_loop(conn, auth, in_buf, out_buf, in iscsi_handle_authentication() 181 static void iscsi_remove_failed_auth_entry(struct iscsi_conn *conn) in iscsi_remove_failed_auth_entry() argument 183 kfree(conn->auth_protocol); in iscsi_remove_failed_auth_entry() 187 struct iscsi_conn *conn, in iscsi_target_check_login_request() argument [all …]
|
D | iscsi_target_erl0.c | 42 struct iscsi_conn *conn = cmd->conn; in iscsit_set_dataout_sequence_values() local 50 conn->sess->sess_ops->FirstBurstLength); in iscsit_set_dataout_sequence_values() 54 if (!conn->sess->sess_ops->DataSequenceInOrder) in iscsit_set_dataout_sequence_values() 60 conn->sess->sess_ops->MaxBurstLength) ? in iscsit_set_dataout_sequence_values() 62 conn->sess->sess_ops->MaxBurstLength) : cmd->se_cmd.data_length; in iscsit_set_dataout_sequence_values() 66 conn->sess->sess_ops->MaxBurstLength) >= in iscsit_set_dataout_sequence_values() 69 conn->sess->sess_ops->MaxBurstLength); in iscsit_set_dataout_sequence_values() 77 struct iscsi_conn *conn = cmd->conn; in iscsit_dataout_within_command_recovery_check() local 93 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_within_command_recovery_check() 111 if (conn->sess->sess_ops->DataPDUInOrder) { in iscsit_dataout_within_command_recovery_check() [all …]
|
D | iscsi_target.c | 486 int iscsit_queue_rsp(struct iscsi_conn *conn, struct iscsi_cmd *cmd) in iscsit_queue_rsp() argument 488 return iscsit_add_cmd_to_response_queue(cmd, cmd->conn, cmd->i_state); in iscsit_queue_rsp() 492 void iscsit_aborted_task(struct iscsi_conn *conn, struct iscsi_cmd *cmd) in iscsit_aborted_task() argument 494 spin_lock_bh(&conn->cmd_lock); in iscsit_aborted_task() 498 spin_unlock_bh(&conn->cmd_lock); in iscsit_aborted_task() 509 iscsit_xmit_nondatain_pdu(struct iscsi_conn *conn, struct iscsi_cmd *cmd, in iscsit_xmit_nondatain_pdu() argument 521 if (conn->conn_ops->HeaderDigest) { in iscsit_xmit_nondatain_pdu() 524 iscsit_do_crypto_hash_buf(conn->conn_tx_hash, hdr, in iscsit_xmit_nondatain_pdu() 550 if (conn->conn_ops->DataDigest) { in iscsit_xmit_nondatain_pdu() 551 iscsit_do_crypto_hash_buf(conn->conn_tx_hash, in iscsit_xmit_nondatain_pdu() [all …]
|
D | iscsi_target_erl2.c | 41 struct iscsi_conn *conn = cmd->conn; in iscsit_create_conn_recovery_datain_values() local 48 conn->conn_ops->MaxRecvDataSegmentLength) < in iscsit_create_conn_recovery_datain_values() 49 conn->sess->sess_ops->MaxBurstLength) { in iscsit_create_conn_recovery_datain_values() 51 conn->conn_ops->MaxRecvDataSegmentLength; in iscsit_create_conn_recovery_datain_values() 53 conn->conn_ops->MaxRecvDataSegmentLength; in iscsit_create_conn_recovery_datain_values() 56 (conn->sess->sess_ops->MaxBurstLength - in iscsit_create_conn_recovery_datain_values() 68 struct iscsi_conn *conn = cmd->conn; in iscsit_create_conn_recovery_dataout_values() local 74 if ((write_data_done + conn->sess->sess_ops->MaxBurstLength) <= in iscsit_create_conn_recovery_dataout_values() 76 write_data_done += conn->sess->sess_ops->MaxBurstLength; in iscsit_create_conn_recovery_dataout_values() 143 cmd->conn = NULL; in iscsit_free_connection_recovery_entires() [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | libiscsi.c | 89 inline void iscsi_conn_queue_work(struct iscsi_conn *conn) in iscsi_conn_queue_work() argument 91 struct Scsi_Host *shost = conn->session->host; in iscsi_conn_queue_work() 95 queue_work(ihost->workq, &conn->xmitwork); in iscsi_conn_queue_work() 140 struct iscsi_conn *conn = task->conn; in iscsi_prep_data_out_pdu() local 154 if (left > conn->max_xmit_dlength) { in iscsi_prep_data_out_pdu() 155 hton24(hdr->dlength, conn->max_xmit_dlength); in iscsi_prep_data_out_pdu() 156 r2t->data_count = conn->max_xmit_dlength; in iscsi_prep_data_out_pdu() 163 conn->dataout_pdus_cnt++; in iscsi_prep_data_out_pdu() 213 ISCSI_DBG_SESSION(task->conn->session, in iscsi_prep_ecdb_ahs() 239 ISCSI_DBG_SESSION(task->conn->session, in iscsi_prep_bidi_ahs() [all …]
|
D | iscsi_tcp.c | 88 struct iscsi_conn *conn = rd_desc->arg.data; in iscsi_sw_tcp_recv() local 92 ISCSI_SW_TCP_DBG(conn, "in %d bytes\n", skb->len - offset); in iscsi_sw_tcp_recv() 96 consumed = iscsi_tcp_recv_skb(conn, skb, offset, 0, &status); in iscsi_sw_tcp_recv() 101 ISCSI_SW_TCP_DBG(conn, "read %d bytes status %d\n", in iscsi_sw_tcp_recv() 118 struct iscsi_conn *conn = sk->sk_user_data; in iscsi_sw_sk_state_check() local 121 (conn->session->state != ISCSI_STATE_LOGGING_OUT) && in iscsi_sw_sk_state_check() 123 ISCSI_SW_TCP_DBG(conn, "TCP_CLOSE|TCP_CLOSE_WAIT\n"); in iscsi_sw_sk_state_check() 124 iscsi_conn_failure(conn, ISCSI_ERR_TCP_CONN_CLOSE); in iscsi_sw_sk_state_check() 132 struct iscsi_conn *conn; in iscsi_sw_tcp_data_ready() local 137 conn = sk->sk_user_data; in iscsi_sw_tcp_data_ready() [all …]
|
/Linux-v4.19/fs/notify/ |
D | mark.c | 112 static __u32 *fsnotify_conn_mask_p(struct fsnotify_mark_connector *conn) in fsnotify_conn_mask_p() argument 114 if (conn->type == FSNOTIFY_OBJ_TYPE_INODE) in fsnotify_conn_mask_p() 115 return &fsnotify_conn_inode(conn)->i_fsnotify_mask; in fsnotify_conn_mask_p() 116 else if (conn->type == FSNOTIFY_OBJ_TYPE_VFSMOUNT) in fsnotify_conn_mask_p() 117 return &fsnotify_conn_mount(conn)->mnt_fsnotify_mask; in fsnotify_conn_mask_p() 121 __u32 fsnotify_conn_mask(struct fsnotify_mark_connector *conn) in fsnotify_conn_mask() argument 123 if (WARN_ON(!fsnotify_valid_obj_type(conn->type))) in fsnotify_conn_mask() 126 return *fsnotify_conn_mask_p(conn); in fsnotify_conn_mask() 129 static void __fsnotify_recalc_mask(struct fsnotify_mark_connector *conn) in __fsnotify_recalc_mask() argument 134 assert_spin_locked(&conn->lock); in __fsnotify_recalc_mask() [all …]
|
/Linux-v4.19/drivers/s390/net/ |
D | netiucv.c | 203 struct iucv_connection *conn; member 214 struct iucv_connection *conn; member 282 static char *netiucv_printuser(struct iucv_connection *conn) in netiucv_printuser() argument 288 if (memcmp(conn->userdata, iucvMagic_ebcdic, 16)) { in netiucv_printuser() 291 memcpy(tmp_uid, netiucv_printname(conn->userid, 8), 8); in netiucv_printuser() 292 memcpy(tmp_udat, conn->userdata, 16); in netiucv_printuser() 298 return netiucv_printname(conn->userid, 8); in netiucv_printuser() 517 struct iucv_connection *conn = path->private; in netiucv_callback_rx() local 520 ev.conn = conn; in netiucv_callback_rx() 522 fsm_event(conn->fsm, CONN_EVENT_RX, &ev); in netiucv_callback_rx() [all …]
|
/Linux-v4.19/net/rds/ |
D | connection.c | 89 struct rds_connection *conn, *ret = NULL; in rds_conn_lookup() local 91 hlist_for_each_entry_rcu(conn, head, c_hash_node) { in rds_conn_lookup() 92 if (ipv6_addr_equal(&conn->c_faddr, faddr) && in rds_conn_lookup() 93 ipv6_addr_equal(&conn->c_laddr, laddr) && in rds_conn_lookup() 94 conn->c_trans == trans && in rds_conn_lookup() 95 net == rds_conn_net(conn) && in rds_conn_lookup() 96 conn->c_dev_if == dev_if) { in rds_conn_lookup() 97 ret = conn; in rds_conn_lookup() 114 struct rds_connection *conn = cp->cp_conn; in rds_conn_path_reset() local 117 &conn->c_laddr, &conn->c_faddr); in rds_conn_path_reset() [all …]
|
D | ib_cm.c | 47 static void rds_ib_set_protocol(struct rds_connection *conn, unsigned int version) in rds_ib_set_protocol() argument 49 conn->c_version = version; in rds_ib_set_protocol() 55 static void rds_ib_set_flow_control(struct rds_connection *conn, u32 credits) in rds_ib_set_flow_control() argument 57 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_set_flow_control() 62 rds_ib_send_add_credits(conn, credits); in rds_ib_set_flow_control() 97 void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_event *event) in rds_ib_cm_connect_complete() argument 99 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_cm_connect_complete() 108 dp = event->param.conn.private_data; in rds_ib_cm_connect_complete() 109 if (conn->c_isv6) { in rds_ib_cm_connect_complete() 110 if (event->param.conn.private_data_len >= in rds_ib_cm_connect_complete() [all …]
|