Home
last modified time | relevance | path

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

12345678910>>...23

/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.c50 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 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/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/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);
H A Dtracefs.h63 const struct file_operations **fops);
95 const struct file_operations *fops);
/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/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/block/
H A Dioctl.c312 if (disk->fops->ioctl) in blkdev_compat_ptr_ioctl()
313 return disk->fops->ioctl(bdev, mode, cmd, in blkdev_compat_ptr_ioctl()
351 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_register()
369 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_reserve()
387 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_release()
405 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_preempt()
423 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_clear()
441 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_read_keys()
496 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_read_reservation()
547 if (bdev->bd_disk->fops->set_read_only) { 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/kernel/
H A Dkexec_file.c69 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 in kexec_image_load_default()
[all...]
/linux/drivers/media/v4l2-core/
H A Dv4l2-dev.c313 if (!vdev->fops->read) in v4l2_read()
316 ret = vdev->fops->read(filp, buf, sz, off); in v4l2_read()
330 if (!vdev->fops->write) in v4l2_write()
333 ret = vdev->fops->write(filp, buf, sz, off); in v4l2_write()
347 if (!vdev->fops->poll) in v4l2_poll()
350 res = vdev->fops->poll(filp, poll); in v4l2_poll()
364 if (vdev->fops->unlocked_ioctl) { in v4l2_ioctl()
366 ret = vdev->fops->unlocked_ioctl(filp, cmd, arg); in v4l2_ioctl()
383 if (!vdev->fops->get_unmapped_area) in v4l2_get_unmapped_area()
387 ret = vdev->fops->get_unmapped_area(filp, addr, len, pgoff, flags); in v4l2_get_unmapped_area()
[all …]
/linux/fs/
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()
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 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.c830 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/w1/
H A Dw1.c165 .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/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.c111 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/kernel/bpf/
H A Dtrampoline.c189 tr->fops = &direct_ops; in direct_ops_alloc()
222 err = update_ftrace_direct_add(tr->fops, hash); in direct_ops_add()
234 err = update_ftrace_direct_del(tr->fops, hash); in direct_ops_del()
246 err = update_ftrace_direct_mod(tr->fops, hash, lock_direct_mutex); in direct_ops_mod()
259 tr->fops = kzalloc_obj(struct ftrace_ops, GFP_KERNEL); in direct_ops_alloc()
260 if (!tr->fops) in direct_ops_alloc()
262 tr->fops->private = tr; in direct_ops_alloc()
263 tr->fops->ops_func = bpf_tramp_ftrace_ops_func; in direct_ops_alloc()
269 if (!tr->fops) in direct_ops_free()
271 ftrace_free_filter(tr->fops); in direct_ops_free()
[all …]
/linux/fs/debugfs/
H A Dinode.c458 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 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,

12345678910>>...23