Lines Matching refs:count
74 static ssize_t dfs_procfs_read(struct dfs_file *file, void *buf, size_t count, off_t *pos) in dfs_procfs_read() argument
81 ret = entry->fops->read(file, buf, count, pos); in dfs_procfs_read()
89 static ssize_t dfs_procfs_write(struct dfs_file *file, const void *buf, size_t count, off_t *pos) in dfs_procfs_write() argument
96 ret = entry->fops->write(file, buf, count, pos); in dfs_procfs_write()
119 static int dfs_procfs_getdents(struct dfs_file *file, struct dirent *dirp, uint32_t count) in dfs_procfs_getdents() argument
131 count = (count / sizeof(struct dirent)); in dfs_procfs_getdents()
132 if (count == 0) in dfs_procfs_getdents()
169 if (index - file->fpos >= count) in dfs_procfs_getdents()
180 if (entry->fops && entry->fops->getdents && ret < count) in dfs_procfs_getdents()
186 r = entry->fops->getdents(file, dirp + ret, (count - ret) * sizeof(struct dirent)); in dfs_procfs_getdents()
426 int proc_read_data(struct dfs_file *file, void *buf, size_t count, off_t *pos) in proc_read_data() argument
435 count = file->vnode->size - file->fpos >= count ? count : file->vnode->size - file->fpos; in proc_read_data()
436 rt_strncpy(buf, file->data + file->fpos, count); in proc_read_data()
438 file->fpos += count; in proc_read_data()
446 return count; in proc_read_data()