Lines Matching refs:dma

49  * automatically set as dma devices are registered.
73 * enum dma_transfer_direction - dma transfer mode and direction indicator
313 * @device: ptr to the dma device who supplies this channel, always !%NULL
385 * struct dma_slave_config - dma slave channel runtime config
419 * @slave_id: Slave requester id. Only valid for slave channels. The dma
420 * slave peripheral will have unique id as dma requester which need to be
488 * each type, the dma controller should set BIT(<TYPE>) and same
579 * ---dma generic offload fields---
783 * @dev: struct device reference for dma mapping api
791 * each type, the dma controller should set BIT(<TYPE>) and same
811 * @device_prep_slave_sg: prepares a slave dma operation
812 * @device_prep_dma_cyclic: prepare a cyclic dma operation suitable for audio.
1214 static inline void dma_set_maxpq(struct dma_device *dma, int maxpq, int has_pq_continue)
1216 dma->max_pq = maxpq;
1218 dma->max_pq |= DMA_HAS_PQ_CONTINUE;
1234 static inline bool dma_dev_has_pq_continue(struct dma_device *dma)
1236 return (dma->max_pq & DMA_HAS_PQ_CONTINUE) == DMA_HAS_PQ_CONTINUE;
1239 static inline unsigned short dma_dev_to_maxpq(struct dma_device *dma)
1241 return dma->max_pq & ~DMA_HAS_PQ_CONTINUE;
1245 * @dma - dma device with PQ capability
1257 static inline int dma_maxpq(struct dma_device *dma, enum dma_ctrl_flags flags)
1259 if (dma_dev_has_pq_continue(dma) || !dmaf_continue(flags)) {
1260 return dma_dev_to_maxpq(dma);
1263 return dma_dev_to_maxpq(dma) - 1;
1266 return dma_dev_to_maxpq(dma) - 3;