/drivers/media/test-drivers/vivid/ |
D | vivid-vid-cap.h | 20 int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 21 int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 22 int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 23 int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 24 int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 25 int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 26 int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 27 int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 28 int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 29 int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel); [all …]
|
D | vivid-vid-out.h | 15 int vivid_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 16 int vivid_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 17 int vivid_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 18 int vidioc_g_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f); 19 int vidioc_try_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f); 20 int vidioc_s_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f); 21 int vidioc_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 22 int vidioc_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 23 int vidioc_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 24 int vivid_vid_out_g_selection(struct file *file, void *priv, struct v4l2_selection *sel); [all …]
|
D | vivid-sdr-cap.h | 11 int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band); 12 int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf); 13 int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf); 14 int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt); 15 int vivid_sdr_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt); 16 int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f); 17 int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); 18 int vidioc_s_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); 19 int vidioc_try_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
|
D | vivid-vid-common.h | 11 typedef int (*fmtfunc)(struct file *file, void *priv, struct v4l2_format *f); 18 int fmt_sp2mp_func(struct file *file, void *priv, 30 int vivid_enum_fmt_vid(struct file *file, void *priv, struct v4l2_fmtdesc *f); 31 int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *id); 32 int vidioc_g_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings); 33 int vidioc_enum_dv_timings(struct file *file, void *_fh, struct v4l2_enum_dv_timings *timings); 34 int vidioc_dv_timings_cap(struct file *file, void *_fh, struct v4l2_dv_timings_cap *cap); 35 int vidioc_g_edid(struct file *file, void *_fh, struct v4l2_edid *edid);
|
D | vivid-core.c | 235 static int vidioc_querycap(struct file *file, void *priv, in vidioc_querycap() argument 238 struct vivid_dev *dev = video_drvdata(file); in vidioc_querycap() 254 static int vidioc_s_hw_freq_seek(struct file *file, void *fh, const struct v4l2_hw_freq_seek *a) in vidioc_s_hw_freq_seek() argument 256 struct video_device *vdev = video_devdata(file); in vidioc_s_hw_freq_seek() 259 return vivid_radio_rx_s_hw_freq_seek(file, fh, a); in vidioc_s_hw_freq_seek() 263 static int vidioc_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument 265 struct video_device *vdev = video_devdata(file); in vidioc_enum_freq_bands() 268 return vivid_radio_rx_enum_freq_bands(file, fh, band); in vidioc_enum_freq_bands() 270 return vivid_sdr_enum_freq_bands(file, fh, band); in vidioc_enum_freq_bands() 274 static int vidioc_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) in vidioc_g_tuner() argument [all …]
|
/drivers/gpu/drm/i915/gt/ |
D | shmem_utils.c | 16 struct file *shmem_create_from_data(const char *name, void *data, size_t len) in shmem_create_from_data() 18 struct file *file; in shmem_create_from_data() local 21 file = shmem_file_setup(name, PAGE_ALIGN(len), VM_NORESERVE); in shmem_create_from_data() 22 if (IS_ERR(file)) in shmem_create_from_data() 23 return file; in shmem_create_from_data() 25 err = shmem_write(file, 0, data, len); in shmem_create_from_data() 27 fput(file); in shmem_create_from_data() 31 return file; in shmem_create_from_data() 34 struct file *shmem_create_from_object(struct drm_i915_gem_object *obj) in shmem_create_from_object() 37 struct file *file; in shmem_create_from_object() local [all …]
|
/drivers/infiniband/core/ |
D | user_mad.c | 174 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument 176 return file->use_pkey_index ? sizeof(struct ib_user_mad_hdr) : in hdr_size() 181 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument 183 return file->agents_dead ? NULL : file->agent[id]; in __get_agent() 186 static int queue_packet(struct ib_umad_file *file, struct ib_mad_agent *agent, in queue_packet() argument 191 mutex_lock(&file->mutex); in queue_packet() 194 atomic_read(&file->recv_list_size) > MAX_UMAD_RECV_LIST_SIZE) in queue_packet() 200 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet() 201 list_add_tail(&packet->list, &file->recv_list); in queue_packet() 202 atomic_inc(&file->recv_list_size); in queue_packet() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_dbg.c | 107 dr_dump_rule_action_mem(struct seq_file *file, const u64 rule_id, in dr_dump_rule_action_mem() argument 117 seq_printf(file, "%d,0x%llx,0x%llx\n", in dr_dump_rule_action_mem() 122 seq_printf(file, "%d,0x%llx,0x%llx,0x%x,0x%x\n", in dr_dump_rule_action_mem() 127 seq_printf(file, "%d,0x%llx,0x%llx,0x%x,0x%llx\n", in dr_dump_rule_action_mem() 134 seq_printf(file, "%d,0x%llx,0x%llx,0x%x\n", in dr_dump_rule_action_mem() 139 seq_printf(file, "%d,0x%llx,0x%llx,0x%x\n", in dr_dump_rule_action_mem() 153 seq_printf(file, "%d,0x%llx,0x%llx,0x%x,%d,0x%x,0x%x,0x%x", in dr_dump_rule_action_mem() 163 seq_printf(file, ",0x%016llx", in dr_dump_rule_action_mem() 168 seq_puts(file, "\n"); in dr_dump_rule_action_mem() 172 seq_printf(file, "%d,0x%llx,0x%llx,0x%x\n", in dr_dump_rule_action_mem() [all …]
|
/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_debugfs.c | 10 mt76x02_ampdu_stat_show(struct seq_file *file, void *data) in mt76x02_ampdu_stat_show() argument 12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_show() 16 seq_puts(file, "Length: "); in mt76x02_ampdu_stat_show() 18 seq_printf(file, "%8d | ", i * 8 + j + 1); in mt76x02_ampdu_stat_show() 19 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show() 20 seq_puts(file, "Count: "); in mt76x02_ampdu_stat_show() 22 seq_printf(file, "%8d | ", in mt76x02_ampdu_stat_show() 24 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show() 25 seq_puts(file, "--------"); in mt76x02_ampdu_stat_show() 27 seq_puts(file, "-----------"); in mt76x02_ampdu_stat_show() [all …]
|
/drivers/gpu/drm/ |
D | drm_file.c | 154 struct drm_file *file; in drm_file_alloc() local 157 file = kzalloc(sizeof(*file), GFP_KERNEL); in drm_file_alloc() 158 if (!file) in drm_file_alloc() 162 file->client_id = atomic64_inc_return(&ident); in drm_file_alloc() 163 rcu_assign_pointer(file->pid, get_pid(task_tgid(current))); in drm_file_alloc() 164 file->minor = minor; in drm_file_alloc() 167 file->authenticated = capable(CAP_SYS_ADMIN); in drm_file_alloc() 169 INIT_LIST_HEAD(&file->lhead); in drm_file_alloc() 170 INIT_LIST_HEAD(&file->fbs); in drm_file_alloc() 171 mutex_init(&file->fbs_lock); in drm_file_alloc() [all …]
|
D | drm_ioc32.c | 91 static int compat_drm_version(struct file *file, unsigned int cmd, in compat_drm_version() argument 111 err = drm_ioctl_kernel(file, drm_version, &v, in compat_drm_version() 132 static int compat_drm_getunique(struct file *file, unsigned int cmd, in compat_drm_getunique() argument 149 err = drm_ioctl_kernel(file, drm_getunique, &uq, 0); in compat_drm_getunique() 159 static int compat_drm_setunique(struct file *file, unsigned int cmd, in compat_drm_setunique() argument 176 static int compat_drm_getmap(struct file *file, unsigned int cmd, in compat_drm_getmap() argument 188 err = drm_ioctl_kernel(file, drm_legacy_getmap_ioctl, &map, 0); in compat_drm_getmap() 204 static int compat_drm_addmap(struct file *file, unsigned int cmd, in compat_drm_addmap() argument 220 err = drm_ioctl_kernel(file, drm_legacy_addmap_ioctl, &map, in compat_drm_addmap() 238 static int compat_drm_rmmap(struct file *file, unsigned int cmd, in compat_drm_rmmap() argument [all …]
|
/drivers/net/wireless/marvell/libertas/ |
D | debugfs.c | 25 static ssize_t write_file_dummy(struct file *file, const char __user *buf, in write_file_dummy() argument 33 static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, in lbs_dev_info() argument 36 struct lbs_private *priv = file->private_data; in lbs_dev_info() 55 static ssize_t lbs_sleepparams_write(struct file *file, in lbs_sleepparams_write() argument 59 struct lbs_private *priv = file->private_data; in lbs_sleepparams_write() 92 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, in lbs_sleepparams_read() argument 95 struct lbs_private *priv = file->private_data; in lbs_sleepparams_read() 120 static ssize_t lbs_host_sleep_write(struct file *file, in lbs_host_sleep_write() argument 124 struct lbs_private *priv = file->private_data; in lbs_host_sleep_write() 162 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, in lbs_host_sleep_read() argument [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | debug.c | 71 static ssize_t ath9k_debugfs_read_buf(struct file *file, char __user *user_buf, in ath9k_debugfs_read_buf() argument 74 u8 *buf = file->private_data; in ath9k_debugfs_read_buf() 78 static int ath9k_debugfs_release_buf(struct inode *inode, struct file *file) in ath9k_debugfs_release_buf() argument 80 vfree(file->private_data); in ath9k_debugfs_release_buf() 86 static ssize_t read_file_debug(struct file *file, char __user *user_buf, in read_file_debug() argument 89 struct ath_softc *sc = file->private_data; in read_file_debug() 98 static ssize_t write_file_debug(struct file *file, const char __user *user_buf, in write_file_debug() argument 101 struct ath_softc *sc = file->private_data; in write_file_debug() 127 static ssize_t read_file_ani(struct file *file, char __user *user_buf, in read_file_ani() argument 130 struct ath_softc *sc = file->private_data; in read_file_ani() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-v4l2.c | 43 struct file *file; member 109 static int pvr2_querycap(struct file *file, void *priv, struct v4l2_capability *cap) in pvr2_querycap() argument 111 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querycap() 124 static int pvr2_g_std(struct file *file, void *priv, v4l2_std_id *std) in pvr2_g_std() argument 126 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_std() 137 static int pvr2_s_std(struct file *file, void *priv, v4l2_std_id std) in pvr2_s_std() argument 139 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_std() 149 static int pvr2_querystd(struct file *file, void *priv, v4l2_std_id *std) in pvr2_querystd() argument 151 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querystd() 162 static int pvr2_enum_input(struct file *file, void *priv, struct v4l2_input *vi) in pvr2_enum_input() argument [all …]
|
/drivers/gpu/drm/i915/gem/ |
D | i915_gem_ioctls.h | 14 struct drm_file *file); 16 struct drm_file *file); 18 struct drm_file *file); 20 struct drm_file *file); 22 struct drm_file *file); 24 struct drm_file *file); 26 struct drm_file *file); 28 struct drm_file *file); 30 struct drm_file *file); 32 struct drm_file *file); [all …]
|
/drivers/media/platform/renesas/rcar-vin/ |
D | rcar-v4l2.c | 310 static int rvin_querycap(struct file *file, void *priv, in rvin_querycap() argument 318 static int rvin_try_fmt_vid_cap(struct file *file, void *priv, in rvin_try_fmt_vid_cap() argument 321 struct rvin_dev *vin = video_drvdata(file); in rvin_try_fmt_vid_cap() 326 static int rvin_s_fmt_vid_cap(struct file *file, void *priv, in rvin_s_fmt_vid_cap() argument 329 struct rvin_dev *vin = video_drvdata(file); in rvin_s_fmt_vid_cap() 354 static int rvin_g_fmt_vid_cap(struct file *file, void *priv, in rvin_g_fmt_vid_cap() argument 357 struct rvin_dev *vin = video_drvdata(file); in rvin_g_fmt_vid_cap() 364 static int rvin_enum_fmt_vid_cap(struct file *file, void *priv, in rvin_enum_fmt_vid_cap() argument 367 struct rvin_dev *vin = video_drvdata(file); in rvin_enum_fmt_vid_cap() 474 static int rvin_g_selection(struct file *file, void *fh, in rvin_g_selection() argument [all …]
|
/drivers/usb/gadget/function/ |
D | uvc_v4l2.c | 203 uvc_v4l2_querycap(struct file *file, void *fh, struct v4l2_capability *cap) in uvc_v4l2_querycap() argument 205 struct video_device *vdev = video_devdata(file); in uvc_v4l2_querycap() 217 uvc_v4l2_get_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_get_format() argument 219 struct video_device *vdev = video_devdata(file); in uvc_v4l2_get_format() 236 uvc_v4l2_try_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_try_format() argument 238 struct video_device *vdev = video_devdata(file); in uvc_v4l2_try_format() 276 uvc_v4l2_set_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_set_format() argument 278 struct video_device *vdev = video_devdata(file); in uvc_v4l2_set_format() 283 ret = uvc_v4l2_try_format(file, fh, fmt); in uvc_v4l2_set_format() 297 uvc_v4l2_enum_frameintervals(struct file *file, void *fh, in uvc_v4l2_enum_frameintervals() argument [all …]
|
/drivers/char/ |
D | mem.c | 104 static ssize_t read_mem(struct file *file, char __user *buf, in read_mem() argument 191 static ssize_t write_mem(struct file *file, const char __user *buf, in write_mem() argument 264 int __weak phys_mem_access_prot_allowed(struct file *file, in phys_mem_access_prot_allowed() argument 278 static int uncached_access(struct file *file, phys_addr_t addr) in uncached_access() argument 292 if (file->f_flags & O_DSYNC) in uncached_access() 299 static pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, in phys_mem_access_prot() argument 305 if (uncached_access(file, offset)) in phys_mem_access_prot() 313 static unsigned long get_unmapped_area_mem(struct file *file, in get_unmapped_area_mem() argument 325 static unsigned memory_mmap_capabilities(struct file *file) in memory_mmap_capabilities() argument 331 static unsigned zero_mmap_capabilities(struct file *file) in zero_mmap_capabilities() argument [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-ioctl.c | 912 static int check_fmt(struct file *file, enum v4l2_buf_type type) in check_fmt() argument 921 struct video_device *vfd = video_devdata(file); in check_fmt() 1082 struct file *file, void *fh, void *arg) in v4l_querycap() argument 1085 struct video_device *vfd = video_devdata(file); in v4l_querycap() 1095 ret = ops->vidioc_querycap(file, fh, cap); in v4l_querycap() 1116 struct file *file, void *fh, void *arg) in v4l_g_input() argument 1118 struct video_device *vfd = video_devdata(file); in v4l_g_input() 1125 return ops->vidioc_g_input(file, fh, arg); in v4l_g_input() 1129 struct file *file, void *fh, void *arg) in v4l_g_output() argument 1131 struct video_device *vfd = video_devdata(file); in v4l_g_output() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
D | debugfs.c | 78 static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, in tx_queue_len_read() argument 81 struct wl1271 *wl = file->private_data; in tx_queue_len_read() 123 static ssize_t param##_read(struct file *file, \ 127 struct wl1271 *wl = file->private_data; \ 133 static ssize_t param##_write(struct file *file, \ 137 struct wl1271 *wl = file->private_data; \ 175 static ssize_t gpio_power_read(struct file *file, char __user *user_buf, in gpio_power_read() argument 178 struct wl1271 *wl = file->private_data; in gpio_power_read() 189 static ssize_t gpio_power_write(struct file *file, in gpio_power_write() argument 193 struct wl1271 *wl = file->private_data; in gpio_power_write() [all …]
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | debugfs.c | 33 mt7601u_ampdu_stat_show(struct seq_file *file, void *data) in mt7601u_ampdu_stat_show() argument 35 struct mt7601u_dev *dev = file->private; in mt7601u_ampdu_stat_show() 39 seq_printf(file, #name ":\t%llu\n", dev->stats.grp[off]) in mt7601u_ampdu_stat_show() 62 seq_puts(file, "Aggregations stats:\n"); in mt7601u_ampdu_stat_show() 65 seq_printf(file, "%08llx ", in mt7601u_ampdu_stat_show() 67 seq_putc(file, '\n'); in mt7601u_ampdu_stat_show() 70 seq_printf(file, "recent average AMPDU len: %d\n", in mt7601u_ampdu_stat_show() 79 mt7601u_eeprom_param_show(struct seq_file *file, void *data) in mt7601u_eeprom_param_show() argument 81 struct mt7601u_dev *dev = file->private; in mt7601u_eeprom_param_show() 86 seq_printf(file, "RF freq offset: %hhx\n", dev->ee->rf_freq_off); in mt7601u_eeprom_param_show() [all …]
|
/drivers/media/radio/wl128x/ |
D | fmdrv_v4l2.c | 32 static ssize_t fm_v4l2_fops_read(struct file *file, char __user * buf, in fm_v4l2_fops_read() argument 39 fmdev = video_drvdata(file); in fm_v4l2_fops_read() 65 ret = fmc_transfer_rds_from_internal_buff(fmdev, file, buf, count); in fm_v4l2_fops_read() 72 static ssize_t fm_v4l2_fops_write(struct file *file, const char __user * buf, in fm_v4l2_fops_write() argument 86 fmdev = video_drvdata(file); in fm_v4l2_fops_write() 96 static __poll_t fm_v4l2_fops_poll(struct file *file, struct poll_table_struct *pts) in fm_v4l2_fops_poll() argument 101 fmdev = video_drvdata(file); in fm_v4l2_fops_poll() 103 ret = fmc_is_rds_data_available(fmdev, file, pts); in fm_v4l2_fops_poll() 115 static int fm_v4l2_fops_open(struct file *file) in fm_v4l2_fops_open() argument 126 fmdev = video_drvdata(file); in fm_v4l2_fops_open() [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | debugfs.c | 26 ssize_t hfi1_seq_read(struct file *file, char __user *buf, size_t size, in hfi1_seq_read() argument 29 struct dentry *d = file->f_path.dentry; in hfi1_seq_read() 35 r = seq_read(file, buf, size, ppos); in hfi1_seq_read() 40 loff_t hfi1_seq_lseek(struct file *file, loff_t offset, int whence) in hfi1_seq_lseek() argument 42 struct dentry *d = file->f_path.dentry; in hfi1_seq_lseek() 48 r = seq_lseek(file, offset, whence); in hfi1_seq_lseek() 53 #define private2dd(file) (file_inode(file)->i_private) argument 54 #define private2ppd(file) (file_inode(file)->i_private) argument 417 static ssize_t dev_counters_read(struct file *file, char __user *buf, in dev_counters_read() argument 425 dd = private2dd(file); in dev_counters_read() [all …]
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-debugfs.c | 14 static int dpaa2_dbg_cpu_show(struct seq_file *file, void *offset) in dpaa2_dbg_cpu_show() argument 16 struct dpaa2_eth_priv *priv = (struct dpaa2_eth_priv *)file->private; in dpaa2_dbg_cpu_show() 21 seq_printf(file, "Per-CPU stats for %s\n", priv->net_dev->name); in dpaa2_dbg_cpu_show() 22 seq_printf(file, "%s%16s%16s%16s%16s%16s%16s%16s%16s%16s\n", in dpaa2_dbg_cpu_show() 29 seq_printf(file, "%3d%16llu%16llu%16llu%16llu%16llu%16llu%16llu%16llu%16llu\n", in dpaa2_dbg_cpu_show() 59 static int dpaa2_dbg_fqs_show(struct seq_file *file, void *offset) in dpaa2_dbg_fqs_show() argument 61 struct dpaa2_eth_priv *priv = (struct dpaa2_eth_priv *)file->private; in dpaa2_dbg_fqs_show() 66 seq_printf(file, "FQ stats for %s:\n", priv->net_dev->name); in dpaa2_dbg_fqs_show() 67 seq_printf(file, "%s%16s%16s%16s%16s%16s\n", in dpaa2_dbg_fqs_show() 80 seq_printf(file, "%5d%16d%16d%16s%16llu%16u\n", in dpaa2_dbg_fqs_show() [all …]
|
/drivers/xen/xenfs/ |
D | xenstored.c | 12 static ssize_t xsd_read(struct file *file, char __user *buf, in xsd_read() argument 15 const char *str = (const char *)file->private_data; in xsd_read() 19 static int xsd_release(struct inode *inode, struct file *file) in xsd_release() argument 21 kfree(file->private_data); in xsd_release() 25 static int xsd_kva_open(struct inode *inode, struct file *file) in xsd_kva_open() argument 27 file->private_data = (void *)kasprintf(GFP_KERNEL, "0x%p", in xsd_kva_open() 29 if (!file->private_data) in xsd_kva_open() 34 static int xsd_kva_mmap(struct file *file, struct vm_area_struct *vma) in xsd_kva_mmap() argument 56 static int xsd_port_open(struct inode *inode, struct file *file) in xsd_port_open() argument 58 file->private_data = (void *)kasprintf(GFP_KERNEL, "%d", in xsd_port_open() [all …]
|