Lines Matching refs:iwarp_info

624 	struct qed_iwarp_info *iwarp_info = &p_hwfn->p_rdma_info->iwarp;  in qed_iwarp_tcp_offload()  local
673 p_tcp_ramrod->iwarp.mpa_mode = iwarp_info->mpa_rev; in qed_iwarp_tcp_offload()
736 struct qed_iwarp_info *iwarp_info = &p_hwfn->p_rdma_info->iwarp; in qed_iwarp_mpa_received() local
784 ep->rtr_type &= iwarp_info->rtr_type; in qed_iwarp_mpa_received()
788 ep->rtr_type = iwarp_info->rtr_type; in qed_iwarp_mpa_received()
823 struct qed_iwarp_info *iwarp_info; in qed_iwarp_mpa_offload() local
895 iwarp_info = &p_hwfn->p_rdma_info->iwarp; in qed_iwarp_mpa_offload()
896 p_mpa_ramrod->rcv_wnd = cpu_to_le16(iwarp_info->rcv_wnd_size); in qed_iwarp_mpa_offload()
1158 struct qed_iwarp_info *iwarp_info; in qed_iwarp_connect() local
1174 iwarp_info = &p_hwfn->p_rdma_info->iwarp; in qed_iwarp_connect()
1200 ep->rtr_type = iwarp_info->rtr_type; in qed_iwarp_connect()
1201 if (!iwarp_info->peer2peer) in qed_iwarp_connect()
1207 ep->mpa_rev = iwarp_info->mpa_rev; in qed_iwarp_connect()
1449 struct qed_iwarp_info *iwarp_info = &p_hwfn->p_rdma_info->iwarp; in qed_iwarp_resc_free() local
1453 kfree(iwarp_info->mpa_bufs); in qed_iwarp_resc_free()
1454 kfree(iwarp_info->partial_fpdus); in qed_iwarp_resc_free()
1455 kfree(iwarp_info->mpa_intermediate_buf); in qed_iwarp_resc_free()
1778 struct qed_iwarp_info *iwarp_info = &p_hwfn->p_rdma_info->iwarp; in qed_iwarp_get_curr_fpdu() local
1783 if (idx >= iwarp_info->max_num_partial_fpdus) { in qed_iwarp_get_curr_fpdu()
1785 iwarp_info->max_num_partial_fpdus); in qed_iwarp_get_curr_fpdu()
1789 partial_fpdu = &iwarp_info->partial_fpdus[idx]; in qed_iwarp_get_curr_fpdu()
2281 struct qed_iwarp_info *iwarp_info = &p_hwfn->p_rdma_info->iwarp; in qed_iwarp_process_pending_pkts() local
2285 while (!list_empty(&iwarp_info->mpa_buf_pending_list)) { in qed_iwarp_process_pending_pkts()
2286 mpa_buf = list_first_entry(&iwarp_info->mpa_buf_pending_list, in qed_iwarp_process_pending_pkts()
2299 &iwarp_info->mpa_buf_list); in qed_iwarp_process_pending_pkts()
2312 struct qed_iwarp_info *iwarp_info; in qed_iwarp_ll2_comp_mpa_pkt() local
2316 iwarp_info = &p_hwfn->p_rdma_info->iwarp; in qed_iwarp_ll2_comp_mpa_pkt()
2317 mpa_buf = list_first_entry(&iwarp_info->mpa_buf_list, in qed_iwarp_ll2_comp_mpa_pkt()
2345 list_add_tail(&mpa_buf->list_entry, &iwarp_info->mpa_buf_pending_list); in qed_iwarp_ll2_comp_mpa_pkt()
2351 iwarp_info->ll2_mpa_handle); in qed_iwarp_ll2_comp_mpa_pkt()
2557 struct qed_iwarp_info *iwarp_info = &p_hwfn->p_rdma_info->iwarp; in qed_iwarp_ll2_stop() local
2560 if (iwarp_info->ll2_syn_handle != QED_IWARP_HANDLE_INVAL) { in qed_iwarp_ll2_stop()
2562 iwarp_info->ll2_syn_handle); in qed_iwarp_ll2_stop()
2566 qed_ll2_release_connection(p_hwfn, iwarp_info->ll2_syn_handle); in qed_iwarp_ll2_stop()
2567 iwarp_info->ll2_syn_handle = QED_IWARP_HANDLE_INVAL; in qed_iwarp_ll2_stop()
2570 if (iwarp_info->ll2_ooo_handle != QED_IWARP_HANDLE_INVAL) { in qed_iwarp_ll2_stop()
2572 iwarp_info->ll2_ooo_handle); in qed_iwarp_ll2_stop()
2576 qed_ll2_release_connection(p_hwfn, iwarp_info->ll2_ooo_handle); in qed_iwarp_ll2_stop()
2577 iwarp_info->ll2_ooo_handle = QED_IWARP_HANDLE_INVAL; in qed_iwarp_ll2_stop()
2580 if (iwarp_info->ll2_mpa_handle != QED_IWARP_HANDLE_INVAL) { in qed_iwarp_ll2_stop()
2582 iwarp_info->ll2_mpa_handle); in qed_iwarp_ll2_stop()
2586 qed_ll2_release_connection(p_hwfn, iwarp_info->ll2_mpa_handle); in qed_iwarp_ll2_stop()
2587 iwarp_info->ll2_mpa_handle = QED_IWARP_HANDLE_INVAL; in qed_iwarp_ll2_stop()
2639 struct qed_iwarp_info *iwarp_info; in qed_iwarp_ll2_start() local
2647 iwarp_info = &p_hwfn->p_rdma_info->iwarp; in qed_iwarp_ll2_start()
2648 iwarp_info->ll2_syn_handle = QED_IWARP_HANDLE_INVAL; in qed_iwarp_ll2_start()
2649 iwarp_info->ll2_ooo_handle = QED_IWARP_HANDLE_INVAL; in qed_iwarp_ll2_start()
2650 iwarp_info->ll2_mpa_handle = QED_IWARP_HANDLE_INVAL; in qed_iwarp_ll2_start()
2652 iwarp_info->max_mtu = params->max_mtu; in qed_iwarp_ll2_start()
2678 data.p_connection_handle = &iwarp_info->ll2_syn_handle; in qed_iwarp_ll2_start()
2688 rc = qed_ll2_establish_connection(p_hwfn, iwarp_info->ll2_syn_handle); in qed_iwarp_ll2_start()
2698 iwarp_info->ll2_syn_handle); in qed_iwarp_ll2_start()
2709 iwarp_info->max_mtu; in qed_iwarp_ll2_start()
2717 data.p_connection_handle = &iwarp_info->ll2_ooo_handle; in qed_iwarp_ll2_start()
2723 rc = qed_ll2_establish_connection(p_hwfn, iwarp_info->ll2_ooo_handle); in qed_iwarp_ll2_start()
2743 data.p_connection_handle = &iwarp_info->ll2_mpa_handle; in qed_iwarp_ll2_start()
2751 rc = qed_ll2_establish_connection(p_hwfn, iwarp_info->ll2_mpa_handle); in qed_iwarp_ll2_start()
2758 iwarp_info->ll2_mpa_handle); in qed_iwarp_ll2_start()
2762 iwarp_info->partial_fpdus = kcalloc((u16)p_hwfn->p_rdma_info->num_qps, in qed_iwarp_ll2_start()
2763 sizeof(*iwarp_info->partial_fpdus), in qed_iwarp_ll2_start()
2765 if (!iwarp_info->partial_fpdus) { in qed_iwarp_ll2_start()
2770 iwarp_info->max_num_partial_fpdus = (u16)p_hwfn->p_rdma_info->num_qps; in qed_iwarp_ll2_start()
2772 iwarp_info->mpa_intermediate_buf = kzalloc(buff_size, GFP_KERNEL); in qed_iwarp_ll2_start()
2773 if (!iwarp_info->mpa_intermediate_buf) { in qed_iwarp_ll2_start()
2783 iwarp_info->mpa_bufs = kcalloc(data.input.rx_num_desc, in qed_iwarp_ll2_start()
2784 sizeof(*iwarp_info->mpa_bufs), in qed_iwarp_ll2_start()
2786 if (!iwarp_info->mpa_bufs) { in qed_iwarp_ll2_start()
2791 INIT_LIST_HEAD(&iwarp_info->mpa_buf_pending_list); in qed_iwarp_ll2_start()
2792 INIT_LIST_HEAD(&iwarp_info->mpa_buf_list); in qed_iwarp_ll2_start()
2794 list_add_tail(&iwarp_info->mpa_bufs[i].list_entry, in qed_iwarp_ll2_start()
2795 &iwarp_info->mpa_buf_list); in qed_iwarp_ll2_start()
2815 struct qed_iwarp_info *iwarp_info; in qed_iwarp_setup() local
2819 iwarp_info = &p_hwfn->p_rdma_info->iwarp; in qed_iwarp_setup()
2821 iwarp_info->tcp_flags = QED_IWARP_TS_EN; in qed_iwarp_setup()
2829 iwarp_info->rcv_wnd_scale = ilog2(rcv_wnd_size) - in qed_iwarp_setup()
2831 iwarp_info->rcv_wnd_size = rcv_wnd_size >> iwarp_info->rcv_wnd_scale; in qed_iwarp_setup()
2832 iwarp_info->crc_needed = QED_IWARP_PARAM_CRC_NEEDED; in qed_iwarp_setup()
2833 iwarp_info->mpa_rev = MPA_NEGOTIATION_TYPE_ENHANCED; in qed_iwarp_setup()
2835 iwarp_info->peer2peer = QED_IWARP_PARAM_P2P; in qed_iwarp_setup()
2837 iwarp_info->rtr_type = MPA_RTR_TYPE_ZERO_SEND | in qed_iwarp_setup()