Lines Matching refs:ttinfo
1224 struct cxgbi_task_tag_info *ttinfo, in cxgbi_ddp_set_one_ppod() argument
1233 memcpy(ppod, &ttinfo->hdr, sizeof(struct cxgbi_pagepod_hdr)); in cxgbi_ddp_set_one_ppod()
1335 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in cxgbi_ddp_reserve() local
1336 struct scatterlist *sgl = ttinfo->sgl; in cxgbi_ddp_reserve()
1337 unsigned int sgcnt = ttinfo->nents; in cxgbi_ddp_reserve()
1352 xferlen, ttinfo->nents); in cxgbi_ddp_reserve()
1360 ttinfo->nr_pages = (xferlen + sgl->offset + (1 << PAGE_SHIFT) - 1) >> in cxgbi_ddp_reserve()
1368 err = cxgbi_ppm_ppods_reserve(ppm, ttinfo->nr_pages, 0, &ttinfo->idx, in cxgbi_ddp_reserve()
1369 &ttinfo->tag, (unsigned long)sw_tag); in cxgbi_ddp_reserve()
1374 ttinfo->npods = err; in cxgbi_ddp_reserve()
1385 if (err != ttinfo->nr_pages) { in cxgbi_ddp_reserve()
1391 ttinfo->flags |= CXGBI_PPOD_INFO_FLAG_MAPPED; in cxgbi_ddp_reserve()
1392 ttinfo->cid = csk->port_id; in cxgbi_ddp_reserve()
1394 cxgbi_ppm_make_ppod_hdr(ppm, ttinfo->tag, csk->tid, sgl->offset, in cxgbi_ddp_reserve()
1395 xferlen, &ttinfo->hdr); in cxgbi_ddp_reserve()
1399 ttinfo->flags |= CXGBI_PPOD_INFO_FLAG_VALID; in cxgbi_ddp_reserve()
1402 err = cdev->csk_ddp_set_map(ppm, csk, ttinfo); in cxgbi_ddp_reserve()
1410 cxgbi_ppm_ppod_release(ppm, ttinfo->idx); in cxgbi_ddp_reserve()
1412 if (ttinfo->flags & CXGBI_PPOD_INFO_FLAG_MAPPED) { in cxgbi_ddp_reserve()
1413 ttinfo->flags &= ~CXGBI_PPOD_INFO_FLAG_MAPPED; in cxgbi_ddp_reserve()
1435 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in task_release_itt() local
1438 cdev->csk_ddp_clear_map(cdev, ppm, ttinfo); in task_release_itt()
1439 cxgbi_ppm_ppod_release(ppm, ttinfo->idx); in task_release_itt()
1440 dma_unmap_sg(&ppm->pdev->dev, ttinfo->sgl, ttinfo->nents, in task_release_itt()
1468 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in task_reserve_itt() local
1470 scmd_get_params(sc, &ttinfo->sgl, &ttinfo->nents, in task_reserve_itt()
1474 tag = ttinfo->tag; in task_reserve_itt()
1479 ttinfo->nents); in task_reserve_itt()
2062 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in cxgbi_conn_xmit_pdu() local
2086 if (ttinfo->flags & CXGBI_PPOD_INFO_FLAG_VALID) { in cxgbi_conn_xmit_pdu()
2089 ttinfo->flags &= ~CXGBI_PPOD_INFO_FLAG_VALID; in cxgbi_conn_xmit_pdu()
2090 if (csk->cdev->csk_ddp_set_map(ppm, csk, ttinfo) < 0) in cxgbi_conn_xmit_pdu()