Lines Matching refs:mpa_buf
1871 fpdu->mpa_buf = buf; in qed_iwarp_init_fpdu()
1920 rc = qed_iwarp_recycle_pkt(p_hwfn, fpdu, fpdu->mpa_buf); in qed_iwarp_cp_pkt()
1930 fpdu->mpa_buf = buf; in qed_iwarp_cp_pkt()
2080 tx_pkt.cookie = fpdu->mpa_buf; in qed_iwarp_send_fpdu()
2094 fpdu->mpa_buf->piggy_buf = buf; in qed_iwarp_send_fpdu()
2154 struct qed_iwarp_ll2_mpa_buf *mpa_buf) in qed_iwarp_process_mpa_pkt() argument
2156 struct unaligned_opaque_data *curr_pkt = &mpa_buf->data; in qed_iwarp_process_mpa_pkt()
2157 struct qed_iwarp_ll2_buff *buf = mpa_buf->ll2_buf; in qed_iwarp_process_mpa_pkt()
2178 mpa_buf->tcp_payload_len, in qed_iwarp_process_mpa_pkt()
2185 mpa_buf->tcp_payload_len, in qed_iwarp_process_mpa_pkt()
2186 mpa_buf->placement_offset); in qed_iwarp_process_mpa_pkt()
2189 mpa_buf->tcp_payload_len = 0; in qed_iwarp_process_mpa_pkt()
2202 mpa_buf->tcp_payload_len = 0; in qed_iwarp_process_mpa_pkt()
2207 mpa_buf->tcp_payload_len, in qed_iwarp_process_mpa_pkt()
2208 mpa_buf->placement_offset); in qed_iwarp_process_mpa_pkt()
2211 mpa_buf->tcp_payload_len, in qed_iwarp_process_mpa_pkt()
2220 mpa_buf->tcp_payload_len -= fpdu->fpdu_length; in qed_iwarp_process_mpa_pkt()
2226 if (mpa_buf->tcp_payload_len < fpdu->incomplete_bytes) { in qed_iwarp_process_mpa_pkt()
2240 mpa_buf->tcp_payload_len); in qed_iwarp_process_mpa_pkt()
2244 mpa_buf->tcp_payload_len = 0; in qed_iwarp_process_mpa_pkt()
2249 mpa_buf->tcp_payload_len, in qed_iwarp_process_mpa_pkt()
2260 mpa_buf->tcp_payload_len -= fpdu->incomplete_bytes; in qed_iwarp_process_mpa_pkt()
2268 } while (mpa_buf->tcp_payload_len && !rc); in qed_iwarp_process_mpa_pkt()
2282 struct qed_iwarp_ll2_mpa_buf *mpa_buf = NULL; in qed_iwarp_process_pending_pkts() local
2286 mpa_buf = list_first_entry(&iwarp_info->mpa_buf_pending_list, in qed_iwarp_process_pending_pkts()
2290 rc = qed_iwarp_process_mpa_pkt(p_hwfn, mpa_buf); in qed_iwarp_process_pending_pkts()
2298 list_move_tail(&mpa_buf->list_entry, in qed_iwarp_process_pending_pkts()
2311 struct qed_iwarp_ll2_mpa_buf *mpa_buf; in qed_iwarp_ll2_comp_mpa_pkt() local
2317 mpa_buf = list_first_entry(&iwarp_info->mpa_buf_list, in qed_iwarp_ll2_comp_mpa_pkt()
2319 if (!mpa_buf) { in qed_iwarp_ll2_comp_mpa_pkt()
2324 list_del(&mpa_buf->list_entry); in qed_iwarp_ll2_comp_mpa_pkt()
2325 qed_iwarp_mpa_get_data(p_hwfn, &mpa_buf->data, in qed_iwarp_ll2_comp_mpa_pkt()
2328 first_mpa_offset = le16_to_cpu(mpa_buf->data.first_mpa_offset); in qed_iwarp_ll2_comp_mpa_pkt()
2334 mpa_buf->data.tcp_payload_offset, mpa_buf->data.flags, in qed_iwarp_ll2_comp_mpa_pkt()
2335 mpa_buf->data.cid); in qed_iwarp_ll2_comp_mpa_pkt()
2337 mpa_buf->ll2_buf = data->cookie; in qed_iwarp_ll2_comp_mpa_pkt()
2338 mpa_buf->tcp_payload_len = data->length.packet_length - in qed_iwarp_ll2_comp_mpa_pkt()
2342 mpa_buf->data.first_mpa_offset = cpu_to_le16(first_mpa_offset); in qed_iwarp_ll2_comp_mpa_pkt()
2343 mpa_buf->placement_offset = data->u.placement_offset; 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()