/linux-6.6.21/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-6.6.21/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-6.6.21/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() 172 const struct file_operations *fops, in anon_inode_getfile_secure() argument 176 return __anon_inode_getfile(name, fops, priv, flags, in anon_inode_getfile_secure() 181 const struct file_operations *fops, in __anon_inode_getfd() argument 194 file = __anon_inode_getfile(name, fops, priv, flags, context_inode, 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() 658 void cdev_init(struct cdev *cdev, const struct file_operations *fops) in cdev_init() argument 663 cdev->ops = fops; in cdev_init()
|
/linux-6.6.21/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() 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-6.6.21/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-6.6.21/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-6.6.21/sound/ |
D | sound_core.c | 159 …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-6.6.21/tools/bpf/bpftool/skeleton/ |
D | pid_iter.bpf.c | 71 const void *fops; in iter() local 78 fops = &bpf_prog_fops; in iter() 81 fops = &bpf_map_fops; in iter() 84 fops = &btf_fops; in iter() 87 fops = &bpf_link_fops; in iter() 93 if (file->f_op != fops) in iter()
|
/linux-6.6.21/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, 19 const struct file_operations *fops, 22 int anon_inode_getfd(const char *name, const struct file_operations *fops, 25 const struct file_operations *fops,
|
/linux-6.6.21/block/ |
D | ioctl.c | 251 if (disk->fops->ioctl) in blkdev_compat_ptr_ioctl() 252 return disk->fops->ioctl(bdev, mode, cmd, in blkdev_compat_ptr_ioctl() 278 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_register() 296 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_reserve() 314 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_release() 332 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_preempt() 350 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_clear() 392 if (bdev->bd_disk->fops->set_read_only) { in blkdev_roset() 393 ret = bdev->bd_disk->fops->set_read_only(bdev, n); in blkdev_roset() 410 if (!disk->fops->getgeo) in blkdev_getgeo() [all …]
|
/linux-6.6.21/drivers/misc/cxl/ |
D | api.c | 58 const struct file_operations *fops, in cxl_getfile() argument 67 if (fops->owner && !try_module_get(fops->owner)) in cxl_getfile() 84 flags & (O_ACCMODE | O_NONBLOCK), fops); in cxl_getfile() 97 module_put(fops->owner); in cxl_getfile() 385 #define PATCH_FOPS(NAME) if (!fops->NAME) fops->NAME = afu_fops.NAME 388 struct file *cxl_get_fd(struct cxl_context *ctx, struct file_operations *fops, in cxl_get_fd() argument 410 if (fops) { in cxl_get_fd() 419 fops = (struct file_operations *)&afu_fops; in cxl_get_fd() 422 file = cxl_getfile(name, fops, ctx, flags); in cxl_get_fd()
|
/linux-6.6.21/arch/s390/kernel/ |
D | sysinfo.c | 525 const struct file_operations *fops; member 530 {.fops = &stsi_1_1_1_fs_ops, .name = "1_1_1"}, 531 {.fops = &stsi_1_2_1_fs_ops, .name = "1_2_1"}, 532 {.fops = &stsi_1_2_2_fs_ops, .name = "1_2_2"}, 533 {.fops = &stsi_2_2_1_fs_ops, .name = "2_2_1"}, 534 {.fops = &stsi_2_2_2_fs_ops, .name = "2_2_2"}, 535 {.fops = &stsi_3_2_2_fs_ops, .name = "3_2_2"}, 536 {.fops = &stsi_15_1_2_fs_ops, .name = "15_1_2"}, 537 {.fops = &stsi_15_1_3_fs_ops, .name = "15_1_3"}, 538 {.fops = &stsi_15_1_4_fs_ops, .name = "15_1_4"}, [all …]
|
/linux-6.6.21/kernel/ |
D | kexec_file.c | 54 const struct kexec_file_ops * const *fops; in kexec_image_probe_default() local 57 for (fops = &kexec_file_loaders[0]; *fops && (*fops)->probe; ++fops) { in kexec_image_probe_default() 58 ret = (*fops)->probe(buf, buf_len); in kexec_image_probe_default() 60 image->fops = *fops; in kexec_image_probe_default() 70 if (!image->fops || !image->fops->load) in kexec_image_load_default() 73 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() 149 if (!image->fops || !image->fops->verify_sig) { in kexec_image_verify_sig() 154 return image->fops->verify_sig(buf, buf_len); in kexec_image_verify_sig()
|
/linux-6.6.21/arch/s390/lib/ |
D | test_unwind.c | 270 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-6.6.21/arch/x86/kernel/cpu/mce/ |
D | inject.c | 698 const struct file_operations *fops; member 701 { .name = "status", .fops = &status_fops, .perm = S_IRUSR | S_IWUSR }, 702 { .name = "misc", .fops = &misc_fops, .perm = S_IRUSR | S_IWUSR }, 703 { .name = "addr", .fops = &addr_fops, .perm = S_IRUSR | S_IWUSR }, 704 { .name = "synd", .fops = &synd_fops, .perm = S_IRUSR | S_IWUSR }, 705 { .name = "ipid", .fops = &ipid_fops, .perm = S_IRUSR | S_IWUSR }, 706 { .name = "bank", .fops = &bank_fops, .perm = S_IRUSR | S_IWUSR }, 707 { .name = "flags", .fops = &flags_fops, .perm = S_IRUSR | S_IWUSR }, 708 { .name = "cpu", .fops = &extcpu_fops, .perm = S_IRUSR | S_IWUSR }, 709 { .name = "README", .fops = &readme_fops, .perm = S_IRUSR | S_IRGRP | S_IROTH }, [all …]
|
/linux-6.6.21/kernel/bpf/ |
D | trampoline.c | 152 tr->fops = kzalloc(sizeof(struct ftrace_ops), GFP_KERNEL); in bpf_trampoline_lookup() 153 if (!tr->fops) { in bpf_trampoline_lookup() 158 tr->fops->private = tr; in bpf_trampoline_lookup() 159 tr->fops->ops_func = bpf_tramp_ftrace_ops_func; in bpf_trampoline_lookup() 180 ret = unregister_ftrace_direct(tr->fops, (long)old_addr, false); in unregister_fentry() 195 ret = modify_ftrace_direct(tr->fops, (long)new_addr); in modify_fentry() 197 ret = modify_ftrace_direct_nolock(tr->fops, (long)new_addr); in modify_fentry() 213 if (!tr->fops) in register_fentry() 219 ftrace_set_filter_ip(tr->fops, (unsigned long)ip, 0, 1); in register_fentry() 220 ret = register_ftrace_direct(tr->fops, (long)new_addr); in register_fentry() [all …]
|
/linux-6.6.21/drivers/firmware/efi/ |
D | vars.c | 29 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-6.6.21/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_core.c | 873 int blocksize = priv->fops->writeN_block_size; in rtl8xxxu_writeN() 1995 priv->fops->reset_8051(priv); in rtl8xxxu_start_firmware() 2015 if (priv->fops->init_reg_hmtfr) in rtl8xxxu_start_firmware() 2056 priv->fops->reset_8051(priv); in rtl8xxxu_download_firmware() 2206 const struct rtl8xxxu_reg8val *array = priv->fops->mactable; in rtl8xxxu_init_mac() 2331 priv->fops->init_phy_bb(priv); in rtl8xxxu_init_phy_bb() 2393 if (priv->fops->set_crystal_cap) in rtl8xxxu_init_phy_bb() 2394 priv->fops->set_crystal_cap(priv, priv->default_crystal_cap); in rtl8xxxu_init_phy_bb() 2542 last_tx_page = priv->fops->total_page_num; in rtl8xxxu_init_llt_table() 2544 if (priv->fops->last_llt_entry) in rtl8xxxu_init_llt_table() [all …]
|
/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/drivers/w1/ |
D | w1.c | 165 .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 …]
|