• Home
  • Raw
  • Download

Lines Matching refs:count

32 	size_t			count;  member
61 ssize_t count = -ENOENT; in fill_read_buffer() local
70 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer()
73 if (count < 0) in fill_read_buffer()
74 return count; in fill_read_buffer()
75 if (WARN_ON_ONCE(count > (ssize_t)SIMPLE_ATTR_SIZE)) in fill_read_buffer()
78 buffer->count = count; in fill_read_buffer()
102 configfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos) in configfs_read_file() argument
114 __func__, count, *ppos, buffer->page); in configfs_read_file()
115 retval = simple_read_from_buffer(buf, count, ppos, buffer->page, in configfs_read_file()
116 buffer->count); in configfs_read_file()
144 size_t count, loff_t *ppos) in configfs_read_bin_file() argument
149 ssize_t len = min_t(size_t, count, PAGE_SIZE); in configfs_read_bin_file()
205 retval = simple_read_from_buffer(buf, count, ppos, buffer->bin_buffer, in configfs_read_bin_file()
224 fill_write_buffer(struct configfs_buffer * buffer, const char __user * buf, size_t count) in fill_write_buffer() argument
233 if (count >= SIMPLE_ATTR_SIZE) in fill_write_buffer()
234 count = SIMPLE_ATTR_SIZE - 1; in fill_write_buffer()
235 error = copy_from_user(buffer->page,buf,count); in fill_write_buffer()
239 buffer->page[count] = 0; in fill_write_buffer()
240 return error ? -EFAULT : count; in fill_write_buffer()
244 flush_write_buffer(struct file *file, struct configfs_buffer *buffer, size_t count) in flush_write_buffer() argument
251 res = buffer->attr->store(buffer->item, buffer->page, count); in flush_write_buffer()
275 configfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in configfs_write_file() argument
281 len = fill_write_buffer(buffer, buf, count); in configfs_write_file()
305 size_t count, loff_t *ppos) in configfs_write_bin_file() argument
321 if (*ppos + count > buffer->bin_buffer_size) { in configfs_write_bin_file()
324 *ppos + count > buffer->cb_max_size) { in configfs_write_bin_file()
329 tbuf = vmalloc(*ppos + count); in configfs_write_bin_file()
344 *ppos + count - buffer->bin_buffer_size); in configfs_write_bin_file()
346 buffer->bin_buffer_size = *ppos + count; in configfs_write_bin_file()
350 buffer->bin_buffer_size, ppos, buf, count); in configfs_write_bin_file()