Lines Matching refs:desc

13 	struct idxd_desc *desc;  in __get_desc()  local
16 desc = wq->descs[idx]; in __get_desc()
17 memset(desc->hw, 0, sizeof(struct dsa_hw_desc)); in __get_desc()
18 memset(desc->completion, 0, idxd->data->compl_size); in __get_desc()
19 desc->cpu = cpu; in __get_desc()
22 desc->hw->pasid = idxd->pasid; in __get_desc()
24 return desc; in __get_desc()
65 void idxd_free_desc(struct idxd_wq *wq, struct idxd_desc *desc) in idxd_free_desc() argument
67 int cpu = desc->cpu; in idxd_free_desc()
69 desc->cpu = -1; in idxd_free_desc()
70 sbitmap_queue_clear(&wq->sbq, desc->id, cpu); in idxd_free_desc()
74 struct idxd_desc *desc) in list_abort_desc() argument
80 if (d == desc) { in list_abort_desc()
96 struct idxd_desc *desc) in llist_abort_desc() argument
102 desc->completion->status = IDXD_COMP_DESC_ABORT; in llist_abort_desc()
111 if (d == desc) { in llist_abort_desc()
112 found = desc; in llist_abort_desc()
124 found = list_abort_desc(wq, ie, desc); in llist_abort_desc()
151 int idxd_enqcmds(struct idxd_wq *wq, void __iomem *portal, const void *desc) in idxd_enqcmds() argument
157 rc = enqcmds(portal, desc); in idxd_enqcmds()
166 int idxd_submit_desc(struct idxd_wq *wq, struct idxd_desc *desc) in idxd_submit_desc() argument
170 u32 desc_flags = desc->hw->flags; in idxd_submit_desc()
191 desc->hw->int_handle = ie->int_handle; in idxd_submit_desc()
192 llist_add(&desc->llnode, &ie->pending_llist); in idxd_submit_desc()
203 iosubmit_cmds512(portal, desc->hw, 1); in idxd_submit_desc()
205 rc = idxd_enqcmds(wq, portal, desc->hw); in idxd_submit_desc()
210 llist_abort_desc(wq, ie, desc); in idxd_submit_desc()