Lines Matching refs:txbuf

1194  * @txbuf: tx buffer for sending back
1200 struct irdma_puda_buf *txbuf,
1204 void *mem2 = (u8 *)txbuf->mem.va + txbuf_offset;
1212 * @txbuf: buffer to prepare
1215 struct irdma_puda_buf *txbuf)
1217 txbuf->tcphlen = buf->tcphlen;
1218 txbuf->ipv4 = buf->ipv4;
1221 txbuf->hdrlen = txbuf->tcphlen;
1222 irdma_ieq_copy_to_txbuf(buf, txbuf, IRDMA_TCP_OFFSET, 0,
1223 txbuf->hdrlen);
1225 txbuf->maclen = buf->maclen;
1226 txbuf->hdrlen = buf->hdrlen;
1227 irdma_ieq_copy_to_txbuf(buf, txbuf, 0, 0, buf->hdrlen);
1251 * irdma_ieq_compl_pfpdu - write txbuf with full fpdu
1255 * @txbuf: tx buffer for fpdu
1261 struct irdma_puda_buf *txbuf, u16 fpdu_len)
1272 irdma_ieq_setup_tx_buf(buf, txbuf);
1274 txoffset = txbuf->hdrlen;
1275 txbuf->totallen = txbuf->hdrlen + fpdu_len;
1276 txbuf->data = (u8 *)txbuf->mem.va + txoffset;
1279 txbuf->totallen = buf->hdrlen + fpdu_len;
1280 txbuf->data = (u8 *)txbuf->mem.va + buf->hdrlen;
1287 irdma_ieq_copy_to_txbuf(buf, txbuf, bufoffset, txoffset,
1295 irdma_ieq_copy_to_txbuf(buf, txbuf, bufoffset, txoffset,
1374 struct irdma_puda_buf *txbuf = NULL;
1386 txbuf = irdma_puda_get_bufpool(ieq);
1387 if (!txbuf) {
1393 irdma_ieq_compl_pfpdu(ieq, rxlist, &pbufl, txbuf, fpdu_len);
1394 irdma_ieq_update_tcpip_info(txbuf, fpdu_len, seqnum);
1396 crcptr = txbuf->data + fpdu_len - 4;
1399 status = irdma_ieq_check_mpacrc(ieq->hash_desc, txbuf->data,
1408 txbuf->mem.va, txbuf->totallen, false);
1410 txbuf->ah_id = pfpdu->ah->ah_info.ah_idx;
1411 txbuf->do_lpb = true;
1412 irdma_puda_send_buf(ieq, txbuf);
1421 if (txbuf)
1422 irdma_puda_ret_bufpool(ieq, txbuf);
1447 struct irdma_puda_buf *txbuf;
1484 /* copy full pdu's in the txbuf and send them out */
1485 txbuf = irdma_puda_get_bufpool(ieq);
1486 if (!txbuf) {
1491 /* modify txbuf's buffer header */
1492 irdma_ieq_setup_tx_buf(buf, txbuf);
1495 irdma_ieq_copy_to_txbuf(buf, txbuf, ioffset,
1496 txbuf->hdrlen, len);
1497 txbuf->totallen = txbuf->hdrlen + len;
1498 txbuf->ah_id = pfpdu->ah->ah_info.ah_idx;
1500 irdma_ieq_copy_to_txbuf(buf, txbuf, ioffset,
1502 txbuf->totallen = buf->hdrlen + len;
1504 irdma_ieq_update_tcpip_info(txbuf, len, buf->seqnum);
1506 16, 8, txbuf->mem.va, txbuf->totallen,
1508 txbuf->do_lpb = true;
1509 irdma_puda_send_buf(ieq, txbuf);