Lines Matching refs:file_ptr

553 long fat32_open(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr)  in fat32_open()  argument
559 long fat32_close(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in fat32_close() argument
573 long fat32_read(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) in fat32_read() argument
576 …struct fat32_inode_info_t *finode = (struct fat32_inode_info_t *)(file_ptr->dEntry->dir_inode->pri… in fat32_read()
577 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)(file_ptr->dEntry->dir_inode->sb->private_sb_info); in fat32_read()
578 struct block_device *blk = file_ptr->dEntry->dir_inode->sb->blk_device; in fat32_read()
600 if (*position + count > file_ptr->dEntry->dir_inode->file_size) in fat32_read()
601 count = file_ptr->dEntry->dir_inode->file_size - *position; in fat32_read()
662 long fat32_write(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) in fat32_write() argument
664 …struct fat32_inode_info_t *finode = (struct fat32_inode_info_t *)file_ptr->dEntry->dir_inode->priv… in fat32_write()
665 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)(file_ptr->dEntry->dir_inode->sb->private_sb_info); in fat32_write()
666 struct block_device *blk = file_ptr->dEntry->dir_inode->sb->blk_device; in fat32_write()
680 if (fat32_alloc_clusters(file_ptr->dEntry->dir_inode, &cluster, 1) != 0) in fat32_write()
757 if (fat32_alloc_clusters(file_ptr->dEntry->dir_inode, &next_clus, 1) != 0) in fat32_write()
771 if (*position > (file_ptr->dEntry->dir_inode->file_size)) in fat32_write()
773 file_ptr->dEntry->dir_inode->file_size = *position; in fat32_write()
774 file_ptr->dEntry->dir_inode->sb->sb_ops->write_inode(file_ptr->dEntry->dir_inode); in fat32_write()
793 long fat32_lseek(struct vfs_file_t *file_ptr, long offset, long whence) in fat32_lseek() argument
795 struct vfs_index_node_t *inode = file_ptr->dEntry->dir_inode; in fat32_lseek()
804 pos = file_ptr->position + offset; in fat32_lseek()
807 pos = file_ptr->dEntry->dir_inode->file_size + offset; in fat32_lseek()
815 if (pos < 0 || pos > file_ptr->dEntry->dir_inode->file_size) in fat32_lseek()
817 file_ptr->position = pos; in fat32_lseek()
823 long fat32_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd, uint64_… in fat32_ioctl() argument
1157 int64_t fat32_readdir(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler) in fat32_readdir() argument
1159 …struct fat32_inode_info_t *finode = (struct fat32_inode_info_t *)file_ptr->dEntry->dir_inode->priv… in fat32_readdir()
1160 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)file_ptr->dEntry->dir_inode->sb->private_sb_info; in fat32_readdir()
1161 struct block_device *blk = file_ptr->dEntry->dir_inode->sb->blk_device; in fat32_readdir()
1167 int clus_num = file_ptr->position / fsbi->bytes_per_clus; in fat32_readdir()
1204 dentry = (struct fat32_Directory_t *)(buf + file_ptr->position % fsbi->bytes_per_clus); in fat32_readdir()
1208 for (int i = file_ptr->position % fsbi->bytes_per_clus; i < fsbi->bytes_per_clus; in fat32_readdir()
1209 i += 32, file_ptr->position += 32, ++dentry) in fat32_readdir()
1332 file_ptr->position += 32; in fat32_readdir()