Home
last modified time | relevance | path

Searched refs:fops (Results 1 – 25 of 445) sorted by relevance

12345678910>>...18

/linux/scripts/coccinelle/api/
H A Dstream_open.cocci84 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 Dsimple_open.cocci29 identifier fops;
32 struct file_operations fops = {
56 identifier fops;
60 struct file_operations fops = {
/linux/net/core/
H A Dfailover.c51 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/fs/
H A Danon_inodes.c133 const struct file_operations *fops, in __anon_inode_getfile() argument
141 if (fops->owner && !try_module_get(fops->owner)) in __anon_inode_getfile()
165 flags & (O_ACCMODE | O_NONBLOCK), fops); in __anon_inode_getfile()
178 module_put(fops->owner); in __anon_inode_getfile()
199 const struct file_operations *fops, in anon_inode_getfile() argument
202 return __anon_inode_getfile(name, fops, priv, flags, NULL, false); in anon_inode_getfile()
225 const struct file_operations *fops, in anon_inode_getfile_fmode() argument
230 file = __anon_inode_getfile(name, fops, priv, flags, NULL, false); in anon_inode_getfile_fmode()
266 const struct file_operations *fops, in anon_inode_create_getfile() argument
270 return __anon_inode_getfile(name, fops, priv, flags, in anon_inode_create_getfile()
[all …]
H A Dchar_dev.c267 const struct file_operations *fops) in __register_chrdev() argument
281 cdev->owner = fops->owner; in __register_chrdev()
282 cdev->ops = fops; in __register_chrdev()
374 const struct file_operations *fops; in chrdev_open() local
407 fops = fops_get(p->ops); in chrdev_open()
408 if (!fops) in chrdev_open()
411 replace_fops(filp, fops); in chrdev_open()
657 void cdev_init(struct cdev *cdev, const struct file_operations *fops) in cdev_init() argument
662 cdev->ops = fops; in cdev_init()
H A Dfile_table.c417 const struct file_operations *fops) in alloc_file_pseudo() argument
427 file = alloc_file(&path, flags, fops); in alloc_file_pseudo()
445 const struct file_operations *fops) in alloc_file_pseudo_noaccount() argument
461 file_init_path(file, &path, fops); in alloc_file_pseudo_noaccount()
472 const struct file_operations *fops) in alloc_file_clone() argument
476 f = alloc_file(&base->f_path, flags, fops); in alloc_file_clone()
/linux/kernel/livepatch/
H A Dpatch.c42 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 Danon_inodes.h18 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 Dsound.h12 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 Dpid_iter.bpf.c72 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 Dhv_utils_transport.c33 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 Dsound_core.c159 …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 Dmod.rs377 let mut fops: bindings::file_operations = pin_init::zeroed(); in create_fops()
379 fops.owner = owner;
380 fops.open = Some(bindings::drm_open);
381 fops.release = Some(bindings::drm_release);
382 fops.unlocked_ioctl = Some(bindings::drm_ioctl);
385 fops.compat_ioctl = Some(bindings::drm_compat_ioctl);
387 fops.poll = Some(bindings::drm_poll);
388 fops.read = Some(bindings::drm_read);
389 fops.llseek = Some(bindings::noop_llseek);
390 fops
361 let mut fops: bindings::file_operations = pin_init::zeroed(); create_fops() localVariable
[all...]
/linux/block/
H A Dioctl.c306 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 in blkdev_roset()
[all...]
/linux/arch/s390/lib/
H A Dtest_unwind.c270 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/drivers/firmware/efi/
H A Dvars.c29 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 Dcore.c832 int blocksize = priv->fops->writeN_block_size; in rtl8xxxu_writeN()
1980 priv->fops->reset_8051(priv); in rtl8xxxu_start_firmware()
2000 if (priv->fops->init_reg_hmtfr) in rtl8xxxu_start_firmware()
2041 priv->fops->reset_8051(priv); in rtl8xxxu_download_firmware()
2191 const struct rtl8xxxu_reg8val *array = priv->fops->mactable; in rtl8xxxu_init_mac()
2316 priv->fops->init_phy_bb(priv); in rtl8xxxu_init_phy_bb()
2378 if (priv->fops->set_crystal_cap) in rtl8xxxu_init_phy_bb()
2379 priv->fops->set_crystal_cap(priv, priv->default_crystal_cap); in rtl8xxxu_init_phy_bb()
2527 last_tx_page = priv->fops->total_page_num; in rtl8xxxu_init_llt_table()
2529 if (priv->fops in rtl8xxxu_init_llt_table()
3817 struct rtl8xxxu_fileops *fops = priv->fops; rtl8xxxu_init_queue_reserved_page() local
3962 struct rtl8xxxu_fileops *fops = priv->fops; rtl8xxxu_init_device() local
6576 struct rtl8xxxu_fileops *fops = priv->fops; rtl8xxxu_submit_rx_urb() local
[all...]
/linux/drivers/s390/char/
H A Dtape_class.c40 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 Dhypfs_dbfs.c86 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 Dinode.c89 * @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/fs/debugfs/
H A Dinode.c461 const struct file_operations *fops) in debugfs_create_file_full() argument
465 fops); in debugfs_create_file_full()
472 const struct debugfs_short_fops *fops) in debugfs_create_file_short() argument
476 fops); in debugfs_create_file_short()
509 const struct file_operations *fops) in debugfs_create_file_unsafe() argument
514 fops); in debugfs_create_file_unsafe()
539 const struct file_operations *fops, in debugfs_create_file_size() argument
542 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 Dadf_cnv_dbgfs.c279 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 Dw1_ds250x.c225 .fops = &w1_eprom_fops,
230 .fops = &w1_eprom_fops,
235 .fops = &w1_eprom_fops,
240 .fops = &w1_eprom_fops,
/linux/drivers/edac/
H A Ddebugfs.c51 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 Devent_inode.c517 const struct file_operations *fops) in lookup_file_dentry() argument
524 return lookup_file(ei, dentry, mode, attr, data, fops); in lookup_file_dentry()
568 const struct file_operations *fops; in eventfs_root_lookup() local
575 if (entry->callback(name, &mode, &data, &fops) <= 0) in eventfs_root_lookup()
578 return lookup_file_dentry(dentry, ei, i, mode, data, fops); in eventfs_root_lookup()
589 const struct file_operations *fops; in eventfs_iterate() local
637 r = entry->callback(name, &mode, &cdata, &fops); in eventfs_iterate()

12345678910>>...18