Lines Matching refs:file
440 static ssize_t profile_load(struct file *f, const char __user *buf, size_t size, in profile_load()
457 static ssize_t profile_replace(struct file *f, const char __user *buf, in profile_replace()
474 static ssize_t profile_remove(struct file *f, const char __user *buf, in profile_remove()
519 static int ns_revision_release(struct inode *inode, struct file *file) in ns_revision_release() argument
521 struct aa_revision *rev = file->private_data; in ns_revision_release()
531 static ssize_t ns_revision_read(struct file *file, char __user *buf, in ns_revision_read() argument
534 struct aa_revision *rev = file->private_data; in ns_revision_read()
543 if (file->f_flags & O_NONBLOCK) in ns_revision_read()
562 static int ns_revision_open(struct inode *inode, struct file *file) in ns_revision_open() argument
572 file->private_data = rev; in ns_revision_open()
577 static __poll_t ns_revision_poll(struct file *file, poll_table *pt) in ns_revision_poll() argument
579 struct aa_revision *rev = file->private_data; in ns_revision_poll()
584 poll_wait(file, &rev->ns->wait, pt); in ns_revision_poll()
617 if (profile->file.dfa && *match_str == AA_CLASS_FILE) { in profile_query_cb()
618 dfa = profile->file.dfa; in profile_query_cb()
619 state = aa_dfa_match_len(dfa, profile->file.start, in profile_query_cb()
842 static void multi_transaction_set(struct file *file, in multi_transaction_set() argument
851 old = (struct multi_transaction *) file->private_data; in multi_transaction_set()
852 file->private_data = new; in multi_transaction_set()
857 static struct multi_transaction *multi_transaction_new(struct file *file, in multi_transaction_new() argument
878 static ssize_t multi_transaction_read(struct file *file, char __user *buf, in multi_transaction_read() argument
885 t = get_multi_transaction(file->private_data); in multi_transaction_read()
896 static int multi_transaction_release(struct inode *inode, struct file *file) in multi_transaction_release() argument
898 put_multi_transaction(file->private_data); in multi_transaction_release()
933 static ssize_t aa_write_access(struct file *file, const char __user *ubuf, in aa_write_access() argument
942 t = multi_transaction_new(file, ubuf, count); in aa_write_access()
975 multi_transaction_set(file, t, len); in aa_write_access()
1012 static int aa_sfs_seq_open(struct inode *inode, struct file *file) in aa_sfs_seq_open() argument
1014 return single_open(file, aa_sfs_seq_show, inode->i_private); in aa_sfs_seq_open()
1031 static int seq_profile_ ##NAME ##_open(struct inode *inode, struct file *file)\
1033 return seq_profile_open(inode, file, seq_profile_ ##NAME ##_show); \
1044 static int seq_profile_open(struct inode *inode, struct file *file, in seq_profile_open() argument
1048 int error = single_open(file, show, proxy); in seq_profile_open()
1051 file->private_data = NULL; in seq_profile_open()
1058 static int seq_profile_release(struct inode *inode, struct file *file) in seq_profile_release() argument
1060 struct seq_file *seq = (struct seq_file *) file->private_data; in seq_profile_release()
1063 return single_release(inode, file); in seq_profile_release()
1133 static int seq_ns_ ##NAME ##_open(struct inode *inode, struct file *file) \
1135 return single_open(file, seq_ns_ ##NAME ##_show, inode->i_private); \
1209 static int seq_rawdata_ ##NAME ##_open(struct inode *inode, struct file *file)\
1211 return seq_rawdata_open(inode, file, seq_rawdata_ ##NAME ##_show); \
1222 static int seq_rawdata_open(struct inode *inode, struct file *file, in seq_rawdata_open() argument
1232 error = single_open(file, show, data); in seq_rawdata_open()
1234 AA_BUG(file->private_data && in seq_rawdata_open()
1235 ((struct seq_file *)file->private_data)->private); in seq_rawdata_open()
1242 static int seq_rawdata_release(struct inode *inode, struct file *file) in seq_rawdata_release() argument
1244 struct seq_file *seq = (struct seq_file *) file->private_data; in seq_rawdata_release()
1249 return single_release(inode, file); in seq_rawdata_release()
1340 static ssize_t rawdata_read(struct file *file, char __user *buf, size_t size, in rawdata_read() argument
1343 struct rawdata_f_data *private = file->private_data; in rawdata_read()
1350 static int rawdata_release(struct inode *inode, struct file *file) in rawdata_release() argument
1352 rawdata_f_data_free(file->private_data); in rawdata_release()
1357 static int rawdata_open(struct inode *inode, struct file *file) in rawdata_open() argument
1385 file->private_data = private; in rawdata_open()
2268 static int profiles_open(struct inode *inode, struct file *file) in profiles_open() argument
2273 return seq_open(file, &aa_sfs_profiles_op); in profiles_open()
2276 static int profiles_release(struct inode *inode, struct file *file) in profiles_release() argument
2278 return seq_release(inode, file); in profiles_release()