Lines Matching refs:len

66 					      xor_src_cnt, unmap->len,  in do_async_xor()
77 xor_src_cnt, unmap->len, in do_async_xor()
102 int src_cnt, size_t len, struct async_submit_ctl *submit) in do_sync_xor_offs() argument
125 memset(dest_buf, 0, len); in do_sync_xor_offs()
130 xor_blocks(xor_src_cnt, len, dest_buf, &srcs[src_off]); in do_sync_xor_offs()
142 unsigned int *src_offs, int src_cnt, int len) in dma_xor_aligned_offsets() argument
146 if (!is_dma_xor_aligned(device, offset, 0, len)) in dma_xor_aligned_offsets()
153 if (!is_dma_xor_aligned(device, src_offs[i], 0, len)) in dma_xor_aligned_offsets()
184 int src_cnt, size_t len, struct async_submit_ctl *submit) in async_xor_offs() argument
188 src_cnt, len); in async_xor_offs()
198 src_offs, src_cnt, len)) { in async_xor_offs()
203 pr_debug("%s (async): len: %zu\n", __func__, len); in async_xor_offs()
205 unmap->len = len; in async_xor_offs()
212 len, DMA_TO_DEVICE); in async_xor_offs()
216 unmap->addr[j] = dma_map_page(device->dev, dest, offset, len, in async_xor_offs()
226 pr_debug("%s (sync): len: %zu\n", __func__, len); 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()
281 static int page_is_zero(struct page *p, unsigned int offset, size_t len) in page_is_zero() argument
283 return !memchr_inv(page_address(p) + offset, 0, len); in page_is_zero()
288 struct page **src_list, int src_cnt, size_t len) in xor_val_chan() argument
294 src_cnt, len); in xor_val_chan()
317 int src_cnt, size_t len, enum sum_check_flags *result, 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()
331 dma_xor_aligned_offsets(device, offset, src_offs, src_cnt, len)) { in async_xor_val_offs()
335 pr_debug("%s: (async) len: %zu\n", __func__, len); in async_xor_val_offs()
345 len, DMA_TO_DEVICE); in async_xor_val_offs()
348 unmap->len = len; in async_xor_val_offs()
351 len, result, in async_xor_val_offs()
359 unmap->addr, src_cnt, len, result, in async_xor_val_offs()
368 pr_debug("%s: (sync) len: %zu\n", __func__, len); in async_xor_val_offs()
377 src_cnt, len, submit); in async_xor_val_offs()
381 *result = !page_is_zero(dest, offset, len) << SUM_CHECK_P; in async_xor_val_offs()
410 int src_cnt, size_t len, enum sum_check_flags *result, in async_xor_val() argument
414 len, result, submit); in async_xor_val()