| /linux/scripts/coccinelle/api/ |
| H A D | stream_open.cocci | 84 identifier fops; 86 struct file_operations fops = { 91 identifier fops0.fops; 94 struct file_operations fops = { 99 identifier fops0.fops; 102 struct file_operations fops = { 107 identifier fops0.fops; 110 struct file_operations fops = { 115 identifier fops0.fops; 118 struct file_operations fops = { [all …]
|
| H A D | simple_open.cocci | 29 identifier fops; 32 struct file_operations fops = { 56 identifier fops; 60 struct file_operations fops = {
|
| /linux/net/core/ |
| H A D | failover.c | 50 struct failover_ops *fops; in failover_slave_register() local 58 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_register() 62 if (fops && fops->slave_pre_register && in failover_slave_register() 63 fops->slave_pre_register(slave_dev, failover_dev)) in failover_slave_register() 66 err = netdev_rx_handler_register(slave_dev, fops->slave_handle_frame, in failover_slave_register() 85 if (fops && fops->slave_register && in failover_slave_register() 86 !fops->slave_register(slave_dev, failover_dev)) in failover_slave_register() 107 struct failover_ops *fops; in failover_slave_unregister() local 114 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_unregister() 118 if (fops && fops->slave_pre_unregister && in failover_slave_unregister() [all …]
|
| /linux/kernel/livepatch/ |
| H A D | patch.c | 42 struct ftrace_ops *fops, in klp_ftrace_handler() argument 50 ops = container_of(fops, struct klp_ops, fops); in klp_ftrace_handler() 147 WARN_ON(unregister_ftrace_function(&ops->fops)); in klp_unpatch_func() 148 WARN_ON(ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0)); in klp_unpatch_func() 186 ops->fops.func = klp_ftrace_handler; in klp_patch_func() 187 ops->fops.flags = FTRACE_OPS_FL_DYNAMIC | in klp_patch_func() 199 ret = ftrace_set_filter_ip(&ops->fops, ftrace_loc, 0, 0); in klp_patch_func() 206 ret = register_ftrace_function(&ops->fops); in klp_patch_func() 210 ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0); in klp_patch_func()
|
| /linux/include/linux/ |
| H A D | anon_inodes.h | 18 const struct file_operations *fops, 21 const struct file_operations *fops, 24 const struct file_operations *fops, 27 int anon_inode_getfd(const char *name, const struct file_operations *fops, 30 const struct file_operations *fops,
|
| H A D | debugfs.h | 83 const struct file_operations *fops); 87 const struct debugfs_short_fops *fops); 125 #define debugfs_create_file(name, mode, parent, data, fops) \ argument 126 _Generic(fops, \ 131 (name, mode, parent, data, NULL, fops) 133 #define debugfs_create_file_aux(name, mode, parent, data, aux, fops) \ argument 134 _Generic(fops, \ 139 (name, mode, parent, data, aux, fops) 143 const struct file_operations *fops); 147 const struct file_operations *fops, [all …]
|
| H A D | sound.h | 12 extern int register_sound_special(const struct file_operations *fops, int unit); 13 extern int register_sound_special_device(const struct file_operations *fops, int unit, struct devic… 14 extern int register_sound_mixer(const struct file_operations *fops, int dev); 15 extern int register_sound_dsp(const struct file_operations *fops, int dev);
|
| H A D | tracefs.h | 63 const struct file_operations **fops); 95 const struct file_operations *fops);
|
| /linux/tools/bpf/bpftool/skeleton/ |
| H A D | pid_iter.bpf.c | 72 const void *fops; in iter() local 79 fops = &bpf_prog_fops; in iter() 82 fops = &bpf_map_fops; in iter() 85 fops = &btf_fops; in iter() 90 fops = &bpf_link_fops_poll; in iter() 92 fops = &bpf_link_fops; in iter() 98 if (file->f_op != fops) in iter()
|
| /linux/drivers/hv/ |
| H A D | hv_utils_transport.c | 33 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_read() 81 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_write() 101 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_poll() 120 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_open() 163 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_release() 287 hvt->fops.owner = THIS_MODULE; in hvutil_transport_init() 288 hvt->fops.read = hvt_op_read; in hvutil_transport_init() 289 hvt->fops.write = hvt_op_write; in hvutil_transport_init() 290 hvt->fops.poll = hvt_op_poll; in hvutil_transport_init() 291 hvt->fops.open = hvt_op_open; in hvutil_transport_init() [all …]
|
| /linux/sound/ |
| H A D | sound_core.c | 159 …t sound_unit * s, struct sound_unit **list, const struct file_operations *fops, int index, int low… in __sound_insert_unit() argument 195 s->unit_fops=fops; in __sound_insert_unit() 239 static int sound_insert_unit(struct sound_unit **list, const struct file_operations *fops, int inde… in sound_insert_unit() argument 249 r = __sound_insert_unit(s, list, fops, index, low, top); in sound_insert_unit() 347 int register_sound_special_device(const struct file_operations *fops, int unit, in register_sound_special_device() argument 408 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, in register_sound_special_device() 414 int register_sound_special(const struct file_operations *fops, int unit) in register_sound_special() argument 416 return register_sound_special_device(fops, unit, NULL); in register_sound_special() 433 int register_sound_mixer(const struct file_operations *fops, int dev) in register_sound_mixer() argument 435 return sound_insert_unit(&chains[0], fops, dev, 0, 128, in register_sound_mixer() [all …]
|
| /linux/arch/s390/lib/ |
| H A D | test_unwind.c | 270 struct ftrace_ops *fops, in test_unwind_ftrace_handler() argument 288 struct ftrace_ops *fops; in test_unwind_ftrace() local 290 fops = kunit_kzalloc(current_test, sizeof(*fops), GFP_KERNEL); in test_unwind_ftrace() 291 fops->func = test_unwind_ftrace_handler; in test_unwind_ftrace() 292 fops->flags = FTRACE_OPS_FL_DYNAMIC | in test_unwind_ftrace() 300 ret = ftrace_set_filter_ip(fops, (unsigned long)test_unwind_ftraced_func, 0, 0); in test_unwind_ftrace() 306 ret = register_ftrace_function(fops); in test_unwind_ftrace() 309 unregister_ftrace_function(fops); in test_unwind_ftrace() 314 ftrace_set_filter_ip(fops, (unsigned long)test_unwind_ftraced_func, 1, 0); in test_unwind_ftrace()
|
| /linux/kernel/ |
| H A D | kexec_file.c | 69 const struct kexec_file_ops * const *fops; in kexec_image_probe_default() local 72 for (fops = &kexec_file_loaders[0]; *fops && (*fops)->probe; ++fops) { in kexec_image_probe_default() 73 ret = (*fops)->probe(buf, buf_len); in kexec_image_probe_default() 75 image->fops = *fops; in kexec_image_probe_default() 85 if (!image->fops || !image->fops->load) in kexec_image_load_default() 88 return image->fops->load(image, image->kernel_buf, in kexec_image_load_default() 96 if (!image->fops || !image->fops->cleanup) in kexec_image_post_load_cleanup_default() 99 return image->fops->cleanup(image->image_loader_data); in kexec_image_post_load_cleanup_default() 166 if (!image->fops || !image->fops->verify_sig) { in kexec_image_verify_sig() 171 return image->fops->verify_sig(buf, buf_len); in kexec_image_verify_sig()
|
| /linux/kernel/bpf/ |
| H A D | trampoline.c | 156 tr->fops = kzalloc(sizeof(struct ftrace_ops), GFP_KERNEL); in bpf_trampoline_lookup() 157 if (!tr->fops) { in bpf_trampoline_lookup() 162 tr->fops->private = tr; in bpf_trampoline_lookup() 163 tr->fops->ops_func = bpf_tramp_ftrace_ops_func; in bpf_trampoline_lookup() 203 ret = unregister_ftrace_direct(tr->fops, (long)old_addr, false); in unregister_fentry() 218 ret = modify_ftrace_direct(tr->fops, (long)new_addr); in modify_fentry() 220 ret = modify_ftrace_direct_nolock(tr->fops, (long)new_addr); in modify_fentry() 237 if (!tr->fops) in register_fentry() 243 ret = ftrace_set_filter_ip(tr->fops, (unsigned long)ip, 0, 1); in register_fentry() 246 ret = register_ftrace_direct(tr->fops, (long)new_addr); in register_fentry() [all …]
|
| /linux/drivers/firmware/efi/ |
| H A D | vars.c | 29 const struct efivar_operations *fops; in check_var_size() local 32 fops = __efivars->ops; in check_var_size() 34 if (!fops->query_variable_store) in check_var_size() 37 status = fops->query_variable_store(attributes, size, in check_var_size()
|
| /linux/drivers/w1/ |
| H A D | w1.c | 165 .fops = &w1_default_fops, 608 const struct w1_family_ops *fops; in w1_family_notify() local 611 fops = sl->family->fops; in w1_family_notify() 613 if (!fops) in w1_family_notify() 619 if (fops->add_slave) { in w1_family_notify() 620 err = fops->add_slave(sl); in w1_family_notify() 628 if (fops->groups) { in w1_family_notify() 629 err = sysfs_create_groups(&sl->dev.kobj, fops->groups); in w1_family_notify() 637 if (IS_REACHABLE(CONFIG_HWMON) && fops->chip_info) { in w1_family_notify() 641 fops->chip_info, in w1_family_notify() [all …]
|
| /linux/arch/s390/hypfs/ |
| H A D | hypfs_dbfs.c | 86 const struct file_operations *fops = &dbfs_ops; in hypfs_dbfs_create_file() local 89 fops = &dbfs_ops_ioctl; in hypfs_dbfs_create_file() 90 df->dentry = debugfs_create_file(df->name, 0400, dbfs_dir, df, fops); in hypfs_dbfs_create_file()
|
| /linux/security/ |
| H A D | inode.c | 111 const struct file_operations *fops, in securityfs_create_dentry() argument 158 inode->i_fop = fops; in securityfs_create_dentry() 197 const struct file_operations *fops) in securityfs_create_file() argument 199 return securityfs_create_dentry(name, mode, parent, data, fops, NULL); in securityfs_create_file()
|
| /linux/fs/debugfs/ |
| H A D | inode.c | 458 const struct file_operations *fops) in debugfs_create_file_full() argument 462 fops); in debugfs_create_file_full() 469 const struct debugfs_short_fops *fops) in debugfs_create_file_short() argument 473 fops); in debugfs_create_file_short() 506 const struct file_operations *fops) in debugfs_create_file_unsafe() argument 511 fops); in debugfs_create_file_unsafe() 536 const struct file_operations *fops, in debugfs_create_file_size() argument 539 struct dentry *de = debugfs_create_file(name, mode, parent, data, fops); in debugfs_create_file_size()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_cnv_dbgfs.c | 279 const struct file_operations *fops; in adf_cnv_dbgfs_add() local 283 fops = &qat_cnv_fops; in adf_cnv_dbgfs_add() 286 fops = &qat_cnv_no_comp_fops; in adf_cnv_dbgfs_add() 292 data, fops); in adf_cnv_dbgfs_add()
|
| /linux/drivers/w1/slaves/ |
| H A D | w1_ds250x.c | 225 .fops = &w1_eprom_fops, 230 .fops = &w1_eprom_fops, 235 .fops = &w1_eprom_fops, 240 .fops = &w1_eprom_fops,
|
| /linux/fs/ |
| H A D | file_table.c | 373 const struct file_operations *fops) in alloc_file_pseudo() argument 383 file = alloc_file(&path, flags, fops); in alloc_file_pseudo() 401 const struct file_operations *fops) in alloc_file_pseudo_noaccount() argument 417 file_init_path(file, &path, fops); in alloc_file_pseudo_noaccount() 428 const struct file_operations *fops) in alloc_file_clone() argument 432 f = alloc_file(&base->f_path, flags, fops); in alloc_file_clone()
|
| /linux/sound/soc/sof/ |
| H A D | sof-client-ipc-msg-injector.c | 255 static const struct file_operations *fops; in sof_msg_inject_probe() local 286 fops = &sof_msg_inject_ipc4_fops; in sof_msg_inject_probe() 288 fops = &sof_msg_inject_fops; in sof_msg_inject_probe() 294 cdev, fops); in sof_msg_inject_probe()
|
| /linux/net/ipv6/ |
| H A D | seg6_local.c | 462 static bool seg6_next_csid_enabled(__u32 fops) in seg6_next_csid_enabled() argument 464 return fops & SEG6_F_LOCAL_FLV_NEXT_CSID; in seg6_next_csid_enabled() 473 static int seg6_flv_supp_ops_by_action(int action, __u32 *fops) in seg6_flv_supp_ops_by_action() argument 477 *fops = SEG6_LOCAL_END_FLV_SUPP_OPS; in seg6_flv_supp_ops_by_action() 480 *fops = SEG6_LOCAL_END_X_FLV_SUPP_OPS; in seg6_flv_supp_ops_by_action() 799 __u32 fops = finfo->flv_ops; in input_action_end() local 801 if (!fops) in input_action_end() 805 if (seg6_next_csid_enabled(fops)) in input_action_end() 820 __u32 fops = finfo->flv_ops; in input_action_end_x() local 823 if (seg6_next_csid_enabled(fops)) in input_action_end_x() [all …]
|
| /linux/drivers/scsi/qedi/ |
| H A D | qedi_debugfs.c | 20 const struct file_operations *fops) in qedi_dbg_host_init() argument 32 fops); in qedi_dbg_host_init() 34 fops++; in qedi_dbg_host_init()
|