Lines Matching refs:fpdu_len
1160 u16 fpdu_len; in irdma_ieq_get_fpdu_len() local
1173 fpdu_len = ntohs(*(__be16 *)datap); in irdma_ieq_get_fpdu_len()
1174 fpdu_len += IRDMA_IEQ_MPA_FRAMING; in irdma_ieq_get_fpdu_len()
1175 fpdu_len = (fpdu_len + 3) & 0xfffc; in irdma_ieq_get_fpdu_len()
1177 if (fpdu_len > pfpdu->max_fpdu_data) in irdma_ieq_get_fpdu_len()
1180 total_len += fpdu_len; in irdma_ieq_get_fpdu_len()
1261 struct irdma_puda_buf *txbuf, u16 fpdu_len) in irdma_ieq_compl_pfpdu() argument
1271 nextseqnum = buf->seqnum + fpdu_len; in irdma_ieq_compl_pfpdu()
1275 txbuf->totallen = txbuf->hdrlen + fpdu_len; in irdma_ieq_compl_pfpdu()
1279 txbuf->totallen = buf->hdrlen + fpdu_len; in irdma_ieq_compl_pfpdu()
1285 if (buf->datalen >= fpdu_len) { in irdma_ieq_compl_pfpdu()
1288 fpdu_len); in irdma_ieq_compl_pfpdu()
1289 buf->datalen -= fpdu_len; in irdma_ieq_compl_pfpdu()
1290 buf->data += fpdu_len; in irdma_ieq_compl_pfpdu()
1298 fpdu_len -= buf->datalen; in irdma_ieq_compl_pfpdu()
1325 struct irdma_puda_buf *buf, u16 fpdu_len) in irdma_ieq_create_pbufl() argument
1330 u16 plen = fpdu_len - buf->datalen; in irdma_ieq_create_pbufl()
1367 struct irdma_puda_buf *buf, u16 fpdu_len) in irdma_ieq_handle_partial() argument
1382 status = irdma_ieq_create_pbufl(pfpdu, rxlist, &pbufl, buf, fpdu_len); in irdma_ieq_handle_partial()
1393 irdma_ieq_compl_pfpdu(ieq, rxlist, &pbufl, txbuf, fpdu_len); in irdma_ieq_handle_partial()
1394 irdma_ieq_update_tcpip_info(txbuf, fpdu_len, seqnum); in irdma_ieq_handle_partial()
1396 crcptr = txbuf->data + fpdu_len - 4; in irdma_ieq_handle_partial()
1400 (fpdu_len - 4), mpacrc); in irdma_ieq_handle_partial()
1413 pfpdu->rcv_nxt = seqnum + fpdu_len; in irdma_ieq_handle_partial()
1437 u16 fpdu_len = 0; in irdma_ieq_process_buf() local
1453 fpdu_len = irdma_ieq_get_fpdu_len(pfpdu, datap, buf->seqnum); in irdma_ieq_process_buf()
1454 if (!fpdu_len) { in irdma_ieq_process_buf()
1461 if (datalen < fpdu_len) { in irdma_ieq_process_buf()
1465 crcptr = datap + fpdu_len - 4; in irdma_ieq_process_buf()
1469 fpdu_len - 4, mpacrc); in irdma_ieq_process_buf()
1479 datap += fpdu_len; in irdma_ieq_process_buf()
1480 len += fpdu_len; in irdma_ieq_process_buf()
1481 datalen -= fpdu_len; in irdma_ieq_process_buf()
1522 return irdma_ieq_handle_partial(ieq, pfpdu, buf, fpdu_len); in irdma_ieq_process_buf()