• Home
  • Raw
  • Download

Lines Matching refs:dma

19 int qce_dma_request(struct device *dev, struct qce_dma_data *dma)  in qce_dma_request()  argument
23 dma->txchan = dma_request_slave_channel_reason(dev, "tx"); in qce_dma_request()
24 if (IS_ERR(dma->txchan)) in qce_dma_request()
25 return PTR_ERR(dma->txchan); in qce_dma_request()
27 dma->rxchan = dma_request_slave_channel_reason(dev, "rx"); in qce_dma_request()
28 if (IS_ERR(dma->rxchan)) { in qce_dma_request()
29 ret = PTR_ERR(dma->rxchan); in qce_dma_request()
33 dma->result_buf = kmalloc(QCE_RESULT_BUF_SZ + QCE_IGNORE_BUF_SZ, in qce_dma_request()
35 if (!dma->result_buf) { in qce_dma_request()
40 dma->ignore_buf = dma->result_buf + QCE_RESULT_BUF_SZ; in qce_dma_request()
44 dma_release_channel(dma->rxchan); in qce_dma_request()
46 dma_release_channel(dma->txchan); in qce_dma_request()
50 void qce_dma_release(struct qce_dma_data *dma) in qce_dma_release() argument
52 dma_release_channel(dma->txchan); in qce_dma_release()
53 dma_release_channel(dma->rxchan); in qce_dma_release()
54 kfree(dma->result_buf); in qce_dma_release()
104 int qce_dma_prep_sgs(struct qce_dma_data *dma, struct scatterlist *rx_sg, in qce_dma_prep_sgs() argument
108 struct dma_chan *rxchan = dma->rxchan; in qce_dma_prep_sgs()
109 struct dma_chan *txchan = dma->txchan; in qce_dma_prep_sgs()
122 void qce_dma_issue_pending(struct qce_dma_data *dma) in qce_dma_issue_pending() argument
124 dma_async_issue_pending(dma->rxchan); in qce_dma_issue_pending()
125 dma_async_issue_pending(dma->txchan); in qce_dma_issue_pending()
128 int qce_dma_terminate_all(struct qce_dma_data *dma) in qce_dma_terminate_all() argument
132 ret = dmaengine_terminate_all(dma->rxchan); in qce_dma_terminate_all()
133 return ret ?: dmaengine_terminate_all(dma->txchan); in qce_dma_terminate_all()