| /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 | 51 struct failover_ops *fops; in failover_slave_register() local 59 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_register() 63 if (fops->slave_pre_register && in failover_slave_register() 64 fops->slave_pre_register(slave_dev, failover_dev)) in failover_slave_register() 67 err = netdev_rx_handler_register(slave_dev, fops->slave_handle_frame, in failover_slave_register() 86 if (fops->slave_register && in failover_slave_register() 87 !fops->slave_register(slave_dev, failover_dev)) in failover_slave_register() 108 struct failover_ops *fops; in failover_slave_unregister() local 115 failover_dev = failover_get_bymac(slave_dev->perm_addr, &fops); in failover_slave_unregister() 119 if (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 | 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);
|
| /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/rust/kernel/drm/gem/ |
| H A D | mod.rs | 388 let mut fops: bindings::file_operations = pin_init::zeroed(); 390 fops.owner = owner; 391 fops.open = Some(bindings::drm_open); 392 fops.release = Some(bindings::drm_release); 393 fops.unlocked_ioctl = Some(bindings::drm_ioctl); 396 fops.compat_ioctl = Some(bindings::drm_compat_ioctl); 398 fops.poll = Some(bindings::drm_poll); 399 fops.read = Some(bindings::drm_read); 400 fops.llseek = Some(bindings::noop_llseek); 401 fops 361 let mut fops: bindings::file_operations = pin_init::zeroed(); create_fops() localVariable [all...] |
| /linux/block/ |
| H A D | ioctl.c | 306 if (disk->fops->ioctl) in blkdev_compat_ptr_ioctl() 307 return disk->fops->ioctl(bdev, mode, cmd, in blkdev_compat_ptr_ioctl() 345 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_register() 363 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_reserve() 381 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_release() 399 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_preempt() 417 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_clear() 435 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_read_keys() 490 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_read_reservation() 541 if (bdev->bd_disk->fops->set_read_only) { in blkdev_roset() [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/fs/ |
| H A D | char_dev.c | 267 const struct file_operations *fops) in __register_chrdev() argument 281 cdev->owner = fops->owner; in __register_chrdev() 282 cdev->ops = fops; in __register_chrdev() 372 const struct file_operations *fops; in chrdev_open() local 405 fops = fops_get(p->ops); in chrdev_open() 406 if (!fops) in chrdev_open() 409 replace_fops(filp, fops); in chrdev_open() 655 void cdev_init(struct cdev *cdev, const struct file_operations *fops) in cdev_init() argument 660 cdev->ops = fops; in cdev_init()
|
| /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/net/wireless/realtek/rtl8xxxu/ |
| H A D | core.c | 830 int blocksize = priv->fops->writeN_block_size; in rtl8xxxu_writeN() 1978 priv->fops->reset_8051(priv); in rtl8xxxu_start_firmware() 1998 if (priv->fops->init_reg_hmtfr) in rtl8xxxu_start_firmware() 2039 priv->fops->reset_8051(priv); in rtl8xxxu_download_firmware() 2189 const struct rtl8xxxu_reg8val *array = priv->fops->mactable; in rtl8xxxu_init_mac() 2314 priv->fops->init_phy_bb(priv); in rtl8xxxu_init_phy_bb() 2376 if (priv->fops->set_crystal_cap) in rtl8xxxu_init_phy_bb() 2377 priv->fops->set_crystal_cap(priv, priv->default_crystal_cap); in rtl8xxxu_init_phy_bb() 2525 last_tx_page = priv->fops->total_page_num; in rtl8xxxu_init_llt_table() 2527 if (priv->fops->last_llt_entry) in rtl8xxxu_init_llt_table() [all …]
|
| /linux/drivers/s390/char/ |
| H A D | tape_class.c | 40 const struct file_operations *fops, in register_tape_dev() argument 65 tcd->char_device->owner = fops->owner; in register_tape_dev() 66 tcd->char_device->ops = fops; in register_tape_dev()
|
| /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 | 89 * @fops: a pointer to a struct file_operations that should be used for 111 const struct file_operations *fops, in securityfs_create_dentry() argument 158 inode->i_fop = fops; in securityfs_create_dentry() 181 * @fops: a pointer to a struct file_operations that should be used for 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/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/drivers/edac/ |
| H A D | debugfs.c | 51 void *data, const struct file_operations *fops) in edac_debugfs_create_file() argument 56 return debugfs_create_file(name, mode, parent, data, fops); in edac_debugfs_create_file()
|
| /linux/fs/tracefs/ |
| H A D | event_inode.c | 509 const struct file_operations *fops) in lookup_file_dentry() argument 516 return lookup_file(ei, dentry, mode, attr, data, fops); in lookup_file_dentry() 560 const struct file_operations *fops; in eventfs_root_lookup() local 567 if (entry->callback(name, &mode, &data, &fops) <= 0) in eventfs_root_lookup() 570 return lookup_file_dentry(dentry, ei, i, mode, data, fops); in eventfs_root_lookup() 581 const struct file_operations *fops; in eventfs_iterate() local 629 r = entry->callback(name, &mode, &cdata, &fops); in eventfs_iterate()
|
| /linux/sound/soc/sof/ |
| H A D | sof-client-ipc-msg-injector.c | 258 static const struct file_operations *fops; in sof_msg_inject_probe() local 289 fops = &sof_msg_inject_ipc4_fops; in sof_msg_inject_probe() 291 fops = &sof_msg_inject_fops; in sof_msg_inject_probe() 297 cdev, fops); in sof_msg_inject_probe()
|
| /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()
|
| /linux/kernel/bpf/ |
| H A D | trampoline.c | 231 tr->fops = &direct_ops; in direct_ops_alloc() 264 err = update_ftrace_direct_add(tr->fops, hash); in direct_ops_add() 276 err = update_ftrace_direct_del(tr->fops, hash); in direct_ops_del() 288 err = update_ftrace_direct_mod(tr->fops, hash, lock_direct_mutex); in direct_ops_mod() 301 tr->fops = kzalloc_obj(struct ftrace_ops); in direct_ops_alloc() 302 if (!tr->fops) in direct_ops_alloc() 304 tr->fops->private = tr; in direct_ops_alloc() 305 tr->fops->ops_func = bpf_tramp_ftrace_ops_func; in direct_ops_alloc() 311 if (!tr->fops) in direct_ops_free() 313 ftrace_free_filter(tr->fops); in direct_ops_free() [all...] |