Lines Matching defs:state
63 * @state: dma_tx_state structure to return last/used cookies
65 * Report the status of the cookie, filling in the state structure if
69 dma_cookie_t cookie, struct dma_tx_state *state)
76 if (state) {
77 state->last = complete;
78 state->used = used;
79 state->residue = 0;
80 state->in_flight_bytes = 0;
85 static inline void dma_set_residue(struct dma_tx_state *state, u32 residue)
87 if (state)
88 state->residue = residue;
91 static inline void dma_set_in_flight_bytes(struct dma_tx_state *state,
94 if (state)
95 state->in_flight_bytes = in_flight_bytes;