Home
last modified time | relevance | path

Searched refs:sysfs_ops (Results 1 – 25 of 102) sorted by relevance

12345

/Linux-v5.4/fs/sysfs/
Dfile.c25 static const struct sysfs_ops *sysfs_file_ops(struct kernfs_node *kn) in sysfs_file_ops()
31 return kobj->ktype ? kobj->ktype->sysfs_ops : NULL; in sysfs_file_ops()
43 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_seq_show()
106 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_read()
132 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_write()
256 const struct sysfs_ops *sysfs_ops = kobj->ktype->sysfs_ops; in sysfs_add_file_mode_ns() local
259 if (WARN(!sysfs_ops, KERN_ERR in sysfs_add_file_mode_ns()
264 if (sysfs_ops->show && sysfs_ops->store) { in sysfs_add_file_mode_ns()
269 } else if (sysfs_ops->show) { in sysfs_add_file_mode_ns()
274 } else if (sysfs_ops->store) { in sysfs_add_file_mode_ns()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dsysfs.c193 static const struct sysfs_ops port_cc_sysfs_ops = {
205 .sysfs_ops = &port_cc_sysfs_ops,
302 static const struct sysfs_ops hfi1_sc2vl_ops = {
308 .sysfs_ops = &hfi1_sc2vl_ops,
407 static const struct sysfs_ops hfi1_sl2sc_ops = {
413 .sysfs_ops = &hfi1_sl2sc_ops,
481 static const struct sysfs_ops hfi1_vl2mtu_ops = {
487 .sysfs_ops = &hfi1_vl2mtu_ops,
785 static const struct sysfs_ops sde_sysfs_ops = {
791 .sysfs_ops = &sde_sysfs_ops,
/Linux-v5.4/fs/xfs/
Dxfs_sysfs.c61 static const struct sysfs_ops xfs_sysfs_ops = {
72 .sysfs_ops = &xfs_sysfs_ops,
244 .sysfs_ops = &xfs_sysfs_ops,
301 .sysfs_ops = &xfs_sysfs_ops,
386 .sysfs_ops = &xfs_sysfs_ops,
540 .sysfs_ops = &xfs_sysfs_ops,
546 .sysfs_ops = &xfs_sysfs_ops,
/Linux-v5.4/block/
Dblk-mq-sysfs.c206 static const struct sysfs_ops blk_mq_sysfs_ops = {
211 static const struct sysfs_ops blk_mq_hw_sysfs_ops = {
217 .sysfs_ops = &blk_mq_sysfs_ops,
222 .sysfs_ops = &blk_mq_sysfs_ops,
227 .sysfs_ops = &blk_mq_hw_sysfs_ops,
/Linux-v5.4/include/linux/
Dkobject.h141 const struct sysfs_ops *sysfs_ops; member
172 extern const struct sysfs_ops kobj_sysfs_ops;
/Linux-v5.4/drivers/edac/
Dedac_device_sysfs.c142 static const struct sysfs_ops device_ctl_info_ops = {
219 .sysfs_ops = &device_ctl_info_ops,
370 static const struct sysfs_ops device_instance_ops = {
400 .sysfs_ops = &device_instance_ops,
473 static const struct sysfs_ops device_block_ops = {
498 .sysfs_ops = &device_block_ops,
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-v5.4/drivers/cpuidle/
Dsysfs.c219 static const struct sysfs_ops cpuidle_sysfs_ops = {
233 .sysfs_ops = &cpuidle_sysfs_ops,
430 static const struct sysfs_ops cpuidle_state_sysfs_ops = {
443 .sysfs_ops = &cpuidle_state_sysfs_ops,
577 static const struct sysfs_ops cpuidle_driver_sysfs_ops = {
588 .sysfs_ops = &cpuidle_driver_sysfs_ops,
/Linux-v5.4/drivers/md/
Ddm-sysfs.c116 static const struct sysfs_ops dm_sysfs_ops = {
122 .sysfs_ops = &dm_sysfs_ops,
/Linux-v5.4/fs/orangefs/
Dorangefs-sysfs.c205 static const struct sysfs_ops orangefs_sysfs_ops = {
899 .sysfs_ops = &orangefs_sysfs_ops,
936 .sysfs_ops = &orangefs_sysfs_ops,
973 .sysfs_ops = &orangefs_sysfs_ops,
1010 .sysfs_ops = &orangefs_sysfs_ops,
1047 .sysfs_ops = &orangefs_sysfs_ops,
1077 .sysfs_ops = &orangefs_sysfs_ops,
1100 .sysfs_ops = &orangefs_sysfs_ops,
/Linux-v5.4/drivers/md/bcache/
Dsysfs.h8 .sysfs_ops = &((const struct sysfs_ops) { \
/Linux-v5.4/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c253 static const struct sysfs_ops sysprops_ops = {
259 .sysfs_ops = &sysprops_ops,
289 static const struct sysfs_ops iolink_ops = {
295 .sysfs_ops = &iolink_ops,
317 static const struct sysfs_ops mem_ops = {
323 .sysfs_ops = &mem_ops,
363 static const struct sysfs_ops cache_ops = {
369 .sysfs_ops = &cache_ops,
514 static const struct sysfs_ops node_ops = {
520 .sysfs_ops = &node_ops,
/Linux-v5.4/fs/nfs/
Dsysfs.c36 .sysfs_ops = &kobj_sysfs_ops,
145 .sysfs_ops = &kobj_sysfs_ops,
/Linux-v5.4/drivers/net/bonding/
Dbond_sysfs_slave.c135 static const struct sysfs_ops slave_sysfs_ops = {
141 .sysfs_ops = &slave_sysfs_ops,
/Linux-v5.4/fs/ocfs2/cluster/
Dmasklog.c143 static const struct sysfs_ops mlog_attr_ops = {
150 .sysfs_ops = &mlog_attr_ops,
/Linux-v5.4/drivers/dma/ioat/
Dsysfs.c70 const struct sysfs_ops ioat_sysfs_ops = {
163 .sysfs_ops = &ioat_sysfs_ops,
/Linux-v5.4/drivers/firmware/efi/
Druntime-map.c83 static const struct sysfs_ops map_attr_ops = {
96 .sysfs_ops = &map_attr_ops,
/Linux-v5.4/drivers/infiniband/hw/qib/
Dqib_sysfs.c319 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,
537 static const struct sysfs_ops qib_diagc_ops = {
544 .sysfs_ops = &qib_diagc_ops,
/Linux-v5.4/samples/kobject/
Dkset-example.c89 static const struct sysfs_ops foo_sysfs_ops = {
189 .sysfs_ops = &foo_sysfs_ops,
/Linux-v5.4/arch/ia64/kernel/
Dtopology.c282 static const struct sysfs_ops cache_sysfs_ops = {
287 .sysfs_ops = &cache_sysfs_ops,
292 .sysfs_ops = &cache_sysfs_ops,
/Linux-v5.4/scripts/
Dconst_structs.checkpatch56 sysfs_ops
/Linux-v5.4/drivers/staging/greybus/
Daudio_manager_module.c59 static const struct sysfs_ops gb_audio_module_sysfs_ops = {
147 .sysfs_ops = &gb_audio_module_sysfs_ops,
/Linux-v5.4/drivers/firmware/
Ddmi-sysfs.c111 static const struct sysfs_ops dmi_sysfs_attr_ops = {
229 static const struct sysfs_ops dmi_sysfs_specialize_attr_ops = {
309 .sysfs_ops = &dmi_sysfs_specialize_attr_ops,
567 .sysfs_ops = &dmi_sysfs_attr_ops,
/Linux-v5.4/fs/nilfs2/
Dsysfs.c59 static const struct sysfs_ops nilfs_##name##_attr_ops = { \
76 .sysfs_ops = &nilfs_##name##_attr_ops, \
178 static const struct sysfs_ops nilfs_snapshot_attr_ops = {
185 .sysfs_ops = &nilfs_snapshot_attr_ops,
973 static const struct sysfs_ops nilfs_dev_attr_ops = {
980 .sysfs_ops = &nilfs_dev_attr_ops,
/Linux-v5.4/drivers/gpu/drm/ttm/
Dttm_memory.c163 static const struct sysfs_ops ttm_mem_zone_ops = {
170 .sysfs_ops = &ttm_mem_zone_ops,
227 static const struct sysfs_ops ttm_mem_global_ops = {
233 .sysfs_ops = &ttm_mem_global_ops,

12345