Lines Matching refs:count
45 size_t count; member
70 ssize_t count; in fill_read_buffer() local
77 count = ops->show_attribute(item,attr,buffer->page); in fill_read_buffer()
79 BUG_ON(count > (ssize_t)SIMPLE_ATTR_SIZE); in fill_read_buffer()
80 if (count >= 0) in fill_read_buffer()
81 buffer->count = count; in fill_read_buffer()
83 ret = count; in fill_read_buffer()
107 configfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos) in configfs_read_file() argument
118 __func__, count, *ppos, buffer->page); in configfs_read_file()
119 retval = simple_read_from_buffer(buf, count, ppos, buffer->page, in configfs_read_file()
120 buffer->count); in configfs_read_file()
138 fill_write_buffer(struct configfs_buffer * buffer, const char __user * buf, size_t count) in fill_write_buffer() argument
147 if (count >= SIMPLE_ATTR_SIZE) in fill_write_buffer()
148 count = SIMPLE_ATTR_SIZE - 1; in fill_write_buffer()
149 error = copy_from_user(buffer->page,buf,count); in fill_write_buffer()
153 buffer->page[count] = 0; in fill_write_buffer()
154 return error ? -EFAULT : count; in fill_write_buffer()
170 flush_write_buffer(struct dentry * dentry, struct configfs_buffer * buffer, size_t count) in flush_write_buffer() argument
176 return ops->store_attribute(item,attr,buffer->page,count); in flush_write_buffer()
198 configfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in configfs_write_file() argument
204 len = fill_write_buffer(buffer, buf, count); in configfs_write_file()