Lines Matching refs:filp

135     struct vfs_file_t *filp = NULL;  in process_open_exec_file()  local
145 filp = (struct vfs_file_t *)kmalloc(sizeof(struct vfs_file_t), 0); in process_open_exec_file()
146 if (filp == NULL) in process_open_exec_file()
149 filp->position = 0; in process_open_exec_file()
150 filp->mode = 0; in process_open_exec_file()
151 filp->dEntry = dentry; in process_open_exec_file()
152 filp->mode = ATTR_READ_ONLY; in process_open_exec_file()
153 filp->file_ops = dentry->dir_inode->file_ops; in process_open_exec_file()
155 return filp; in process_open_exec_file()
168 struct vfs_file_t *filp = process_open_exec_file(path); in process_load_elf_file() local
170 if ((long)filp <= 0 && (long)filp >= -255) in process_load_elf_file()
172 kdebug("(long)filp=%ld", (long)filp); in process_load_elf_file()
173 return (unsigned long)filp; in process_load_elf_file()
179 pos = filp->file_ops->lseek(filp, 0, SEEK_SET); in process_load_elf_file()
180 retval = filp->file_ops->read(filp, (char *)buf, sizeof(Elf64_Ehdr), &pos); in process_load_elf_file()
222 pos = filp->file_ops->lseek(filp, pos, SEEK_SET); in process_load_elf_file()
223filp->file_ops->read(filp, (char *)buf, (uint64_t)ehdr.e_phentsize * (uint64_t)ehdr.e_phnum, &pos); in process_load_elf_file()
224 if ((unsigned long)filp <= 0) in process_load_elf_file()
226 kdebug("(unsigned long)filp=%d", (long)filp); in process_load_elf_file()
301 pos = filp->file_ops->lseek(filp, pos, SEEK_SET); in process_load_elf_file()
306 … val = filp->file_ops->read(filp, (char *)(virt_base + beginning_offset), to_trans, &pos); in process_load_elf_file()