Lines Matching refs:ttinfo

13 		    struct cxgbi_task_tag_info *ttinfo,  in cxgbit_set_one_ppod()  argument
22 memcpy(ppod, &ttinfo->hdr, sizeof(struct cxgbi_pagepod_hdr)); in cxgbit_set_one_ppod()
102 struct cxgbi_task_tag_info *ttinfo, unsigned int idx, in cxgbit_ppod_write_idata() argument
122 cxgbit_set_one_ppod(ppod, ttinfo, sg_pp, sg_off); in cxgbit_ppod_write_idata()
131 struct cxgbi_task_tag_info *ttinfo) in cxgbit_ddp_set_map() argument
133 unsigned int pidx = ttinfo->idx; in cxgbit_ddp_set_map()
134 unsigned int npods = ttinfo->npods; in cxgbit_ddp_set_map()
136 struct scatterlist *sg = ttinfo->sgl; in cxgbit_ddp_set_map()
146 ret = cxgbit_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt, in cxgbit_ddp_set_map()
174 cxgbit_ddp_reserve(struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo, in cxgbit_ddp_reserve() argument
179 struct scatterlist *sgl = ttinfo->sgl; in cxgbit_ddp_reserve()
180 unsigned int sgcnt = ttinfo->nents; in cxgbit_ddp_reserve()
187 xferlen, ttinfo->nents); in cxgbit_ddp_reserve()
194 ttinfo->nr_pages = (xferlen + sgl->offset + in cxgbit_ddp_reserve()
200 ret = cxgbi_ppm_ppods_reserve(ppm, ttinfo->nr_pages, 0, &ttinfo->idx, in cxgbit_ddp_reserve()
201 &ttinfo->tag, 0); in cxgbit_ddp_reserve()
204 ttinfo->npods = ret; in cxgbit_ddp_reserve()
215 cxgbi_ppm_make_ppod_hdr(ppm, ttinfo->tag, csk->tid, sgl->offset, in cxgbit_ddp_reserve()
216 xferlen, &ttinfo->hdr); in cxgbit_ddp_reserve()
218 ret = cxgbit_ddp_set_map(ppm, csk, ttinfo); in cxgbit_ddp_reserve()
228 cxgbi_ppm_ppod_release(ppm, ttinfo->idx); in cxgbit_ddp_reserve()
239 struct cxgbi_task_tag_info *ttinfo = &ccmd->ttinfo; in cxgbit_get_r2t_ttt() local
248 ttinfo->sgl = cmd->se_cmd.t_data_sg; in cxgbit_get_r2t_ttt()
249 ttinfo->nents = cmd->se_cmd.t_data_nents; in cxgbit_get_r2t_ttt()
251 ret = cxgbit_ddp_reserve(csk, ttinfo, cmd->se_cmd.data_length); in cxgbit_get_r2t_ttt()
254 csk, cmd, cmd->se_cmd.data_length, ttinfo->nents); in cxgbit_get_r2t_ttt()
256 ttinfo->sgl = NULL; in cxgbit_get_r2t_ttt()
257 ttinfo->nents = 0; in cxgbit_get_r2t_ttt()
262 pr_debug("cdev 0x%p, cmd 0x%p, tag 0x%x\n", cdev, cmd, ttinfo->tag); in cxgbit_get_r2t_ttt()
263 r2t->targ_xfer_tag = ttinfo->tag; in cxgbit_get_r2t_ttt()
271 struct cxgbi_task_tag_info *ttinfo = &ccmd->ttinfo; in cxgbit_release_cmd() local
273 if (ttinfo->sgl) { in cxgbit_release_cmd()
286 cxgbi_ppm_ppod_release(ppm, ttinfo->idx); in cxgbit_release_cmd()
288 dma_unmap_sg(&ppm->pdev->dev, ttinfo->sgl, in cxgbit_release_cmd()
289 ttinfo->nents, DMA_FROM_DEVICE); in cxgbit_release_cmd()