Lines Matching defs:desc
13 struct idxd_desc *desc;
16 desc = wq->descs[idx];
17 memset(desc->hw, 0, sizeof(struct dsa_hw_desc));
18 memset(desc->completion, 0, idxd->data->compl_size);
19 desc->cpu = cpu;
22 desc->hw->pasid = idxd->pasid;
24 return desc;
65 void idxd_free_desc(struct idxd_wq *wq, struct idxd_desc *desc)
67 int cpu = desc->cpu;
69 desc->cpu = -1;
70 sbitmap_queue_clear(&wq->sbq, desc->id, cpu);
74 struct idxd_desc *desc)
80 if (d == desc) {
87 * At this point, the desc needs to be aborted is held by the completion
96 struct idxd_desc *desc)
102 desc->completion->status = IDXD_COMP_DESC_ABORT;
111 if (d == desc) {
112 found = desc;
124 found = list_abort_desc(wq, ie, desc);
131 * completing the descriptor will return desc to allocator and
132 * the desc can be acquired by a different process and the
133 * desc->list can be modified. Delete desc from list so the
151 int idxd_enqcmds(struct idxd_wq *wq, void __iomem *portal, const void *desc)
157 rc = enqcmds(portal, desc);
166 int idxd_submit_desc(struct idxd_wq *wq, struct idxd_desc *desc)
170 u32 desc_flags = desc->hw->flags;
191 desc->hw->int_handle = ie->int_handle;
192 llist_add(&desc->llnode, &ie->pending_llist);
203 iosubmit_cmds512(portal, desc->hw, 1);
205 rc = idxd_enqcmds(wq, portal, desc->hw);
210 llist_abort_desc(wq, ie, desc);