Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/kernel/drivers/isdn/mISDN/
H A Dtimerdev.c44 mISDN_open(struct inode *ino, struct file *filep) in mISDN_open() argument
49 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); in mISDN_open()
59 filep->private_data = dev; in mISDN_open()
60 return nonseekable_open(ino, filep); in mISDN_open()
64 mISDN_close(struct inode *ino, struct file *filep) in mISDN_close() argument
66 struct mISDNtimerdev *dev = filep->private_data; in mISDN_close()
71 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); in mISDN_close()
93 mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off) in mISDN_read() argument
95 struct mISDNtimerdev *dev = filep->private_data; in mISDN_read()
102 filep, buf, (int)count, off); in mISDN_read()
[all …]
/OK3568_Linux_fs/kernel/fs/nfs/
H A Dnfs4file.c208 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument
215 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek()
220 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek()
224 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate() argument
226 struct inode *inode = file_inode(filep); in nfs42_fallocate()
240 return nfs42_proc_deallocate(filep, offset, len); in nfs42_fallocate()
241 return nfs42_proc_allocate(filep, offset, len); in nfs42_fallocate()
325 struct file *filep, *res; in __nfs42_ssc_open() local
363 filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, FMODE_READ, in __nfs42_ssc_open()
365 if (IS_ERR(filep)) { in __nfs42_ssc_open()
[all …]
H A Dnfs42proc.c25 static void nfs42_set_netaddr(struct file *filep, struct nfs42_netaddr *naddr) in nfs42_set_netaddr() argument
27 struct nfs_client *clp = (NFS_SERVER(file_inode(filep)))->nfs_client; in nfs42_set_netaddr()
44 static int _nfs42_proc_fallocate(struct rpc_message *msg, struct file *filep, in _nfs42_proc_fallocate() argument
47 struct inode *inode = file_inode(filep); in _nfs42_proc_fallocate()
90 static int nfs42_proc_fallocate(struct rpc_message *msg, struct file *filep, in nfs42_proc_fallocate() argument
93 struct inode *inode = file_inode(filep); in nfs42_proc_fallocate()
99 lock = nfs_get_lock_context(nfs_file_open_context(filep)); in nfs42_proc_fallocate()
111 err = _nfs42_proc_fallocate(msg, filep, lock, offset, len); in nfs42_proc_fallocate()
123 int nfs42_proc_allocate(struct file *filep, loff_t offset, loff_t len) in nfs42_proc_allocate() argument
128 struct inode *inode = file_inode(filep); in nfs42_proc_allocate()
[all …]
/OK3568_Linux_fs/kernel/drivers/ntb/test/
H A Dntb_tool.c412 static ssize_t tool_port_read(struct file *filep, char __user *ubuf, in tool_port_read() argument
415 struct tool_ctx *tc = filep->private_data; in tool_port_read()
428 static ssize_t tool_peer_port_read(struct file *filep, char __user *ubuf, in tool_peer_port_read() argument
431 struct tool_peer *peer = filep->private_data; in tool_peer_port_read()
469 static ssize_t tool_link_write(struct file *filep, const char __user *ubuf, in tool_link_write() argument
472 struct tool_ctx *tc = filep->private_data; in tool_link_write()
495 static ssize_t tool_peer_link_read(struct file *filep, char __user *ubuf, in tool_peer_link_read() argument
498 struct tool_peer *peer = filep->private_data; in tool_peer_link_read()
516 static ssize_t tool_peer_link_event_write(struct file *filep, in tool_peer_link_event_write() argument
520 struct tool_peer *peer = filep->private_data; in tool_peer_link_event_write()
[all …]
/OK3568_Linux_fs/yocto/poky/scripts/
H A Dsysroot-relativelinks.py19 def handlelink(filep, subdir): argument
20 link = os.readlink(filep)
26 print("Replacing %s with %s for %s" % (link, os.path.relpath(topdir+link, subdir), filep))
27 os.unlink(filep)
28 os.symlink(os.path.relpath(topdir+link, subdir), filep)
32 filep = os.path.join(subdir, f) variable
33 if os.path.islink(filep):
35 handlelink(filep, subdir)
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Dwb_regon_coordinator.c117 static __poll_t wbrc_bt_dev_poll(struct file *filep, poll_table *wait);
127 static ssize_t wbrc_bt_dev_read(struct file *filep, char *buffer, size_t len, in wbrc_bt_dev_read() argument
130 struct wbrc_pvt_data *wbrc_data = filep->private_data; in wbrc_bt_dev_read()
161 static ssize_t wbrc_bt_dev_write(struct file *filep, const char *buffer, in wbrc_bt_dev_write() argument
164 struct wbrc_pvt_data *wbrc_data = filep->private_data; in wbrc_bt_dev_write()
212 static __poll_t wbrc_bt_dev_poll(struct file *filep, poll_table *wait) in wbrc_bt_dev_poll() argument
214 struct wbrc_pvt_data *wbrc_data = filep->private_data; in wbrc_bt_dev_poll()
217 poll_wait(filep, &wbrc_data->outmsg_waitq, wait); in wbrc_bt_dev_poll()
228 static int wbrc_bt_dev_open(struct inode *inodep, struct file *filep) in wbrc_bt_dev_open() argument
241 filep->private_data = wbrc_data; in wbrc_bt_dev_open()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Dwb_regon_coordinator.c117 static __poll_t wbrc_bt_dev_poll(struct file *filep, poll_table *wait);
127 static ssize_t wbrc_bt_dev_read(struct file *filep, char *buffer, size_t len, in wbrc_bt_dev_read() argument
130 struct wbrc_pvt_data *wbrc_data = filep->private_data; in wbrc_bt_dev_read()
161 static ssize_t wbrc_bt_dev_write(struct file *filep, const char *buffer, in wbrc_bt_dev_write() argument
164 struct wbrc_pvt_data *wbrc_data = filep->private_data; in wbrc_bt_dev_write()
212 static __poll_t wbrc_bt_dev_poll(struct file *filep, poll_table *wait) in wbrc_bt_dev_poll() argument
214 struct wbrc_pvt_data *wbrc_data = filep->private_data; in wbrc_bt_dev_poll()
217 poll_wait(filep, &wbrc_data->outmsg_waitq, wait); in wbrc_bt_dev_poll()
228 static int wbrc_bt_dev_open(struct inode *inodep, struct file *filep) in wbrc_bt_dev_open() argument
241 filep->private_data = wbrc_data; in wbrc_bt_dev_open()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_smi_events.c60 static __poll_t kfd_smi_ev_poll(struct file *filep, in kfd_smi_ev_poll() argument
63 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_poll()
66 poll_wait(filep, &client->wait_queue, wait); in kfd_smi_ev_poll()
76 static ssize_t kfd_smi_ev_read(struct file *filep, char __user *user, in kfd_smi_ev_read() argument
81 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_read()
120 static ssize_t kfd_smi_ev_write(struct file *filep, const char __user *user, in kfd_smi_ev_write() argument
123 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_write()
136 static int kfd_smi_ev_release(struct inode *inode, struct file *filep) in kfd_smi_ev_release() argument
138 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_release()
H A Dkfd_chardev.c109 static int kfd_open(struct inode *inode, struct file *filep) in kfd_open() argument
127 process = kfd_create_process(filep); in kfd_open()
139 filep->private_data = process; in kfd_open()
147 static int kfd_release(struct inode *inode, struct file *filep) in kfd_release() argument
149 struct kfd_process *process = filep->private_data; in kfd_release()
157 static int kfd_ioctl_get_version(struct file *filep, struct kfd_process *p, in kfd_ioctl_get_version() argument
274 static int kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p, in kfd_ioctl_create_queue() argument
312 err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, &queue_id, in kfd_ioctl_create_queue()
469 static int kfd_ioctl_get_queue_wave_state(struct file *filep, in kfd_ioctl_get_queue_wave_state() argument
487 static int kfd_ioctl_set_memory_policy(struct file *filep, in kfd_ioctl_set_memory_policy() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/vfio/
H A Dvfio.c1131 static long vfio_fops_unl_ioctl(struct file *filep, in vfio_fops_unl_ioctl() argument
1134 struct vfio_container *container = filep->private_data; in vfio_fops_unl_ioctl()
1163 static int vfio_fops_open(struct inode *inode, struct file *filep) in vfio_fops_open() argument
1175 filep->private_data = container; in vfio_fops_open()
1180 static int vfio_fops_release(struct inode *inode, struct file *filep) in vfio_fops_release() argument
1182 struct vfio_container *container = filep->private_data; in vfio_fops_release()
1184 filep->private_data = NULL; in vfio_fops_release()
1195 static ssize_t vfio_fops_read(struct file *filep, char __user *buf, in vfio_fops_read() argument
1198 struct vfio_container *container = filep->private_data; in vfio_fops_read()
1210 static ssize_t vfio_fops_write(struct file *filep, const char __user *buf, in vfio_fops_write() argument
[all …]
/OK3568_Linux_fs/kernel/fs/cifs/
H A Dioctl.c38 static long cifs_ioctl_query_info(unsigned int xid, struct file *filep, in cifs_ioctl_query_info() argument
41 struct inode *inode = file_inode(filep); in cifs_ioctl_query_info()
44 struct dentry *dentry = filep->f_path.dentry; in cifs_ioctl_query_info()
69 filep->private_data ? 0 : 1, p); in cifs_ioctl_query_info()
164 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) in cifs_ioctl() argument
166 struct inode *inode = file_inode(filep); in cifs_ioctl()
170 struct cifsFileInfo *pSMBFile = filep->private_data; in cifs_ioctl()
241 rc = cifs_ioctl_copychunk(xid, filep, arg); in cifs_ioctl()
244 rc = cifs_ioctl_query_info(xid, filep, arg); in cifs_ioctl()
319 filep, (void __user *)arg); in cifs_ioctl()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/vehicle/
H A Dvehicle_flinger.c716 struct file *filep = NULL; in rk_flinger_rga_scaler() local
733 filep = filp_open(path, O_CREAT | O_RDWR, 0666); in rk_flinger_rga_scaler()
734 if (IS_ERR(filep)) { in rk_flinger_rga_scaler()
740 vfs_write(filep, in rk_flinger_rga_scaler()
743 filp_close(filep, NULL); in rk_flinger_rga_scaler()
752 struct file *filep = NULL; in rk_flinger_rga_scaler() local
770 filep = filp_open(path, O_CREAT | O_RDWR, 0666); in rk_flinger_rga_scaler()
771 if (IS_ERR(filep)) { in rk_flinger_rga_scaler()
777 vfs_write(filep, in rk_flinger_rga_scaler()
780 filp_close(filep, NULL); in rk_flinger_rga_scaler()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/
H A Dda223_cust.c84 struct file *filep; local
97 filep = filp_open(OffsetFileName, O_RDWR|O_CREAT, 0600);
98 if (IS_ERR(filep)){
104 filep->f_op->write(filep, pWorkInfo->buffer, pWorkInfo->len, &filep->f_pos);
105 filp_close(filep, NULL);
116 struct file *filep; local
129 filep = filp_open(OffsetFileName, O_RDONLY, 0600);
130 if (IS_ERR(filep)){
136 filep->f_op->read(filep, pWorkInfo->buffer, sizeof(pWorkInfo->buffer), &filep->f_pos);
137 filp_close(filep, NULL);
[all …]
/OK3568_Linux_fs/kernel/drivers/uio/
H A Duio.c459 static int uio_open(struct inode *inode, struct file *filep) in uio_open() argument
488 filep->private_data = listener; in uio_open()
518 static int uio_fasync(int fd, struct file *filep, int on) in uio_fasync() argument
520 struct uio_listener *listener = filep->private_data; in uio_fasync()
523 return fasync_helper(fd, filep, on, &idev->async_queue); in uio_fasync()
526 static int uio_release(struct inode *inode, struct file *filep) in uio_release() argument
529 struct uio_listener *listener = filep->private_data; in uio_release()
543 static __poll_t uio_poll(struct file *filep, poll_table *wait) in uio_poll() argument
545 struct uio_listener *listener = filep->private_data; in uio_poll()
557 poll_wait(filep, &idev->wait, wait); in uio_poll()
[all …]
/OK3568_Linux_fs/kernel/drivers/misc/uacce/
H A Duacce.c56 static long uacce_fops_unl_ioctl(struct file *filep, in uacce_fops_unl_ioctl() argument
59 struct uacce_queue *q = filep->private_data; in uacce_fops_unl_ioctl()
94 static long uacce_fops_compat_ioctl(struct file *filep, in uacce_fops_compat_ioctl() argument
99 return uacce_fops_unl_ioctl(filep, cmd, arg); in uacce_fops_compat_ioctl()
134 static int uacce_fops_open(struct inode *inode, struct file *filep) in uacce_fops_open() argument
168 filep->private_data = q; in uacce_fops_open()
185 static int uacce_fops_release(struct inode *inode, struct file *filep) in uacce_fops_release() argument
187 struct uacce_queue *q = filep->private_data; in uacce_fops_release()
215 static int uacce_fops_mmap(struct file *filep, struct vm_area_struct *vma) in uacce_fops_mmap() argument
217 struct uacce_queue *q = filep->private_data; in uacce_fops_mmap()
/OK3568_Linux_fs/kernel/include/linux/
H A Dnfs_ssc.h20 void (*sco_close)(struct file *filep);
50 static inline void nfs42_ssc_close(struct file *filep) in nfs42_ssc_close() argument
53 (*nfs_ssc_client_tbl.ssc_nfs4_ops->sco_close)(filep); in nfs42_ssc_close()
/OK3568_Linux_fs/kernel/drivers/iio/
H A Dindustrialio-event.c97 static __poll_t iio_event_poll(struct file *filep, in iio_event_poll() argument
100 struct iio_dev *indio_dev = filep->private_data; in iio_event_poll()
108 poll_wait(filep, &ev_int->wait, wait); in iio_event_poll()
116 static ssize_t iio_event_chrdev_read(struct file *filep, in iio_event_chrdev_read() argument
121 struct iio_dev *indio_dev = filep->private_data; in iio_event_chrdev_read()
135 if (filep->f_flags & O_NONBLOCK) in iio_event_chrdev_read()
161 if (copied == 0 && (filep->f_flags & O_NONBLOCK)) in iio_event_chrdev_read()
169 static int iio_event_chrdev_release(struct inode *inode, struct file *filep) in iio_event_chrdev_release() argument
171 struct iio_dev *indio_dev = filep->private_data; in iio_event_chrdev_release()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_debugfs_crc.c195 static int crtc_crc_open(struct inode *inode, struct file *filep) in crtc_crc_open() argument
258 static int crtc_crc_release(struct inode *inode, struct file *filep) in crtc_crc_release() argument
260 struct drm_crtc *crtc = filep->f_inode->i_private; in crtc_crc_release()
284 static ssize_t crtc_crc_read(struct file *filep, char __user *user_buf, in crtc_crc_read() argument
287 struct drm_crtc *crtc = filep->f_inode->i_private; in crtc_crc_read()
302 if (filep->f_flags & O_NONBLOCK) { in crtc_crc_read()
/OK3568_Linux_fs/kernel/tools/hv/
H A Dhv_kvp_daemon.c147 FILE *filep; in kvp_update_file() local
155 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file()
156 if (!filep) { in kvp_update_file()
164 kvp_file_info[pool].num_records, filep); in kvp_update_file()
166 if (ferror(filep) || fclose(filep)) { in kvp_update_file()
177 FILE *filep; in kvp_update_mem_state() local
186 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state()
187 if (!filep) { in kvp_update_mem_state()
197 filep); in kvp_update_mem_state()
199 if (ferror(filep)) { in kvp_update_mem_state()
[all …]
/OK3568_Linux_fs/kernel/tools/power/x86/intel-speed-select/
H A Disst-config.c151 FILE *filep = fopen(path, mode); in fopen_or_exit() local
153 if (!filep) in fopen_or_exit()
156 return filep; in fopen_or_exit()
164 FILE *filep; in parse_int_file() local
171 filep = fopen_or_exit(path, "r"); in parse_int_file()
173 filep = fopen(path, "r"); in parse_int_file()
174 if (!filep) in parse_int_file()
177 if (fscanf(filep, "%d", &value) != 1) in parse_int_file()
179 fclose(filep); in parse_int_file()
460 FILE *filep; in set_max_cpu_num() local
[all …]
/OK3568_Linux_fs/kernel/drivers/misc/habanalabs/common/
H A Dhabanalabs_ioctl.c535 static long _hl_ioctl(struct file *filep, unsigned int cmd, unsigned long arg, in _hl_ioctl() argument
538 struct hl_fpriv *hpriv = filep->private_data; in _hl_ioctl()
607 long hl_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in hl_ioctl() argument
609 struct hl_fpriv *hpriv = filep->private_data; in hl_ioctl()
622 return _hl_ioctl(filep, cmd, arg, ioctl, hdev->dev); in hl_ioctl()
625 long hl_ioctl_control(struct file *filep, unsigned int cmd, unsigned long arg) in hl_ioctl_control() argument
627 struct hl_fpriv *hpriv = filep->private_data; in hl_ioctl_control()
640 return _hl_ioctl(filep, cmd, arg, ioctl, hdev->dev_ctrl); in hl_ioctl_control()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_debugfs.c113 static int fm10k_dbg_desc_open(struct inode *inode, struct file *filep) in fm10k_dbg_desc_open() argument
125 err = seq_open(filep, desc_seq_ops); in fm10k_dbg_desc_open()
129 ((struct seq_file *)filep->private_data)->private = ring; in fm10k_dbg_desc_open()
/OK3568_Linux_fs/kernel/virt/kvm/
H A Dvfio.c35 static struct vfio_group *kvm_vfio_group_get_external_user(struct file *filep) in kvm_vfio_group_get_external_user() argument
44 vfio_group = fn(filep); in kvm_vfio_group_get_external_user()
52 struct file *filep) in kvm_vfio_external_group_match_file() argument
60 ret = fn(group, filep); in kvm_vfio_external_group_match_file()
/OK3568_Linux_fs/kernel/kernel/
H A Dkcov.c456 static int kcov_mmap(struct file *filep, struct vm_area_struct *vma) in kcov_mmap() argument
493 static int kcov_open(struct inode *inode, struct file *filep) in kcov_open() argument
504 filep->private_data = kcov; in kcov_open()
505 return nonseekable_open(inode, filep); in kcov_open()
508 static int kcov_close(struct inode *inode, struct file *filep) in kcov_close() argument
510 kcov_put(filep->private_data); in kcov_close()
685 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() argument
712 kcov = filep->private_data; in kcov_ioctl()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_debugfs.c20 static ssize_t debugfs_dim_read(struct file *filep, in debugfs_dim_read() argument
24 struct dim *dim = filep->private_data; in debugfs_dim_read()

1234