| /linux/fs/lockd/ |
| H A D | svcsubs.c | 28 * Global file hash table 46 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) 48 struct inode *inode = nlmsvc_file_inode(file); in nlm_debug_print_file() 59 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) 80 * Open the file. Note that if we're reexporting, for example, 84 * the file. 91 struct nlm_file *file, int mode) in nlm_do_fopen() 99 struct file **fp = &file->f_file[m]; in nlm_do_fopen() 106 error = nlmsvc_ops->fopen(rqstp, &file in nlm_do_fopen() 47 nlm_debug_print_file(char * msg,struct nlm_file * file) nlm_debug_print_file() argument 60 nlm_debug_print_file(char * msg,struct nlm_file * file) nlm_debug_print_file() argument 92 nlm_do_fopen(struct svc_rqst * rqstp,struct nlm_file * file,int mode) nlm_do_fopen() argument 137 struct nlm_file *file; nlm_lookup_file() local 191 nlm_delete_file(struct nlm_file * file) nlm_delete_file() argument 206 nlm_unlock_files(struct nlm_file * file,const struct file_lock * fl) nlm_unlock_files() argument 235 nlm_traverse_locks(struct nlm_host * host,struct nlm_file * file,nlm_host_match_fn_t match) nlm_traverse_locks() argument 279 nlm_inspect_file(struct nlm_host * host,struct nlm_file * file,nlm_host_match_fn_t match) nlm_inspect_file() argument 291 nlm_file_inuse(struct nlm_file * file) nlm_file_inuse() argument 314 nlm_close_files(struct nlm_file * file) nlm_close_files() argument 327 nlm_traverse_files(void * data,nlm_host_match_fn_t match,int (* is_failover_file)(void * data,struct nlm_file * file)) nlm_traverse_files() argument 330 struct nlm_file *file; nlm_traverse_files() local 371 nlm_release_file(struct nlm_file * file) nlm_release_file() argument 488 nlmsvc_match_sb(void * datap,struct nlm_file * file) nlmsvc_match_sb() argument [all...] |
| /linux/tools/testing/selftests/rcutorture/bin/ |
| H A D | parse-console.sh | 5 # The "file" is a pathname on the local system, and "title" is 8 # Usage: parse-console.sh file title 15 file="$1" 22 # Check for presence and readability of console output file 23 if test -f "$file" -a -r "$file" 27 echo $title unreadable console output file: $file 30 if grep -Pq '\x00' < $file 34 cat /dev/null > $file [all...] |
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | shmem_utils.c | 17 struct file *shmem_create_from_data(const char *name, void *data, size_t len) in shmem_create_from_data() 19 struct file *file; in shmem_create_from_data() local 22 file = shmem_file_setup(name, PAGE_ALIGN(len), in shmem_create_from_data() 24 if (IS_ERR(file)) in shmem_create_from_data() 25 return file; in shmem_create_from_data() 27 err = shmem_write(file, 0, data, len); in shmem_create_from_data() 29 fput(file); in shmem_create_from_data() 33 return file; in shmem_create_from_data() 36 struct file *shmem_create_from_object(struct drm_i915_gem_object *obj) in shmem_create_from_object() 39 struct file *file; in shmem_create_from_object() local [all …]
|
| /linux/drivers/infiniband/core/ |
| H A 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 …]
|
| /linux/tools/objtool/ |
| H A D | check.c | 40 struct instruction *find_insn(struct objtool_file *file, 45 hash_for_each_possible(file->insn_hash, insn, hash, sec_offset_hash(sec, offset)) { in find_insn() 53 struct instruction *next_insn_same_sec(struct objtool_file *file, 57 return find_insn(file, insn->sec, insn->offset + insn->len); in next_insn_same_sec() 66 struct instruction *next_insn_same_func(struct objtool_file *file, 69 struct instruction *next = next_insn_same_sec(file, insn); in next_insn_same_func() 83 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func() 86 static struct instruction *prev_insn_same_sec(struct objtool_file *file, 91 return find_insn(file, insn->sec, insn->offset - insn->prev_len); in prev_insn_same_sec() 98 static struct instruction *prev_insn_same_sym(struct objtool_file *file, 41 find_insn(struct objtool_file * file,struct section * sec,unsigned long offset) find_insn() argument 54 next_insn_same_sec(struct objtool_file * file,struct instruction * insn) next_insn_same_sec() argument 67 next_insn_same_func(struct objtool_file * file,struct instruction * insn) next_insn_same_func() argument 87 prev_insn_same_sec(struct objtool_file * file,struct instruction * insn) prev_insn_same_sec() argument 99 prev_insn_same_sym(struct objtool_file * file,struct instruction * insn) prev_insn_same_sym() argument 110 for_each_insn(file,insn) global() argument 116 func_for_each_insn(file,func,insn) global() argument 121 sym_for_each_insn(file,sym,insn) global() argument 126 sym_for_each_insn_continue_reverse(file,sym,insn) global() argument 131 sec_for_each_insn_from(file,insn) global() argument 134 sec_for_each_insn_continue(file,insn) global() argument 232 __dead_end_function(struct objtool_file * file,struct symbol * func,int recursion) __dead_end_function() argument 307 dead_end_function(struct objtool_file * file,struct symbol * func) dead_end_function() argument 325 init_insn_state(struct objtool_file * file,struct insn_state * state,struct section * sec) init_insn_state() argument 411 decode_instructions(struct objtool_file * file) decode_instructions() argument 554 add_pv_ops(struct objtool_file * file,int pv_ops_idx) add_pv_ops() argument 608 init_pv_ops(struct objtool_file * file) init_pv_ops() argument 651 is_livepatch_module(struct objtool_file * file) is_livepatch_module() argument 665 create_static_call_sections(struct objtool_file * file) create_static_call_sections() argument 757 create_retpoline_sites_sections(struct objtool_file * file) create_retpoline_sites_sections() argument 795 create_return_sites_sections(struct objtool_file * file) create_return_sites_sections() argument 833 create_ibt_endbr_seal_sections(struct objtool_file * file) create_ibt_endbr_seal_sections() argument 890 create_cfi_sections(struct objtool_file * file) create_cfi_sections() argument 937 create_mcount_loc_sections(struct objtool_file * file) create_mcount_loc_sections() argument 988 create_direct_call_sections(struct objtool_file * file) create_direct_call_sections() argument 1027 create_sym_checksum_section(struct objtool_file * file) create_sym_checksum_section() argument 1076 create_sym_checksum_section(struct objtool_file * file) create_sym_checksum_section() argument 1082 add_ignores(struct objtool_file * file) add_ignores() argument 1308 add_uaccess_safe(struct objtool_file * file) add_uaccess_safe() argument 1352 insn_reloc(struct objtool_file * file,struct instruction * insn) insn_reloc() argument 1383 annotate_call_site(struct objtool_file * file,struct instruction * insn,bool sibling) annotate_call_site() argument 1463 add_call_dest(struct objtool_file * file,struct instruction * insn,struct symbol * dest,bool sibling) add_call_dest() argument 1482 add_retpoline_call(struct objtool_file * file,struct instruction * insn) add_retpoline_call() argument 1516 add_return_call(struct objtool_file * file,struct instruction * insn,bool add) add_return_call() argument 1529 is_first_func_insn(struct objtool_file * file,struct instruction * insn) is_first_func_insn() argument 1555 add_jump_destinations(struct objtool_file * file) add_jump_destinations() argument 1696 add_call_destinations(struct objtool_file * file) add_call_destinations() argument 1758 handle_group_alt(struct objtool_file * file,struct special_alt * special_alt,struct instruction * orig_insn,struct instruction ** new_insn) handle_group_alt() argument 1910 handle_jump_alt(struct objtool_file * file,struct special_alt * special_alt,struct instruction * orig_insn,struct instruction ** new_insn) handle_jump_alt() argument 1961 add_special_section_alts(struct objtool_file * file) add_special_section_alts() argument 2054 add_jump_table(struct objtool_file * file,struct instruction * insn) add_jump_table() argument 2128 find_jump_table(struct objtool_file * file,struct symbol * func,struct instruction * insn) find_jump_table() argument 2177 mark_func_jump_tables(struct objtool_file * file,struct symbol * func) mark_func_jump_tables() argument 2206 add_func_jump_tables(struct objtool_file * file,struct symbol * func) add_func_jump_tables() argument 2227 add_jump_table_alts(struct objtool_file * file) add_jump_table_alts() argument 2255 read_unwind_hints(struct objtool_file * file) read_unwind_hints() argument 2350 read_annotate(struct objtool_file * file,int (* func)(struct objtool_file * file,int type,struct instruction * insn)) read_annotate() argument 2351 read_annotate(struct objtool_file * file,int (* func)(struct objtool_file * file,int type,struct instruction * insn)) read_annotate() argument 2397 __annotate_early(struct objtool_file * file,int type,struct instruction * insn) __annotate_early() argument 2420 __annotate_ifc(struct objtool_file * file,int type,struct instruction * insn) __annotate_ifc() argument 2450 __annotate_late(struct objtool_file * file,int type,struct instruction * insn) __annotate_late() argument 2527 classify_symbols(struct objtool_file * file) classify_symbols() argument 2566 mark_rodata(struct objtool_file * file) mark_rodata() argument 2593 mark_holes(struct objtool_file * file) mark_holes() argument 2639 decode_sections(struct objtool_file * file) decode_sections() argument 3309 propagate_alt_cfi(struct objtool_file * file,struct instruction * insn) propagate_alt_cfi() argument 3464 pv_call_dest(struct objtool_file * file,struct instruction * insn) pv_call_dest() argument 3491 noinstr_call_dest(struct objtool_file * file,struct instruction * insn,struct symbol * func) noinstr_call_dest() argument 3529 validate_call(struct objtool_file * file,struct instruction * insn,struct insn_state * state) validate_call() argument 3552 validate_sibling_call(struct objtool_file * file,struct instruction * insn,struct insn_state * state) validate_sibling_call() argument 3599 next_insn_to_validate(struct objtool_file * file,struct instruction * insn) next_insn_to_validate() argument 3665 checksum_debug_init(struct objtool_file * file) checksum_debug_init() argument 3703 checksum_update_insn(struct objtool_file * file,struct symbol * func,struct instruction * insn) checksum_update_insn() argument 3752 validate_insn(struct objtool_file * file,struct symbol * func,struct instruction * insn,struct insn_state * statep,struct instruction * prev_insn,struct instruction * next_insn,bool * dead_end) validate_insn() argument 4014 do_validate_branch(struct objtool_file * file,struct symbol * func,struct instruction * insn,struct insn_state * state) do_validate_branch() argument 4076 validate_branch(struct objtool_file * file,struct symbol * func,struct instruction * insn,struct insn_state state) validate_branch() argument 4088 validate_unwind_hint(struct objtool_file * file,struct instruction * insn,struct insn_state * state) validate_unwind_hint() argument 4108 validate_unwind_hints(struct objtool_file * file,struct section * sec) validate_unwind_hints() argument 4136 validate_unret(struct objtool_file * file,struct instruction * insn) validate_unret() argument 4245 validate_unrets(struct objtool_file * file) validate_unrets() argument 4260 validate_retpoline(struct objtool_file * file) validate_retpoline() argument 4337 ignore_unreachable_insn(struct objtool_file * file,struct instruction * insn) ignore_unreachable_insn() argument 4422 create_prefix_symbol(struct objtool_file * file,struct symbol * func) create_prefix_symbol() argument 4499 create_prefix_symbols(struct objtool_file * file) create_prefix_symbols() argument 4517 validate_symbol(struct objtool_file * file,struct section * sec,struct symbol * sym,struct insn_state * state) validate_symbol() argument 4562 validate_section(struct objtool_file * file,struct section * sec) validate_section() argument 4581 validate_noinstr_sections(struct objtool_file * file) validate_noinstr_sections() argument 4607 validate_functions(struct objtool_file * file) validate_functions() argument 4628 noendbr_range(struct objtool_file * file,struct instruction * insn) noendbr_range() argument 4646 __validate_ibt_insn(struct objtool_file * file,struct instruction * insn,struct instruction * dest) __validate_ibt_insn() argument 4691 validate_ibt_insn(struct objtool_file * file,struct instruction * insn) validate_ibt_insn() argument 4752 validate_ibt_data_reloc(struct objtool_file * file,struct reloc * reloc) validate_ibt_data_reloc() argument 4781 validate_ibt(struct objtool_file * file) validate_ibt() argument 4836 validate_sls(struct objtool_file * file) validate_sls() argument 4869 validate_reachable_instructions(struct objtool_file * file) validate_reachable_instructions() argument 4908 check_abs_references(struct objtool_file * file) check_abs_references() argument 4951 free_insns(struct objtool_file * file) free_insns() argument 4980 check(struct objtool_file * file) check() argument [all...] |
| /linux/kernel/trace/ |
| H A D | trace_events_trigger.c | 177 event_triggers_call(struct trace_event_file *file, in event_triggers_call() argument 185 if (list_empty(&file->triggers)) in event_triggers_call() 188 list_for_each_entry_rcu(data, &file->triggers, list) { in event_triggers_call() 208 bool __trace_trigger_soft_disabled(struct trace_event_file *file) in __trace_trigger_soft_disabled() argument 210 unsigned long eflags = file->flags; in __trace_trigger_soft_disabled() 213 event_triggers_call(file, NULL, NULL, NULL); in __trace_trigger_soft_disabled() 217 return trace_event_ignore_this_pid(file); in __trace_trigger_soft_disabled() 235 event_triggers_post_call(struct trace_event_file *file, in event_triggers_post_call() argument 240 list_for_each_entry_rcu(data, &file->triggers, list) { in event_triggers_post_call() 262 static bool check_user_trigger(struct trace_event_file *file) in check_user_trigger() argument [all …]
|
| H A D | trace_events.c | 72 #define do_for_each_event_file(tr, file) \ argument 74 list_for_each_entry(file, &tr->events, list) 76 #define do_for_each_event_file_safe(tr, file) \ argument 79 list_for_each_entry_safe(file, ___n, &tr->events, list) 703 struct trace_event_file *file = data; in trace_event_reg() local 710 file); in trace_event_reg() 714 file); in trace_event_reg() 742 struct trace_event_file *file; in trace_event_enable_cmd_record() local 747 do_for_each_event_file(tr, file) { in trace_event_enable_cmd_record() 749 if (!(file->flags & EVENT_FILE_FL_ENABLED)) in trace_event_enable_cmd_record() [all …]
|
| /linux/fs/proc/ |
| H A D | inode.c | 235 struct file *file; in close_pdeo() local 241 file = pdeo->file; in close_pdeo() 242 pde->proc_ops->proc_release(file_inode(file), file); in close_pdeo() 275 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument 277 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_llseek() 281 return pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek() 283 rv = pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek() 304 static ssize_t pde_read(struct proc_dir_entry *pde, struct file *file, char __user *buf, size_t cou… in pde_read() argument 308 return read(file, buf, count, ppos); in pde_read() 312 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read() argument [all …]
|
| /linux/fs/ceph/ |
| H A D | ioctl.c | 18 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) in ceph_ioctl_get_layout() argument 20 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_get_layout() 24 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_get_layout() 65 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) in ceph_ioctl_set_layout() argument 67 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout() 71 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_set_layout() 79 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_set_layout() 137 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg) in ceph_ioctl_set_layout_policy() argument 139 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout_policy() 180 static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg) in ceph_ioctl_get_dataloc() argument [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_file.c | 136 struct drm_file *file; in drm_file_alloc() local 139 file = kzalloc_obj(*file); in drm_file_alloc() 140 if (!file) in drm_file_alloc() 144 file->client_id = atomic64_inc_return(&ident); in drm_file_alloc() 145 rcu_assign_pointer(file->pid, get_pid(task_tgid(current))); in drm_file_alloc() 146 file->minor = minor; in drm_file_alloc() 149 file->authenticated = capable(CAP_SYS_ADMIN); in drm_file_alloc() 151 INIT_LIST_HEAD(&file->lhead); in drm_file_alloc() 152 INIT_LIST_HEAD(&file->fbs); in drm_file_alloc() 153 mutex_init(&file->fbs_lock); in drm_file_alloc() [all …]
|
| /linux/include/linux/ |
| H A D | fsnotify.h | 104 * is on a file/dentry. 116 static inline int fsnotify_file(struct file *file, __u32 mask) in fsnotify_file() argument 122 * handle creation / destruction events and not "real" file events. in fsnotify_file() 124 if (FMODE_FSNOTIFY_NONE(file->f_mode)) in fsnotify_file() 127 return fsnotify_path(&file->f_path, mask); in fsnotify_file() 132 int fsnotify_open_perm_and_set_mode(struct file *file); 135 * fsnotify_file_area_perm - permission hook before access to file range 137 static inline int fsnotify_file_area_perm(struct file *fil argument 174 fsnotify_mmap_perm(struct file * file,int prot,const loff_t off,size_t len) fsnotify_mmap_perm() argument 204 fsnotify_file_perm(struct file * file,int perm_mask) fsnotify_file_perm() argument 210 fsnotify_open_perm_and_set_mode(struct file * file) fsnotify_open_perm_and_set_mode() argument 215 fsnotify_file_area_perm(struct file * file,int perm_mask,const loff_t * ppos,size_t count) fsnotify_file_area_perm() argument 221 fsnotify_mmap_perm(struct file * file,int prot,const loff_t off,size_t len) fsnotify_mmap_perm() argument 232 fsnotify_file_perm(struct file * file,int perm_mask) fsnotify_file_perm() argument 423 fsnotify_access(struct file * file) fsnotify_access() argument 431 fsnotify_modify(struct file * file) fsnotify_modify() argument 439 fsnotify_open(struct file * file) fsnotify_open() argument 452 fsnotify_close(struct file * file) fsnotify_close() argument [all...] |
| H A D | file.h | 16 struct file; 18 extern void fput(struct file *); 26 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *, 28 extern struct file *alloc_file_pseudo_noaccount(struct inode *, struct vfsmount *, 30 extern struct file *alloc_file_clone(struct file *, int flags, 44 #define fd_file(f) ((struct file *)((f).word & ~(FDPUT_FPUT|FDPUT_POS_UNLOCK))) 51 static inline struct fd BORROWED_FD(struct file *f) in BORROWED_FD() 55 static inline struct fd CLONED_FD(struct file *f) in CLONED_FD() 66 extern struct file *fget(unsigned int fd); 67 extern struct file *fget_raw(unsigned int fd); [all …]
|
| /linux/tools/perf/util/ |
| H A D | data.c | 23 static void perf_data_file__close(struct perf_data_file *file) in close_dir() 25 if (file->use_stdio) { in close_dir() 26 if (file->fptr) { in close_dir() 27 fclose(file->fptr); in close_dir() 28 file->fptr = NULL; in close_dir() 31 close(file->fd); 32 file->fd = -1; in perf_data__close_dir() 34 zfree(&file->path); in perf_data__close_dir() 66 struct perf_data_file *file = &files[i]; in perf_data__create_dir() 68 ret = asprintf(&file in perf_data__create_dir() 51 struct perf_data_file *file = &files[i]; perf_data__create_dir() local 115 struct perf_data_file *file; perf_data__open_dir() local 385 perf_data_file__write(struct perf_data_file * file,void * buf,size_t size) perf_data_file__write() argument 449 struct perf_data_file *file = &data->dir.files[i]; perf_data__size() local 531 FILE *file; is_perf_data() local [all...] |
| /linux/fs/ocfs2/ |
| H A D | locks.c | 23 static int ocfs2_do_flock(struct file *file, struct inode *inode, in ocfs2_do_flock() argument 27 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock() 58 locks_lock_file_wait(file, &request); in ocfs2_do_flock() 60 ocfs2_file_unlock(file); in ocfs2_do_flock() 63 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock() 72 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock() 74 ocfs2_file_unlock(file); in ocfs2_do_flock() 82 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument 85 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock() 88 ocfs2_file_unlock(file); in ocfs2_do_funlock() [all …]
|
| /linux/scripts/ |
| H A D | leaking_addresses.pl | 268 my $file = '/boot/config-' . `uname -r`; 269 chomp $file; 270 @config_files = ($file, '/boot/config'); 273 foreach my $file (@config_files) { 274 dprint("parsing config file: $file\n"); 275 $value = option_from_file($option, $file); 287 my ($option, $file) = @_; 291 open(my $fh, "<", $file) or return ""; 460 my ($file) = @_; 465 parse_file($file); [all …]
|
| /linux/mm/ |
| H A D | memfd.c | 67 struct folio *memfd_alloc_folio(struct file *memfd, pgoff_t idx) in memfd_alloc_folio() 210 static unsigned int *memfd_file_seals_ptr(struct file *file) in memfd_file_seals_ptr() argument 212 if (shmem_file(file)) in memfd_file_seals_ptr() 213 return &SHMEM_I(file_inode(file))->seals; in memfd_file_seals_ptr() 216 if (is_file_hugepages(file)) in memfd_file_seals_ptr() 217 return &HUGETLBFS_I(file_inode(file))->seals; in memfd_file_seals_ptr() 230 int memfd_add_seals(struct file *file, unsigned int seals) in memfd_add_seals() argument 232 struct inode *inode = file_inode(file); in memfd_add_seals() 268 if (!(file->f_mode & FMODE_WRITE)) in memfd_add_seals() 275 file_seals = memfd_file_seals_ptr(file); in memfd_add_seals() [all …]
|
| /linux/drivers/media/pci/ivtv/ |
| H A D | ivtv-ioctl.c | 309 static int ivtv_g_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_sliced_vbi_out() argument 311 struct ivtv *itv = file2id(file)->itv; in ivtv_g_fmt_sliced_vbi_out() 331 static int ivtv_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_cap() argument 333 struct ivtv_open_id *id = file2id(file); in ivtv_g_fmt_vid_cap() 354 static int ivtv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vbi_cap() argument 356 struct ivtv *itv = file2id(file)->itv; in ivtv_g_fmt_vbi_cap() 372 static int ivtv_g_fmt_sliced_vbi_cap(struct file *fil argument 395 ivtv_g_fmt_vid_out(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_g_fmt_vid_out() argument 435 ivtv_g_fmt_vid_out_overlay(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_g_fmt_vid_out_overlay() argument 457 ivtv_try_fmt_sliced_vbi_out(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_try_fmt_sliced_vbi_out() argument 462 ivtv_try_fmt_vid_cap(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_try_fmt_vid_cap() argument 485 ivtv_try_fmt_vbi_cap(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_try_fmt_vbi_cap() argument 490 ivtv_try_fmt_sliced_vbi_cap(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_try_fmt_sliced_vbi_cap() argument 511 ivtv_try_fmt_vid_out(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_try_fmt_vid_out() argument 545 ivtv_try_fmt_vid_out_overlay(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_try_fmt_vid_out_overlay() argument 562 ivtv_s_fmt_sliced_vbi_out(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_s_fmt_sliced_vbi_out() argument 567 ivtv_s_fmt_vid_cap(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_s_fmt_vid_cap() argument 598 ivtv_s_fmt_vbi_cap(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_s_fmt_vbi_cap() argument 610 ivtv_s_fmt_sliced_vbi_cap(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_s_fmt_sliced_vbi_cap() argument 629 ivtv_s_fmt_vid_out(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_s_fmt_vid_out() argument 674 ivtv_s_fmt_vid_out_overlay(struct file * file,void * fh,struct v4l2_format * fmt) ivtv_s_fmt_vid_out_overlay() argument 711 ivtv_g_register(struct file * file,void * fh,struct v4l2_dbg_register * reg) ivtv_g_register() argument 719 ivtv_s_register(struct file * file,void * fh,const struct v4l2_dbg_register * reg) ivtv_s_register() argument 728 ivtv_querycap(struct file * file,void * fh,struct v4l2_capability * vcap) ivtv_querycap() argument 739 ivtv_enumaudio(struct file * file,void * fh,struct v4l2_audio * vin) ivtv_enumaudio() argument 746 ivtv_g_audio(struct file * file,void * fh,struct v4l2_audio * vin) ivtv_g_audio() argument 754 ivtv_s_audio(struct file * file,void * fh,const struct v4l2_audio * vout) ivtv_s_audio() argument 767 ivtv_enumaudout(struct file * file,void * fh,struct v4l2_audioout * vin) ivtv_enumaudout() argument 775 ivtv_g_audout(struct file * file,void * fh,struct v4l2_audioout * vin) ivtv_g_audout() argument 783 ivtv_s_audout(struct file * file,void * fh,const struct v4l2_audioout * vout) ivtv_s_audout() argument 792 ivtv_enum_input(struct file * file,void * fh,struct v4l2_input * vin) ivtv_enum_input() argument 800 ivtv_enum_output(struct file * file,void * fh,struct v4l2_output * vout) ivtv_enum_output() argument 807 ivtv_g_pixelaspect(struct file * file,void * fh,int type,struct v4l2_fract * f) ivtv_g_pixelaspect() argument 825 ivtv_s_selection(struct file * file,void * fh,struct v4l2_selection * sel) ivtv_s_selection() argument 868 ivtv_g_selection(struct file * file,void * fh,struct v4l2_selection * sel) ivtv_g_selection() argument 914 ivtv_enum_fmt_vid_cap(struct file * file,void * fh,struct v4l2_fmtdesc * fmt) ivtv_enum_fmt_vid_cap() argument 941 ivtv_enum_fmt_vid_out(struct file * file,void * fh,struct v4l2_fmtdesc * fmt) ivtv_enum_fmt_vid_out() argument 968 ivtv_g_input(struct file * file,void * fh,unsigned int * i) ivtv_g_input() argument 1019 ivtv_s_input(struct file * file,void * fh,unsigned int inp) ivtv_s_input() argument 1024 ivtv_g_output(struct file * file,void * fh,unsigned int * i) ivtv_g_output() argument 1036 ivtv_s_output(struct file * file,void * fh,unsigned int outp) ivtv_s_output() argument 1058 ivtv_g_frequency(struct file * file,void * fh,struct v4l2_frequency * vf) ivtv_g_frequency() argument 1088 ivtv_s_frequency(struct file * file,void * fh,const struct v4l2_frequency * vf) ivtv_s_frequency() argument 1097 ivtv_g_std(struct file * file,void * fh,v4l2_std_id * std) ivtv_g_std() argument 1170 ivtv_s_std(struct file * file,void * fh,v4l2_std_id std) ivtv_s_std() argument 1198 ivtv_s_tuner(struct file * file,void * fh,const struct v4l2_tuner * vt) ivtv_s_tuner() argument 1211 ivtv_g_tuner(struct file * file,void * fh,struct v4l2_tuner * vt) ivtv_g_tuner() argument 1227 ivtv_g_sliced_vbi_cap(struct file * file,void * fh,struct v4l2_sliced_vbi_cap * cap) ivtv_g_sliced_vbi_cap() argument 1262 ivtv_g_enc_index(struct file * file,void * fh,struct v4l2_enc_idx * idx) ivtv_g_enc_index() argument 1288 ivtv_encoder_cmd(struct file * file,void * fh,struct v4l2_encoder_cmd * enc) ivtv_encoder_cmd() argument 1340 ivtv_try_encoder_cmd(struct file * file,void * fh,struct v4l2_encoder_cmd * enc) ivtv_try_encoder_cmd() argument 1370 ivtv_g_fbuf(struct file * file,void * fh,struct v4l2_framebuffer * fb) ivtv_g_fbuf() argument 1457 ivtv_s_fbuf(struct file * file,void * fh,const struct v4l2_framebuffer * fb) ivtv_s_fbuf() argument 1478 ivtv_overlay(struct file * file,void * fh,unsigned int on) ivtv_overlay() argument 1505 ivtv_log_status(struct file * file,void * fh) ivtv_log_status() argument 1597 ivtv_decoder_cmd(struct file * file,void * fh,struct v4l2_decoder_cmd * dec) ivtv_decoder_cmd() argument 1606 ivtv_try_decoder_cmd(struct file * file,void * fh,struct v4l2_decoder_cmd * dec) ivtv_try_decoder_cmd() argument 1657 ivtv_default(struct file * file,void * fh,bool valid_prio,unsigned int cmd,void * arg) ivtv_default() argument [all...] |
| /linux/drivers/media/pci/cx18/ |
| H A D | cx18-ioctl.c | 52 static int cx18_g_fmt_vid_cap(struct file *file, void *fh, in cx18_g_fmt_vid_cap() argument 55 struct cx18_open_id *id = file2id(file); in cx18_g_fmt_vid_cap() 76 static int cx18_try_fmt_vid_cap(struct file *file, void *fh, in cx18_try_fmt_vid_cap() argument 79 struct cx18_open_id *id = file2id(file); in cx18_try_fmt_vid_cap() 121 static int cx18_s_fmt_vid_cap(struct file *file, void *fh, in cx18_s_fmt_vid_cap() argument 124 struct cx18_open_id *id = file2id(file); in cx18_s_fmt_vid_cap() 133 ret = cx18_try_fmt_vid_cap(file, fh, fmt); in cx18_s_fmt_vid_cap() 154 return cx18_g_fmt_vid_cap(file, fh, fmt); in cx18_s_fmt_vid_cap() 261 static int cx18_g_fmt_vbi_cap(struct file *file, void *fh, in cx18_g_fmt_vbi_cap() argument 264 struct cx18 *cx = file2id(file)->cx; in cx18_g_fmt_vbi_cap() [all …]
|
| /linux/drivers/net/wireless/marvell/libertas/ |
| H A 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 …]
|
| /linux/tools/testing/ktest/examples/bootconfigs/ |
| H A D | verify-functiongraph.sh | 6 file="$1" 8 content=`cat $file` 10 echo "FAILED: $file has '$content', expected '$val'" 16 file="$1" 18 content=`cat $file | sed -ne "/^$val/p"` 20 echo "FAILED: $file does not contain '$val'" 21 cat $file 27 file=$1 30 if ! grep -q "$val" $file ; then 31 echo "FAILED: $file does not contain $val" [all …]
|
| H A D | verify-tracing.sh | 6 file="$1" 8 content=`cat $file` 10 echo "FAILED: $file has '$content', expected '$val'" 16 file="$1" 18 content=`cat $file | sed -ne "/^$val/p"` 20 echo "FAILED: $file does not contain '$val'" 21 cat $file 27 file=$1 30 if ! grep -q "$val" $file ; then 31 echo "FAILED: $file does not contain $val" [all …]
|
| /linux/virt/kvm/ |
| H A D | vfio.c | 10 #include <linux/file.h> 26 struct file *file; member 38 static void kvm_vfio_file_set_kvm(struct file *file, struct kvm *kvm) in kvm_vfio_file_set_kvm() argument 40 void (*fn)(struct file *file, struct kvm *kvm); in kvm_vfio_file_set_kvm() 46 fn(file, kvm); in kvm_vfio_file_set_kvm() 51 static bool kvm_vfio_file_enforced_coherent(struct file *file) in kvm_vfio_file_enforced_coherent() argument 67 kvm_vfio_file_is_valid(struct file * file) kvm_vfio_file_is_valid() argument 84 kvm_vfio_file_iommu_group(struct file * file) kvm_vfio_file_iommu_group() argument [all...] |
| /linux/arch/powerpc/platforms/cell/spufs/ |
| H A D | file.c | 3 * SPU file system -- file contents 44 static int spufs_attr_open(struct inode *inode, struct file *file, in spufs_attr_open() argument 59 file->private_data = attr; in spufs_attr_open() 61 return nonseekable_open(inode, file); in spufs_attr_open() 64 static int spufs_attr_release(struct inode *inode, struct file *file) in spufs_attr_release() argument 66 kfree(file->private_data); in spufs_attr_release() 70 static ssize_t spufs_attr_read(struct file *fil argument 103 spufs_attr_write(struct file * file,const char __user * buf,size_t len,loff_t * ppos) spufs_attr_write() argument 157 spufs_mem_open(struct inode * inode,struct file * file) spufs_mem_open() argument 171 spufs_mem_release(struct inode * inode,struct file * file) spufs_mem_release() argument 190 spufs_mem_read(struct file * file,char __user * buffer,size_t size,loff_t * pos) spufs_mem_read() argument 207 spufs_mem_write(struct file * file,const char __user * buffer,size_t size,loff_t * ppos) spufs_mem_write() argument 289 spufs_mem_mmap(struct file * file,struct vm_area_struct * vma) spufs_mem_mmap() argument 379 spufs_cntl_mmap(struct file * file,struct vm_area_struct * vma) spufs_cntl_mmap() argument 422 spufs_cntl_open(struct inode * inode,struct file * file) spufs_cntl_open() argument 437 spufs_cntl_release(struct inode * inode,struct file * file) spufs_cntl_release() argument 460 spufs_regs_open(struct inode * inode,struct file * file) spufs_regs_open() argument 475 spufs_regs_read(struct file * file,char __user * buffer,size_t size,loff_t * pos) spufs_regs_read() argument 496 spufs_regs_write(struct file * file,const char __user * buffer,size_t size,loff_t * pos) spufs_regs_write() argument 532 spufs_fpcr_read(struct file * file,char __user * buffer,size_t size,loff_t * pos) spufs_fpcr_read() argument 548 spufs_fpcr_write(struct file * file,const char __user * buffer,size_t size,loff_t * pos) spufs_fpcr_write() argument 577 spufs_pipe_open(struct inode * inode,struct file * file) spufs_pipe_open() argument 593 spufs_mbox_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_mbox_read() argument 638 spufs_mbox_stat_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_mbox_stat_read() argument 694 spufs_ibox_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_ibox_read() argument 747 spufs_ibox_poll(struct file * file,poll_table * wait) spufs_ibox_poll() argument 771 spufs_ibox_stat_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_ibox_stat_read() argument 825 spufs_wbox_write(struct file * file,const char __user * buf,size_t len,loff_t * pos) spufs_wbox_write() argument 877 spufs_wbox_poll(struct file * file,poll_table * wait) spufs_wbox_poll() argument 901 spufs_wbox_stat_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_wbox_stat_read() argument 928 spufs_signal1_open(struct inode * inode,struct file * file) spufs_signal1_open() argument 942 spufs_signal1_release(struct inode * inode,struct file * file) spufs_signal1_release() argument 976 spufs_signal1_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_signal1_read() argument 991 spufs_signal1_write(struct file * file,const char __user * buf,size_t len,loff_t * pos) spufs_signal1_write() argument 1034 spufs_signal1_mmap(struct file * file,struct vm_area_struct * vma) spufs_signal1_mmap() argument 1061 spufs_signal2_open(struct inode * inode,struct file * file) spufs_signal2_open() argument 1075 spufs_signal2_release(struct inode * inode,struct file * file) spufs_signal2_release() argument 1109 spufs_signal2_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_signal2_read() argument 1124 spufs_signal2_write(struct file * file,const char __user * buf,size_t len,loff_t * pos) spufs_signal2_write() argument 1168 spufs_signal2_mmap(struct file * file,struct vm_area_struct * vma) spufs_signal2_mmap() argument 1289 spufs_mss_mmap(struct file * file,struct vm_area_struct * vma) spufs_mss_mmap() argument 1304 spufs_mss_open(struct inode * inode,struct file * file) spufs_mss_open() argument 1319 spufs_mss_release(struct inode * inode,struct file * file) spufs_mss_release() argument 1350 spufs_psmap_mmap(struct file * file,struct vm_area_struct * vma) spufs_psmap_mmap() argument 1362 spufs_psmap_open(struct inode * inode,struct file * file) spufs_psmap_open() argument 1376 spufs_psmap_release(struct inode * inode,struct file * file) spufs_psmap_release() argument 1409 spufs_mfc_mmap(struct file * file,struct vm_area_struct * vma) spufs_mfc_mmap() argument 1424 spufs_mfc_open(struct inode * inode,struct file * file) spufs_mfc_open() argument 1445 spufs_mfc_release(struct inode * inode,struct file * file) spufs_mfc_release() argument 1481 spufs_mfc_read(struct file * file,char __user * buffer,size_t size,loff_t * pos) spufs_mfc_read() argument 1607 spufs_mfc_write(struct file * file,const char __user * buffer,size_t size,loff_t * pos) spufs_mfc_write() argument 1657 spufs_mfc_poll(struct file * file,poll_table * wait) spufs_mfc_poll() argument 1687 spufs_mfc_flush(struct file * file,fl_owner_t id) spufs_mfc_flush() argument 1701 spufs_mfc_fsync(struct file * file,loff_t start,loff_t end,int datasync) spufs_mfc_fsync() argument 1894 spufs_info_open(struct inode * inode,struct file * file) spufs_info_open() argument 1913 spufs_caps_open(struct inode * inode,struct file * file) spufs_caps_open() argument 1934 spufs_mbox_info_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_mbox_info_read() argument 1972 spufs_ibox_info_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_ibox_info_read() argument 2013 spufs_wbox_info_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_wbox_info_read() argument 2069 spufs_dma_info_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_dma_info_read() argument 2122 spufs_proxydma_info_read(struct file * file,char __user * buf,size_t len,loff_t * pos) spufs_proxydma_info_read() argument 2157 spufs_tid_open(struct inode * inode,struct file * file) spufs_tid_open() argument 2247 spufs_stat_open(struct inode * inode,struct file * file) spufs_stat_open() argument 2270 spufs_switch_log_open(struct inode * inode,struct file * file) spufs_switch_log_open() argument 2301 spufs_switch_log_release(struct inode * inode,struct file * file) spufs_switch_log_release() argument 2332 spufs_switch_log_read(struct file * file,char __user * buf,size_t len,loff_t * ppos) spufs_switch_log_read() argument 2403 spufs_switch_log_poll(struct file * file,poll_table * wait) spufs_switch_log_poll() argument 2499 spufs_ctx_open(struct inode * inode,struct file * file) spufs_ctx_open() argument [all...] |
| /linux/tools/testing/selftests/coredump/ |
| H A D | stackdump_test.c | 37 FILE *file; in FIXTURE_SETUP() local 42 file = fopen("/proc/sys/kernel/core_pattern", "r"); in FIXTURE_SETUP() 43 ASSERT_NE(NULL, file); in FIXTURE_SETUP() 45 ret = fread(self->original_core_pattern, 1, sizeof(self->original_core_pattern), file); in FIXTURE_SETUP() 46 ASSERT_TRUE(ret || feof(file)); in FIXTURE_SETUP() 53 ret = fclose(file); in FIXTURE_SETUP() 60 FILE *file; in FIXTURE_TEARDOWN() local 72 file = fopen("/proc/sys/kernel/core_pattern", "w"); in FIXTURE_TEARDOWN() 73 if (!file) { in FIXTURE_TEARDOWN() 78 ret = fprintf(file, "%s", self->original_core_pattern); in FIXTURE_TEARDOWN() [all …]
|
| /linux/drivers/media/usb/pvrusb2/ |
| H A D | pvrusb2-v4l2.c | 41 struct file *file; member 49 static inline struct pvr2_v4l2_fh *to_pvr2_v4l2_fh(struct file *filp) in to_pvr2_v4l2_fh() 112 static int pvr2_querycap(struct file *file, void *priv, struct v4l2_capability *cap) in pvr2_querycap() argument 114 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_querycap() 127 static int pvr2_g_std(struct file *file, void *priv, v4l2_std_id *std) in pvr2_g_std() argument 129 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_g_std() 140 static int pvr2_s_std(struct file *file, void *priv, v4l2_std_id std) in pvr2_s_std() argument 142 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_s_std() 152 static int pvr2_querystd(struct file *file, void *priv, v4l2_std_id *std) in pvr2_querystd() argument 154 struct pvr2_v4l2_fh *fh = to_pvr2_v4l2_fh(file); in pvr2_querystd() [all …]
|