Lines Matching refs:ttinfo
1155 struct cxgbi_task_tag_info *ttinfo, in cxgbi_ddp_set_one_ppod() argument
1164 memcpy(ppod, &ttinfo->hdr, sizeof(struct cxgbi_pagepod_hdr)); in cxgbi_ddp_set_one_ppod()
1267 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in cxgbi_ddp_reserve() local
1268 struct scatterlist *sgl = ttinfo->sgl; in cxgbi_ddp_reserve()
1269 unsigned int sgcnt = ttinfo->nents; in cxgbi_ddp_reserve()
1284 xferlen, ttinfo->nents); in cxgbi_ddp_reserve()
1292 ttinfo->nr_pages = (xferlen + sgl->offset + (1 << PAGE_SHIFT) - 1) >> in cxgbi_ddp_reserve()
1300 err = cxgbi_ppm_ppods_reserve(ppm, ttinfo->nr_pages, 0, &ttinfo->idx, in cxgbi_ddp_reserve()
1301 &ttinfo->tag, (unsigned long)sw_tag); in cxgbi_ddp_reserve()
1306 ttinfo->npods = err; in cxgbi_ddp_reserve()
1317 if (err != ttinfo->nr_pages) { in cxgbi_ddp_reserve()
1323 ttinfo->flags |= CXGBI_PPOD_INFO_FLAG_MAPPED; in cxgbi_ddp_reserve()
1324 ttinfo->cid = csk->port_id; in cxgbi_ddp_reserve()
1326 cxgbi_ppm_make_ppod_hdr(ppm, ttinfo->tag, csk->tid, sgl->offset, in cxgbi_ddp_reserve()
1327 xferlen, &ttinfo->hdr); in cxgbi_ddp_reserve()
1331 ttinfo->flags |= CXGBI_PPOD_INFO_FLAG_VALID; in cxgbi_ddp_reserve()
1334 err = cdev->csk_ddp_set_map(ppm, csk, ttinfo); in cxgbi_ddp_reserve()
1342 cxgbi_ppm_ppod_release(ppm, ttinfo->idx); in cxgbi_ddp_reserve()
1344 if (ttinfo->flags & CXGBI_PPOD_INFO_FLAG_MAPPED) { in cxgbi_ddp_reserve()
1345 ttinfo->flags &= ~CXGBI_PPOD_INFO_FLAG_MAPPED; in cxgbi_ddp_reserve()
1366 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in task_release_itt() local
1369 cdev->csk_ddp_clear_map(cdev, ppm, ttinfo); in task_release_itt()
1370 cxgbi_ppm_ppod_release(ppm, ttinfo->idx); in task_release_itt()
1371 dma_unmap_sg(&ppm->pdev->dev, ttinfo->sgl, ttinfo->nents, in task_release_itt()
1397 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in task_reserve_itt() local
1399 scmd_get_params(sc, &ttinfo->sgl, &ttinfo->nents, in task_reserve_itt()
1403 tag = ttinfo->tag; in task_reserve_itt()
1408 ttinfo->nents); in task_reserve_itt()
2367 struct cxgbi_task_tag_info *ttinfo = &tdata->ttinfo; in cxgbi_conn_xmit_pdu() local
2401 if (ttinfo->flags & CXGBI_PPOD_INFO_FLAG_VALID) { in cxgbi_conn_xmit_pdu()
2404 ttinfo->flags &= ~CXGBI_PPOD_INFO_FLAG_VALID; in cxgbi_conn_xmit_pdu()
2405 if (csk->cdev->csk_ddp_set_map(ppm, csk, ttinfo) < 0) in cxgbi_conn_xmit_pdu()