diff options
Diffstat (limited to 'drivers/dma/ioat/dma.h')
-rw-r--r-- | drivers/dma/ioat/dma.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h index 9653b6b6a715..c7888bccd974 100644 --- a/drivers/dma/ioat/dma.h +++ b/drivers/dma/ioat/dma.h | |||
@@ -142,27 +142,6 @@ static inline struct ioat_dma_chan *to_ioat_chan(struct dma_chan *c) | |||
142 | return container_of(chan, struct ioat_dma_chan, base); | 142 | return container_of(chan, struct ioat_dma_chan, base); |
143 | } | 143 | } |
144 | 144 | ||
145 | /** | ||
146 | * ioat_tx_status - poll the status of an ioat transaction | ||
147 | * @c: channel handle | ||
148 | * @cookie: transaction identifier | ||
149 | * @txstate: if set, updated with the transaction state | ||
150 | */ | ||
151 | static inline enum dma_status | ||
152 | ioat_tx_status(struct dma_chan *c, dma_cookie_t cookie, | ||
153 | struct dma_tx_state *txstate) | ||
154 | { | ||
155 | dma_cookie_t last_used; | ||
156 | dma_cookie_t last_complete; | ||
157 | |||
158 | last_used = c->cookie; | ||
159 | last_complete = c->completed_cookie; | ||
160 | |||
161 | dma_set_tx_state(txstate, last_complete, last_used, 0); | ||
162 | |||
163 | return dma_async_is_complete(cookie, last_complete, last_used); | ||
164 | } | ||
165 | |||
166 | /* wrapper around hardware descriptor format + additional software fields */ | 145 | /* wrapper around hardware descriptor format + additional software fields */ |
167 | 146 | ||
168 | /** | 147 | /** |