Lines Matching refs:con
256 if (hash_con->con->icid == handle) in qed_nvmetcp_get_hash()
260 if (!hash_con || hash_con->con->icid != handle) in qed_nvmetcp_get_hash()
620 &hash_con->con); in qed_nvmetcp_acquire_conn()
629 *handle = hash_con->con->icid; in qed_nvmetcp_acquire_conn()
630 *fw_cid = hash_con->con->fw_cid; in qed_nvmetcp_acquire_conn()
652 qed_nvmetcp_release_connection(QED_AFFIN_HWFN(cdev), hash_con->con); in qed_nvmetcp_release_conn()
662 struct qed_nvmetcp_conn *con; in qed_nvmetcp_offload_conn() local
673 con = hash_con->con; in qed_nvmetcp_offload_conn()
676 con->layer_code = NVMETCP_SLOW_PATH_LAYER_CODE; in qed_nvmetcp_offload_conn()
677 con->sq_pbl_addr = conn_info->sq_pbl_addr; in qed_nvmetcp_offload_conn()
678 con->nvmetcp_cccid_max_range = conn_info->nvmetcp_cccid_max_range; in qed_nvmetcp_offload_conn()
679 con->nvmetcp_cccid_itid_table_addr = conn_info->nvmetcp_cccid_itid_table_addr; in qed_nvmetcp_offload_conn()
680 con->default_cq = conn_info->default_cq; in qed_nvmetcp_offload_conn()
681 SET_FIELD(con->offl_flags, NVMETCP_CONN_OFFLOAD_PARAMS_TARGET_MODE, 0); in qed_nvmetcp_offload_conn()
682 SET_FIELD(con->offl_flags, NVMETCP_CONN_OFFLOAD_PARAMS_NVMETCP_MODE, 1); in qed_nvmetcp_offload_conn()
683 SET_FIELD(con->offl_flags, NVMETCP_CONN_OFFLOAD_PARAMS_TCP_ON_CHIP_1B, 1); in qed_nvmetcp_offload_conn()
686 ether_addr_copy(con->local_mac, conn_info->src.mac); in qed_nvmetcp_offload_conn()
687 ether_addr_copy(con->remote_mac, conn_info->dst.mac); in qed_nvmetcp_offload_conn()
688 memcpy(con->local_ip, conn_info->src.ip, sizeof(con->local_ip)); in qed_nvmetcp_offload_conn()
689 memcpy(con->remote_ip, conn_info->dst.ip, sizeof(con->remote_ip)); in qed_nvmetcp_offload_conn()
690 con->local_port = conn_info->src.port; in qed_nvmetcp_offload_conn()
691 con->remote_port = conn_info->dst.port; in qed_nvmetcp_offload_conn()
692 con->vlan_id = conn_info->vlan_id; in qed_nvmetcp_offload_conn()
695 SET_FIELD(con->tcp_flags, TCP_OFFLOAD_PARAMS_OPT2_TS_EN, 1); in qed_nvmetcp_offload_conn()
698 SET_FIELD(con->tcp_flags, TCP_OFFLOAD_PARAMS_OPT2_DA_EN, 1); in qed_nvmetcp_offload_conn()
701 SET_FIELD(con->tcp_flags, TCP_OFFLOAD_PARAMS_OPT2_KA_EN, 1); in qed_nvmetcp_offload_conn()
704 SET_FIELD(con->tcp_flags, TCP_OFFLOAD_PARAMS_OPT2_ECN_EN, 1); in qed_nvmetcp_offload_conn()
706 con->ip_version = conn_info->ip_version; in qed_nvmetcp_offload_conn()
707 con->flow_label = QED_TCP_FLOW_LABEL; in qed_nvmetcp_offload_conn()
708 con->ka_max_probe_cnt = conn_info->ka_max_probe_cnt; in qed_nvmetcp_offload_conn()
709 con->ka_timeout = conn_info->ka_timeout; in qed_nvmetcp_offload_conn()
710 con->ka_interval = conn_info->ka_interval; in qed_nvmetcp_offload_conn()
711 con->max_rt_time = conn_info->max_rt_time; in qed_nvmetcp_offload_conn()
712 con->ttl = conn_info->ttl; in qed_nvmetcp_offload_conn()
713 con->tos_or_tc = conn_info->tos_or_tc; in qed_nvmetcp_offload_conn()
714 con->mss = conn_info->mss; in qed_nvmetcp_offload_conn()
715 con->cwnd = conn_info->cwnd; in qed_nvmetcp_offload_conn()
716 con->rcv_wnd_scale = conn_info->rcv_wnd_scale; in qed_nvmetcp_offload_conn()
717 con->connect_mode = 0; in qed_nvmetcp_offload_conn()
719 return qed_sp_nvmetcp_conn_offload(QED_AFFIN_HWFN(cdev), con, in qed_nvmetcp_offload_conn()
728 struct qed_nvmetcp_conn *con; in qed_nvmetcp_update_conn() local
739 con = hash_con->con; in qed_nvmetcp_update_conn()
740 SET_FIELD(con->update_flag, in qed_nvmetcp_update_conn()
742 SET_FIELD(con->update_flag, in qed_nvmetcp_update_conn()
745 SET_FIELD(con->update_flag, ISCSI_CONN_UPDATE_RAMROD_PARAMS_HD_EN, 1); in qed_nvmetcp_update_conn()
748 SET_FIELD(con->update_flag, ISCSI_CONN_UPDATE_RAMROD_PARAMS_DD_EN, 1); in qed_nvmetcp_update_conn()
752 con->max_seq_size = conn_info->max_io_size; in qed_nvmetcp_update_conn()
753 con->max_recv_pdu_length = conn_info->max_recv_pdu_length; in qed_nvmetcp_update_conn()
754 con->max_send_pdu_length = conn_info->max_send_pdu_length; in qed_nvmetcp_update_conn()
755 con->first_seq_length = conn_info->max_io_size; in qed_nvmetcp_update_conn()
757 return qed_sp_nvmetcp_conn_update(QED_AFFIN_HWFN(cdev), con, in qed_nvmetcp_update_conn()
773 return qed_sp_nvmetcp_conn_clear_sq(QED_AFFIN_HWFN(cdev), hash_con->con, in qed_nvmetcp_clear_conn_sq()
790 hash_con->con->abortive_dsconnect = abrt_conn; in qed_nvmetcp_destroy_conn()
792 return qed_sp_nvmetcp_conn_terminate(QED_AFFIN_HWFN(cdev), hash_con->con, in qed_nvmetcp_destroy_conn()