Lines Matching refs:idxd_chan
17 struct idxd_dma_chan *idxd_chan; in to_idxd_wq() local
19 idxd_chan = container_of(c, struct idxd_dma_chan, chan); in to_idxd_wq()
20 return idxd_chan->wq; in to_idxd_wq()
253 struct idxd_dma_chan *idxd_chan; in idxd_register_dma_channel() local
257 idxd_chan = kzalloc_node(sizeof(*idxd_chan), GFP_KERNEL, dev_to_node(dev)); in idxd_register_dma_channel()
258 if (!idxd_chan) in idxd_register_dma_channel()
261 chan = &idxd_chan->chan; in idxd_register_dma_channel()
274 kfree(idxd_chan); in idxd_register_dma_channel()
278 wq->idxd_chan = idxd_chan; in idxd_register_dma_channel()
279 idxd_chan->wq = wq; in idxd_register_dma_channel()
287 struct idxd_dma_chan *idxd_chan = wq->idxd_chan; in idxd_unregister_dma_channel() local
288 struct dma_chan *chan = &idxd_chan->chan; in idxd_unregister_dma_channel()
293 kfree(wq->idxd_chan); in idxd_unregister_dma_channel()
294 wq->idxd_chan = NULL; in idxd_unregister_dma_channel()