Lines Matching refs:submit
24 struct async_submit_ctl *submit) in do_async_xor() argument
28 dma_async_tx_callback cb_fn_orig = submit->cb_fn; in do_async_xor()
29 void *cb_param_orig = submit->cb_param; in do_async_xor()
30 enum async_tx_flags flags_orig = submit->flags; in do_async_xor()
40 submit->flags = flags_orig; in do_async_xor()
46 submit->flags &= ~ASYNC_TX_ACK; in do_async_xor()
47 submit->flags |= ASYNC_TX_FENCE; in do_async_xor()
48 submit->cb_fn = NULL; in do_async_xor()
49 submit->cb_param = NULL; in do_async_xor()
51 submit->cb_fn = cb_fn_orig; in do_async_xor()
52 submit->cb_param = cb_param_orig; in do_async_xor()
54 if (submit->cb_fn) in do_async_xor()
56 if (submit->flags & ASYNC_TX_FENCE) in do_async_xor()
70 async_tx_quiesce(&submit->depend_tx); in do_async_xor()
83 async_tx_submit(chan, tx, submit); in do_async_xor()
84 submit->depend_tx = tx; in do_async_xor()
102 int src_cnt, size_t len, struct async_submit_ctl *submit) in do_sync_xor_offs() argument
110 if (submit->scribble) in do_sync_xor_offs()
111 srcs = submit->scribble; in do_sync_xor_offs()
124 if (submit->flags & ASYNC_TX_XOR_ZERO_DST) in do_sync_xor_offs()
137 async_tx_sync_epilog(submit); in do_sync_xor_offs()
184 int src_cnt, size_t len, struct async_submit_ctl *submit) in async_xor_offs() argument
186 struct dma_chan *chan = async_tx_find_channel(submit, DMA_XOR, in async_xor_offs()
220 tx = do_async_xor(chan, unmap, submit); in async_xor_offs()
233 if (submit->flags & ASYNC_TX_XOR_DROP_DST) { in async_xor_offs()
241 async_tx_quiesce(&submit->depend_tx); in async_xor_offs()
244 src_cnt, len, submit); in async_xor_offs()
274 int src_cnt, size_t len, struct async_submit_ctl *submit) in async_xor() argument
277 src_cnt, len, submit); in async_xor()
287 xor_val_chan(struct async_submit_ctl *submit, struct page *dest, in xor_val_chan() argument
293 return async_tx_find_channel(submit, DMA_XOR_VAL, &dest, 1, src_list, in xor_val_chan()
318 struct async_submit_ctl *submit) in async_xor_val_offs() argument
320 struct dma_chan *chan = xor_val_chan(submit, dest, src_list, src_cnt, len); in async_xor_val_offs()
337 if (submit->cb_fn) in async_xor_val_offs()
339 if (submit->flags & ASYNC_TX_FENCE) in async_xor_val_offs()
354 async_tx_quiesce(&submit->depend_tx); in async_xor_val_offs()
364 async_tx_submit(chan, tx, submit); in async_xor_val_offs()
366 enum async_tx_flags flags_orig = submit->flags; in async_xor_val_offs()
373 submit->flags |= ASYNC_TX_XOR_DROP_DST; in async_xor_val_offs()
374 submit->flags &= ~ASYNC_TX_ACK; in async_xor_val_offs()
377 src_cnt, len, submit); in async_xor_val_offs()
383 async_tx_sync_epilog(submit); in async_xor_val_offs()
384 submit->flags = flags_orig; in async_xor_val_offs()
411 struct async_submit_ctl *submit) in async_xor_val() argument
414 len, result, submit); in async_xor_val()