Searched refs:sysfs_ops (Results 1 - 90 of 90) sorted by relevance

/linux-4.4.14/fs/sysfs/
H A Dfile.c25 * Determine ktype->sysfs_ops for the given kernfs_node. This function
28 static const struct sysfs_ops *sysfs_file_ops(struct kernfs_node *kn) sysfs_file_ops()
34 return kobj->ktype ? kobj->ktype->sysfs_ops : NULL; sysfs_file_ops()
40 * sysfs_ops->show() result through seq_file.
46 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); sysfs_kf_seq_show()
109 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); sysfs_kf_read()
127 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); sysfs_kf_write()
251 const struct sysfs_ops *sysfs_ops = kobj->ktype->sysfs_ops; sysfs_add_file_mode_ns() local
254 if (WARN(!sysfs_ops, KERN_ERR sysfs_add_file_mode_ns()
259 if (sysfs_ops->show && sysfs_ops->store) { sysfs_add_file_mode_ns()
264 } else if (sysfs_ops->show) { sysfs_add_file_mode_ns()
269 } else if (sysfs_ops->store) { sysfs_add_file_mode_ns()
/linux-4.4.14/fs/xfs/
H A Dxfs_sysfs.c81 static const struct sysfs_ops xfs_sysfs_ops = {
126 .sysfs_ops = &xfs_sysfs_ops,
183 .sysfs_ops = &xfs_sysfs_ops,
268 .sysfs_ops = &xfs_sysfs_ops,
/linux-4.4.14/drivers/staging/most/hdm-dim2/
H A Ddim2_sysfs.c78 static struct sysfs_ops const bus_kobj_sysfs_ops = {
85 .sysfs_ops = &bus_kobj_sysfs_ops,
/linux-4.4.14/drivers/md/bcache/
H A Dsysfs.h7 .sysfs_ops = &((const struct sysfs_ops) { \
/linux-4.4.14/drivers/md/
H A Ddm-sysfs.c114 static const struct sysfs_ops dm_sysfs_ops = {
120 .sysfs_ops = &dm_sysfs_ops,
H A Dmd.c3148 static const struct sysfs_ops rdev_sysfs_ops = {
3154 .sysfs_ops = &rdev_sysfs_ops,
4953 static const struct sysfs_ops md_sysfs_ops = {
4959 .sysfs_ops = &md_sysfs_ops,
/linux-4.4.14/drivers/net/bonding/
H A Dbond_sysfs_slave.c137 static const struct sysfs_ops slave_sysfs_ops = {
143 .sysfs_ops = &slave_sysfs_ops,
/linux-4.4.14/drivers/dma/ioat/
H A Dsysfs.c67 const struct sysfs_ops ioat_sysfs_ops = {
133 .sysfs_ops = &ioat_sysfs_ops,
H A Ddma.h192 extern const struct sysfs_ops ioat_sysfs_ops;
/linux-4.4.14/drivers/firmware/efi/
H A Druntime-map.c88 static const struct sysfs_ops map_attr_ops = {
101 .sysfs_ops = &map_attr_ops,
H A Desrt.c103 static const struct sysfs_ops esre_attr_ops = {
159 .sysfs_ops = &esre_attr_ops,
H A Defivars.c382 static const struct sysfs_ops efivar_attr_ops = {
410 .sysfs_ops = &efivar_attr_ops,
/linux-4.4.14/fs/ext4/
H A Dsysfs.c327 static const struct sysfs_ops ext4_attr_ops = {
334 .sysfs_ops = &ext4_attr_ops,
339 .sysfs_ops = &ext4_attr_ops,
348 .sysfs_ops = &ext4_attr_ops,
/linux-4.4.14/block/
H A Dblk-mq-sysfs.c320 static const struct sysfs_ops blk_mq_sysfs_ops = {
325 static const struct sysfs_ops blk_mq_hw_sysfs_ops = {
331 .sysfs_ops = &blk_mq_sysfs_ops,
336 .sysfs_ops = &blk_mq_sysfs_ops,
342 .sysfs_ops = &blk_mq_hw_sysfs_ops,
H A Dblk-integrity.c377 static const struct sysfs_ops integrity_ops = {
384 .sysfs_ops = &integrity_ops,
H A Dblk-sysfs.c610 static const struct sysfs_ops queue_sysfs_ops = {
616 .sysfs_ops = &queue_sysfs_ops,
H A Delevator.c782 static const struct sysfs_ops elv_sysfs_ops = {
788 .sysfs_ops = &elv_sysfs_ops,
/linux-4.4.14/drivers/cpuidle/
H A Dsysfs.c219 static const struct sysfs_ops cpuidle_sysfs_ops = {
233 .sysfs_ops = &cpuidle_sysfs_ops,
366 static const struct sysfs_ops cpuidle_state_sysfs_ops = {
379 .sysfs_ops = &cpuidle_state_sysfs_ops,
508 static const struct sysfs_ops cpuidle_driver_sysfs_ops = {
519 .sysfs_ops = &cpuidle_driver_sysfs_ops,
/linux-4.4.14/fs/exofs/
H A Dsys.c51 static const struct sysfs_ops odev_attr_ops = {
111 .sysfs_ops = &odev_attr_ops,
/linux-4.4.14/fs/ocfs2/cluster/
H A Dmasklog.c157 static const struct sysfs_ops mlog_attr_ops = {
164 .sysfs_ops = &mlog_attr_ops,
/linux-4.4.14/samples/kobject/
H A Dkset-example.c90 /* Our custom sysfs_ops that we will associate with our ktype later on */
91 static const struct sysfs_ops foo_sysfs_ops = {
190 .sysfs_ops = &foo_sysfs_ops,
/linux-4.4.14/include/linux/
H A Dkobject.h118 const struct sysfs_ops *sysfs_ops; member in struct:kobj_type
147 extern const struct sysfs_ops kobj_sysfs_ops;
H A Dsysfs.h209 struct sysfs_ops { struct
/linux-4.4.14/drivers/infiniband/hw/qib/
H A Dqib_sysfs.c176 * full set of kobject/sysfs_ops structures and routines.
319 static const struct sysfs_ops qib_port_ops = {
326 .sysfs_ops = &qib_port_ops,
392 static const struct sysfs_ops qib_sl2vl_ops = {
398 .sysfs_ops = &qib_sl2vl_ops,
482 static const struct sysfs_ops qib_diagc_ops = {
489 .sysfs_ops = &qib_diagc_ops,
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_topology.c522 static const struct sysfs_ops sysprops_ops = {
527 .sysfs_ops = &sysprops_ops,
557 static const struct sysfs_ops iolink_ops = {
562 .sysfs_ops = &iolink_ops,
584 static const struct sysfs_ops mem_ops = {
589 .sysfs_ops = &mem_ops,
623 static const struct sysfs_ops cache_ops = {
628 .sysfs_ops = &cache_ops,
745 static const struct sysfs_ops node_ops = {
750 .sysfs_ops = &node_ops,
/linux-4.4.14/drivers/staging/rdma/hfi1/
H A Dsysfs.c248 static const struct sysfs_ops hfi1_sc2vl_ops = {
254 .sysfs_ops = &hfi1_sc2vl_ops,
354 static const struct sysfs_ops hfi1_sl2sc_ops = {
360 .sysfs_ops = &hfi1_sl2sc_ops,
428 static const struct sysfs_ops hfi1_vl2mtu_ops = {
434 .sysfs_ops = &hfi1_vl2mtu_ops,
/linux-4.4.14/drivers/edac/
H A Dedac_device_sysfs.c142 static const struct sysfs_ops device_ctl_info_ops = {
219 .sysfs_ops = &device_ctl_info_ops,
379 static const struct sysfs_ops device_instance_ops = {
409 .sysfs_ops = &device_instance_ops,
482 static const struct sysfs_ops device_block_ops = {
507 .sysfs_ops = &device_block_ops,
H A Dedac_pci_sysfs.c122 static const struct sysfs_ops pci_instance_ops = {
147 .sysfs_ops = &pci_instance_ops,
261 static const struct sysfs_ops edac_pci_sysfs_ops = {
329 .sysfs_ops = &edac_pci_sysfs_ops,
/linux-4.4.14/arch/ia64/kernel/
H A Dtopology.c286 static const struct sysfs_ops cache_sysfs_ops = {
291 .sysfs_ops = &cache_sysfs_ops,
296 .sysfs_ops = &cache_sysfs_ops,
/linux-4.4.14/drivers/firmware/
H A Ddmi-sysfs.c109 static const struct sysfs_ops dmi_sysfs_attr_ops = {
227 static const struct sysfs_ops dmi_sysfs_specialize_attr_ops = {
307 .sysfs_ops = &dmi_sysfs_specialize_attr_ops,
565 .sysfs_ops = &dmi_sysfs_attr_ops,
H A Dmemmap.c82 static const struct sysfs_ops memmap_attr_ops = {
129 .sysfs_ops = &memmap_attr_ops,
H A Dedd.c125 static const struct sysfs_ops edd_attr_ops = {
630 .sysfs_ops = &edd_attr_ops,
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
H A Ddisplay-sysfs.c310 static const struct sysfs_ops display_sysfs_ops = {
316 .sysfs_ops = &display_sysfs_ops,
H A Doverlay-sysfs.c435 static const struct sysfs_ops overlay_sysfs_ops = {
441 .sysfs_ops = &overlay_sysfs_ops,
H A Dmanager-sysfs.c508 static const struct sysfs_ops manager_sysfs_ops = {
514 .sysfs_ops = &manager_sysfs_ops,
/linux-4.4.14/drivers/infiniband/hw/usnic/
H A Dusnic_ib_sysfs.c233 static const struct sysfs_ops usnic_ib_qpn_sysfs_ops = {
291 .sysfs_ops = &usnic_ib_qpn_sysfs_ops,
/linux-4.4.14/arch/powerpc/platforms/powernv/
H A Dopal-elog.c126 static const struct sysfs_ops elog_sysfs_ops = {
148 .sysfs_ops = &elog_sysfs_ops,
H A Dopal-dump.c190 static const struct sysfs_ops dump_sysfs_ops = {
212 .sysfs_ops = &dump_sysfs_ops,
/linux-4.4.14/sound/hda/
H A Dhdac_sysfs.c140 static const struct sysfs_ops widget_sysfs_ops = {
152 .sysfs_ops = &widget_sysfs_ops,
/linux-4.4.14/drivers/uio/
H A Duio.c116 static const struct sysfs_ops map_sysfs_ops = {
122 .sysfs_ops = &map_sysfs_ops,
204 static const struct sysfs_ops portio_sysfs_ops = {
210 .sysfs_ops = &portio_sysfs_ops,
/linux-4.4.14/drivers/pci/
H A Dslot.c35 static const struct sysfs_ops pci_slot_sysfs_ops = {
136 .sysfs_ops = &pci_slot_sysfs_ops,
/linux-4.4.14/arch/sh/kernel/cpu/sh4/
H A Dsq.c330 static const struct sysfs_ops sq_sysfs_ops = {
336 .sysfs_ops = &sq_sysfs_ops,
/linux-4.4.14/drivers/xen/
H A Dsys-hypervisor.c577 static const struct sysfs_ops hyp_sysfs_ops = {
583 .sysfs_ops = &hyp_sysfs_ops,
/linux-4.4.14/fs/nilfs2/
H A Dsysfs.c68 static const struct sysfs_ops nilfs_##name##_attr_ops = { \
85 .sysfs_ops = &nilfs_##name##_attr_ops, \
187 static const struct sysfs_ops nilfs_snapshot_attr_ops = {
194 .sysfs_ops = &nilfs_snapshot_attr_ops,
982 static const struct sysfs_ops nilfs_dev_attr_ops = {
989 .sysfs_ops = &nilfs_dev_attr_ops,
/linux-4.4.14/fs/btrfs/
H A Dsysfs.c294 .sysfs_ops = &kobj_sysfs_ops,
349 .sysfs_ops = &kobj_sysfs_ops,
449 .sysfs_ops = &kobj_sysfs_ops,
/linux-4.4.14/kernel/livepatch/
H A Dcore.c667 .sysfs_ops = &kobj_sysfs_ops,
677 .sysfs_ops = &kobj_sysfs_ops,
686 .sysfs_ops = &kobj_sysfs_ops,
/linux-4.4.14/drivers/staging/most/mostcore/
H A Dcore.c165 static const struct sysfs_ops most_channel_sysfs_ops = {
519 .sysfs_ops = &most_channel_sysfs_ops,
652 static const struct sysfs_ops most_inst_sysfs_ops = {
718 .sysfs_ops = &most_inst_sysfs_ops,
853 static const struct sysfs_ops most_aim_sysfs_ops = {
1079 .sysfs_ops = &most_aim_sysfs_ops,
/linux-4.4.14/drivers/scsi/
H A Discsi_boot_sysfs.c58 static const struct sysfs_ops iscsi_boot_attr_ops = {
74 .sysfs_ops = &iscsi_boot_attr_ops,
/linux-4.4.14/drivers/gpu/drm/ttm/
H A Dttm_memory.c158 static const struct sysfs_ops ttm_mem_zone_ops = {
165 .sysfs_ops = &ttm_mem_zone_ops,
H A Dttm_page_alloc.c206 static const struct sysfs_ops ttm_pool_sysfs_ops = {
213 .sysfs_ops = &ttm_pool_sysfs_ops,
H A Dttm_page_alloc_dma.c260 static const struct sysfs_ops ttm_pool_sysfs_ops = {
267 .sysfs_ops = &ttm_pool_sysfs_ops,
H A Dttm_bo.c120 static const struct sysfs_ops ttm_bo_global_ops = {
126 .sysfs_ops = &ttm_bo_global_ops,
/linux-4.4.14/drivers/acpi/
H A Ddevice_sysfs.c77 static const struct sysfs_ops acpi_data_node_sysfs_ops = {
88 .sysfs_ops = &acpi_data_node_sysfs_ops,
H A Dsysfs.c821 .sysfs_ops = &kobj_sysfs_ops,
/linux-4.4.14/drivers/base/
H A Dclass.c74 static const struct sysfs_ops class_sysfs_ops = {
80 .sysfs_ops = &class_sysfs_ops,
H A Dbus.c79 static const struct sysfs_ops driver_sysfs_ops = {
93 .sysfs_ops = &driver_sysfs_ops,
124 static const struct sysfs_ops bus_sysfs_ops = {
161 .sysfs_ops = &bus_sysfs_ops,
H A Dcore.c141 static const struct sysfs_ops dev_sysfs_ops = {
268 .sysfs_ops = &dev_sysfs_ops,
750 .sysfs_ops = &kobj_sysfs_ops,
/linux-4.4.14/net/bridge/
H A Dbr_sysfs_if.c264 const struct sysfs_ops brport_sysfs_ops = {
H A Dbr_if.c203 .sysfs_ops = &brport_sysfs_ops,
H A Dbr_private.h953 extern const struct sysfs_ops brport_sysfs_ops; br_nf_core_fini()
/linux-4.4.14/net/core/
H A Dnet-sysfs.c655 static const struct sysfs_ops rx_queue_sysfs_ops = {
880 .sysfs_ops = &rx_queue_sysfs_ops,
987 static const struct sysfs_ops netdev_queue_sysfs_ops = {
1272 .sysfs_ops = &netdev_queue_sysfs_ops,
/linux-4.4.14/drivers/infiniband/core/
H A Dsysfs.c83 static const struct sysfs_ops port_sysfs_ops = {
456 .sysfs_ops = &port_sysfs_ops,
H A Dcm.c3757 static const struct sysfs_ops cm_counter_ops = {
3762 .sysfs_ops = &cm_counter_ops,
/linux-4.4.14/drivers/infiniband/hw/mlx4/
H A Dsysfs.c426 static const struct sysfs_ops port_sysfs_ops = {
433 .sysfs_ops = &port_sysfs_ops,
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/
H A Dmce_amd.c558 static const struct sysfs_ops threshold_ops = {
564 .sysfs_ops = &threshold_ops,
/linux-4.4.14/fs/gfs2/
H A Dsys.c54 static const struct sysfs_ops gfs2_attr_ops = {
323 .sysfs_ops = &gfs2_attr_ops,
/linux-4.4.14/fs/dlm/
H A Dlockspace.c184 static const struct sysfs_ops dlm_attr_ops = {
191 .sysfs_ops = &dlm_attr_ops,
/linux-4.4.14/arch/powerpc/kernel/
H A Dcacheinfo.c670 static const struct sysfs_ops cache_index_ops = {
676 .sysfs_ops = &cache_index_ops,
/linux-4.4.14/lib/
H A Dkobject.c704 .sysfs_ops = &kobj_sysfs_ops,
799 const struct sysfs_ops kobj_sysfs_ops = {
874 .sysfs_ops = &kobj_sysfs_ops,
/linux-4.4.14/drivers/misc/cxl/
H A Dsysfs.c505 .sysfs_ops = &kobj_sysfs_ops,
/linux-4.4.14/drivers/cpufreq/
H A Dcpufreq.c865 static const struct sysfs_ops sysfs_ops = { variable in typeref:struct:sysfs_ops
871 .sysfs_ops = &sysfs_ops,
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
H A Dlprocfs_status.c905 .sysfs_ops = &lustre_sysfs_ops,
1516 const struct sysfs_ops lustre_sysfs_ops = {
/linux-4.4.14/drivers/parisc/
H A Dpdc_stable.c484 static const struct sysfs_ops pdcspath_attr_ops = {
501 .sysfs_ops = &pdcspath_attr_ops,
/linux-4.4.14/fs/f2fs/
H A Dsuper.c241 static const struct sysfs_ops f2fs_attr_ops = {
248 .sysfs_ops = &f2fs_attr_ops,
/linux-4.4.14/kernel/
H A Dpadata.c1004 static const struct sysfs_ops padata_sysfs_ops = {
1010 .sysfs_ops = &padata_sysfs_ops,
H A Dparams.c963 static const struct sysfs_ops module_sysfs_ops = {
992 .sysfs_ops = &module_sysfs_ops,
/linux-4.4.14/drivers/staging/lustre/lustre/include/
H A Dlprocfs_status.h704 extern const struct sysfs_ops lustre_sysfs_ops;
/linux-4.4.14/drivers/staging/unisys/visorbus/
H A Dvisorbus_main.c379 static const struct sysfs_ops devmajorminor_sysfs_ops = {
385 .sysfs_ops = &devmajorminor_sysfs_ops
/linux-4.4.14/drivers/staging/most/hdm-usb/
H A Dhdm_usb.c1032 static const struct sysfs_ops most_dci_sysfs_ops = {
1165 .sysfs_ops = &most_dci_sysfs_ops,
/linux-4.4.14/drivers/iommu/
H A Diommu.c114 static const struct sysfs_ops iommu_group_sysfs_ops = {
159 .sysfs_ops = &iommu_group_sysfs_ops,
/linux-4.4.14/drivers/net/ethernet/ibm/
H A Dibmveth.c1742 static const struct sysfs_ops veth_pool_ops = {
1749 .sysfs_ops = &veth_pool_ops,
/linux-4.4.14/drivers/block/
H A Dpktcdvd.c298 static const struct sysfs_ops kobj_pkt_ops = {
304 .sysfs_ops = &kobj_pkt_ops,
309 .sysfs_ops = &kobj_pkt_ops,
/linux-4.4.14/drivers/power/
H A Dabx500_chargalg.c1940 static const struct sysfs_ops abx500_chargalg_sysfs_ops = {
1946 .sysfs_ops = &abx500_chargalg_sysfs_ops,
H A Dab8500_fg.c2524 static const struct sysfs_ops ab8500_fg_sysfs_ops = {
2536 .sysfs_ops = &ab8500_fg_sysfs_ops,
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
H A Dldlm_pool.c555 .sysfs_ops = &lustre_sysfs_ops,
H A Dldlm_resource.c371 .sysfs_ops = &lustre_sysfs_ops,
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
H A Dlproc_llite.c867 .sysfs_ops = &lustre_sysfs_ops,
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
H A Dlproc_ptlrpc.c1048 .sysfs_ops = &lustre_sysfs_ops,
/linux-4.4.14/mm/
H A Dslub.c5302 static const struct sysfs_ops slab_sysfs_ops = {
5308 .sysfs_ops = &slab_sysfs_ops,
/linux-4.4.14/scripts/
H A Dcheckpatch.pl5679 sysfs_ops|

Completed in 2988 milliseconds