/drivers/staging/exfat/ |
D | exfat_super.c | 48 static struct inode *exfat_iget(struct super_block *sb, loff_t i_pos); 49 static int exfat_sync_inode(struct inode *inode); 50 static struct inode *exfat_build_inode(struct super_block *sb, 52 static int exfat_write_inode(struct inode *inode, 302 static inline int exfat_mode_can_hold_ro(struct inode *inode) in exfat_mode_can_hold_ro() argument 304 struct exfat_sb_info *sbi = EXFAT_SB(inode->i_sb); in exfat_mode_can_hold_ro() 306 if (S_ISDIR(inode->i_mode)) in exfat_mode_can_hold_ro() 330 static inline u32 exfat_make_attr(struct inode *inode) in exfat_make_attr() argument 332 if (exfat_mode_can_hold_ro(inode) && !(inode->i_mode & 0222)) in exfat_make_attr() 333 return (EXFAT_I(inode)->fid.attr) | ATTR_READONLY; in exfat_make_attr() [all …]
|
/drivers/android/ |
D | binderfs.c | 68 static inline struct binderfs_info *BINDERFS_I(const struct inode *inode) in BINDERFS_I() argument 70 return inode->i_sb->s_fs_info; in BINDERFS_I() 73 bool is_binderfs_device(const struct inode *inode) in is_binderfs_device() argument 75 if (inode->i_sb->s_magic == BINDERFS_SUPER_MAGIC) in is_binderfs_device() 99 static int binderfs_binder_device_create(struct inode *ref_inode, in binderfs_binder_device_create() 108 struct inode *inode = NULL; in binderfs_binder_device_create() local 138 inode = new_inode(sb); in binderfs_binder_device_create() 139 if (!inode) in binderfs_binder_device_create() 142 inode->i_ino = minor + INODE_OFFSET; in binderfs_binder_device_create() 143 inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); in binderfs_binder_device_create() [all …]
|
/drivers/dax/ |
D | super.c | 213 struct inode inode; member 429 static struct inode *dax_alloc_inode(struct super_block *sb) in dax_alloc_inode() 432 struct inode *inode; in dax_alloc_inode() local 438 inode = &dax_dev->inode; in dax_alloc_inode() 439 inode->i_rdev = 0; in dax_alloc_inode() 440 return inode; in dax_alloc_inode() 443 static struct dax_device *to_dax_dev(struct inode *inode) in to_dax_dev() argument 445 return container_of(inode, struct dax_device, inode); in to_dax_dev() 448 static void dax_free_inode(struct inode *inode) in dax_free_inode() argument 450 struct dax_device *dax_dev = to_dax_dev(inode); in dax_free_inode() [all …]
|
D | device.c | 368 static int dax_open(struct inode *inode, struct file *filp) in dax_open() argument 370 struct dax_device *dax_dev = inode_dax(inode); in dax_open() 371 struct inode *__dax_inode = dax_inode(dax_dev); in dax_open() 375 inode->i_mapping = __dax_inode->i_mapping; in dax_open() 376 inode->i_mapping->host = __dax_inode; in dax_open() 377 inode->i_mapping->a_ops = &dev_dax_aops; in dax_open() 378 filp->f_mapping = inode->i_mapping; in dax_open() 381 inode->i_flags = S_DAX; in dax_open() 386 static int dax_release(struct inode *inode, struct file *filp) in dax_release() argument 419 struct inode *inode; in dev_dax_probe() local [all …]
|
/drivers/oprofile/ |
D | oprofilefs.c | 27 static struct inode *oprofilefs_get_inode(struct super_block *sb, int mode) in oprofilefs_get_inode() 29 struct inode *inode = new_inode(sb); in oprofilefs_get_inode() local 31 if (inode) { in oprofilefs_get_inode() 32 inode->i_ino = get_next_ino(); in oprofilefs_get_inode() 33 inode->i_mode = mode; in oprofilefs_get_inode() 34 inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); in oprofilefs_get_inode() 36 return inode; in oprofilefs_get_inode() 140 struct inode *inode; in __oprofilefs_create_file() local 151 inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm); in __oprofilefs_create_file() 152 if (!inode) { in __oprofilefs_create_file() [all …]
|
/drivers/misc/ibmasm/ |
D | ibmasmfs.c | 76 static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode); 112 struct inode *root; in ibmasmfs_fill_super() 135 static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode) in ibmasmfs_make_inode() 137 struct inode *ret = new_inode(sb); in ibmasmfs_make_inode() 154 struct inode *inode; in ibmasmfs_create_file() local 160 inode = ibmasmfs_make_inode(parent->d_sb, S_IFREG | mode); in ibmasmfs_create_file() 161 if (!inode) { in ibmasmfs_create_file() 166 inode->i_fop = fops; in ibmasmfs_create_file() 167 inode->i_private = data; in ibmasmfs_create_file() 169 d_add(dentry, inode); in ibmasmfs_create_file() [all …]
|
/drivers/char/tpm/eventlog/ |
D | common.c | 25 static int tpm_bios_measurements_open(struct inode *inode, in tpm_bios_measurements_open() argument 34 inode_lock(inode); in tpm_bios_measurements_open() 35 if (!inode->i_private) { in tpm_bios_measurements_open() 36 inode_unlock(inode); in tpm_bios_measurements_open() 39 chip_seqops = (struct tpm_chip_seqops *)inode->i_private; in tpm_bios_measurements_open() 43 inode_unlock(inode); in tpm_bios_measurements_open() 55 static int tpm_bios_measurements_release(struct inode *inode, in tpm_bios_measurements_release() argument 63 return seq_release(inode, file); in tpm_bios_measurements_release() 173 struct inode *inode; in tpm_bios_log_teardown() local 183 inode = d_inode(chip->bios_dir[i]); in tpm_bios_log_teardown() [all …]
|
/drivers/tty/vt/ |
D | vc_screen.c | 75 #define console(inode) (iminor(inode) & 63) argument 76 #define use_unicode(inode) (iminor(inode) & 64) argument 77 #define use_attributes(inode) (iminor(inode) & 128) argument 185 vcs_vc(struct inode *inode, int *viewed) in vcs_vc() argument 187 unsigned int currcons = console(inode); in vcs_vc() 208 vcs_size(struct inode *inode) in vcs_size() argument 215 vc = vcs_vc(inode, NULL); in vcs_size() 221 if (use_attributes(inode)) { in vcs_size() 222 if (use_unicode(inode)) in vcs_size() 225 } else if (use_unicode(inode)) in vcs_size() [all …]
|
/drivers/gpu/drm/i915/selftests/ |
D | mock_drm.c | 30 struct inode *inode; in mock_file() local 34 inode = kzalloc(sizeof(*inode), GFP_KERNEL); in mock_file() 35 if (!inode) { in mock_file() 40 inode->i_rdev = i915->drm.primary->index; in mock_file() 48 err = drm_open(inode, filp); in mock_file() 57 kfree(inode); in mock_file() 63 kfree(inode); in mock_file()
|
/drivers/net/wireless/rsi/ |
D | rsi_91x_debugfs.c | 69 static int rsi_sdio_stats_open(struct inode *inode, in rsi_sdio_stats_open() argument 72 return single_open(file, rsi_sdio_stats_read, inode->i_private); in rsi_sdio_stats_open() 103 static int rsi_version_open(struct inode *inode, in rsi_version_open() argument 106 return single_open(file, rsi_version_read, inode->i_private); in rsi_version_open() 188 static int rsi_stats_open(struct inode *inode, in rsi_stats_open() argument 191 return single_open(file, rsi_stats_read, inode->i_private); in rsi_stats_open() 217 static int rsi_debug_read(struct inode *inode, in rsi_debug_read() argument 220 return single_open(file, rsi_debug_zone_read, inode->i_private); in rsi_debug_read()
|
/drivers/scsi/qla2xxx/ |
D | qla_dfs.c | 41 qla2x00_dfs_tgt_sess_open(struct inode *inode, struct file *file) in qla2x00_dfs_tgt_sess_open() argument 43 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_tgt_sess_open() 110 qla2x00_dfs_tgt_port_database_open(struct inode *inode, struct file *file) in qla2x00_dfs_tgt_port_database_open() argument 112 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_tgt_port_database_open() 159 qla_dfs_fw_resource_cnt_open(struct inode *inode, struct file *file) in qla_dfs_fw_resource_cnt_open() argument 161 struct scsi_qla_host *vha = inode->i_private; in qla_dfs_fw_resource_cnt_open() 249 qla_dfs_tgt_counters_open(struct inode *inode, struct file *file) in qla_dfs_tgt_counters_open() argument 251 struct scsi_qla_host *vha = inode->i_private; in qla_dfs_tgt_counters_open() 301 qla2x00_dfs_fce_open(struct inode *inode, struct file *file) in qla2x00_dfs_fce_open() argument 303 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_fce_open() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_fs.c | 51 static int qibfs_mknod(struct inode *dir, struct dentry *dentry, in qibfs_mknod() 56 struct inode *inode = new_inode(dir->i_sb); in qibfs_mknod() local 58 if (!inode) { in qibfs_mknod() 63 inode->i_ino = get_next_ino(); in qibfs_mknod() 64 inode->i_mode = mode; in qibfs_mknod() 65 inode->i_uid = GLOBAL_ROOT_UID; in qibfs_mknod() 66 inode->i_gid = GLOBAL_ROOT_GID; in qibfs_mknod() 67 inode->i_blocks = 0; in qibfs_mknod() 68 inode->i_atime = current_time(inode); in qibfs_mknod() 69 inode->i_mtime = inode->i_atime; in qibfs_mknod() [all …]
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-debugfs.c | 45 static int dpaa2_dbg_cpu_open(struct inode *inode, struct file *file) in dpaa2_dbg_cpu_open() argument 48 struct dpaa2_eth_priv *priv = (struct dpaa2_eth_priv *)inode->i_private; in dpaa2_dbg_cpu_open() 104 static int dpaa2_dbg_fqs_open(struct inode *inode, struct file *file) in dpaa2_dbg_fqs_open() argument 107 struct dpaa2_eth_priv *priv = (struct dpaa2_eth_priv *)inode->i_private; in dpaa2_dbg_fqs_open() 146 static int dpaa2_dbg_ch_open(struct inode *inode, struct file *file) in dpaa2_dbg_ch_open() argument 149 struct dpaa2_eth_priv *priv = (struct dpaa2_eth_priv *)inode->i_private; in dpaa2_dbg_ch_open()
|
/drivers/scsi/fnic/ |
D | fnic_debugfs.c | 209 static int fnic_trace_debugfs_open(struct inode *inode, in fnic_trace_debugfs_open() argument 214 rdata_ptr = (u8 *)inode->i_private; in fnic_trace_debugfs_open() 315 static int fnic_trace_debugfs_release(struct inode *inode, in fnic_trace_debugfs_release() argument 451 static int fnic_reset_stats_open(struct inode *inode, struct file *file) in fnic_reset_stats_open() argument 459 debug->i_private = inode->i_private; in fnic_reset_stats_open() 573 static int fnic_reset_stats_release(struct inode *inode, in fnic_reset_stats_release() argument 594 static int fnic_stats_debugfs_open(struct inode *inode, in fnic_stats_debugfs_open() argument 597 struct fnic *fnic = inode->i_private; in fnic_stats_debugfs_open() 663 static int fnic_stats_debugfs_release(struct inode *inode, in fnic_stats_debugfs_release() argument
|
/drivers/scsi/bfa/ |
D | bfad_debugfs.c | 43 bfad_debugfs_open_drvtrc(struct inode *inode, struct file *file) in bfad_debugfs_open_drvtrc() argument 45 struct bfad_port_s *port = inode->i_private; in bfad_debugfs_open_drvtrc() 62 bfad_debugfs_open_fwtrc(struct inode *inode, struct file *file) in bfad_debugfs_open_fwtrc() argument 64 struct bfad_port_s *port = inode->i_private; in bfad_debugfs_open_fwtrc() 104 bfad_debugfs_open_fwsave(struct inode *inode, struct file *file) in bfad_debugfs_open_fwsave() argument 106 struct bfad_port_s *port = inode->i_private; in bfad_debugfs_open_fwsave() 146 bfad_debugfs_open_reg(struct inode *inode, struct file *file) in bfad_debugfs_open_reg() argument 154 reg_debug->i_private = inode->i_private; in bfad_debugfs_open_reg() 354 bfad_debugfs_release(struct inode *inode, struct file *file) in bfad_debugfs_release() argument 367 bfad_debugfs_release_fwtrc(struct inode *inode, struct file *file) in bfad_debugfs_release_fwtrc() argument
|
/drivers/xen/xenfs/ |
D | xenstored.c | 19 static int xsd_release(struct inode *inode, struct file *file) in xsd_release() argument 25 static int xsd_kva_open(struct inode *inode, struct file *file) in xsd_kva_open() argument 56 static int xsd_port_open(struct inode *inode, struct file *file) in xsd_port_open() argument
|
/drivers/block/drbd/ |
D | drbd_debugfs.c | 443 static int in_flight_summary_open(struct inode *inode, struct file *file) in in_flight_summary_open() argument 445 struct drbd_resource *resource = inode->i_private; in in_flight_summary_open() 450 static int in_flight_summary_release(struct inode *inode, struct file *file) in in_flight_summary_release() argument 452 struct drbd_resource *resource = inode->i_private; in in_flight_summary_release() 454 return single_release(inode, file); in in_flight_summary_release() 551 static int callback_history_open(struct inode *inode, struct file *file) in callback_history_open() argument 553 struct drbd_connection *connection = inode->i_private; in callback_history_open() 558 static int callback_history_release(struct inode *inode, struct file *file) in callback_history_release() argument 560 struct drbd_connection *connection = inode->i_private; in callback_history_release() 562 return single_release(inode, file); in callback_history_release() [all …]
|
/drivers/misc/habanalabs/ |
D | habanalabs_drv.c | 82 int hl_device_open(struct inode *inode, struct file *filp) in hl_device_open() argument 89 hdev = idr_find(&hl_devs_idr, iminor(inode)); in hl_device_open() 94 imajor(inode), iminor(inode)); in hl_device_open() 107 nonseekable_open(inode, filp); in hl_device_open() 173 int hl_device_open_ctrl(struct inode *inode, struct file *filp) in hl_device_open_ctrl() argument 180 hdev = idr_find(&hl_devs_idr, iminor(inode)); in hl_device_open_ctrl() 185 imajor(inode), iminor(inode)); in hl_device_open_ctrl() 210 nonseekable_open(inode, filp); in hl_device_open_ctrl()
|
/drivers/watchdog/ |
D | wdrtas.c | 355 static int wdrtas_open(struct inode *inode, struct file *file) in wdrtas_open() argument 366 return stream_open(inode, file); in wdrtas_open() 378 static int wdrtas_close(struct inode *inode, struct file *file) in wdrtas_close() argument 430 static int wdrtas_temp_open(struct inode *inode, struct file *file) in wdrtas_temp_open() argument 432 return stream_open(inode, file); in wdrtas_temp_open() 444 static int wdrtas_temp_close(struct inode *inode, struct file *file) in wdrtas_temp_close() argument
|
/drivers/ras/ |
D | debugfs.c | 21 static int trace_open(struct inode *inode, struct file *file) in trace_open() argument 27 static int trace_release(struct inode *inode, struct file *file) in trace_release() argument 30 return single_release(inode, file); in trace_release()
|
/drivers/char/ |
D | scx200_gpio.c | 50 static int scx200_gpio_open(struct inode *inode, struct file *file) in scx200_gpio_open() argument 52 unsigned m = iminor(inode); in scx200_gpio_open() 57 return nonseekable_open(inode, file); in scx200_gpio_open() 60 static int scx200_gpio_release(struct inode *inode, struct file *file) in scx200_gpio_release() argument
|
/drivers/net/ethernet/brocade/bna/ |
D | bnad_debugfs.c | 41 bnad_debugfs_open_fwtrc(struct inode *inode, struct file *file) in bnad_debugfs_open_fwtrc() argument 43 struct bnad *bnad = inode->i_private; in bnad_debugfs_open_fwtrc() 81 bnad_debugfs_open_fwsave(struct inode *inode, struct file *file) in bnad_debugfs_open_fwsave() argument 83 struct bnad *bnad = inode->i_private; in bnad_debugfs_open_fwsave() 121 bnad_debugfs_open_reg(struct inode *inode, struct file *file) in bnad_debugfs_open_reg() argument 129 reg_debug->i_private = inode->i_private; in bnad_debugfs_open_reg() 182 bnad_debugfs_open_drvinfo(struct inode *inode, struct file *file) in bnad_debugfs_open_drvinfo() argument 184 struct bnad *bnad = inode->i_private; in bnad_debugfs_open_drvinfo() 405 bnad_debugfs_release(struct inode *inode, struct file *file) in bnad_debugfs_release() argument 418 bnad_debugfs_buffer_release(struct inode *inode, struct file *file) in bnad_debugfs_buffer_release() argument
|
/drivers/char/tpm/ |
D | tpm-dev.c | 18 static int tpm_open(struct inode *inode, struct file *file) in tpm_open() argument 23 chip = container_of(inode->i_cdev, struct tpm_chip, cdev); in tpm_open() 49 static int tpm_release(struct inode *inode, struct file *file) in tpm_release() argument
|
D | tpmrm-dev.c | 13 static int tpmrm_open(struct inode *inode, struct file *file) in tpmrm_open() argument 19 chip = container_of(inode->i_cdev, struct tpm_chip, cdevs); in tpmrm_open() 35 static int tpmrm_release(struct inode *inode, struct file *file) in tpmrm_release() argument
|
/drivers/usb/mon/ |
D | mon_stat.c | 27 static int mon_stat_open(struct inode *inode, struct file *file) in mon_stat_open() argument 36 mbus = inode->i_private; in mon_stat_open() 54 static int mon_stat_release(struct inode *inode, struct file *file) in mon_stat_release() argument
|