Lines Matching refs:IDA_BLOCK_SIZE
25 #define IDA_BLOCK_SIZE (1UL << IDA_SIZE_SHIFT) macro
47 cidaw = (unsigned long)vaddr & (IDA_BLOCK_SIZE - 1); in idal_nr_words()
48 cidaw += length + IDA_BLOCK_SIZE - 1; in idal_nr_words()
76 paddr = dma64_and(paddr, -IDA_BLOCK_SIZE); in idal_create_words()
78 paddr = dma64_add(paddr, IDA_BLOCK_SIZE); in idal_create_words()
138 nr_ptrs = (size + IDA_BLOCK_SIZE - 1) >> IDA_SIZE_SHIFT; in idal_buffer_alloc()
147 ib->data[i] = dma64_add(ib->data[i - 1], IDA_BLOCK_SIZE); in idal_buffer_alloc()
174 nr_ptrs = (ib->size + IDA_BLOCK_SIZE - 1) >> IDA_SIZE_SHIFT; in idal_buffer_free()
226 for (i = 0; count > IDA_BLOCK_SIZE; i++) { in idal_buffer_to_user()
228 left = copy_to_user(to, vaddr, IDA_BLOCK_SIZE); in idal_buffer_to_user()
230 return left + count - IDA_BLOCK_SIZE; in idal_buffer_to_user()
231 to = (void __user *)to + IDA_BLOCK_SIZE; in idal_buffer_to_user()
232 count -= IDA_BLOCK_SIZE; in idal_buffer_to_user()
248 for (i = 0; count > IDA_BLOCK_SIZE; i++) { in idal_buffer_from_user()
250 left = copy_from_user(vaddr, from, IDA_BLOCK_SIZE); in idal_buffer_from_user()
252 return left + count - IDA_BLOCK_SIZE; in idal_buffer_from_user()
253 from = (void __user *)from + IDA_BLOCK_SIZE; in idal_buffer_from_user()
254 count -= IDA_BLOCK_SIZE; in idal_buffer_from_user()