/Linux-v4.19/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-v4.19/kernel/livepatch/ |
D | patch.c | 54 struct ftrace_ops *fops, in klp_ftrace_handler() argument 61 ops = container_of(fops, struct klp_ops, fops); in klp_ftrace_handler() 159 WARN_ON(unregister_ftrace_function(&ops->fops)); in klp_unpatch_func() 160 WARN_ON(ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0)); in klp_unpatch_func() 198 ops->fops.func = klp_ftrace_handler; in klp_patch_func() 199 ops->fops.flags = FTRACE_OPS_FL_SAVE_REGS | in klp_patch_func() 208 ret = ftrace_set_filter_ip(&ops->fops, ftrace_loc, 0, 0); in klp_patch_func() 215 ret = register_ftrace_function(&ops->fops); in klp_patch_func() 219 ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0); in klp_patch_func()
|
/Linux-v4.19/fs/ |
D | anon_inodes.c | 71 const struct file_operations *fops, in anon_inode_getfile() argument 79 if (fops->owner && !try_module_get(fops->owner)) in anon_inode_getfile() 88 flags & (O_ACCMODE | O_NONBLOCK), fops); in anon_inode_getfile() 100 module_put(fops->owner); in anon_inode_getfile() 121 int anon_inode_getfd(const char *name, const struct file_operations *fops, in anon_inode_getfd() argument 132 file = anon_inode_getfile(name, fops, priv, flags); in anon_inode_getfd()
|
D | char_dev.c | 273 const struct file_operations *fops) in __register_chrdev() argument 287 cdev->owner = fops->owner; in __register_chrdev() 288 cdev->ops = fops; in __register_chrdev() 378 const struct file_operations *fops; in chrdev_open() local 411 fops = fops_get(p->ops); in chrdev_open() 412 if (!fops) in chrdev_open() 415 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-v4.19/drivers/media/ |
D | media-devnode.c | 83 if (!devnode->fops->read) in media_read() 87 return devnode->fops->read(filp, buf, sz, off); in media_read() 95 if (!devnode->fops->write) in media_write() 99 return devnode->fops->write(filp, buf, sz, off); in media_write() 109 if (!devnode->fops->poll) in media_poll() 111 return devnode->fops->poll(filp, poll); in media_poll() 134 return __media_ioctl(filp, cmd, arg, devnode->fops->ioctl); in media_ioctl() 144 return __media_ioctl(filp, cmd, arg, devnode->fops->compat_ioctl); in media_compat_ioctl() 175 if (devnode->fops->open) { in media_open() 176 ret = devnode->fops->open(filp); in media_open() [all …]
|
/Linux-v4.19/drivers/hv/ |
D | hv_utils_transport.c | 43 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_read() 91 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_write() 111 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_poll() 130 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_open() 174 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_release() 297 hvt->fops.owner = THIS_MODULE; in hvutil_transport_init() 298 hvt->fops.read = hvt_op_read; in hvutil_transport_init() 299 hvt->fops.write = hvt_op_write; in hvutil_transport_init() 300 hvt->fops.poll = hvt_op_poll; in hvutil_transport_init() 301 hvt->fops.open = hvt_op_open; in hvutil_transport_init() [all …]
|
/Linux-v4.19/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 | 15 const struct file_operations *fops, 17 int anon_inode_getfd(const char *name, const struct file_operations *fops,
|
D | debugfs.h | 63 const struct file_operations *fops); 66 const struct file_operations *fops); 70 const struct file_operations *fops, 171 const struct file_operations *fops) in debugfs_create_file() argument 179 const struct file_operations *fops) in debugfs_create_file_unsafe() argument 186 const struct file_operations *fops, in debugfs_create_file_size() argument
|
/Linux-v4.19/sound/ |
D | sound_core.c | 167 …t sound_unit * s, struct sound_unit **list, const struct file_operations *fops, int index, int low… in __sound_insert_unit() argument 203 s->unit_fops=fops; in __sound_insert_unit() 247 static int sound_insert_unit(struct sound_unit **list, const struct file_operations *fops, int inde… in sound_insert_unit() argument 257 r = __sound_insert_unit(s, list, fops, index, low, top); in sound_insert_unit() 354 int register_sound_special_device(const struct file_operations *fops, int unit, in register_sound_special_device() argument 415 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, in register_sound_special_device() 421 int register_sound_special(const struct file_operations *fops, int unit) in register_sound_special() argument 423 return register_sound_special_device(fops, unit, NULL); in register_sound_special() 440 int register_sound_mixer(const struct file_operations *fops, int dev) in register_sound_mixer() argument 442 return sound_insert_unit(&chains[0], fops, dev, 0, 128, in register_sound_mixer() [all …]
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | rtas_flash.c | 662 const struct file_operations fops; member 670 .fops.read = rtas_flash_read_msg, 671 .fops.write = rtas_flash_write, 672 .fops.release = rtas_flash_release, 673 .fops.llseek = default_llseek, 679 .fops.read = rtas_flash_read_num, 680 .fops.write = rtas_flash_write, 681 .fops.release = rtas_flash_release, 682 .fops.llseek = default_llseek, 688 .fops.read = validate_flash_read, [all …]
|
/Linux-v4.19/drivers/misc/cxl/ |
D | api.c | 66 const struct file_operations *fops, in cxl_getfile() argument 75 if (fops->owner && !try_module_get(fops->owner)) in cxl_getfile() 92 flags & (O_ACCMODE | O_NONBLOCK), fops); in cxl_getfile() 105 module_put(fops->owner); in cxl_getfile() 393 #define PATCH_FOPS(NAME) if (!fops->NAME) fops->NAME = afu_fops.NAME 396 struct file *cxl_get_fd(struct cxl_context *ctx, struct file_operations *fops, in cxl_get_fd() argument 418 if (fops) { in cxl_get_fd() 427 fops = (struct file_operations *)&afu_fops; in cxl_get_fd() 430 file = cxl_getfile(name, fops, ctx, flags); in cxl_get_fd()
|
/Linux-v4.19/arch/s390/kernel/ |
D | sysinfo.c | 521 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-v4.19/scripts/coccinelle/api/ |
D | simple_open.cocci | 29 identifier fops; 32 struct file_operations fops = { 56 identifier fops; 60 struct file_operations fops = {
|
/Linux-v4.19/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-v4.19/drivers/oprofile/ |
D | oprofilefs.c | 136 const struct file_operations *fops, int perm, void *priv) in __oprofilefs_create_file() argument 156 inode->i_fop = fops; in __oprofilefs_create_file() 203 char const *name, const struct file_operations *fops) in oprofilefs_create_file() argument 205 return __oprofilefs_create_file(root, name, fops, 0644, NULL); in oprofilefs_create_file() 210 char const *name, const struct file_operations *fops, int perm) in oprofilefs_create_file_perm() argument 212 return __oprofilefs_create_file(root, name, fops, perm, NULL); in oprofilefs_create_file_perm()
|
/Linux-v4.19/kernel/ |
D | kexec_file.c | 44 const struct kexec_file_ops * const *fops; in kexec_image_probe_default() local 47 for (fops = &kexec_file_loaders[0]; *fops && (*fops)->probe; ++fops) { in kexec_image_probe_default() 48 ret = (*fops)->probe(buf, buf_len); in kexec_image_probe_default() 50 image->fops = *fops; in kexec_image_probe_default() 67 if (!image->fops || !image->fops->load) in kexec_image_load_default() 70 return image->fops->load(image, image->kernel_buf, in kexec_image_load_default() 83 if (!image->fops || !image->fops->cleanup) in kexec_image_post_load_cleanup_default() 86 return image->fops->cleanup(image->image_loader_data); in kexec_image_post_load_cleanup_default() 98 if (!image->fops || !image->fops->verify_sig) { in kexec_image_verify_sig_default() 103 return image->fops->verify_sig(buf, buf_len); in kexec_image_verify_sig_default()
|
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/ |
D | mce-inject.c | 646 const struct file_operations *fops; member 649 { .name = "status", .fops = &status_fops, .perm = S_IRUSR | S_IWUSR }, 650 { .name = "misc", .fops = &misc_fops, .perm = S_IRUSR | S_IWUSR }, 651 { .name = "addr", .fops = &addr_fops, .perm = S_IRUSR | S_IWUSR }, 652 { .name = "synd", .fops = &synd_fops, .perm = S_IRUSR | S_IWUSR }, 653 { .name = "bank", .fops = &bank_fops, .perm = S_IRUSR | S_IWUSR }, 654 { .name = "flags", .fops = &flags_fops, .perm = S_IRUSR | S_IWUSR }, 655 { .name = "cpu", .fops = &extcpu_fops, .perm = S_IRUSR | S_IWUSR }, 656 { .name = "README", .fops = &readme_fops, .perm = S_IRUSR | S_IRGRP | S_IROTH }, 676 dfs_fls[i].fops); in debugfs_init()
|
/Linux-v4.19/drivers/media/v4l2-core/ |
D | v4l2-dev.c | 314 if (!vdev->fops->read) in v4l2_read() 317 ret = vdev->fops->read(filp, buf, sz, off); in v4l2_read() 331 if (!vdev->fops->write) in v4l2_write() 334 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() 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-v4.19/net/batman-adv/ |
D | debugfs.c | 144 const struct file_operations fops; member 178 .fops = { \ 246 .fops = { \ 282 &(*bat_debug)->fops); in batadv_debugfs_init() 334 &(*bat_debug)->fops); in batadv_debugfs_add_hardif() 417 dev, &(*bat_debug)->fops); in batadv_debugfs_add_meshif()
|
/Linux-v4.19/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-v4.19/security/ |
D | inode.c | 103 const struct file_operations *fops, in securityfs_create_dentry() argument 153 inode->i_fop = fops; in securityfs_create_dentry() 196 const struct file_operations *fops) in securityfs_create_file() argument 198 return securityfs_create_dentry(name, mode, parent, data, fops, NULL); in securityfs_create_file()
|
/Linux-v4.19/block/ |
D | ioctl.c | 302 if (disk->fops->ioctl) in __blkdev_driver_ioctl() 303 return disk->fops->ioctl(bdev, mode, cmd, arg); in __blkdev_driver_ioctl() 317 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_register() 335 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_reserve() 353 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_release() 371 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_preempt() 389 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_clear() 467 if (!disk->fops->getgeo) in blkdev_getgeo() 476 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo()
|
/Linux-v4.19/drivers/w1/ |
D | w1.c | 177 .fops = &w1_default_fops, 625 struct w1_family_ops *fops; in w1_family_notify() local 628 fops = sl->family->fops; in w1_family_notify() 630 if (!fops) in w1_family_notify() 636 if (fops->add_slave) { in w1_family_notify() 637 err = fops->add_slave(sl); in w1_family_notify() 645 if (fops->groups) { in w1_family_notify() 646 err = sysfs_create_groups(&sl->dev.kobj, fops->groups); in w1_family_notify() 654 if (IS_REACHABLE(CONFIG_HWMON) && fops->chip_info) { in w1_family_notify() 658 fops->chip_info, in w1_family_notify() [all …]
|
/Linux-v4.19/fs/debugfs/ |
D | inode.c | 396 const struct file_operations *fops) in debugfs_create_file() argument 400 fops ? &debugfs_full_proxy_file_operations : in debugfs_create_file() 402 fops); in debugfs_create_file() 435 const struct file_operations *fops) in debugfs_create_file_unsafe() argument 439 fops ? &debugfs_open_proxy_file_operations : in debugfs_create_file_unsafe() 441 fops); in debugfs_create_file_unsafe() 474 const struct file_operations *fops, in debugfs_create_file_size() argument 477 struct dentry *de = debugfs_create_file(name, mode, parent, data, fops); in debugfs_create_file_size()
|