/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 …]
|
/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 …]
|
/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()
|
/drivers/net/wireless/realtek/rtl8xxxu/ |
D | rtl8xxxu_core.c | 873 int blocksize = priv->fops->writeN_block_size; in rtl8xxxu_writeN() 1990 priv->fops->reset_8051(priv); in rtl8xxxu_start_firmware() 2010 if (priv->fops->init_reg_hmtfr) in rtl8xxxu_start_firmware() 2051 priv->fops->reset_8051(priv); in rtl8xxxu_download_firmware() 2201 const struct rtl8xxxu_reg8val *array = priv->fops->mactable; in rtl8xxxu_init_mac() 2326 priv->fops->init_phy_bb(priv); in rtl8xxxu_init_phy_bb() 2388 if (priv->fops->set_crystal_cap) in rtl8xxxu_init_phy_bb() 2389 priv->fops->set_crystal_cap(priv, priv->default_crystal_cap); in rtl8xxxu_init_phy_bb() 2537 last_tx_page = priv->fops->total_page_num; in rtl8xxxu_init_llt_table() 2539 if (priv->fops->last_llt_entry) in rtl8xxxu_init_llt_table() [all …]
|
/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 …]
|
/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 …]
|
/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()
|
/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()
|
/drivers/net/netdevsim/ |
D | hwstats.c | 334 const struct file_operations fops; member 351 struct nsim_dev_hwstats_fops, fops); in nsim_dev_hwstats_do_write() 386 .fops = { \ 437 &nsim_dev_hwstats_l3_enable_fops.fops); in nsim_dev_hwstats_init() 439 &nsim_dev_hwstats_l3_disable_fops.fops); in nsim_dev_hwstats_init() 441 &nsim_dev_hwstats_l3_fail_fops.fops); in nsim_dev_hwstats_init()
|
/drivers/w1/slaves/ |
D | w1_ds250x.c | 225 .fops = &w1_eprom_fops, 230 .fops = &w1_eprom_fops, 235 .fops = &w1_eprom_fops, 240 .fops = &w1_eprom_fops,
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | debugfs.c | 34 struct file_operations fops; member 212 struct b43legacy_debugfs_fops, fops); in b43legacy_debugfs_read() 279 struct b43legacy_debugfs_fops, fops); in b43legacy_debugfs_write() 316 .fops = { \ 391 &fops_##name.fops); \ in b43legacy_debugfs_add_device()
|
/drivers/scsi/cxlflash/ |
D | ocxl_hw.c | 71 const struct file_operations *fops, in ocxlflash_getfile() argument 78 if (fops->owner && !try_module_get(fops->owner)) { in ocxlflash_getfile() 101 flags & (O_ACCMODE | O_NONBLOCK), fops); in ocxlflash_getfile() 117 module_put(fops->owner); in ocxlflash_getfile() 1185 do { if (!fops->NAME) fops->NAME = ocxl_afu_fops.NAME; } while (0) 1196 struct file_operations *fops, int *fd) in ocxlflash_get_fd() argument 1225 if (fops) { in ocxlflash_get_fd() 1231 fops = (struct file_operations *)&ocxl_afu_fops; in ocxlflash_get_fd() 1234 file = ocxlflash_getfile(dev, name, fops, ctx, flags); in ocxlflash_get_fd()
|
D | cxl_hw.c | 121 struct file_operations *fops, int *fd) in cxlflash_get_fd() argument 123 return cxl_get_fd(ctx_cookie, fops, fd); in cxlflash_get_fd()
|
/drivers/scsi/qedi/ |
D | qedi_debugfs.c | 20 const struct file_operations *fops) in qedi_dbg_host_init() argument 32 fops); in qedi_dbg_host_init() 34 fops++; in qedi_dbg_host_init()
|
/drivers/android/ |
D | binder_internal.h | 85 const struct file_operations *fops, 95 const struct file_operations *fops, in binderfs_create_file() argument 115 const struct file_operations *fops; member
|
/drivers/gpu/drm/i915/gt/ |
D | intel_gt_debugfs.c | 110 umode_t mode = files->fops->write ? 0644 : 0444; in intel_gt_debugfs_register_files() 115 files->fops); in intel_gt_debugfs_register_files()
|
/drivers/media/dvb-core/ |
D | dvbdev.c | 94 if (dvbdev && dvbdev->fops) { in dvb_device_open() 98 new_fops = fops_get(dvbdev->fops); in dvb_device_open() 482 if (node->fops->owner == adap->module && in dvb_register_device() 484 dvbdevfops = node->fops; in dvb_register_device() 490 dvbdevfops = kmemdup(template->fops, sizeof(*dvbdevfops), GFP_KERNEL); in dvb_register_device() 507 new_node->fops = dvbdevfops; in dvb_register_device() 519 dvbdev->fops = dvbdevfops; in dvb_register_device() 1124 kfree(node->fops); in exit_dvbdev()
|
/drivers/infiniband/hw/hfi1/ |
D | device.c | 39 const struct file_operations *fops, in hfi1_cdev_init() argument 48 cdev_init(cdev, fops); in hfi1_cdev_init()
|
/drivers/edac/ |
D | edac_module.h | 74 void *data, const struct file_operations *fops); 90 void *data, const struct file_operations *fops) { return NULL; } in edac_debugfs_create_file() argument
|
D | debugfs.c | 111 void *data, const struct file_operations *fops) in edac_debugfs_create_file() argument 116 return debugfs_create_file(name, mode, parent, data, fops); in edac_debugfs_create_file()
|
/drivers/usb/core/ |
D | file.c | 127 if (class_driver->fops == NULL) in usb_register_dev() 139 usb_minors[minor] = class_driver->fops; in usb_register_dev()
|
/drivers/char/ |
D | mem.c | 695 const struct file_operations *fops; member 725 if (!dev->fops) in memory_open() 728 filp->f_op = dev->fops; in memory_open() 731 if (dev->fops->open) in memory_open() 732 return dev->fops->open(inode, filp); in memory_open()
|
/drivers/net/wireless/mediatek/mt76/ |
D | debugfs.c | 107 const struct file_operations *fops = ops ? ops : &fops_regval; in mt76_register_debugfs_fops() local 117 debugfs_create_file_unsafe("regval", 0600, dir, dev, fops); in mt76_register_debugfs_fops()
|
/drivers/gpu/drm/aspeed/ |
D | aspeed_gfx_drv.c | 247 DEFINE_DRM_GEM_DMA_FOPS(fops); 252 .fops = &fops,
|
/drivers/infiniband/hw/qib/ |
D | qib_fs.c | 51 umode_t mode, const struct file_operations *fops, in qibfs_mknod() argument 76 inode->i_fop = fops; in qibfs_mknod() 87 const struct file_operations *fops, void *data) in create_file() argument 95 mode, fops, data); in create_file()
|