mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
async_tx: make async_tx_test_ack a boolean routine
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
3dce017137
commit
0839875e0c
@ -375,16 +375,14 @@ dma_cookie_t dma_async_memcpy_pg_to_pg(struct dma_chan *chan,
|
|||||||
void dma_async_tx_descriptor_init(struct dma_async_tx_descriptor *tx,
|
void dma_async_tx_descriptor_init(struct dma_async_tx_descriptor *tx,
|
||||||
struct dma_chan *chan);
|
struct dma_chan *chan);
|
||||||
|
|
||||||
static inline void
|
static inline void async_tx_ack(struct dma_async_tx_descriptor *tx)
|
||||||
async_tx_ack(struct dma_async_tx_descriptor *tx)
|
|
||||||
{
|
{
|
||||||
tx->flags |= DMA_CTRL_ACK;
|
tx->flags |= DMA_CTRL_ACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline bool async_tx_test_ack(struct dma_async_tx_descriptor *tx)
|
||||||
async_tx_test_ack(struct dma_async_tx_descriptor *tx)
|
|
||||||
{
|
{
|
||||||
return tx->flags & DMA_CTRL_ACK;
|
return (tx->flags & DMA_CTRL_ACK) == DMA_CTRL_ACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define first_dma_cap(mask) __first_dma_cap(&(mask))
|
#define first_dma_cap(mask) __first_dma_cap(&(mask))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user