Lines Matching refs:ttinfo

10 		    struct cxgbi_task_tag_info *ttinfo,
19 memcpy(ppod, &ttinfo->hdr, sizeof(struct cxgbi_pagepod_hdr));
99 struct cxgbi_task_tag_info *ttinfo, unsigned int idx,
119 cxgbit_set_one_ppod(ppod, ttinfo, sg_pp, sg_off);
128 struct cxgbi_task_tag_info *ttinfo)
130 unsigned int pidx = ttinfo->idx;
131 unsigned int npods = ttinfo->npods;
133 struct scatterlist *sg = ttinfo->sgl;
143 ret = cxgbit_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt,
171 cxgbit_ddp_reserve(struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo,
176 struct scatterlist *sgl = ttinfo->sgl;
177 unsigned int sgcnt = ttinfo->nents;
184 xferlen, ttinfo->nents);
191 ttinfo->nr_pages = (xferlen + sgl->offset +
197 ret = cxgbi_ppm_ppods_reserve(ppm, ttinfo->nr_pages, 0, &ttinfo->idx,
198 &ttinfo->tag, 0);
201 ttinfo->npods = ret;
212 cxgbi_ppm_make_ppod_hdr(ppm, ttinfo->tag, csk->tid, sgl->offset,
213 xferlen, &ttinfo->hdr);
215 ret = cxgbit_ddp_set_map(ppm, csk, ttinfo);
225 cxgbi_ppm_ppod_release(ppm, ttinfo->idx);
236 struct cxgbi_task_tag_info *ttinfo = &ccmd->ttinfo;
245 ttinfo->sgl = cmd->se_cmd.t_data_sg;
246 ttinfo->nents = cmd->se_cmd.t_data_nents;
248 ret = cxgbit_ddp_reserve(csk, ttinfo, cmd->se_cmd.data_length);
251 csk, cmd, cmd->se_cmd.data_length, ttinfo->nents);
253 ttinfo->sgl = NULL;
254 ttinfo->nents = 0;
259 pr_debug("cdev 0x%p, cmd 0x%p, tag 0x%x\n", cdev, cmd, ttinfo->tag);
260 r2t->targ_xfer_tag = ttinfo->tag;
274 struct cxgbi_task_tag_info *ttinfo = &ccmd->ttinfo;
284 if (unlikely(ttinfo->sgl)) {
285 dma_unmap_sg(&ppm->pdev->dev, ttinfo->sgl,
286 ttinfo->nents, DMA_FROM_DEVICE);
287 ttinfo->nents = 0;
288 ttinfo->sgl = NULL;
290 cxgbi_ppm_ppod_release(ppm, ttinfo->idx);