/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/ |
H A D | osal_fileops.c | 28 struct file *filp = filp_open(filename, flags, mode); in klib_fopen() local 29 return (IS_ERR(filp)) ? NULL : filp; in klib_fopen() 32 void klib_fclose(struct file *filp) in klib_fclose() argument 34 if (filp != NULL) { in klib_fclose() 35 filp_close(filp, NULL); in klib_fclose() 40 int klib_fwrite(const char *buf, unsigned long size, struct file *filp) in klib_fwrite() argument 44 if (filp == NULL) { in klib_fwrite() 48 writelen = __kernel_write(filp, buf, size, &filp in klib_fwrite() 52 klib_fread(char *buf, unsigned long size, struct file *filp) klib_fread() argument 80 osal_klib_fclose(void *filp) osal_klib_fclose() argument 91 osal_klib_fwrite(const char *buf, unsigned long size, void *filp) osal_klib_fwrite() argument 102 osal_klib_fread(char *buf, unsigned long size, void *filp) osal_klib_fread() argument 113 osal_klib_user_fread(char *buf, unsigned long size, void *filp) osal_klib_user_fread() argument 142 osal_klib_user_fwrite(const char *buf, unsigned long size, void *filp) osal_klib_user_fwrite() argument 167 osal_klib_fseek(long long offset, int whence, void *filp) osal_klib_fseek() argument 187 osal_klib_fsync(void *filp) osal_klib_fsync() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/ |
H A D | osal_fileops.c | 25 struct file *filp = filp_open(filename, flags, mode); in klib_fopen() local 26 return (IS_ERR(filp)) ? NULL : filp; in klib_fopen() 29 void klib_fclose(struct file *filp) in klib_fclose() argument 31 if (filp != NULL) { in klib_fclose() 32 filp_close(filp, NULL); in klib_fclose() 37 int klib_fwrite(const char *buf, int len, struct file *filp) in klib_fwrite() argument 39 if (filp == NULL) { in klib_fwrite() 43 return __kernel_write(filp, buf, len, &filp in klib_fwrite() 46 klib_fread(char *buf, unsigned int len, struct file *filp) klib_fread() argument 61 osal_klib_fclose(void *filp) osal_klib_fclose() argument 67 osal_klib_fwrite(const char *buf, int len, void *filp) osal_klib_fwrite() argument 73 osal_klib_fread(char *buf, unsigned int len, void *filp) osal_klib_fread() argument [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tl/ |
H A D | mali_kbase_timeline_io.c | 31 static ssize_t kbasep_timeline_io_read(struct file *filp, char __user *buffer, 33 static unsigned int kbasep_timeline_io_poll(struct file *filp, 35 static int kbasep_timeline_io_release(struct inode *inode, struct file *filp); 36 static int kbasep_timeline_io_fsync(struct file *filp, loff_t start, loff_t end, 181 * @filp: Pointer to file structure 188 static ssize_t kbasep_timeline_io_read(struct file *filp, char __user *buffer, in kbasep_timeline_io_read() argument 194 KBASE_DEBUG_ASSERT(filp); in kbasep_timeline_io_read() 197 if (WARN_ON(!filp->private_data)) in kbasep_timeline_io_read() 200 timeline = (struct kbase_timeline *)filp->private_data; in kbasep_timeline_io_read() 290 * @filp 294 kbasep_timeline_io_poll(struct file *filp, poll_table *wait) kbasep_timeline_io_poll() argument 325 kbasep_timeline_io_release(struct inode *inode, struct file *filp) kbasep_timeline_io_release() argument 363 kbasep_timeline_io_fsync(struct file *filp, loff_t start, loff_t end, int datasync) kbasep_timeline_io_fsync() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/staging/blackbox/ |
H A D | blackbox_storage.c | 76 struct file *filp = NULL; in is_pstore_part_ready() local 85 filp = file_open(PSTORE_MOUNT_POINT, O_RDONLY, 0); in is_pstore_part_ready() 86 if (IS_ERR(filp)) { in is_pstore_part_ready() 87 bbox_print_err("open %s failed! err is [%ld]\n", PSTORE_MOUNT_POINT, PTR_ERR(filp)); in is_pstore_part_ready() 96 root_dentry = filp->f_path.dentry; in is_pstore_part_ready() 117 file_close(filp); in is_pstore_part_ready() 126 struct file *filp = NULL; in get_log_by_pstore() local 144 filp = file_open(pstore_file, O_RDONLY, FILE_LIMIT); in get_log_by_pstore() 145 if (IS_ERR(filp)) { in get_log_by_pstore() 146 bbox_print_err("open %s failed! err is [%ld]\n", pstore_file, PTR_ERR(filp)); in get_log_by_pstore() [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/tl/ |
H A D | mali_kbase_timeline_io.c | 30 static ssize_t kbasep_timeline_io_read(struct file *filp, char __user *buffer, size_t size, loff_t *f_pos); 31 static unsigned int kbasep_timeline_io_poll(struct file *filp, poll_table *wait); 32 static int kbasep_timeline_io_release(struct inode *inode, struct file *filp); 169 * @filp: Pointer to file structure 176 static ssize_t kbasep_timeline_io_read(struct file *filp, char __user *buffer, size_t size, loff_t *f_pos) in kbasep_timeline_io_read() argument 181 KBASE_DEBUG_ASSERT(filp); in kbasep_timeline_io_read() 184 if (WARN_ON(!filp->private_data)) { in kbasep_timeline_io_read() 188 timeline = (struct kbase_timeline *)filp->private_data; in kbasep_timeline_io_read() 276 * @filp: Pointer to file structure 280 static unsigned int kbasep_timeline_io_poll(struct file *filp, poll_tabl argument 314 kbasep_timeline_io_release(struct inode *inode, struct file *filp) kbasep_timeline_io_release() argument [all...] |
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/mmz/ |
H A D | drv_mmz_compat.c | 92 static long compat_mmz_userdev_normal(struct file *filp, unsigned int cmd, struct mmb_info *mmi) in compat_mmz_userdev_normal() argument 98 if (filp == NULL || mmi == NULL) { in compat_mmz_userdev_normal() 106 ret = mmz_userdev_ioctl_m(filp->f_path.dentry->d_inode, filp, in compat_mmz_userdev_normal() 126 static long compat_mmz_userdev_ioctl_m(struct file *filp, unsigned int cmd, unsigned long arg) in compat_mmz_userdev_ioctl_m() argument 156 ret = compat_mmz_userdev_normal(filp, cmd, &mmi); in compat_mmz_userdev_ioctl_m() 179 static long compat_mmz_userdev_ioctl_c(struct file *filp, unsigned int cmd, unsigned long arg) in compat_mmz_userdev_ioctl_c() argument 228 long compat_mmz_userdev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in compat_mmz_userdev_ioctl() argument 233 if (filp == NULL || filp in compat_mmz_userdev_ioctl() [all...] |
H A D | drv_mmz_compat.h | 46 long compat_mmz_userdev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); 48 static inline long compat_mmz_userdev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in compat_mmz_userdev_ioctl() argument
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_kernel_sysfs.c | 82 static int open_copy_private_data(struct inode *inode, struct file *filp) in open_copy_private_data() argument 84 filp->private_data = inode->i_private; in open_copy_private_data() 88 static ssize_t group_enabled_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) in group_enabled_read() argument 94 group = (struct mali_group *)filp->private_data; in group_enabled_read() 103 static ssize_t group_enabled_write(struct file *filp, const char __user *buf, size_t count, loff_t *offp) in group_enabled_write() argument 110 group = (struct mali_group *)filp->private_data; in group_enabled_write() 150 static ssize_t hw_core_base_addr_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) in hw_core_base_addr_read() argument 156 hw_core = (struct mali_hw_core *)filp->private_data; in hw_core_base_addr_read() 170 static ssize_t profiling_counter_src_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) in profiling_counter_src_read() argument 172 u32 is_pp = PRIVATE_DATA_COUNTER_IS_PP((uintptr_t)filp in profiling_counter_src_read() 215 profiling_counter_src_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) profiling_counter_src_write() argument 282 l2_l2x_counter_srcx_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) l2_l2x_counter_srcx_read() argument 303 l2_l2x_counter_srcx_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) l2_l2x_counter_srcx_write() argument 336 l2_all_counter_srcx_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) l2_all_counter_srcx_write() argument 378 l2_l2x_counter_src0_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_src0_read() argument 383 l2_l2x_counter_src1_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_src1_read() argument 388 l2_l2x_counter_src0_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_src0_write() argument 393 l2_l2x_counter_src1_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_src1_write() argument 398 l2_all_counter_src0_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) l2_all_counter_src0_write() argument 403 l2_all_counter_src1_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) l2_all_counter_src1_write() argument 432 l2_l2x_counter_valx_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) l2_l2x_counter_valx_read() argument 460 l2_l2x_counter_val0_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_val0_read() argument 465 l2_l2x_counter_val1_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_val1_read() argument 482 power_always_on_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) power_always_on_write() argument 512 power_always_on_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) power_always_on_read() argument 527 power_power_events_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) power_power_events_write() argument 593 profiling_record_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) profiling_record_read() argument 602 profiling_record_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) profiling_record_write() argument 911 utilization_gp_pp_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) utilization_gp_pp_read() argument 921 utilization_gp_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) utilization_gp_read() argument 931 utilization_pp_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) utilization_pp_read() argument 957 user_settings_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) user_settings_write() argument 983 user_settings_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) user_settings_read() argument 1020 pp_num_cores_enabled_write(struct file *filp, const char __user *buf, size_t count, loff_t *offp) pp_num_cores_enabled_write() argument 1049 pp_num_cores_enabled_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) pp_num_cores_enabled_read() argument 1066 pp_num_cores_total_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) pp_num_cores_total_read() argument 1081 pp_core_scaling_enabled_write(struct file *filp, const char __user *buf, size_t count, loff_t *offp) pp_core_scaling_enabled_write() argument 1117 pp_core_scaling_enabled_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) pp_core_scaling_enabled_read() argument 1128 version_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) version_read() argument [all...] |
H A D | mali_kernel_linux.c | 178 static int mali_open(struct inode *inode, struct file *filp); 179 static int mali_release(struct inode *inode, struct file *filp); 180 static long mali_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); 846 static int mali_open(struct inode *inode, struct file *filp) in mali_open() argument 862 filp->f_pos = 0; in mali_open() 865 filp->private_data = (void *)session_data; in mali_open() 867 filp->f_mapping = mali_mem_swap_get_global_swap_file()->f_mapping; in mali_open() 872 static int mali_release(struct inode *inode, struct file *filp) in mali_release() argument 882 err = _mali_ukk_close((void **)&filp->private_data); in mali_release() 912 static long mali_ioctl(struct file *filp, unsigne argument [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_kernel_sysfs.c | 82 static int open_copy_private_data(struct inode *inode, struct file *filp) in open_copy_private_data() argument 84 filp->private_data = inode->i_private; in open_copy_private_data() 88 static ssize_t group_enabled_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) in group_enabled_read() argument 94 group = (struct mali_group *)filp->private_data; in group_enabled_read() 102 static ssize_t group_enabled_write(struct file *filp, const char __user *buf, size_t count, loff_t *offp) in group_enabled_write() argument 109 group = (struct mali_group *)filp->private_data; in group_enabled_write() 149 static ssize_t hw_core_base_addr_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) in hw_core_base_addr_read() argument 155 hw_core = (struct mali_hw_core *)filp->private_data; in hw_core_base_addr_read() 169 static ssize_t profiling_counter_src_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) in profiling_counter_src_read() argument 171 u32 is_pp = PRIVATE_DATA_COUNTER_IS_PP((uintptr_t)filp in profiling_counter_src_read() 214 profiling_counter_src_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) profiling_counter_src_write() argument 281 l2_l2x_counter_srcx_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) l2_l2x_counter_srcx_read() argument 302 l2_l2x_counter_srcx_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) l2_l2x_counter_srcx_write() argument 336 l2_all_counter_srcx_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) l2_all_counter_srcx_write() argument 379 l2_l2x_counter_src0_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_src0_read() argument 384 l2_l2x_counter_src1_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_src1_read() argument 389 l2_l2x_counter_src0_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_src0_write() argument 394 l2_l2x_counter_src1_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_src1_write() argument 399 l2_all_counter_src0_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) l2_all_counter_src0_write() argument 404 l2_all_counter_src1_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) l2_all_counter_src1_write() argument 433 l2_l2x_counter_valx_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos, u32 src_id) l2_l2x_counter_valx_read() argument 461 l2_l2x_counter_val0_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_val0_read() argument 466 l2_l2x_counter_val1_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) l2_l2x_counter_val1_read() argument 483 power_always_on_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) power_always_on_write() argument 513 power_always_on_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) power_always_on_read() argument 528 power_power_events_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) power_power_events_write() argument 596 profiling_record_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) profiling_record_read() argument 605 profiling_record_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) profiling_record_write() argument 919 utilization_gp_pp_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) utilization_gp_pp_read() argument 929 utilization_gp_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) utilization_gp_read() argument 939 utilization_pp_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) utilization_pp_read() argument 964 user_settings_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) user_settings_write() argument 990 user_settings_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) user_settings_read() argument 1026 pp_num_cores_enabled_write(struct file *filp, const char __user *buf, size_t count, loff_t *offp) pp_num_cores_enabled_write() argument 1055 pp_num_cores_enabled_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) pp_num_cores_enabled_read() argument 1072 pp_num_cores_total_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) pp_num_cores_total_read() argument 1087 pp_core_scaling_enabled_write(struct file *filp, const char __user *buf, size_t count, loff_t *offp) pp_core_scaling_enabled_write() argument 1123 pp_core_scaling_enabled_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) pp_core_scaling_enabled_read() argument 1134 version_read(struct file *filp, char __user *buf, size_t count, loff_t *offp) version_read() argument [all...] |
H A D | mali_kernel_linux.c | 185 static int mali_open(struct inode *inode, struct file *filp); 186 static int mali_release(struct inode *inode, struct file *filp); 187 static long mali_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); 830 static int mali_open(struct inode *inode, struct file *filp) in mali_open() argument 848 filp->f_pos = 0; in mali_open() 851 filp->private_data = (void *)session_data; in mali_open() 853 filp->f_mapping = mali_mem_swap_get_global_swap_file()->f_mapping; in mali_open() 858 static int mali_release(struct inode *inode, struct file *filp) in mali_release() argument 868 err = _mali_ukk_close((void **)&filp->private_data); in mali_release() 900 static long mali_ioctl(struct file *filp, unsigne argument [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/linux/ |
H A D | ump_kernel_linux.c | 79 static int ump_file_open(struct inode *inode, struct file *filp); 80 static int ump_file_release(struct inode *inode, struct file *filp); 82 static long ump_file_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); 84 static int ump_file_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg); 86 static int ump_file_mmap(struct file *filp, struct vm_area_struct *vma); 137 static ssize_t ump_memory_used_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) in ump_memory_used_read() argument 243 static int ump_file_open(struct inode *inode, struct file *filp) in ump_file_open() argument 261 filp->private_data = (void *)session_data; in ump_file_open() 262 filp->f_pos = 0; in ump_file_open() 272 static int ump_file_release(struct inode *inode, struct file *filp) in ump_file_release() argument 290 ump_file_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ump_file_ioctl() argument 394 ump_file_mmap(struct file *filp, struct vm_area_struct *vma) ump_file_mmap() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/ |
H A D | drm_file.c | 275 drm_legacy_lock_release(dev, file->filp); in drm_file_free() 315 static void drm_close_helper(struct file *filp) in drm_close_helper() argument 317 struct drm_file *file_priv = filp->private_data; in drm_close_helper() 343 * \param filp file pointer. 348 * filp and add it into the double linked list in \p dev. 350 static int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument 356 if (filp->f_flags & O_EXCL) { in drm_open_helper() 381 filp->private_data = priv; in drm_open_helper() 382 filp->f_mode |= FMODE_UNSIGNED_OFFSET; in drm_open_helper() 383 priv->filp in drm_open_helper() 426 drm_open(struct inode *inode, struct file *filp) drm_open() argument 508 drm_release(struct inode *inode, struct file *filp) drm_release() argument 551 drm_release_noglobal(struct inode *inode, struct file *filp) drm_release_noglobal() argument 596 drm_read(struct file *filp, char __user *buffer, size_t count, loff_t *offset) drm_read() argument 687 drm_poll(struct file *filp, struct poll_table_struct *wait) drm_poll() argument [all...] |
H A D | drm_gem.c | 126 struct file *filp; in drm_gem_object_init() local 130 filp = shmem_file_setup("drm mm object", size, VM_NORESERVE); in drm_gem_object_init() 131 if (IS_ERR(filp)) in drm_gem_object_init() 132 return PTR_ERR(filp); in drm_gem_object_init() 134 obj->filp = filp; in drm_gem_object_init() 156 obj->filp = NULL; in drm_gem_private_object_init() 170 drm_gem_remove_prime_handles(struct drm_gem_object *obj, struct drm_file *filp) in drm_gem_remove_prime_handles() argument 176 mutex_lock(&filp->prime.lock); in drm_gem_remove_prime_handles() 178 drm_prime_remove_buf_handle_locked(&filp in drm_gem_remove_prime_handles() 275 drm_gem_handle_delete(struct drm_file *filp, u32 handle) drm_gem_handle_delete() argument 663 objects_lookup(struct drm_file *filp, u32 *handle, int count, struct drm_gem_object **objs) objects_lookup() argument 705 drm_gem_objects_lookup(struct drm_file *filp, void __user *bo_handles, int count, struct drm_gem_object ***objs_out) drm_gem_objects_lookup() argument 755 drm_gem_object_lookup(struct drm_file *filp, u32 handle) drm_gem_object_lookup() argument 1131 drm_gem_mmap(struct file *filp, struct vm_area_struct *vma) drm_gem_mmap() argument [all...] |
/device/soc/rockchip/common/sdk_linux/include/drm/ |
H A D | drm_file.h | 271 /** @filp: Pointer to the core file structure. */ 272 struct file *filp; member 384 int drm_open(struct inode *inode, struct file *filp); 385 ssize_t drm_read(struct file *filp, char __user *buffer, size_t count, loff_t *offset); 386 int drm_release(struct inode *inode, struct file *filp); 387 int drm_release_noglobal(struct inode *inode, struct file *filp); 388 __poll_t drm_poll(struct file *filp, struct poll_table_struct *wait);
|
/device/soc/rockchip/common/sdk_linux/drivers/spi/ |
H A D | spidev.c | 140 static ssize_t spidev_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
in spidev_read() argument 150 spidev = filp->private_data;
in spidev_read() 170 static ssize_t spidev_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos)
in spidev_write() argument 181 spidev = filp->private_data;
in spidev_write() 328 static long spidev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
in spidev_ioctl() argument 345 spidev = filp->private_data;
in spidev_ioctl() 482 static long spidev_compat_ioc_message(struct file *filp, unsigned int cmd, unsigned long arg)
in spidev_compat_ioc_message() argument 496 spidev = filp->private_data;
in spidev_compat_ioc_message() 534 static long spidev_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
in spidev_compat_ioctl() argument 537 return spidev_compat_ioc_message(filp, cm in spidev_compat_ioctl() 546 spidev_open(struct inode *inode, struct file *filp) spidev_open() argument 599 spidev_release(struct inode *inode, struct file *filp) spidev_release() argument [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_vinstr.c | 117 struct file *filp, 121 struct file *filp, 126 struct file *filp, 131 struct file *filp); 963 * @filp: Non-NULL pointer to file structure. 970 struct file *filp, in kbasep_vinstr_hwcnt_reader_ioctl() 977 if (!filp || (_IOC_TYPE(cmd) != KBASE_HWCNT_READER)) in kbasep_vinstr_hwcnt_reader_ioctl() 980 cli = filp->private_data; in kbasep_vinstr_hwcnt_reader_ioctl() 1034 * @filp: Non-NULL pointer to file structure. 1041 struct file *filp, in kbasep_vinstr_hwcnt_reader_poll() 969 kbasep_vinstr_hwcnt_reader_ioctl( struct file *filp, unsigned int cmd, unsigned long arg) kbasep_vinstr_hwcnt_reader_ioctl() argument 1040 kbasep_vinstr_hwcnt_reader_poll( struct file *filp, poll_table *wait) kbasep_vinstr_hwcnt_reader_poll() argument 1066 kbasep_vinstr_hwcnt_reader_mmap( struct file *filp, struct vm_area_struct *vma) kbasep_vinstr_hwcnt_reader_mmap() argument 1113 kbasep_vinstr_hwcnt_reader_release(struct inode *inode, struct file *filp) kbasep_vinstr_hwcnt_reader_release() argument [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_vinstr.c | 110 static unsigned int kbasep_vinstr_hwcnt_reader_poll(struct file *filp, poll_table *wait); 112 static long kbasep_vinstr_hwcnt_reader_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); 114 static int kbasep_vinstr_hwcnt_reader_mmap(struct file *filp, struct vm_area_struct *vma); 116 static int kbasep_vinstr_hwcnt_reader_release(struct inode *inode, struct file *filp); 903 * @filp: Non-NULL pointer to file structure. 909 static long kbasep_vinstr_hwcnt_reader_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in kbasep_vinstr_hwcnt_reader_ioctl() argument 914 if (!filp || (_IOC_TYPE(cmd) != KBASE_HWCNT_READER)) { in kbasep_vinstr_hwcnt_reader_ioctl() 918 cli = filp->private_data; in kbasep_vinstr_hwcnt_reader_ioctl() 965 * @filp: Non-NULL pointer to file structure. 971 static unsigned int kbasep_vinstr_hwcnt_reader_poll(struct file *filp, poll_tabl argument 998 kbasep_vinstr_hwcnt_reader_mmap(struct file *filp, struct vm_area_struct *vma) kbasep_vinstr_hwcnt_reader_mmap() argument 1037 kbasep_vinstr_hwcnt_reader_release(struct inode *inode, struct file *filp) kbasep_vinstr_hwcnt_reader_release() argument [all...] |
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/ |
H A D | params.c | 251 static int rkispp_param_fh_open(struct file *filp) in rkispp_param_fh_open() argument 253 struct rkispp_params_vdev *params = video_drvdata(filp); in rkispp_param_fh_open() 257 ret = v4l2_fh_open(filp); in rkispp_param_fh_open() 269 vb2_fop_release(filp); in rkispp_param_fh_open() 273 static int rkispp_param_fh_release(struct file *filp) in rkispp_param_fh_release() argument 275 struct rkispp_params_vdev *params = video_drvdata(filp); in rkispp_param_fh_release() 276 struct video_device *vdev = video_devdata(filp); in rkispp_param_fh_release() 279 if (filp->private_data == vdev->queue->owner) { in rkispp_param_fh_release() 283 ret = vb2_fop_release(filp); in rkispp_param_fh_release()
|
H A D | stats.c | 126 static int rkispp_stats_fh_open(struct file *filp) in rkispp_stats_fh_open() argument 128 struct rkispp_stats_vdev *stats = video_drvdata(filp); in rkispp_stats_fh_open() 132 ret = v4l2_fh_open(filp); in rkispp_stats_fh_open() 137 vb2_fop_release(filp); in rkispp_stats_fh_open() 143 static int rkispp_stats_fh_release(struct file *filp) in rkispp_stats_fh_release() argument 145 struct rkispp_stats_vdev *stats = video_drvdata(filp); in rkispp_stats_fh_release() 148 ret = vb2_fop_release(filp); in rkispp_stats_fh_release()
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/ |
H A D | params.c | 266 rkispp_param_fh_open(struct file *filp) in rkispp_param_fh_open() argument 268 struct rkispp_params_vdev *params = video_drvdata(filp); in rkispp_param_fh_open() 272 ret = v4l2_fh_open(filp); in rkispp_param_fh_open() 285 vb2_fop_release(filp); in rkispp_param_fh_open() 290 rkispp_param_fh_release(struct file *filp) in rkispp_param_fh_release() argument 292 struct rkispp_params_vdev *params = video_drvdata(filp); in rkispp_param_fh_release() 293 struct video_device *vdev = video_devdata(filp); in rkispp_param_fh_release() 296 if (filp->private_data == vdev->queue->owner) in rkispp_param_fh_release() 299 ret = vb2_fop_release(filp); in rkispp_param_fh_release()
|
H A D | stats.c | 130 static int rkispp_stats_fh_open(struct file *filp) in rkispp_stats_fh_open() argument 132 struct rkispp_stats_vdev *stats = video_drvdata(filp); in rkispp_stats_fh_open() 136 ret = v4l2_fh_open(filp); in rkispp_stats_fh_open() 142 vb2_fop_release(filp); in rkispp_stats_fh_open() 148 static int rkispp_stats_fh_release(struct file *filp) in rkispp_stats_fh_release() argument 150 struct rkispp_stats_vdev *stats = video_drvdata(filp); in rkispp_stats_fh_release() 153 ret = vb2_fop_release(filp); in rkispp_stats_fh_release()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/context/backend/ |
H A D | mali_kbase_context_csf.c | 119 struct file *const filp) in kbase_create_context() 138 kctx->filp = filp; in kbase_create_context() 115 kbase_create_context(struct kbase_device *kbdev, bool is_compat, base_context_create_flags const flags, unsigned long const api_version, struct file *const filp) kbase_create_context() argument
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/include/ |
H A D | hi_osal.h | 452 void osal_klib_fclose(void *filp); 453 int osal_klib_fwrite(const char *buf, unsigned long size, void *filp); 454 int osal_klib_fread(char *buf, unsigned long size, void *filp); 455 int osal_klib_user_fwrite(const char *buf, unsigned long size, void *filp); 456 int osal_klib_user_fread(char *buf, unsigned long size, void *filp); 457 void osal_klib_fsync(void *filp); 458 int osal_klib_fseek(long long offset, int whence, void *filp);
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/context/backend/ |
H A D | mali_kbase_context_jm.c | 147 struct file *const filp) in kbase_create_context() 169 kctx->filp = filp; in kbase_create_context() 145 kbase_create_context(struct kbase_device *kbdev, bool is_compat, base_context_create_flags const flags, unsigned long const api_version, struct file *const filp) kbase_create_context() argument
|