Lines Matching defs:IDA_BLOCK_SIZE
28 #define IDA_BLOCK_SIZE (1L<<IDA_SIZE_LOG)
49 return ((__pa(vaddr) & (IDA_BLOCK_SIZE-1)) + length +
50 (IDA_BLOCK_SIZE-1)) >> IDA_SIZE_LOG;
63 cidaw = ((paddr & (IDA_BLOCK_SIZE-1)) + length +
64 (IDA_BLOCK_SIZE-1)) >> IDA_SIZE_LOG;
66 paddr &= -IDA_BLOCK_SIZE;
68 paddr += IDA_BLOCK_SIZE;
135 nr_ptrs = (size + IDA_BLOCK_SIZE - 1) >> IDA_SIZE_LOG;
145 ib->data[i] = ib->data[i-1] + IDA_BLOCK_SIZE;
172 nr_ptrs = (ib->size + IDA_BLOCK_SIZE - 1) >> IDA_SIZE_LOG;
219 for (i = 0; count > IDA_BLOCK_SIZE; i++) {
220 left = copy_to_user(to, ib->data[i], IDA_BLOCK_SIZE);
222 return left + count - IDA_BLOCK_SIZE;
223 to = (void __user *) to + IDA_BLOCK_SIZE;
224 count -= IDA_BLOCK_SIZE;
239 for (i = 0; count > IDA_BLOCK_SIZE; i++) {
240 left = copy_from_user(ib->data[i], from, IDA_BLOCK_SIZE);
242 return left + count - IDA_BLOCK_SIZE;
243 from = (void __user *) from + IDA_BLOCK_SIZE;
244 count -= IDA_BLOCK_SIZE;