Lines Matching defs:desc
99 struct hisi_dma_desc *desc;
250 struct hisi_dma_desc *desc;
252 desc = kzalloc(sizeof(*desc), GFP_NOWAIT);
253 if (!desc)
256 desc->sqe.length = cpu_to_le32(len);
257 desc->sqe.src_addr = cpu_to_le64(src);
258 desc->sqe.dst_addr = cpu_to_le64(dst);
260 return vchan_tx_prep(&chan->vc, &desc->vd, flags);
274 struct hisi_dma_desc *desc;
279 chan->desc = NULL;
283 desc = to_hisi_dma_desc(vd);
284 chan->desc = desc;
286 memcpy(sqe, &desc->sqe, sizeof(struct hisi_dma_sqe));
310 if (vchan_issue_pending(&chan->vc) && !chan->desc)
325 if (chan->desc) {
326 vchan_terminate_vdesc(&chan->desc->vd);
327 chan->desc = NULL;
435 struct hisi_dma_desc *desc;
441 desc = chan->desc;
443 if (desc) {
448 vchan_cookie_complete(&desc->vd);