Lines Matching refs:blocks
107 do_sync_gen_syndrome(struct page **blocks, unsigned int *offsets, int disks, in do_sync_gen_syndrome() argument
117 srcs = (void **) blocks; in do_sync_gen_syndrome()
120 if (blocks[i] == NULL) { in do_sync_gen_syndrome()
124 srcs[i] = page_address(blocks[i]) + offsets[i]; in do_sync_gen_syndrome()
177 async_gen_syndrome(struct page **blocks, unsigned int *offsets, int disks, in async_gen_syndrome() argument
182 &P(blocks, disks), 2, in async_gen_syndrome()
183 blocks, src_cnt, len); in async_gen_syndrome()
187 BUG_ON(disks > MAX_DISKS || !(P(blocks, disks) || Q(blocks, disks))); in async_gen_syndrome()
211 if (blocks[i] == NULL) in async_gen_syndrome()
213 unmap->addr[j] = dma_map_page(device->dev, blocks[i], in async_gen_syndrome()
225 if (P(blocks, disks)) in async_gen_syndrome()
226 unmap->addr[j++] = dma_map_page(device->dev, P(blocks, disks), in async_gen_syndrome()
235 if (Q(blocks, disks)) in async_gen_syndrome()
236 unmap->addr[j++] = dma_map_page(device->dev, Q(blocks, disks), in async_gen_syndrome()
257 if (!P(blocks, disks)) { in async_gen_syndrome()
258 P(blocks, disks) = pq_scribble_page; in async_gen_syndrome()
261 if (!Q(blocks, disks)) { in async_gen_syndrome()
262 Q(blocks, disks) = pq_scribble_page; in async_gen_syndrome()
265 do_sync_gen_syndrome(blocks, offsets, disks, len, submit); in async_gen_syndrome()
272 pq_val_chan(struct async_submit_ctl *submit, struct page **blocks, int disks, size_t len) in pq_val_chan() argument
277 return async_tx_find_channel(submit, DMA_PQ_VAL, NULL, 0, blocks, in pq_val_chan()
298 async_syndrome_val(struct page **blocks, unsigned int *offsets, int disks, in async_syndrome_val() argument
302 struct dma_chan *chan = pq_val_chan(submit, blocks, disks, len); in async_syndrome_val()
325 if (likely(blocks[i])) { in async_syndrome_val()
326 unmap->addr[j] = dma_map_page(dev, blocks[i], in async_syndrome_val()
335 if (!P(blocks, disks)) { in async_syndrome_val()
339 pq[0] = dma_map_page(dev, P(blocks, disks), in async_syndrome_val()
345 if (!Q(blocks, disks)) { in async_syndrome_val()
349 pq[1] = dma_map_page(dev, Q(blocks, disks), in async_syndrome_val()
374 struct page *p_src = P(blocks, disks); in async_syndrome_val()
376 struct page *q_src = Q(blocks, disks); in async_syndrome_val()
404 blocks, offsets, disks-2, len, submit); in async_syndrome_val()
412 P(blocks, disks) = NULL; in async_syndrome_val()
413 Q(blocks, disks) = spare; in async_syndrome_val()
416 tx = async_gen_syndrome(blocks, offsets, disks, in async_syndrome_val()
425 P(blocks, disks) = p_src; in async_syndrome_val()
427 Q(blocks, disks) = q_src; in async_syndrome_val()