Lines Matching refs:device

26 	struct dma_device *dma = chan->device;  in do_async_xor()
141 dma_xor_aligned_offsets(struct dma_device *device, unsigned int offset, 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()
189 struct dma_device *device = chan ? chan->device : NULL; in async_xor_offs() local
194 if (device) in async_xor_offs()
195 unmap = dmaengine_get_unmap_data(device->dev, src_cnt+1, GFP_NOWAIT); in async_xor_offs()
197 if (unmap && dma_xor_aligned_offsets(device, offset, in async_xor_offs()
210 unmap->addr[j++] = dma_map_page(device->dev, src_list[i], in async_xor_offs()
216 unmap->addr[j] = dma_map_page(device->dev, dest, offset, len, in async_xor_offs()
321 struct dma_device *device = chan ? chan->device : NULL; in async_xor_val_offs() local
327 if (device) in async_xor_val_offs()
328 unmap = dmaengine_get_unmap_data(device->dev, src_cnt, GFP_NOWAIT); in async_xor_val_offs()
330 if (unmap && src_cnt <= device->max_xor && in async_xor_val_offs()
331 dma_xor_aligned_offsets(device, offset, src_offs, src_cnt, len)) { in async_xor_val_offs()
343 unmap->addr[i] = dma_map_page(device->dev, src_list[i], in async_xor_val_offs()
350 tx = device->device_prep_dma_xor_val(chan, unmap->addr, src_cnt, in async_xor_val_offs()
358 tx = device->device_prep_dma_xor_val(chan, in async_xor_val_offs()
369 WARN_ONCE(device && src_cnt <= device->max_xor, in async_xor_val_offs()