IDA_BLOCK_SIZE
nr_ptrs = (size + IDA_BLOCK_SIZE - 1) >> IDA_SIZE_SHIFT;
ib->data[i] = dma64_add(ib->data[i - 1], IDA_BLOCK_SIZE);
nr_ptrs = (ib->size + IDA_BLOCK_SIZE - 1) >> IDA_SIZE_SHIFT;
for (i = 0; count > IDA_BLOCK_SIZE; i++) {
left = copy_to_user(to, vaddr, IDA_BLOCK_SIZE);
return left + count - IDA_BLOCK_SIZE;
to = (void __user *)to + IDA_BLOCK_SIZE;
count -= IDA_BLOCK_SIZE;
for (i = 0; count > IDA_BLOCK_SIZE; i++) {
left = copy_from_user(vaddr, from, IDA_BLOCK_SIZE);
return left + count - IDA_BLOCK_SIZE;
from = (void __user *)from + IDA_BLOCK_SIZE;
count -= IDA_BLOCK_SIZE;
cidaw = (unsigned long)vaddr & (IDA_BLOCK_SIZE - 1);
cidaw += length + IDA_BLOCK_SIZE - 1;
paddr = dma64_and(paddr, -IDA_BLOCK_SIZE);
paddr = dma64_add(paddr, IDA_BLOCK_SIZE);
if ((unsigned long)(dst) & (IDA_BLOCK_SIZE - 1)) {
if (!((unsigned long)(idaw_dst + idaw_len) & (IDA_BLOCK_SIZE - 1)))