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