Lines Matching refs:count
38 size_t count;
63 ssize_t count;
70 count = ops->show_attribute(item,attr,buffer->page);
72 BUG_ON(count > (ssize_t)PAGE_SIZE);
73 if (count >= 0)
74 buffer->count = count;
76 ret = count;
84 * @count: number of bytes to read.
100 configfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos)
110 pr_debug("%s: count = %zd, ppos = %lld, buf = %s\n",
111 __FUNCTION__, count, *ppos, buffer->page);
112 retval = simple_read_from_buffer(buf, count, ppos, buffer->page,
113 buffer->count);
124 * @count: number of bytes in @userbuf.
131 fill_write_buffer(struct configfs_buffer * buffer, const char __user * buf, size_t count)
140 if (count >= PAGE_SIZE)
141 count = PAGE_SIZE - 1;
142 error = copy_from_user(buffer->page,buf,count);
146 buffer->page[count] = 0;
147 return error ? -EFAULT : count;
155 * @count: number of bytes
163 flush_write_buffer(struct dentry * dentry, struct configfs_buffer * buffer, size_t count)
169 return ops->store_attribute(item,attr,buffer->page,count);
177 * @count: number of bytes
191 configfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
197 len = fill_write_buffer(buffer, buf, count);
199 len = flush_write_buffer(file->f_path.dentry, buffer, count);