Home
last modified time | relevance | path

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

12345678910>>...26

/Linux-v5.4/scripts/coccinelle/api/
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 …]
Dsimple_open.cocci29 identifier fops;
32 struct file_operations fops = {
56 identifier fops;
60 struct file_operations fops = {
/Linux-v5.4/net/core/
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-v5.4/fs/
Danon_inodes.c75 const struct file_operations *fops, in anon_inode_getfile() argument
83 if (fops->owner && !try_module_get(fops->owner)) in anon_inode_getfile()
92 flags & (O_ACCMODE | O_NONBLOCK), fops); in anon_inode_getfile()
104 module_put(fops->owner); in anon_inode_getfile()
125 int anon_inode_getfd(const char *name, const struct file_operations *fops, in anon_inode_getfd() argument
136 file = anon_inode_getfile(name, fops, priv, flags); in anon_inode_getfd()
Dchar_dev.c270 const struct file_operations *fops) in __register_chrdev() argument
284 cdev->owner = fops->owner; in __register_chrdev()
285 cdev->ops = fops; in __register_chrdev()
375 const struct file_operations *fops; in chrdev_open() local
408 fops = fops_get(p->ops); in chrdev_open()
409 if (!fops) in chrdev_open()
412 replace_fops(filp, fops); in chrdev_open()
648 void cdev_init(struct cdev *cdev, const struct file_operations *fops) in cdev_init() argument
653 cdev->ops = fops; in cdev_init()
/Linux-v5.4/kernel/livepatch/
Dpatch.c42 struct ftrace_ops *fops, in klp_ftrace_handler() argument
49 ops = container_of(fops, struct klp_ops, fops); in klp_ftrace_handler()
156 WARN_ON(unregister_ftrace_function(&ops->fops)); in klp_unpatch_func()
157 WARN_ON(ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0)); in klp_unpatch_func()
196 ops->fops.func = klp_ftrace_handler; in klp_patch_func()
197 ops->fops.flags = FTRACE_OPS_FL_SAVE_REGS | in klp_patch_func()
206 ret = ftrace_set_filter_ip(&ops->fops, ftrace_loc, 0, 0); in klp_patch_func()
213 ret = register_ftrace_function(&ops->fops); in klp_patch_func()
217 ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0); in klp_patch_func()
/Linux-v5.4/drivers/media/mc/
Dmc-devnode.c75 if (!devnode->fops->read) in media_read()
79 return devnode->fops->read(filp, buf, sz, off); in media_read()
87 if (!devnode->fops->write) in media_write()
91 return devnode->fops->write(filp, buf, sz, off); in media_write()
101 if (!devnode->fops->poll) in media_poll()
103 return devnode->fops->poll(filp, poll); in media_poll()
126 return __media_ioctl(filp, cmd, arg, devnode->fops->ioctl); in media_ioctl()
136 return __media_ioctl(filp, cmd, arg, devnode->fops->compat_ioctl); in media_compat_ioctl()
167 if (devnode->fops->open) { in media_open()
168 ret = devnode->fops->open(filp); in media_open()
[all …]
/Linux-v5.4/drivers/hv/
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()
164 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-v5.4/sound/
Dsound_core.c162 …t sound_unit * s, struct sound_unit **list, const struct file_operations *fops, int index, int low… in __sound_insert_unit() argument
198 s->unit_fops=fops; in __sound_insert_unit()
242 static int sound_insert_unit(struct sound_unit **list, const struct file_operations *fops, int inde… in sound_insert_unit() argument
252 r = __sound_insert_unit(s, list, fops, index, low, top); in sound_insert_unit()
350 int register_sound_special_device(const struct file_operations *fops, int unit, in register_sound_special_device() argument
411 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, in register_sound_special_device()
417 int register_sound_special(const struct file_operations *fops, int unit) in register_sound_special() argument
419 return register_sound_special_device(fops, unit, NULL); in register_sound_special()
436 int register_sound_mixer(const struct file_operations *fops, int dev) in register_sound_mixer() argument
438 return sound_insert_unit(&chains[0], fops, dev, 0, 128, in register_sound_mixer()
[all …]
/Linux-v5.4/include/linux/
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);
Danon_inodes.h15 const struct file_operations *fops,
17 int anon_inode_getfd(const char *name, const struct file_operations *fops,
Ddebugfs.h63 const struct file_operations *fops);
66 const struct file_operations *fops);
70 const struct file_operations *fops,
170 const struct file_operations *fops) in debugfs_create_file() argument
178 const struct file_operations *fops) in debugfs_create_file_unsafe() argument
185 const struct file_operations *fops, in debugfs_create_file_size() argument
/Linux-v5.4/arch/powerpc/kernel/
Drtas_flash.c658 const struct file_operations fops; member
666 .fops.read = rtas_flash_read_msg,
667 .fops.write = rtas_flash_write,
668 .fops.release = rtas_flash_release,
669 .fops.llseek = default_llseek,
675 .fops.read = rtas_flash_read_num,
676 .fops.write = rtas_flash_write,
677 .fops.release = rtas_flash_release,
678 .fops.llseek = default_llseek,
684 .fops.read = validate_flash_read,
[all …]
/Linux-v5.4/drivers/misc/cxl/
Dapi.c57 const struct file_operations *fops, in cxl_getfile() argument
66 if (fops->owner && !try_module_get(fops->owner)) in cxl_getfile()
83 flags & (O_ACCMODE | O_NONBLOCK), fops); in cxl_getfile()
96 module_put(fops->owner); in cxl_getfile()
384 #define PATCH_FOPS(NAME) if (!fops->NAME) fops->NAME = afu_fops.NAME
387 struct file *cxl_get_fd(struct cxl_context *ctx, struct file_operations *fops, in cxl_get_fd() argument
409 if (fops) { in cxl_get_fd()
418 fops = (struct file_operations *)&afu_fops; in cxl_get_fd()
421 file = cxl_getfile(name, fops, ctx, flags); in cxl_get_fd()
/Linux-v5.4/arch/s390/kernel/
Dsysinfo.c521 const struct file_operations *fops; member
526 {.fops = &stsi_1_1_1_fs_ops, .name = "1_1_1"},
527 {.fops = &stsi_1_2_1_fs_ops, .name = "1_2_1"},
528 {.fops = &stsi_1_2_2_fs_ops, .name = "1_2_2"},
529 {.fops = &stsi_2_2_1_fs_ops, .name = "2_2_1"},
530 {.fops = &stsi_2_2_2_fs_ops, .name = "2_2_2"},
531 {.fops = &stsi_3_2_2_fs_ops, .name = "3_2_2"},
532 {.fops = &stsi_15_1_2_fs_ops, .name = "15_1_2"},
533 {.fops = &stsi_15_1_3_fs_ops, .name = "15_1_3"},
534 {.fops = &stsi_15_1_4_fs_ops, .name = "15_1_4"},
[all …]
/Linux-v5.4/scripts/coccinelle/api/debugfs/
Ddebugfs_simple_attr.cocci57 fops << dsa.dsa_fops;
60 msg="%s should be defined with DEFINE_DEBUGFS_ATTRIBUTE" % (fops)
64 fops << dsa.dsa_fops;
67 msg="WARNING: %s should be defined with DEFINE_DEBUGFS_ATTRIBUTE" % (fops)
/Linux-v5.4/drivers/oprofile/
Doprofilefs.c137 const struct file_operations *fops, int perm, void *priv) in __oprofilefs_create_file() argument
157 inode->i_fop = fops; in __oprofilefs_create_file()
204 char const *name, const struct file_operations *fops) in oprofilefs_create_file() argument
206 return __oprofilefs_create_file(root, name, fops, 0644, NULL); in oprofilefs_create_file()
211 char const *name, const struct file_operations *fops, int perm) in oprofilefs_create_file_perm() argument
213 return __oprofilefs_create_file(root, name, fops, perm, NULL); in oprofilefs_create_file_perm()
/Linux-v5.4/arch/x86/kernel/cpu/mce/
Dinject.c648 const struct file_operations *fops; member
651 { .name = "status", .fops = &status_fops, .perm = S_IRUSR | S_IWUSR },
652 { .name = "misc", .fops = &misc_fops, .perm = S_IRUSR | S_IWUSR },
653 { .name = "addr", .fops = &addr_fops, .perm = S_IRUSR | S_IWUSR },
654 { .name = "synd", .fops = &synd_fops, .perm = S_IRUSR | S_IWUSR },
655 { .name = "bank", .fops = &bank_fops, .perm = S_IRUSR | S_IWUSR },
656 { .name = "flags", .fops = &flags_fops, .perm = S_IRUSR | S_IWUSR },
657 { .name = "cpu", .fops = &extcpu_fops, .perm = S_IRUSR | S_IWUSR },
658 { .name = "README", .fops = &readme_fops, .perm = S_IRUSR | S_IRGRP | S_IROTH },
669 &i_mce, dfs_fls[i].fops); in debugfs_init()
/Linux-v5.4/drivers/media/v4l2-core/
Dv4l2-dev.c310 if (!vdev->fops->read) in v4l2_read()
313 ret = vdev->fops->read(filp, buf, sz, off); in v4l2_read()
327 if (!vdev->fops->write) in v4l2_write()
330 ret = vdev->fops->write(filp, buf, sz, off); in v4l2_write()
343 if (!vdev->fops->poll) in v4l2_poll()
346 res = vdev->fops->poll(filp, poll); in v4l2_poll()
358 if (vdev->fops->unlocked_ioctl) { in v4l2_ioctl()
360 ret = vdev->fops->unlocked_ioctl(filp, cmd, arg); in v4l2_ioctl()
377 if (!vdev->fops->get_unmapped_area) in v4l2_get_unmapped_area()
381 ret = vdev->fops->get_unmapped_area(filp, addr, len, pgoff, flags); in v4l2_get_unmapped_area()
[all …]
/Linux-v5.4/kernel/
Dkexec_file.c41 const struct kexec_file_ops * const *fops; in kexec_image_probe_default() local
44 for (fops = &kexec_file_loaders[0]; *fops && (*fops)->probe; ++fops) { in kexec_image_probe_default()
45 ret = (*fops)->probe(buf, buf_len); in kexec_image_probe_default()
47 image->fops = *fops; in kexec_image_probe_default()
64 if (!image->fops || !image->fops->load) in kexec_image_load_default()
67 return image->fops->load(image, image->kernel_buf, in kexec_image_load_default()
80 if (!image->fops || !image->fops->cleanup) in kexec_image_post_load_cleanup_default()
83 return image->fops->cleanup(image->image_loader_data); in kexec_image_post_load_cleanup_default()
95 if (!image->fops || !image->fops->verify_sig) { in kexec_image_verify_sig_default()
100 return image->fops->verify_sig(buf, buf_len); in kexec_image_verify_sig_default()
/Linux-v5.4/net/batman-adv/
Ddebugfs.c167 const struct file_operations fops; member
204 .fops = { \
272 .fops = { \
301 batadv_debugfs, NULL, &(*bat_debug)->fops); in batadv_debugfs_init()
333 &(*bat_debug)->fops); in batadv_debugfs_add_hardif()
396 &(*bat_debug)->fops); in batadv_debugfs_add_meshif()
/Linux-v5.4/drivers/s390/char/
Dtape_class.c45 const struct file_operations *fops, in register_tape_dev() argument
70 tcd->char_device->owner = fops->owner; in register_tape_dev()
71 tcd->char_device->ops = fops; in register_tape_dev()
/Linux-v5.4/security/
Dinode.c109 const struct file_operations *fops, in securityfs_create_dentry() argument
159 inode->i_fop = fops; in securityfs_create_dentry()
202 const struct file_operations *fops) in securityfs_create_file() argument
204 return securityfs_create_dentry(name, mode, parent, data, fops, NULL); in securityfs_create_file()
/Linux-v5.4/block/
Dioctl.c303 if (disk->fops->ioctl) in __blkdev_driver_ioctl()
304 return disk->fops->ioctl(bdev, mode, cmd, arg); in __blkdev_driver_ioctl()
318 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_register()
336 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_reserve()
354 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_release()
372 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_preempt()
390 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_clear()
468 if (!disk->fops->getgeo) in blkdev_getgeo()
477 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo()
/Linux-v5.4/drivers/w1/
Dw1.c168 .fops = &w1_default_fops,
616 struct w1_family_ops *fops; in w1_family_notify() local
619 fops = sl->family->fops; in w1_family_notify()
621 if (!fops) in w1_family_notify()
627 if (fops->add_slave) { in w1_family_notify()
628 err = fops->add_slave(sl); in w1_family_notify()
636 if (fops->groups) { in w1_family_notify()
637 err = sysfs_create_groups(&sl->dev.kobj, fops->groups); in w1_family_notify()
645 if (IS_REACHABLE(CONFIG_HWMON) && fops->chip_info) { in w1_family_notify()
649 fops->chip_info, in w1_family_notify()
[all …]

12345678910>>...26