/Linux-v5.15/scripts/coccinelle/api/ |
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 …]
|
D | simple_open.cocci | 29 identifier fops; 32 struct file_operations fops = { 56 identifier fops; 60 struct file_operations fops = {
|
/Linux-v5.15/net/core/ |
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-v5.15/fs/ |
D | anon_inodes.c | 79 const struct file_operations *fops, in __anon_inode_getfile() argument 87 if (fops->owner && !try_module_get(fops->owner)) in __anon_inode_getfile() 110 flags & (O_ACCMODE | O_NONBLOCK), fops); in __anon_inode_getfile() 123 module_put(fops->owner); in __anon_inode_getfile() 144 const struct file_operations *fops, in anon_inode_getfile() argument 147 return __anon_inode_getfile(name, fops, priv, flags, NULL, false); in anon_inode_getfile() 152 const struct file_operations *fops, in __anon_inode_getfd() argument 165 file = __anon_inode_getfile(name, fops, priv, flags, context_inode, in __anon_inode_getfd() 197 int anon_inode_getfd(const char *name, const struct file_operations *fops, in anon_inode_getfd() argument 200 return __anon_inode_getfd(name, fops, priv, flags, NULL, false); in anon_inode_getfd() [all …]
|
D | char_dev.c | 270 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() 651 void cdev_init(struct cdev *cdev, const struct file_operations *fops) in cdev_init() argument 656 cdev->ops = fops; in cdev_init()
|
/Linux-v5.15/kernel/livepatch/ |
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() 161 WARN_ON(unregister_ftrace_function(&ops->fops)); in klp_unpatch_func() 162 WARN_ON(ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0)); in klp_unpatch_func() 201 ops->fops.func = klp_ftrace_handler; in klp_patch_func() 202 ops->fops.flags = FTRACE_OPS_FL_DYNAMIC | in klp_patch_func() 214 ret = ftrace_set_filter_ip(&ops->fops, ftrace_loc, 0, 0); in klp_patch_func() 221 ret = register_ftrace_function(&ops->fops); in klp_patch_func() 225 ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0); in klp_patch_func()
|
/Linux-v5.15/tools/bpf/bpftool/skeleton/ |
D | pid_iter.bpf.c | 47 const void *fops; in iter() local 54 fops = &bpf_prog_fops; in iter() 57 fops = &bpf_map_fops; in iter() 60 fops = &btf_fops; in iter() 63 fops = &bpf_link_fops; in iter() 69 if (file->f_op != fops) in iter()
|
/Linux-v5.15/drivers/media/mc/ |
D | mc-devnode.c | 75 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.15/drivers/hv/ |
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() 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.15/sound/ |
D | sound_core.c | 162 …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.15/include/linux/ |
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);
|
D | anon_inodes.h | 16 const struct file_operations *fops, 18 int anon_inode_getfd(const char *name, const struct file_operations *fops, 21 const struct file_operations *fops,
|
D | debugfs.h | 71 const struct file_operations *fops); 74 const struct file_operations *fops); 78 const struct file_operations *fops, 182 const struct file_operations *fops) 190 const struct file_operations *fops) 197 const struct file_operations *fops,
|
/Linux-v5.15/block/ |
D | ioctl.c | 234 if (disk->fops->ioctl) in blkdev_compat_ptr_ioctl() 235 return disk->fops->ioctl(bdev, mode, cmd, in blkdev_compat_ptr_ioctl() 246 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_register() 264 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_reserve() 282 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_release() 300 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_preempt() 318 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_clear() 353 if (bdev->bd_disk->fops->set_read_only) { in blkdev_roset() 354 ret = bdev->bd_disk->fops->set_read_only(bdev, n); in blkdev_roset() 371 if (!disk->fops->getgeo) in blkdev_getgeo() [all …]
|
/Linux-v5.15/drivers/misc/cxl/ |
D | api.c | 57 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.15/arch/s390/kernel/ |
D | sysinfo.c | 524 const struct file_operations *fops; member 529 {.fops = &stsi_1_1_1_fs_ops, .name = "1_1_1"}, 530 {.fops = &stsi_1_2_1_fs_ops, .name = "1_2_1"}, 531 {.fops = &stsi_1_2_2_fs_ops, .name = "1_2_2"}, 532 {.fops = &stsi_2_2_1_fs_ops, .name = "2_2_1"}, 533 {.fops = &stsi_2_2_2_fs_ops, .name = "2_2_2"}, 534 {.fops = &stsi_3_2_2_fs_ops, .name = "3_2_2"}, 535 {.fops = &stsi_15_1_2_fs_ops, .name = "15_1_2"}, 536 {.fops = &stsi_15_1_3_fs_ops, .name = "15_1_3"}, 537 {.fops = &stsi_15_1_4_fs_ops, .name = "15_1_4"}, [all …]
|
/Linux-v5.15/scripts/coccinelle/api/debugfs/ |
D | debugfs_simple_attr.cocci | 57 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.15/arch/x86/kernel/cpu/mce/ |
D | inject.c | 653 const struct file_operations *fops; member 656 { .name = "status", .fops = &status_fops, .perm = S_IRUSR | S_IWUSR }, 657 { .name = "misc", .fops = &misc_fops, .perm = S_IRUSR | S_IWUSR }, 658 { .name = "addr", .fops = &addr_fops, .perm = S_IRUSR | S_IWUSR }, 659 { .name = "synd", .fops = &synd_fops, .perm = S_IRUSR | S_IWUSR }, 660 { .name = "ipid", .fops = &ipid_fops, .perm = S_IRUSR | S_IWUSR }, 661 { .name = "bank", .fops = &bank_fops, .perm = S_IRUSR | S_IWUSR }, 662 { .name = "flags", .fops = &flags_fops, .perm = S_IRUSR | S_IWUSR }, 663 { .name = "cpu", .fops = &extcpu_fops, .perm = S_IRUSR | S_IWUSR }, 664 { .name = "README", .fops = &readme_fops, .perm = S_IRUSR | S_IRGRP | S_IROTH }, [all …]
|
/Linux-v5.15/kernel/ |
D | kexec_file.c | 42 const struct kexec_file_ops * const *fops; in kexec_image_probe_default() local 45 for (fops = &kexec_file_loaders[0]; *fops && (*fops)->probe; ++fops) { in kexec_image_probe_default() 46 ret = (*fops)->probe(buf, buf_len); in kexec_image_probe_default() 48 image->fops = *fops; in kexec_image_probe_default() 65 if (!image->fops || !image->fops->load) in kexec_image_load_default() 68 return image->fops->load(image, image->kernel_buf, in kexec_image_load_default() 81 if (!image->fops || !image->fops->cleanup) in kexec_image_post_load_cleanup_default() 84 return image->fops->cleanup(image->image_loader_data); in kexec_image_post_load_cleanup_default() 96 if (!image->fops || !image->fops->verify_sig) { in kexec_image_verify_sig_default() 101 return image->fops->verify_sig(buf, buf_len); in kexec_image_verify_sig_default()
|
/Linux-v5.15/drivers/media/v4l2-core/ |
D | v4l2-dev.c | 311 if (!vdev->fops->read) in v4l2_read() 314 ret = vdev->fops->read(filp, buf, sz, off); in v4l2_read() 328 if (!vdev->fops->write) in v4l2_write() 331 ret = vdev->fops->write(filp, buf, sz, off); in v4l2_write() 345 if (!vdev->fops->poll) in v4l2_poll() 348 res = vdev->fops->poll(filp, poll); in v4l2_poll() 362 if (vdev->fops->unlocked_ioctl) { in v4l2_ioctl() 364 ret = vdev->fops->unlocked_ioctl(filp, cmd, arg); in v4l2_ioctl() 381 if (!vdev->fops->get_unmapped_area) in v4l2_get_unmapped_area() 385 ret = vdev->fops->get_unmapped_area(filp, addr, len, pgoff, flags); in v4l2_get_unmapped_area() [all …]
|
/Linux-v5.15/drivers/s390/char/ |
D | tape_class.c | 45 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.15/security/ |
D | inode.c | 109 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.15/drivers/w1/ |
D | w1.c | 170 .fops = &w1_default_fops, 618 const struct w1_family_ops *fops; in w1_family_notify() local 621 fops = sl->family->fops; in w1_family_notify() 623 if (!fops) in w1_family_notify() 629 if (fops->add_slave) { in w1_family_notify() 630 err = fops->add_slave(sl); in w1_family_notify() 638 if (fops->groups) { in w1_family_notify() 639 err = sysfs_create_groups(&sl->dev.kobj, fops->groups); in w1_family_notify() 647 if (IS_REACHABLE(CONFIG_HWMON) && fops->chip_info) { in w1_family_notify() 651 fops->chip_info, in w1_family_notify() [all …]
|
/Linux-v5.15/drivers/gpu/drm/i915/gt/ |
D | debugfs_gt.c | 38 umode_t mode = files->fops->write ? 0644 : 0444; in intel_gt_debugfs_register_files() 43 files->fops); in intel_gt_debugfs_register_files()
|
/Linux-v5.15/drivers/cxl/core/ |
D | memdev.c | 142 cdevm_fops = container_of(cdev->ops, typeof(*cdevm_fops), fops); in cxl_memdev_unregister() 150 const struct file_operations *fops) in cxl_memdev_alloc() argument 176 cdev_init(cdev, fops); in cxl_memdev_alloc() 193 cxlmd = cxl_memdev_alloc(cxlm, &cdevm_fops->fops); in devm_cxl_add_memdev()
|