Lines Matching refs:count
77 nridaws = idal_nr_words(vaddr, ccw->count); in set_normalized_cda()
83 idal_create_words(idal, vaddr, ccw->count); in set_normalized_cda()
189 ccw->count = ib->size; in idal_buffer_set_cda()
196 idal_buffer_to_user(struct idal_buffer *ib, void __user *to, size_t count) in idal_buffer_to_user() argument
201 BUG_ON(count > ib->size); in idal_buffer_to_user()
202 for (i = 0; count > IDA_BLOCK_SIZE; i++) { in idal_buffer_to_user()
205 return left + count - IDA_BLOCK_SIZE; in idal_buffer_to_user()
207 count -= IDA_BLOCK_SIZE; in idal_buffer_to_user()
209 return copy_to_user(to, ib->data[i], count); in idal_buffer_to_user()
216 idal_buffer_from_user(struct idal_buffer *ib, const void __user *from, size_t count) in idal_buffer_from_user() argument
221 BUG_ON(count > ib->size); in idal_buffer_from_user()
222 for (i = 0; count > IDA_BLOCK_SIZE; i++) { in idal_buffer_from_user()
225 return left + count - IDA_BLOCK_SIZE; in idal_buffer_from_user()
227 count -= IDA_BLOCK_SIZE; in idal_buffer_from_user()
229 return copy_from_user(ib->data[i], from, count); in idal_buffer_from_user()