Searched refs:filp (Results 1 - 25 of 416) sorted by relevance

1234567891011>>

/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/
H A Dioctl.c14 static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) argument
18 struct inode * inode = filp->f_dentry->d_inode;
41 return put_user(inode->i_size - filp->f_pos, (int *) arg);
43 if (filp->f_op && filp->f_op->ioctl)
44 return filp->f_op->ioctl(inode, filp, cmd, arg);
51 struct file * filp; local
55 filp = fget(fd);
56 if (!filp)
[all...]
H A Dfcntl.c20 extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg);
21 extern int fcntl_getlease(struct file *filp);
204 static int setfl(int fd, struct file * filp, unsigned long arg) argument
206 struct inode * inode = filp->f_dentry->d_inode;
217 if ((arg ^ filp->f_flags) & FASYNC) {
218 if (filp->f_op && filp->f_op->fasync) {
219 error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0);
237 if (!filp
253 do_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg, struct file * filp) argument
333 struct file * filp; local
350 struct file * filp; local
458 fasync_helper(int fd, struct file * filp, int on, struct fasync_struct **fapp) argument
[all...]
H A Dfifo.c31 static int fifo_open(struct inode *inode, struct file *filp) argument
45 filp->f_version = 0;
47 switch (filp->f_mode) {
54 filp->f_op = &read_fifo_fops;
60 if ((filp->f_flags & O_NONBLOCK)) {
63 filp->f_version = PIPE_WCOUNTER(*inode);
80 if ((filp->f_flags & O_NONBLOCK) && !PIPE_READERS(*inode))
83 filp->f_op = &write_fifo_fops;
102 filp->f_op = &rdwr_fifo_fops;
H A Dfile_table.c70 printk(KERN_WARNING "VFS: filp allocation failed\n");
85 int init_private_file(struct file *filp, struct dentry *dentry, int mode) argument
87 memset(filp, 0, sizeof(*filp));
88 filp->f_mode = mode;
89 atomic_set(&filp->f_count, 1);
90 filp->f_dentry = dentry;
91 filp->f_uid = current->fsuid;
92 filp->f_gid = current->fsgid;
93 filp
[all...]
H A Ddnotify.c41 void dnotify_flush(struct file *filp, fl_owner_t id) argument
47 inode = filp->f_dentry->d_inode;
53 if ((dn->dn_owner == id) && (dn->dn_filp == filp)) {
64 int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg) argument
73 dnotify_flush(filp, id);
78 inode = filp->f_dentry->d_inode;
87 if ((odn->dn_owner == id) && (odn->dn_filp == filp)) {
96 filp->f_owner.pid = current->pid;
97 filp->f_owner.uid = current->uid;
98 filp
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/drm-4.0/
H A Dtdfx_drv.h37 extern int tdfx_version(struct inode *inode, struct file *filp,
39 extern int tdfx_open(struct inode *inode, struct file *filp);
40 extern int tdfx_release(struct inode *inode, struct file *filp);
41 extern int tdfx_ioctl(struct inode *inode, struct file *filp,
43 extern int tdfx_lock(struct inode *inode, struct file *filp,
45 extern int tdfx_unlock(struct inode *inode, struct file *filp,
50 extern int tdfx_resctx(struct inode *inode, struct file *filp,
52 extern int tdfx_addctx(struct inode *inode, struct file *filp,
54 extern int tdfx_modctx(struct inode *inode, struct file *filp,
56 extern int tdfx_getctx(struct inode *inode, struct file *filp,
[all...]
H A Dgamma_drv.h36 extern int gamma_version(struct inode *inode, struct file *filp,
38 extern int gamma_open(struct inode *inode, struct file *filp);
39 extern int gamma_release(struct inode *inode, struct file *filp);
40 extern int gamma_ioctl(struct inode *inode, struct file *filp,
42 extern int gamma_lock(struct inode *inode, struct file *filp,
44 extern int gamma_unlock(struct inode *inode, struct file *filp,
49 extern int gamma_dma(struct inode *inode, struct file *filp,
53 extern int gamma_control(struct inode *inode, struct file *filp,
H A Ddrawable.c35 int drm_adddraw(struct inode *inode, struct file *filp, unsigned int cmd, argument
47 int drm_rmdraw(struct inode *inode, struct file *filp, unsigned int cmd, argument
H A Di810_drv.h80 extern int i810_version(struct inode *inode, struct file *filp,
82 extern int i810_open(struct inode *inode, struct file *filp);
83 extern int i810_release(struct inode *inode, struct file *filp);
84 extern int i810_ioctl(struct inode *inode, struct file *filp,
86 extern int i810_unlock(struct inode *inode, struct file *filp,
91 extern int i810_getbuf(struct inode *inode, struct file *filp,
95 extern int i810_control(struct inode *inode, struct file *filp,
97 extern int i810_lock(struct inode *inode, struct file *filp,
99 extern int i810_dma_init(struct inode *inode, struct file *filp,
101 extern int i810_flush_ioctl(struct inode *inode, struct file *filp,
[all...]
H A Di810_context.c98 int i810_resctx(struct inode *inode, struct file *filp, unsigned int cmd, argument
124 int i810_addctx(struct inode *inode, struct file *filp, unsigned int cmd, argument
127 drm_file_t *priv = filp->private_data;
148 int i810_modctx(struct inode *inode, struct file *filp, unsigned int cmd, argument
155 int i810_getctx(struct inode *inode, struct file *filp, unsigned int cmd, argument
169 int i810_switchctx(struct inode *inode, struct file *filp, unsigned int cmd, argument
172 drm_file_t *priv = filp->private_data;
182 int i810_newctx(struct inode *inode, struct file *filp, unsigned int cmd, argument
185 drm_file_t *priv = filp->private_data;
197 int i810_rmctx(struct inode *inode, struct file *filp, unsigne argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/drm/
H A Dsis_drv.h37 int sis_flip(struct inode *inode, struct file *filp, unsigned int cmd,
39 int sis_flip_init(struct inode *inode, struct file *filp, unsigned int cmd,
41 int sis_flip_final(struct inode *inode, struct file *filp, unsigned int cmd,
H A Dsis_drm.h22 int sis_fb_alloc(struct inode *inode, struct file *filp, unsigned int cmd,
24 int sis_fb_free(struct inode *inode, struct file *filp, unsigned int cmd,
27 int sisp_agp_init(struct inode *inode, struct file *filp, unsigned int cmd,
29 int sisp_agp_alloc(struct inode *inode, struct file *filp, unsigned int cmd,
31 int sisp_agp_free(struct inode *inode, struct file *filp, unsigned int cmd,
H A Ddrm_drawable.h34 int DRM(adddraw)(struct inode *inode, struct file *filp, argument
46 int DRM(rmdraw)(struct inode *inode, struct file *filp, argument
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/jffs2/
H A Dioctl.c40 int jffs2_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, argument
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/nfsd/
H A Dlockd.c23 nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file *filp) argument
34 nfserr = nfsd_open(rqstp, &fh, S_IFREG, MAY_LOCK, filp);
36 dget(filp->f_dentry);
37 mntget(filp->f_vfsmnt);
56 nlm_fclose(struct file *filp) argument
58 nfsd_close(filp);
59 dput(filp->f_dentry);
60 mntput(filp->f_vfsmnt);
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/hpfs/
H A Ddir.c13 int hpfs_dir_release(struct inode *inode, struct file *filp) argument
16 hpfs_del_pos(inode, &filp->f_pos);
24 loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence) argument
26 loff_t new_off = off + (whence == 1 ? filp->f_pos : 0);
29 struct inode *i = filp->f_dentry->d_inode;
42 return filp->f_pos = new_off;
49 int hpfs_readdir(struct file *filp, void *dirent, filldir_t filldir) argument
51 struct inode *inode = filp->f_dentry->d_inode;
83 if (filp->f_pos == 12) { /* diff -r requires this (note, that diff -r */
84 filp
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/ext3/
H A Ddir.c68 static int ext3_readdir(struct file * filp, argument
78 struct inode *inode = filp->f_dentry->d_inode;
84 offset = filp->f_pos & (sb->s_blocksize - 1);
86 while (!error && !stored && filp->f_pos < inode->i_size) {
87 blk = (filp->f_pos) >> EXT3_BLOCK_SIZE_BITS(sb);
92 inode->i_ino, (unsigned long)filp->f_pos);
93 filp->f_pos += sb->s_blocksize - offset;
122 if (filp->f_version != inode->i_version) {
138 filp->f_pos = (filp
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/efs/
H A Ddir.c20 static int efs_readdir(struct file *filp, void *dirent, filldir_t filldir) { argument
21 struct inode *inode = filp->f_dentry->d_inode;
35 block = filp->f_pos >> EFS_DIRBSIZE_BITS;
38 slot = filp->f_pos & 0xff;
75 filp->f_pos = (block << EFS_DIRBSIZE_BITS) | slot;
78 filldir(dirent, nameptr, namelen, filp->f_pos, inodenum, DT_UNKNOWN);
93 filp->f_pos = (block << EFS_DIRBSIZE_BITS) | slot;
104 filp->f_pos = (block << EFS_DIRBSIZE_BITS) | slot;
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/ext2/
H A Dfile.c30 static int ext2_release_file (struct inode * inode, struct file * filp) argument
32 if (filp->f_mode & FMODE_WRITE)
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/qnx4/
H A Ddir.c23 static int qnx4_readdir(struct file *filp, void *dirent, filldir_t filldir) argument
25 struct inode *inode = filp->f_dentry->d_inode;
35 QNX4DEBUG(("filp->f_pos = %ld\n", (long) filp->f_pos));
37 while (filp->f_pos < inode->i_size) {
38 blknum = qnx4_block_map( inode, filp->f_pos >> QNX4_BLOCK_SIZE_BITS );
44 ix = (int)(filp->f_pos >> QNX4_DIR_ENTRY_SIZE_BITS) % QNX4_INODES_PER_BLOCK;
65 if (filldir(dirent, de->di_fname, size, filp->f_pos, ino, DT_UNKNOWN) < 0) {
72 filp->f_pos += QNX4_DIR_ENTRY_SIZE;
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/sgi/char/
H A Dshmiq.c76 struct file *filp; member in struct:__anon2630
126 shmiq_manage_file (struct file *filp) argument
130 if (!filp->f_op || !filp->f_op->ioctl)
136 if ((*filp->f_op->ioctl)(filp->f_dentry->d_inode, filp, SHMIQ_ON, i) != 0)
139 shmiq_pushed_devices [i].filp = filp;
150 struct file *filp; local
246 qcntl_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg, int minor) argument
350 shmiq_qcntl_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) argument
361 shmiq_qcntl_poll(struct file *filp, poll_table *wait) argument
380 shmiq_qcntl_open(struct inode *inode, struct file *filp) argument
414 shmiq_qcntl_close(struct inode *inode, struct file *filp) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/affs/
H A Ddir.c50 affs_readdir(struct file *filp, void *dirent, filldir_t filldir) argument
52 struct inode *inode = filp->f_dentry->d_inode;
66 pr_debug("AFFS: readdir(ino=%lu,f_pos=%lx)\n",inode->i_ino,(unsigned long)filp->f_pos);
72 f_pos = filp->f_pos;
75 filp->private_data = (void *)0;
78 filp->f_pos = f_pos = 1;
82 if (filldir(dirent, "..", 2, f_pos, filp->f_dentry->d_parent->d_inode->i_ino, DT_DIR) < 0)
84 filp->f_pos = f_pos = 2;
95 filp->f_pos = ((hash_pos << 16) | chain_pos) + 2;
104 ino = (u32)(long)filp
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/hfs/
H A Ddir_cap.c136 static int cap_readdir(struct file * filp, argument
143 struct inode *dir = filp->f_dentry->d_inode;
149 if (filp->f_pos == 0) {
154 filp->f_pos = 1;
157 if (filp->f_pos == 1) {
171 filp->f_pos = 2;
174 if (filp->f_pos < (dir->i_size - 3)) {
179 hfs_cat_next(entry, &brec, filp->f_pos - 2, &cnid, &type)) {
182 while (filp->f_pos < (dir->i_size - 3)) {
195 filp
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/isofs/
H A Ddir.c102 static int do_isofs_readdir(struct inode *inode, struct file *filp, argument
118 offset = filp->f_pos & (bufsize - 1);
119 block = filp->f_pos >> bufbits;
122 while (filp->f_pos < inode->i_size) {
144 filp->f_pos = (filp->f_pos + ISOFS_BLOCK_SIZE) & ~(ISOFS_BLOCK_SIZE - 1);
145 block = filp->f_pos >> bufbits;
171 filp->f_pos += de_len;
178 if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino, DT_DIR) < 0)
180 filp
249 isofs_readdir(struct file *filp, void *dirent, filldir_t filldir) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/sparc64/solaris/
H A Dsocksys.c56 static int socksys_open(struct inode * inode, struct file * filp) argument
90 * d_delete(filp->f_dentry), then d_instantiate with sock inode
92 dentry = filp->f_dentry;
93 filp->f_dentry = dget(fcheck(fd)->f_dentry);
94 filp->f_dentry->d_inode->i_rdev = inode->i_rdev;
95 filp->f_dentry->d_inode->i_flock = inode->i_flock;
96 filp->f_dentry->d_inode->u.socket_i.file = filp;
97 filp->f_op = &socksys_file_ops;
101 SOLDD(("sock=%016lx(%016lx)\n", sock, filp));
115 socksys_release(struct inode * inode, struct file * filp) argument
138 socksys_poll(struct file * filp, poll_table * wait) argument
[all...]

Completed in 201 milliseconds

1234567891011>>