Home
last modified time | relevance | path

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

12345678910>>...29

/openbmc/linux/scripts/coccinelle/api/
H A Dstream_open.cocci84 identifier fops;
91 identifier fops0.fops;
99 identifier fops0.fops;
107 identifier fops0.fops;
115 identifier fops0.fops;
123 identifier fops0.fops;
131 identifier fops0.fops;
228 fops << fops0.fops;
235 fops << fops0.fops;
295 fops << fops0.fops;
[all …]
H A Dsimple_open.cocci29 identifier fops;
32 struct file_operations fops = {
56 identifier fops;
60 struct file_operations fops = {
/openbmc/linux/net/core/
H A Dfailover.c50 struct failover_ops *fops; in failover_slave_register() local
62 if (fops && fops->slave_pre_register && 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
118 if (fops && fops->slave_pre_unregister && in failover_slave_unregister()
126 if (fops && fops->slave_unregister && in failover_slave_unregister()
138 struct failover_ops *fops; in failover_slave_link_change() local
152 if (fops && fops->slave_link_change && in failover_slave_link_change()
163 struct failover_ops *fops; in failover_slave_name_change() local
[all …]
/openbmc/linux/fs/
H A Danon_inodes.c79 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 …]
H A 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()
658 void cdev_init(struct cdev *cdev, const struct file_operations *fops) in cdev_init() argument
663 cdev->ops = fops; in cdev_init()
/openbmc/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()
/openbmc/linux/drivers/media/mc/
H A 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()
167 if (devnode->fops->open) { in media_open()
168 ret = devnode->fops->open(filp); in media_open()
184 if (devnode->fops->release) in media_release()
[all …]
/openbmc/linux/include/linux/
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 Danon_inodes.h16 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,
/openbmc/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()
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()
292 hvt->fops.release = hvt_op_release; in hvutil_transport_init()
[all …]
/openbmc/linux/tools/bpf/bpftool/skeleton/
H A Dpid_iter.bpf.c71 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()
/openbmc/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()
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()
461 int register_sound_dsp(const struct file_operations *fops, int dev) in register_sound_dsp() argument
[all …]
/openbmc/linux/block/
H A Dioctl.c252 if (disk->fops->ioctl) in blkdev_compat_ptr_ioctl()
253 return disk->fops->ioctl(bdev, mode, cmd, in blkdev_compat_ptr_ioctl()
279 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_register()
393 if (bdev->bd_disk->fops->set_read_only) { in blkdev_roset()
394 ret = bdev->bd_disk->fops->set_read_only(bdev, n); in blkdev_roset()
411 if (!disk->fops->getgeo) in blkdev_getgeo()
420 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo()
445 if (!disk->fops->getgeo) in compat_hdio_getgeo()
454 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo()
630 if (!bdev->bd_disk->fops->ioctl) in blkdev_ioctl()
[all …]
/openbmc/linux/drivers/misc/cxl/
H A Dapi.c58 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()
/openbmc/linux/arch/s390/kernel/
H A Dsysinfo.c525 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 …]
/openbmc/linux/kernel/
H A Dkexec_file.c54 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()
/openbmc/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()
/openbmc/linux/arch/x86/kernel/cpu/mce/
H A Dinject.c698 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 …]
/openbmc/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()
/openbmc/linux/kernel/bpf/
H A Dtrampoline.c153 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()
195 ret = modify_ftrace_direct(tr->fops, (long)new_addr); in modify_fentry()
213 if (!tr->fops) in register_fentry()
220 ret = register_ftrace_direct(tr->fops, (long)new_addr); in register_fentry()
464 tr->fops->func = NULL; in bpf_trampoline_update()
465 tr->fops->trampoline = 0; in bpf_trampoline_update()
813 if (tr->fops) { in bpf_trampoline_put()
814 ftrace_free_filter(tr->fops); in bpf_trampoline_put()
[all …]
/openbmc/linux/drivers/s390/char/
H A 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()
/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-dev.c311 if (!vdev->fops->read) in v4l2_read()
328 if (!vdev->fops->write) in v4l2_write()
345 if (!vdev->fops->poll) in v4l2_poll()
362 if (vdev->fops->unlocked_ioctl) { in v4l2_ioctl()
398 if (!vdev->fops->mmap) in v4l2_mmap()
401 ret = vdev->fops->mmap(filp, vm); in v4l2_mmap()
425 if (vdev->fops->open) { in v4l2_open()
427 ret = vdev->fops->open(filp); in v4l2_open()
453 if (vdev->fops->release) { in v4l2_release()
456 ret = vdev->fops->release(filp); in v4l2_release()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtl8xxxu/
H A Drtl8xxxu_core.c3545 if (priv->fops->has_s0s1) in rtl8723a_phy_lc_calibrate()
3553 if (priv->fops->has_s0s1) in rtl8723a_phy_lc_calibrate()
3932 struct rtl8xxxu_fileops *fops = priv->fops; in rtl8xxxu_init_queue_reserved_page() local
3943 hq = fops->page_num_hi; in rtl8xxxu_init_queue_reserved_page()
3945 lq = fops->page_num_lo; in rtl8xxxu_init_queue_reserved_page()
3947 nq = fops->page_num_norm; in rtl8xxxu_init_queue_reserved_page()
4034 struct rtl8xxxu_fileops *fops = priv->fops; in rtl8xxxu_init_device() local
4054 if (fops->needs_full_init) in rtl8xxxu_init_device()
4160 fops->usb_quirks(priv); in rtl8xxxu_init_device()
4370 if (fops->init_statistics) in rtl8xxxu_init_device()
[all …]
/openbmc/linux/security/
H A 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()
/openbmc/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()
641 fops->chip_info, in w1_family_notify()
655 if (fops->remove_slave) in w1_family_notify()
656 sl->family->fops->remove_slave(sl); in w1_family_notify()
[all …]

12345678910>>...29