Lines Matching refs:inode
56 static int spufs_attr_open(struct inode *inode, struct file *file, in spufs_attr_open() argument
68 attr->data = inode->i_private; in spufs_attr_open()
73 return nonseekable_open(inode, file); in spufs_attr_open()
76 static int spufs_attr_release(struct inode *inode, struct file *file) in spufs_attr_release() argument
146 static int __fops ## _open(struct inode *inode, struct file *file) \
149 return spufs_attr_open(inode, file, __get, __set, __fmt); \
162 spufs_mem_open(struct inode *inode, struct file *file) in spufs_mem_open() argument
164 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_mem_open()
170 ctx->local_store = inode->i_mapping; in spufs_mem_open()
176 spufs_mem_release(struct inode *inode, struct file *file) in spufs_mem_release() argument
178 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_mem_release()
484 static int spufs_cntl_open(struct inode *inode, struct file *file) in spufs_cntl_open() argument
486 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_cntl_open()
492 ctx->cntl = inode->i_mapping; in spufs_cntl_open()
494 return simple_attr_open(inode, file, spufs_cntl_get, in spufs_cntl_open()
499 spufs_cntl_release(struct inode *inode, struct file *file) in spufs_cntl_release() argument
501 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_cntl_release()
504 simple_attr_release(inode, file); in spufs_cntl_release()
523 spufs_regs_open(struct inode *inode, struct file *file) in spufs_regs_open() argument
525 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_regs_open()
642 static int spufs_pipe_open(struct inode *inode, struct file *file) in spufs_pipe_open() argument
644 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_pipe_open()
647 return nonseekable_open(inode, file); in spufs_pipe_open()
1038 static int spufs_signal1_open(struct inode *inode, struct file *file) in spufs_signal1_open() argument
1040 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_signal1_open()
1046 ctx->signal1 = inode->i_mapping; in spufs_signal1_open()
1048 return nonseekable_open(inode, file); in spufs_signal1_open()
1052 spufs_signal1_release(struct inode *inode, struct file *file) in spufs_signal1_release() argument
1054 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_signal1_release()
1175 static int spufs_signal2_open(struct inode *inode, struct file *file) in spufs_signal2_open() argument
1177 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_signal2_open()
1183 ctx->signal2 = inode->i_mapping; in spufs_signal2_open()
1185 return nonseekable_open(inode, file); in spufs_signal2_open()
1189 spufs_signal2_release(struct inode *inode, struct file *file) in spufs_signal2_release() argument
1191 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_signal2_release()
1422 static int spufs_mss_open(struct inode *inode, struct file *file) in spufs_mss_open() argument
1424 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_mss_open()
1431 ctx->mss = inode->i_mapping; in spufs_mss_open()
1433 return nonseekable_open(inode, file); in spufs_mss_open()
1437 spufs_mss_release(struct inode *inode, struct file *file) in spufs_mss_release() argument
1439 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_mss_release()
1481 static int spufs_psmap_open(struct inode *inode, struct file *file) in spufs_psmap_open() argument
1483 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_psmap_open()
1489 ctx->psmap = inode->i_mapping; in spufs_psmap_open()
1491 return nonseekable_open(inode, file); in spufs_psmap_open()
1495 spufs_psmap_release(struct inode *inode, struct file *file) in spufs_psmap_release() argument
1497 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_psmap_release()
1544 static int spufs_mfc_open(struct inode *inode, struct file *file) in spufs_mfc_open() argument
1546 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_mfc_open()
1553 if (atomic_read(&inode->i_count) != 1) in spufs_mfc_open()
1559 ctx->mfc = inode->i_mapping; in spufs_mfc_open()
1561 return nonseekable_open(inode, file); in spufs_mfc_open()
1565 spufs_mfc_release(struct inode *inode, struct file *file) in spufs_mfc_release() argument
1567 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_mfc_release()
1855 struct inode *inode = file->f_path.dentry->d_inode; in spufs_mfc_fsync() local
1856 int err = filemap_write_and_wait_range(inode->i_mapping, start, end); in spufs_mfc_fsync()
1858 mutex_lock(&inode->i_mutex); in spufs_mfc_fsync()
1860 mutex_unlock(&inode->i_mutex); in spufs_mfc_fsync()
2055 static int spufs_info_open(struct inode *inode, struct file *file) in spufs_info_open() argument
2057 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_info_open()
2074 static int spufs_caps_open(struct inode *inode, struct file *file) in spufs_caps_open() argument
2076 return single_open(file, spufs_caps_show, SPUFS_I(inode)->i_ctx); in spufs_caps_open()
2323 static int spufs_tid_open(struct inode *inode, struct file *file) in spufs_tid_open() argument
2325 return single_open(file, spufs_show_tid, SPUFS_I(inode)->i_ctx); in spufs_tid_open()
2415 static int spufs_stat_open(struct inode *inode, struct file *file) in spufs_stat_open() argument
2417 return single_open(file, spufs_show_stat, SPUFS_I(inode)->i_ctx); in spufs_stat_open()
2438 static int spufs_switch_log_open(struct inode *inode, struct file *file) in spufs_switch_log_open() argument
2440 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_open()
2470 static int spufs_switch_log_release(struct inode *inode, struct file *file) in spufs_switch_log_release() argument
2472 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_release()
2504 struct inode *inode = file->f_path.dentry->d_inode; in spufs_switch_log_read() local
2505 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_read()
2574 struct inode *inode = file->f_path.dentry->d_inode; in spufs_switch_log_poll() local
2575 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; in spufs_switch_log_poll()
2670 static int spufs_ctx_open(struct inode *inode, struct file *file) in spufs_ctx_open() argument
2672 return single_open(file, spufs_show_ctx, SPUFS_I(inode)->i_ctx); in spufs_ctx_open()