Lines Matching defs:desc
23 void idxd_dma_complete_txd(struct idxd_desc *desc,
30 if (desc->completion->status == DSA_COMP_SUCCESS)
32 else if (desc->completion->status)
39 tx = &desc->txd;
56 static inline void set_completion_address(struct idxd_desc *desc,
59 *compl_addr = desc->compl_dma;
90 struct idxd_desc *desc;
96 desc = idxd_alloc_desc(wq, IDXD_OP_BLOCK);
97 if (IS_ERR(desc))
100 idxd_prep_desc_common(wq, desc->hw, DSA_OPCODE_NOOP,
101 0, 0, 0, desc->compl_dma, desc_flags);
102 desc->txd.flags = flags;
103 return &desc->txd;
113 struct idxd_desc *desc;
122 desc = idxd_alloc_desc(wq, IDXD_OP_BLOCK);
123 if (IS_ERR(desc))
126 idxd_prep_desc_common(wq, desc->hw, DSA_OPCODE_MEMMOVE,
127 dma_src, dma_dest, len, desc->compl_dma,
130 desc->txd.flags = flags;
132 return &desc->txd;
177 struct idxd_desc *desc = container_of(tx, struct idxd_desc, txd);
181 rc = idxd_submit_desc(wq, desc);
183 idxd_free_desc(wq, desc);
266 struct idxd_desc *desc = wq->descs[i];
268 dma_async_tx_descriptor_init(&desc->txd, chan);
269 desc->txd.tx_submit = idxd_dma_tx_submit;