Home
last modified time | relevance | path

Searched refs:filep (Results 1 – 22 of 22) sorted by relevance

/linux-2.4.37.9/drivers/isdn/hysdn/
Dhysdn_procconf.c249 hysdn_conf_open(struct inode *ino, struct file *filep) in hysdn_conf_open() argument
271 filep->f_uid, filep->f_gid, filep->f_mode); in hysdn_conf_open()
273 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_conf_open()
283 filep->private_data = cnf; in hysdn_conf_open()
285 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_conf_open()
292 filep->private_data = tmp; /* start of string */ in hysdn_conf_open()
334 hysdn_conf_close(struct inode *ino, struct file *filep) in hysdn_conf_close() argument
356 filep->f_uid, filep->f_gid, filep->f_mode); in hysdn_conf_close()
358 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_conf_close()
360 if (filep->private_data) { in hysdn_conf_close()
[all …]
Dhysdn_proclog.c252 hysdn_log_open(struct inode *ino, struct file *filep) in hysdn_log_open() argument
270 filep->private_data = card; /* remember our own card */ in hysdn_log_open()
272 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_open()
274 } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { in hysdn_log_open()
281 filep->private_data = &(pd->log_tail->next); in hysdn_log_open()
283 filep->private_data = &(pd->log_head); in hysdn_log_open()
301 hysdn_log_close(struct inode *ino, struct file *filep) in hysdn_log_close() argument
310 if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { in hysdn_log_close()
319 inf = *((struct log_data **) filep->private_data); /* get first log entry */ in hysdn_log_close()
/linux-2.4.37.9/drivers/char/ftape/zftape/
Dzftape-init.c87 static int zft_open (struct inode *ino, struct file *filep);
88 static int zft_close(struct inode *ino, struct file *filep);
89 static int zft_ioctl(struct inode *ino, struct file *filep,
91 static int zft_mmap(struct file *filep, struct vm_area_struct *vma);
110 static int zft_open(struct inode *ino, struct file *filep) in zft_open() argument
128 result = _zft_open(MINOR(ino->i_rdev), filep->f_flags & O_ACCMODE); in zft_open()
145 static int zft_close(struct inode *ino, struct file *filep) in zft_close() argument
169 static int zft_ioctl(struct inode *ino, struct file *filep, in zft_ioctl() argument
190 static int zft_mmap(struct file *filep, struct vm_area_struct *vma) in zft_mmap() argument
197 MINOR(filep->f_dentry->d_inode->i_rdev) != zft_unit || in zft_mmap()
/linux-2.4.37.9/drivers/net/wan/8253x/
D8253xchr.c43 int sab8253xc_read(struct file *filep, char *cptr, size_t cnt, loff_t *loffp) in sab8253xc_read() argument
47 SAB_PORT *port = filep->private_data; in sab8253xc_read()
62 if(filep->f_flags & O_NONBLOCK) in sab8253xc_read()
99 int sab8253xc_write(struct file *filep, const char *cptr, size_t cnt, loff_t *loffp) in sab8253xc_write() argument
103 SAB_PORT *port = filep->private_data; in sab8253xc_write()
123 if(filep->f_flags & O_NONBLOCK) in sab8253xc_write()
580 int sab8253xc_open(struct inode *inodep, struct file *filep) in sab8253xc_open() argument
666 retval = sab8253x_block_til_readyC(filep, port); /* need to wait for completion of callout */ in sab8253xc_open()
703 filep->private_data = port; in sab8253xc_open()
708 int sab8253xc_release(struct inode *inodep, struct file *filep) in sab8253xc_release() argument
[all …]
D8253xctl.h128 sab8253xc_read(struct file *filep, char *cptr, size_t cnt, loff_t *loffp);
129 extern int sab8253xc_write(struct file *filep, const char *cptr, size_t cnt, loff_t *loffp);
130 extern int sab8253xc_open(struct inode *inodep, struct file *filep);
131 extern int sab8253xc_release(struct inode *inodep, struct file *filep);
/linux-2.4.37.9/drivers/isdn/divert/
Ddivert_procfs.c135 isdn_divert_open(struct inode *ino, struct file *filep) in isdn_divert_open() argument
144 filep->private_data = &(divert_info_tail->next); in isdn_divert_open()
146 filep->private_data = &divert_info_head; in isdn_divert_open()
157 isdn_divert_close(struct inode *ino, struct file *filep) in isdn_divert_close() argument
166 inf = *((struct divert_info **) filep->private_data); in isdn_divert_close()
/linux-2.4.37.9/drivers/char/
Dbriq_panel.c64 static int do_open(struct inode *ino, struct file *filep) in do_open() argument
72 static int do_release(struct inode *ino, struct file *filep) in do_release() argument
Dnwflash.c46 static int flash_ioctl(struct inode *inodep, struct file *filep, unsigned int cmd, unsigned long ar…
110 static int flash_ioctl(struct inode *inodep, struct file *filep, unsigned int cmd, unsigned long ar… in flash_ioctl() argument
Dpcwd.c410 pcwd_open (struct inode *ino, struct file *filep) in pcwd_open() argument
464 pcwd_close (struct inode *ino, struct file *filep) in pcwd_close() argument
/linux-2.4.37.9/arch/s390x/kernel/
Dbinfmt_elf32.c196 elf_map32 (struct file *filep, unsigned long addr, struct elf_phdr *eppnt, int prot, int type) in elf_map32() argument
204 map_addr = do_mmap(filep, ELF_PAGESTART(addr), in elf_map32()
/linux-2.4.37.9/arch/ia64/ia32/
Dbinfmt_elf32.c231 elf32_map (struct file *filep, unsigned long addr, struct elf_phdr *eppnt, int prot, int type) in elf32_map() argument
235 return ia32_do_mmap(filep, (addr & IA32_PAGE_MASK), eppnt->p_filesz + pgoff, prot, type, in elf32_map()
/linux-2.4.37.9/arch/x86_64/ia32/
Dia32_binfmt.c275 elf32_map (struct file *filep, unsigned long addr, struct elf_phdr *eppnt, int prot, int type) in elf32_map() argument
284 map_addr = do_mmap(filep, ELF_PAGESTART(addr), in elf32_map()
/linux-2.4.37.9/drivers/char/ipmi/
Dipmi_watchdog.c643 static int ipmi_open(struct inode *ino, struct file *filep) in ipmi_open() argument
686 static int ipmi_close(struct inode *ino, struct file *filep) in ipmi_close() argument
697 ipmi_fasync (-1, filep, 0); in ipmi_close()
/linux-2.4.37.9/drivers/usb/serial/
Dir-usb.c111 static int ir_open (struct usb_serial_port *port, struct file *filep);
112 static void ir_close (struct usb_serial_port *port, struct file *filep);
/linux-2.4.37.9/drivers/isdn/
Disdn_common.c1653 isdn_open(struct inode *ino, struct file *filep) in isdn_open() argument
1666 p->private = (char *) &(filep->private_data); in isdn_open()
1669 filep->private_data = (char *) 1; in isdn_open()
1703 retval = isdn_ppp_open(minor - ISDN_MINOR_PPP, filep); in isdn_open()
1714 isdn_close(struct inode *ino, struct file *filep) in isdn_close() argument
1724 if (p->private == (char *) &(filep->private_data)) { in isdn_close()
1748 isdn_ppp_release(minor - ISDN_MINOR_PPP, filep); in isdn_close()
/linux-2.4.37.9/drivers/block/
Dcpqarray.c161 static int ida_open(struct inode *inode, struct file *filep);
162 static int ida_release(struct inode *inode, struct file *filep);
163 static int ida_ioctl(struct inode *inode, struct file *filep, unsigned int cmd, unsigned long arg);
892 static int ida_open(struct inode *inode, struct file *filep) in ida_open() argument
922 static int ida_release(struct inode *inode, struct file *filep) in ida_release() argument
1239 static int ida_ioctl(struct inode *inode, struct file *filep, unsigned int cmd, unsigned long arg) in ida_ioctl() argument
Dcciss.c168 static int cciss_open(struct inode *inode, struct file *filep);
169 static int cciss_release(struct inode *inode, struct file *filep);
170 static int cciss_ioctl(struct inode *inode, struct file *filep,
491 static int cciss_open(struct inode *inode, struct file *filep) in cciss_open() argument
532 static int cciss_release(struct inode *inode, struct file *filep) in cciss_release() argument
691 static int cciss_ioctl(struct inode *inode, struct file *filep, in cciss_ioctl() argument
/linux-2.4.37.9/drivers/scsi/
Dmegaraid2.c4161 megadev_open (struct inode *inode, struct file *filep) in megadev_open() argument
4176 struct file *filep) in megadev_compat_ioctl() argument
4178 struct inode *inode = filep->f_dentry->d_inode; in megadev_compat_ioctl()
4180 return megadev_ioctl_entry(inode, filep, cmd, arg); in megadev_compat_ioctl()
4185 megadev_ioctl_entry(struct inode *inode, struct file *filep, unsigned int cmd, in megadev_ioctl_entry() argument
4190 rval = megadev_ioctl( inode, filep, cmd, arg ); in megadev_ioctl_entry()
4208 megadev_ioctl(struct inode *inode, struct file *filep, unsigned int cmd, in megadev_ioctl() argument
4777 megadev_close (struct inode *inode, struct file *filep) in megadev_close() argument
Dmegaraid.c4756 static int megadev_open (struct inode *inode, struct file *filep) argument
4762 static int megadev_ioctl_entry (struct inode *inode, struct file *filep, argument
4771 ret = megadev_ioctl (inode, filep, cmd, arg);
4778 static int megadev_ioctl (struct inode *inode, struct file *filep, argument
5311 megadev_close (struct inode *inode, struct file *filep) argument
Dgdth.c466 static int gdth_open(struct inode *inode, struct file *filep);
467 static int gdth_close(struct inode *inode, struct file *filep);
468 static int gdth_ioctl(struct inode *inode, struct file *filep,
5273 static int gdth_open(struct inode *inode, struct file *filep) in gdth_open() argument
5290 static int gdth_close(struct inode *inode, struct file *filep) in gdth_close() argument
5860 static int gdth_ioctl(struct inode *inode, struct file *filep, in gdth_ioctl() argument
/linux-2.4.37.9/net/decnet/
Ddn_dev.c254 struct file *filep, in dn_forwarding_proc() argument
269 err = proc_dointvec(table, write, filep, buffer, lenp); in dn_forwarding_proc()
/linux-2.4.37.9/fs/
Dbinfmt_elf.c250 elf_map (struct file *filep, unsigned long addr, struct elf_phdr *eppnt, int prot, int type) in elf_map() argument
255 map_addr = do_mmap(filep, ELF_PAGESTART(addr), in elf_map()