Lines Matching refs:count
95 nridaws = idal_nr_words(vaddr, ccw->count);
100 idal_create_words(idal, vaddr, ccw->count);
213 ccw->count = ib->size;
217 * Copy count bytes from an idal buffer to user memory
219 static inline size_t idal_buffer_to_user(struct idal_buffer *ib, void __user *to, size_t count)
225 BUG_ON(count > ib->size);
226 for (i = 0; count > IDA_BLOCK_SIZE; i++) {
230 return left + count - IDA_BLOCK_SIZE;
232 count -= IDA_BLOCK_SIZE;
235 return copy_to_user(to, vaddr, count);
239 * Copy count bytes from user memory to an idal buffer
241 static inline size_t idal_buffer_from_user(struct idal_buffer *ib, const void __user *from, size_t count)
247 BUG_ON(count > ib->size);
248 for (i = 0; count > IDA_BLOCK_SIZE; i++) {
252 return left + count - IDA_BLOCK_SIZE;
254 count -= IDA_BLOCK_SIZE;
257 return copy_from_user(vaddr, from, count);