Searched refs:sysfs (Results 1 - 200 of 1309) sorted by relevance

1234567

/linux-4.1.27/drivers/dca/
H A DMakefile2 dca-objs := dca-core.o dca-sysfs.o
/linux-4.1.27/drivers/video/fbdev/omap2/omapfb/
H A DMakefile2 omapfb-y := omapfb-main.o omapfb-sysfs.o omapfb-ioctl.o
H A Domapfb-sysfs.c2 * linux/drivers/video/omap2/omapfb-sysfs.c
24 #include <linux/sysfs.h>
576 DBG("create sysfs for fbs\n"); omapfb_create_sysfs()
584 dev_err(fbdev->dev, "failed to create sysfs " omapfb_create_sysfs()
598 DBG("remove sysfs for fbs\n"); omapfb_remove_sysfs()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
H A DMakefile3 mlx4_ib-y := ah.o cq.o doorbell.o mad.o main.o mr.o qp.o srq.o mcg.o cm.o alias_GUID.o sysfs.o
/linux-4.1.27/drivers/dio/
H A DMakefile5 obj-y := dio.o dio-driver.o dio-sysfs.o
H A Ddio-sysfs.c6 * Loosely based on drivers/pci/pci-sysfs.c and drivers/zorro/zorro-sysfs.c
/linux-4.1.27/fs/sysfs/
H A DMakefile2 # Makefile for the sysfs virtual filesystem
H A Dsysfs.h2 * fs/sysfs/sysfs.h - sysfs internal header file
14 #include <linux/sysfs.h>
H A Dmount.c2 * fs/sysfs/symlink.c - operations for initializing and mounting sysfs
10 * Please see Documentation/filesystems/sysfs.txt for more information.
21 #include "sysfs.h"
55 .name = "sysfs",
H A Ddir.c2 * fs/sysfs/dir.c - sysfs core and dir operation implementation
10 * Please see Documentation/filesystems/sysfs.txt for more information.
18 #include "sysfs.h"
30 WARN(1, KERN_WARNING "sysfs: cannot create duplicate filename '%s/%s'\n", sysfs_warn_dup()
81 * doesn't race with other operations and sysfs doesn't provide any sysfs_remove_dir()
H A Dsymlink.c2 * fs/sysfs/symlink.c - sysfs symlink implementation
10 * Please see Documentation/filesystems/sysfs.txt for more information.
19 #include "sysfs.h"
H A Dfile.c2 * fs/sysfs/file.c - sysfs regular (text) file implementation
10 * Please see Documentation/filesystems/sysfs.txt for more information.
21 #include "sysfs.h"
38 * Reads on sysfs are handled through seq_file, which takes care of hairy
105 /* kernfs read callback for regular sysfs files with pre-alloc */ sysfs_kf_read()
121 /* kernfs write callback for regular sysfs files */ sysfs_kf_write()
134 /* kernfs write callback for bin sysfs files */ sysfs_kf_bin_write()
253 "missing sysfs attribute operations for kobject: %s\n", sysfs_add_file_mode_ns()
H A Dgroup.c2 * fs/sysfs/group.c - Operations for adding/removing multiple files at once.
18 #include "sysfs.h"
106 WARN(1, "sysfs: (bin_)attrs not set by subsystem for group: %s/%s\n", internal_create_group()
223 "sysfs group %p not found for kobject '%s'\n", sysfs_remove_group()
/linux-4.1.27/sound/aoa/soundbus/
H A DMakefile2 snd-aoa-soundbus-objs := core.o sysfs.o
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
H A DMakefile7 omapdss-y += manager.o manager-sysfs.o overlay.o overlay-sysfs.o apply.o \
8 dispc-compat.o display-sysfs.o
H A Doverlay.c28 #include <linux/sysfs.h>
95 DSSERR("failed to create sysfs file\n"); dss_init_overlays()
/linux-4.1.27/Documentation/mic/mpssd/
H A Dmicctrl32 sysfs="/sys/class/mic"
36 f=$sysfs/$1
46 for f in $sysfs/*
57 f=$sysfs/$1
67 for f in $sysfs/*
78 f=$sysfs/$1
91 for f in $sysfs/*
102 f=$sysfs/$1
112 for f in $sysfs/*
123 f=$sysfs/$1
138 for f in $sysfs/*
147 if [ ! -d "$sysfs" ]; then
H A DMakefile4 mpssd-objs := mpssd.o sysfs.o
H A Dsysfs.c42 mpsslog("Failed to open sysfs entry '%s': %s\n", readsysfs()
49 mpsslog("Failed to read sysfs entry '%s': %s\n", readsysfs()
85 mpsslog("Failed to open sysfs entry '%s': %s\n", setsysfs()
93 mpsslog("Failed to write new sysfs entry '%s': %s\n", setsysfs()
H A Dmpss37 sysfs="/sys/class/mic"
82 for f in $sysfs/*
111 if [ ! -d "$sysfs" ]; then
122 for f in $sysfs/*
163 if [ ! -d "$sysfs" ]; then
/linux-4.1.27/drivers/md/bcache/
H A DMakefile5 io.o journal.o movinggc.o request.o stats.o super.o sysfs.o trace.o\
H A Dstats.c10 #include "sysfs.h"
32 * stored left shifted by 16, and scaled back in the sysfs show() function.
41 /* sysfs reading/writing */
/linux-4.1.27/drivers/misc/cxl/
H A DMakefile1 cxl-y += main.o file.o irq.o fault.o native.o context.o sysfs.o debugfs.o pci.o trace.o
/linux-4.1.27/fs/nilfs2/
H A DMakefile5 ifile.o alloc.o gcinode.o ioctl.o sysfs.o
H A Dsysfs.h2 * sysfs.h - sysfs support declarations.
23 #include <linux/sysfs.h>
/linux-4.1.27/drivers/pps/
H A DMakefile5 pps_core-y := pps.o kapi.o sysfs.o
/linux-4.1.27/arch/powerpc/kernel/
H A Dcacheinfo.h4 /* These are just hooks for sysfs.c to use. */
H A Deeh_sysfs.c31 * EEH_SHOW_ATTR -- Create sysfs entry for eeh statistic
32 * @_name: name of file in sysfs directory
111 pr_warn("EEH: Unable to create sysfs entries\n"); eeh_sysfs_add_device()
H A Dof_platform.c55 /* Setup parent in sysfs */ of_pci_phb_probe()
94 /* sysfs files should only be added after devices are added */ of_pci_phb_probe()
/linux-4.1.27/net/ieee802154/
H A DMakefile6 header_ops.o sysfs.o nl802154.o trace.o
H A Dsysfs.c13 * Based on: net/wireless/sysfs.c
21 #include "sysfs.h"
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_sysfs.c31 MODULE_PARM_DESC(pstate, "enable sysfs pstate file, which will be moved in the future");
50 struct nouveau_sysfs *sysfs = nouveau_sysfs(drm_device(d)); nouveau_sysfs_pstate_get() local
56 ret = nvif_mthd(&sysfs->ctrl, NVIF_CONTROL_PSTATE_INFO, nouveau_sysfs_pstate_get()
69 ret = nvif_mthd(&sysfs->ctrl, NVIF_CONTROL_PSTATE_ATTR, nouveau_sysfs_pstate_get()
84 ret = nvif_mthd(&sysfs->ctrl, nouveau_sysfs_pstate_get()
120 struct nouveau_sysfs *sysfs = nouveau_sysfs(drm_device(d)); nouveau_sysfs_pstate_set() local
149 ret = nvif_mthd(&sysfs->ctrl, NVIF_CONTROL_PSTATE_USER, nouveau_sysfs_pstate_set()
163 struct nouveau_sysfs *sysfs = nouveau_sysfs(dev); nouveau_sysfs_fini() local
167 if (sysfs && sysfs->ctrl.priv) { nouveau_sysfs_fini()
169 nvif_object_fini(&sysfs->ctrl); nouveau_sysfs_fini()
172 drm->sysfs = NULL; nouveau_sysfs_fini()
173 kfree(sysfs); nouveau_sysfs_fini()
181 struct nouveau_sysfs *sysfs; nouveau_sysfs_init() local
187 sysfs = drm->sysfs = kzalloc(sizeof(*sysfs), GFP_KERNEL); nouveau_sysfs_init()
188 if (!sysfs) nouveau_sysfs_init()
193 &sysfs->ctrl); nouveau_sysfs_init()
H A Dnouveau_sysfs.h13 return nouveau_drm(dev)->sysfs; nouveau_sysfs()
/linux-4.1.27/drivers/media/usb/pvrusb2/
H A DMakefile1 obj-pvrusb2-sysfs-$(CONFIG_VIDEO_PVRUSB2_SYSFS) := pvrusb2-sysfs.o
15 $(obj-pvrusb2-sysfs-y) $(obj-pvrusb2-debugifc-y)
H A Dpvrusb2-sysfs.h24 #include <linux/sysfs.h>
/linux-4.1.27/drivers/net/wimax/i2400m/
H A DMakefile10 sysfs.o \
H A Ddebug-levels.h41 D_SUBMODULE_DECLARE(sysfs),
H A Dsysfs.c31 #define D_SUBMODULE sysfs
/linux-4.1.27/drivers/rapidio/
H A DMakefile5 rapidio-y := rio.o rio-access.o rio-driver.o rio-sysfs.o
H A Drio-sysfs.c2 * RapidIO sysfs attributes and support
265 * rio_create_sysfs_dev_files - create RIO specific sysfs files
268 * Create files when @rdev is added to sysfs.
290 * rio_remove_sysfs_dev_files - cleanup RIO specific sysfs files
293 * Cleanup when @rdev is removed from sysfs.
/linux-4.1.27/drivers/s390/char/
H A Dsclp_cpi_sys.h2 * SCLP control program identification sysfs interface
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
H A DMakefile2 boot.o init.o debugfs.o scan.o sysfs.o vendor_cmd.o
H A Dsysfs.c25 #include "sysfs.h"
176 /* Create sysfs file to control bt coex state */ wlcore_sysfs_init()
179 wl1271_error("failed to create sysfs file bt_coex_state"); wlcore_sysfs_init()
183 /* Create sysfs file to get HW PG version */ wlcore_sysfs_init()
186 wl1271_error("failed to create sysfs file hw_pg_ver"); wlcore_sysfs_init()
190 /* Create sysfs file for the FW log */ wlcore_sysfs_init()
193 wl1271_error("failed to create sysfs file fwlog"); wlcore_sysfs_init()
/linux-4.1.27/drivers/usb/core/
H A DMakefile6 usbcore-y += config.o file.o buffer.o sysfs.o endpoint.o
/linux-4.1.27/drivers/usb/wusbcore/
H A DMakefile11 dev-sysfs.o \
/linux-4.1.27/drivers/isdn/gigaset/
H A Dproc.c61 /* free sysfs for device */ gigaset_free_dev_sysfs()
67 gig_dbg(DEBUG_INIT, "removing sysfs entries"); gigaset_free_dev_sysfs()
71 /* initialize sysfs for device */ gigaset_init_dev_sysfs()
77 gig_dbg(DEBUG_INIT, "setting up sysfs"); gigaset_init_dev_sysfs()
79 pr_err("could not create sysfs attribute\n"); gigaset_init_dev_sysfs()
/linux-4.1.27/include/uapi/linux/
H A Dif.h35 * set these flags using userspace utilities but there is also a sysfs
37 * are shared for all types of net_devices. The sysfs entries are available
38 * via /sys/class/net/<dev>/flags. Flags which can be toggled through sysfs
41 * even if you try to set them via sysfs. Flags which are always preserved
47 * @IFF_UP: interface is up. Can be toggled through sysfs.
49 * @IFF_DEBUG: turn on debugging. Can be toggled through sysfs.
52 * @IFF_NOTRAILERS: avoid use of trailers. Can be toggled through sysfs.
55 * @IFF_NOARP: no ARP protocol. Can be toggled through sysfs. Volatile.
56 * @IFF_PROMISC: receive all packets. Can be toggled through sysfs.
58 * sysfs.
61 * @IFF_MULTICAST: Supports multicast. Can be toggled through sysfs.
62 * @IFF_PORTSEL: can set media type. Can be toggled through sysfs.
63 * @IFF_AUTOMEDIA: auto media select active. Can be toggled through sysfs.
65 * through sysfs.
71 IFF_UP = 1<<0, /* sysfs */
73 IFF_DEBUG = 1<<2, /* sysfs */
76 IFF_NOTRAILERS = 1<<5, /* sysfs */
78 IFF_NOARP = 1<<7, /* sysfs */
79 IFF_PROMISC = 1<<8, /* sysfs */
80 IFF_ALLMULTI = 1<<9, /* sysfs */
83 IFF_MULTICAST = 1<<12, /* sysfs */
84 IFF_PORTSEL = 1<<13, /* sysfs */
85 IFF_AUTOMEDIA = 1<<14, /* sysfs */
86 IFF_DYNAMIC = 1<<15, /* sysfs */
H A Dusbip.h10 /* usbip device status - exported in usbip device sysfs status */
H A Dnetdevice.h40 /* interface name assignment types (sysfs name_assign_type attribute) */
H A Dmap_to_7segment.h45 * accessible via the sysfs interface using the following scheme:
88 * custom character sets for LCD devices. Please use a sysfs interface
H A Duinput.h79 * UI_GET_SYSNAME - get the sysfs name of the created uinput device
81 * @return the sysfs name of the created virtual input device.
82 * The complete sysfs path is then /sys/devices/virtual/input/--NAME--
/linux-4.1.27/drivers/firmware/
H A DMakefile5 obj-$(CONFIG_DMI_SYSFS) += dmi-sysfs.o
H A Ddmi-sysfs.c2 * dmi-sysfs.c
5 * sysfs file system.
419 pr_info("dmi-sysfs: GPNV support missing.\n"); dmi_sel_raw_read_helper()
422 pr_info("dmi-sysfs: Unknown access method %02x\n", dmi_sel_raw_read_helper()
672 pr_debug("dmi-sysfs: loaded.\n"); dmi_sysfs_init()
685 pr_debug("dmi-sysfs: unloading.\n"); dmi_sysfs_exit()
696 MODULE_DESCRIPTION("DMI sysfs support");
H A Ddcdbas.h20 #include <linux/sysfs.h>
/linux-4.1.27/drivers/sh/superhyway/
H A Dsuperhyway-sysfs.c2 * drivers/sh/superhyway/superhyway-sysfs.c
4 * SuperHyway Bus sysfs interface
/linux-4.1.27/drivers/infiniband/core/
H A DMakefile11 ib_core-y := packer.o ud_header.o verbs.o sysfs.o \
/linux-4.1.27/drivers/char/tpm/
H A DMakefile5 tpm-y := tpm-interface.o tpm-dev.o tpm-sysfs.o tpm-chip.o tpm2-cmd.o
/linux-4.1.27/net/core/
H A DMakefile15 obj-y += net-sysfs.o
/linux-4.1.27/net/wireless/
H A DMakefile12 cfg80211-y += core.o sysfs.o radiotap.o util.o reg.o scan.o nl80211.o
/linux-4.1.27/drivers/zorro/
H A DMakefile5 obj-$(CONFIG_ZORRO) += zorro.o zorro-driver.o zorro-sysfs.o
H A Dzorro-sysfs.c6 * Loosely based on drivers/pci/pci-sysfs.c
/linux-4.1.27/drivers/hwmon/
H A Dtwl4030-madc-hwmon.c6 * particular channel using the sysfs nodes.
34 #include <linux/hwmon-sysfs.h>
36 #include <linux/sysfs.h>
41 * sysfs hook function
61 /* sysfs nodes to read individual channels from user side */
H A Dhih6130.c31 #include <linux/hwmon-sysfs.h>
166 * hih6130_show_temperature() - show temperature measurement value in sysfs
169 * @buf: sysfs buffer (PAGE_SIZE) where measurement values are written to
171 * Will be called on read access to temp1_input sysfs attribute.
188 * hih6130_show_humidity() - show humidity measurement value in sysfs
191 * @buf: sysfs buffer (PAGE_SIZE) where measurement values are written to
193 * Will be called on read access to humidity1_input sysfs attribute.
208 /* sysfs attributes */
H A Dsht21.c28 #include <linux/hwmon-sysfs.h>
125 * sht21_show_temperature() - show temperature measurement value in sysfs
128 * @buf: sysfs buffer (PAGE_SIZE) where measurement values are written to
130 * Will be called on read access to temp1_input sysfs attribute.
147 * sht21_show_humidity() - show humidity measurement value in sysfs
150 * @buf: sysfs buffer (PAGE_SIZE) where measurement values are written to
152 * Will be called on read access to humidity1_input sysfs attribute.
168 /* sysfs attributes */
H A Dg760a.c22 #include <linux/hwmon-sysfs.h>
25 #include <linux/sysfs.h>
83 * sysfs attributes
H A Di5k_amb.c25 #include <linux/hwmon-sysfs.h>
276 /* Set up sysfs stuff */ i5k_amb_hwmon_init()
293 /* sysfs label */ i5k_amb_hwmon_init()
308 /* Temperature sysfs knob */ i5k_amb_hwmon_init()
323 /* Temperature min sysfs knob */ i5k_amb_hwmon_init()
339 /* Temperature mid sysfs knob */ i5k_amb_hwmon_init()
355 /* Temperature max sysfs knob */ i5k_amb_hwmon_init()
371 /* Temperature alarm sysfs knob */ i5k_amb_hwmon_init()
H A Dad7314.c13 #include <linux/sysfs.h>
18 #include <linux/hwmon-sysfs.h>
H A Dsht15.c25 #include <linux/hwmon-sysfs.h>
683 * sht15_show_status() - show status information in sysfs
686 * @buf: sysfs buffer where information is written to.
689 * and heater_enable sysfs attributes.
706 * sht15_store_heater() - change heater state via sysfs
709 * @buf: sysfs buffer to read the new heater state from.
712 * Will be called on write access to heater_enable sysfs attribute.
741 * sht15_show_temp() - show temperature measurement value in sysfs
744 * @buf: sysfs buffer where measurement values are written to.
746 * Will be called on read access to temp1_input sysfs attribute.
764 * sht15_show_humidity() - show humidity measurement value in sysfs
767 * @buf: sysfs buffer where measurement values are written to.
769 * Will be called on read access to humidity1_input sysfs attribute.
1030 dev_err(&pdev->dev, "sysfs create failed\n"); sht15_probe()
H A Dlm70.c34 #include <linux/sysfs.h>
55 /* sysfs hook function */ lm70_sense_temp()
H A Dmcp3021.c8 * This driver export the value of analog input voltage to sysfs, the
9 * voltage unit is mV. Through the sysfs interface, lm-sensors tool
H A Dmenf21bmc_hwmon.c6 * driver through sysfs.
20 #include <linux/hwmon-sysfs.h>
H A Dab8500.c17 #include <linux/hwmon-sysfs.h>
26 #include <linux/sysfs.h>
H A Dads7828.c30 #include <linux/hwmon-sysfs.h>
62 /* sysfs callback function */ ads7828_show_in()
H A Dwm8350-hwmon.c26 #include <linux/hwmon-sysfs.h>
H A Dg762.c49 #include <linux/hwmon-sysfs.h>
193 * Convert fan RPM value from sysfs into count value for fan controller
730 * sysfs attributes
734 * Read function for fan1_input sysfs file. Return current fan RPM value, or
760 * Read and write functions for pwm1_mode sysfs file. Get and set fan speed
792 * Read and write functions for fan1_div sysfs file. Get and set fan
824 * Read and write functions for fan1_pulses sysfs file. Get and set number
859 * Following documentation about hwmon's sysfs interface, a pwm1_enable node
899 * Read and write functions for pwm1 sysfs file. Get and set pwm value
931 * Read and write function for fan1_target sysfs file. Get/set the fan speed in
976 /* read function for fan1_fault sysfs file. */ get_fan_failure()
989 * read function for fan1_alarm sysfs file. Note that OOC condition is
H A Dhwmon.c4 * This file defines the sysfs class "hwmon", for use by sensors drivers.
270 pr_err("couldn't register hwmon sysfs class\n"); hwmon_init()
285 MODULE_DESCRIPTION("hardware monitoring sysfs/class support");
H A Dmax197.c21 #include <linux/sysfs.h>
23 #include <linux/hwmon-sysfs.h>
299 dev_err(&pdev->dev, "sysfs create group failed\n"); max197_probe()
H A Dadcxx.c43 #include <linux/sysfs.h>
45 #include <linux/hwmon-sysfs.h>
59 /* sysfs hook function */ adcxx_read()
H A Dads1015.c31 #include <linux/hwmon-sysfs.h>
134 /* sysfs callback function */ show_in()
275 /* build sysfs attribute group */ ads1015_probe()
/linux-4.1.27/tools/perf/util/
H A Dpmu.c30 * Parse & process all the sysfs attributes located under
70 * /sys/bus/event_source/devices/<dev>/format as sysfs group attributes.
76 const char *sysfs = sysfs__mountpoint(); pmu_format() local
78 if (!sysfs) pmu_format()
82 "%s" EVENT_SOURCE_DEVICE_PATH "%s/format", sysfs, name); pmu_format()
259 * Process all the sysfs attributes located under the directory
304 * /sys/bus/event_source/devices/<dev>/events as sysfs group attributes.
310 const char *sysfs = sysfs__mountpoint(); pmu_aliases() local
312 if (!sysfs) pmu_aliases()
316 "%s/bus/event_source/devices/%s/events", sysfs, name); pmu_aliases()
349 * /sys/bus/event_source/devices/<dev>/type as sysfs attribute.
357 const char *sysfs = sysfs__mountpoint(); pmu_type() local
359 if (!sysfs) pmu_type()
363 "%s" EVENT_SOURCE_DEVICE_PATH "%s/type", sysfs, name); pmu_type()
379 /* Add all pmus in sysfs to pmu list: */ pmu_read_sysfs()
385 const char *sysfs = sysfs__mountpoint(); pmu_read_sysfs() local
387 if (!sysfs) pmu_read_sysfs()
391 "%s" EVENT_SOURCE_DEVICE_PATH, sysfs); pmu_read_sysfs()
413 const char *sysfs = sysfs__mountpoint(); pmu_cpumask() local
415 if (!sysfs) pmu_cpumask()
419 "%s/bus/event_source/devices/%s/cpumask", sysfs, name); pmu_cpumask()
641 pr_info("Invalid sysfs entry %s=%s\n", pmu_config_term()
963 const char *sysfs; perf_pmu__open_file() local
965 sysfs = sysfs__mountpoint(); perf_pmu__open_file()
966 if (!sysfs) perf_pmu__open_file()
970 "%s" EVENT_SOURCE_DEVICE_PATH "%s/%s", sysfs, pmu->name, name); perf_pmu__open_file()
H A Dcpumap.c370 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); set_max_cpu_num()
398 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); set_max_node_num()
448 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); cpu__setup_cpunode_map()
463 pr_err("sysfs path crossed PATH_MAX(%d) size\n", PATH_MAX); cpu__setup_cpunode_map()
/linux-4.1.27/tools/power/cpupower/bench/
H A Dcpufreq-bench_script.sh42 # Set values in sysfs
48 # Verify set values in sysfs
50 echo "up_threshold: $up_threshold, set in sysfs: ${up_threshold_set}"
52 echo "WARNING: Tried to set up_threshold: $up_threshold, set in sysfs: ${up_threshold_set}"
55 echo "sampling_rate: $sampling_rate, set in sysfs: ${sampling_rate_set}"
57 echo "WARNING: Tried to set sampling_rate: $sampling_rate, set in sysfs: ${sampling_rate_set}"
/linux-4.1.27/drivers/edac/
H A Dedac_stub.c74 * sysfs object: /sys/devices/system/edac
83 /* return pointer to the 'edac' node in sysfs */ edac_get_sysfs_subsys()
94 printk(KERN_ERR "Error registering toplevel EDAC sysfs dir\n"); edac_get_sysfs_subsys()
H A Dedac_core.h117 * View them arranged, via the sysfs presentation:
146 * used for driver sysfs attributes in mem_ctl_info
190 /* edac sysfs device control */
204 /* edac sysfs device control */
240 /* pointer to main 'edac' subsys in sysfs */
267 /* sysfs top name under 'edac' directory
285 /* edac sysfs device control for the 'name'
365 /* sysfs top name under 'edac' directory
377 /* edac sysfs device control for the 'name'
H A Dedac_module.h17 * EDAC memory controller sysfs create/remove functions
H A Dedac_pci.c76 * call the remove sysfs information, which will unregister
323 * edac_pci global list and create sysfs entries associated with
347 "failed to create sysfs pci\n"); edac_pci_add_device()
378 * Remove sysfs entries for specified edac_pci structure and
/linux-4.1.27/arch/tile/kernel/
H A DMakefile9 sysfs.o time.o traps.o unaligned.o vdso.o \
/linux-4.1.27/fs/ocfs2/cluster/
H A Dsys.c6 * OCFS2 cluster sysfs interface
30 #include <linux/sysfs.h>
H A Dsys.h6 * Function prototypes for o2cb sysfs interface
/linux-4.1.27/include/linux/platform_data/
H A Dat24.h47 #define AT24_FLAG_READONLY 0x40 /* sysfs-entry will be read-only */
48 #define AT24_FLAG_IRUGO 0x20 /* sysfs-entry will be world-readable */
/linux-4.1.27/samples/kobject/
H A Dkset-example.c12 #include <linux/sysfs.h>
18 * This module shows how to create a kset in sysfs called
29 * sysfs.
48 * The default show function that must be passed to sysfs. This will be
49 * called by sysfs for whenever a show function is called by the user on a
50 * sysfs file associated with the kobjects we have registered. We need to
72 * sysfs "store" is requested (when a value is written to a file.)
185 * Our own ktype for our kobjects. Here we specify our sysfs ops, the
H A Dkobject-example.c12 #include <linux/sysfs.h>
17 * This module shows how to create a simple subdirectory in sysfs called
/linux-4.1.27/include/linux/
H A Dhwmon-sysfs.h2 * hwmon-sysfs.h - hardware monitoring chip driver sysfs defines
H A Dkobject_ns.h24 * Namespace types which are used to tag kobjects and sysfs entries.
34 * Callbacks so sysfs can determine namespaces
H A Dhwmon.h4 This file declares helper functions for the sysfs class "hwmon",
H A Dmoduleparam.h103 * @perm: visibility in sysfs.
109 * @perm is 0 if the the variable is not to appear in sysfs, or 0444
138 * @perm: visibility in sysfs.
161 * @perm: visibility in sysfs.
177 * @perm: visibility in sysfs.
242 * kparam_block_sysfs_write - make sure a parameter isn't written via sysfs.
245 * There's no point blocking write on a paramter that isn't writable via sysfs!
254 * kparam_unblock_sysfs_write - allows sysfs to write to a parameter again.
264 * kparam_block_sysfs_read - make sure a parameter isn't read via sysfs.
267 * This also blocks sysfs writes.
276 * kparam_unblock_sysfs_read - allows sysfs to read a parameter again.
300 * @name: the name of the cmdline and sysfs parameter (often the same as var)
303 * @perm: visibility in sysfs
320 * @perm: visibility in sysfs.
446 * @perm: visibility in sysfs
463 * @perm: visibility in sysfs
H A Dlivepatch.h42 * @kobj: kobject for sysfs resources
90 * @kobj: kobject for sysfs resources
112 * @kobj: kobject for sysfs resources
H A Dleds.h174 * led_sysfs_disable - disable LED sysfs interface
177 * Disable the led_cdev's sysfs interface.
182 * led_sysfs_enable - enable LED sysfs interface
185 * Enable the led_cdev's sysfs interface.
190 * led_sysfs_is_disabled - check if LED sysfs interface is disabled
193 * Returns: true if the led_cdev's sysfs interface is disabled.
H A Dpktcdvd.h19 #include <linux/sysfs.h>
197 struct device *dev; /* sysfs pktcdvd[0-7] dev */
198 struct pktcdvd_kobj *kobj_stat; /* sysfs pktcdvd[0-7]/stat/ */
199 struct pktcdvd_kobj *kobj_wqueue; /* sysfs pktcdvd[0-7]/write_queue/ */
H A Dgpio_keys.h18 * disable button via sysfs
H A Discsi_ibft.h9 * This code exposes the iSCSI Boot Format Table to userland via sysfs.
H A Dthermal.h144 * @trip_temp_attrs: attributes for trip points for sysfs: trip temperature
145 * @trip_type_attrs: attributes for trip points for sysfs: trip type
146 * @trip_hyst_attrs: attributes for trip points for sysfs: trip hysteresis
226 * See Documentation/thermal/sysfs-api.txt for more information.
233 * See Documentation/thermal/sysfs-api.txt for more information.
255 * a boolean to indicate if the thermal to hwmon sysfs interface
256 * is required. when no_hwmon == false, a hwmon sysfs interface
H A Dmemory.h11 * Memory block are exported via sysfs in the class/memory/devices/
40 /* These states are exposed to userspace as text strings in sysfs */
H A Dsuperhyway.h103 /* drivers/sh/superhyway/superhyway-sysfs.c */
H A Decryptfs.h10 * bits from a sysfs handle in order to determine how to behave. */
H A Dconfigfs.h21 * Based on sysfs:
22 * sysfs is Copyright (C) 2001, 2002, 2003 Patrick Mochel
147 * (similar to sysfs' __ATTR) to make defining attributes easier.
/linux-4.1.27/drivers/cpuidle/
H A Dsysfs.c2 * sysfs.c - sysfs support
11 #include <linux/sysfs.h>
144 * cpuidle_add_interface - add CPU global sysfs attributes
155 * cpuidle_remove_interface - remove CPU global sysfs attributes
393 * cpuidle_add_state_sysfs - adds cpuidle states sysfs attributes
431 * cpuidle_remove_driver_sysfs - removes the cpuidle states sysfs attributes
525 * cpuidle_add_driver_sysfs - adds the driver name sysfs attribute
556 * cpuidle_remove_driver_sysfs - removes the driver name sysfs attribute
579 * cpuidle_add_device_sysfs - adds device specific sysfs attributes
597 * cpuidle_remove_device_sysfs : removes device specific sysfs attributes
607 * cpuidle_add_sysfs - creates a sysfs instance for the target device
637 * cpuidle_remove_sysfs - deletes a sysfs instance on the target device
H A Dcpuidle.h25 /* sysfs */
/linux-4.1.27/drivers/scsi/mpt3sas/
H A Dmpt3sas_trigger_diag.h76 * MasterTrigger is a single U32 passed to/from sysfs.
102 * struct SL_WH_EVENT_TRIGGERS_T - Structure passed to/from sysfs containing a
108 * This binary structure is transferred via sysfs to get/set Event Triggers
135 * struct SL_WH_SCSI_TRIGGERS_T - Structure passed to/from sysfs containing a
142 * This binary structure is transferred via sysfs to get/set SCSI Sense Code
165 * struct SL_WH_MPI_TRIGGERS_T - Structure passed to/from sysfs containing a
172 * This binary structure is transferred via sysfs to get/set MPI Error Triggers
/linux-4.1.27/drivers/mfd/
H A Dtps65911-comparator.c143 /* Create sysfs entry */ tps65911_comparator_probe()
146 dev_err(&pdev->dev, "failed to add COMP1 sysfs file\n"); tps65911_comparator_probe()
150 dev_err(&pdev->dev, "failed to add COMP2 sysfs file\n"); tps65911_comparator_probe()
H A Dpcf50633-core.c17 #include <linux/sysfs.h>
84 /* sysfs attributes */ show_dump_regs()
263 dev_warn(pcf->dev, "error creating sysfs entries\n"); pcf50633_probe()
/linux-4.1.27/drivers/scsi/
H A Discsi_boot_sysfs.c2 * Export the iSCSI boot info to userland via sysfs.
20 #include <linux/sysfs.h>
26 MODULE_DESCRIPTION("sysfs interface and helpers to export iSCSI boot information");
38 * The routine called for all sysfs attributes.
357 * iscsi_boot_create_target() - create boot target sysfs dir
365 * Note: The boot sysfs lib will free the data passed in for the caller
382 * iscsi_boot_create_initiator() - create boot initiator sysfs dir
390 * Note: The boot sysfs lib will free the data passed in for the caller
408 * iscsi_boot_create_ethernet() - create boot ethernet sysfs dir
416 * Note: The boot sysfs lib will free the data passed in for the caller
434 * iscsi_boot_create_kset() - creates root sysfs tree
457 * iscsi_boot_create_host_kset() - creates root sysfs tree for a scsi host
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_sysfs.c4 * extra sysfs attribute from DRM. Normal drm_sysfs_class
455 * drm_sysfs_connector_add - add a connector to sysfs
458 * Create a connector device in sysfs, along with its associated connector
475 DRM_DEBUG("adding \"%s\" to sysfs\n", drm_sysfs_connector_add()
490 * drm_sysfs_connector_remove - remove an connector device from sysfs
493 * Remove @connector and its associated attributes from sysfs. Note that
500 * you'll likely see a panic somewhere deep in sysfs code when called.
506 DRM_DEBUG("removing \"%s\" from sysfs\n", drm_sysfs_connector_remove()
538 * drm_sysfs_minor_alloc() - Allocate sysfs device for given minor
539 * @minor: minor to allocate sysfs device for
541 * This allocates a new sysfs device for @minor and returns it. The device is
548 * private data only in sysfs callbacks. device_del() disables those
/linux-4.1.27/tools/lib/api/fs/
H A Dfs.c43 .name = "sysfs",
116 * testing). This matches the recommendation in Documentation/sysfs-rules.txt
168 FS__MOUNTPOINT(sysfs, FS__SYSFS);
/linux-4.1.27/drivers/hid/
H A Dhid-prodikeys.c8 * Sustain Duration available via sysfs.
102 /* Output routine for the sysfs channel file */ show_channel()
109 dbg_hid("pcmidi sysfs read channel=%u\n", pk->pm->midi_channel); show_channel()
115 /* Input routine for the sysfs channel file */ store_channel()
125 dbg_hid("pcmidi sysfs write channel=%u\n", channel); store_channel()
139 /* Output routine for the sysfs sustain file */ show_sustain()
146 dbg_hid("pcmidi sysfs read sustain=%u\n", pk->pm->midi_sustain); show_sustain()
152 /* Input routine for the sysfs sustain file */ store_sustain()
162 dbg_hid("pcmidi sysfs write sustain=%u\n", sustain); store_sustain()
178 /* Output routine for the sysfs octave file */ show_octave()
185 dbg_hid("pcmidi sysfs read octave=%d\n", pk->pm->midi_octave); show_octave()
191 /* Input routine for the sysfs octave file */ store_octave()
202 dbg_hid("pcmidi sysfs write octave=%d\n", octave); store_octave()
664 /* create sysfs variables */ pcmidi_snd_initialise()
668 pk_error("failed to create sysfs attribute channel: error %d\n", pcmidi_snd_initialise()
676 pk_error("failed to create sysfs attribute sustain: error %d\n", pcmidi_snd_initialise()
684 pk_error("failed to create sysfs attribute octave: error %d\n", pcmidi_snd_initialise()
/linux-4.1.27/drivers/net/wireless/libertas/
H A Dmesh.c143 * Mesh sysfs support
147 * Attributes exported through sysfs
151 * lbs_anycast_get - Get function for sysfs attribute anycast_mask
173 * lbs_anycast_set - Set function for sysfs attribute anycast_mask
199 * lbs_prb_rsp_limit_get - Get function for sysfs attribute prb_rsp_limit
225 * lbs_prb_rsp_limit_set - Set function for sysfs attribute prb_rsp_limit
258 * lbs_mesh_get - Get function for sysfs attribute mesh
271 * lbs_mesh_set - Set function for sysfs attribute mesh
298 * through sysfs (/sys/class/net/ethX/lbs_mesh)
304 * through sysfs (/sys/class/net/mshX/anycast_mask)
310 * through sysfs (/sys/class/net/mshX/prb_rsp_limit)
350 * bootflag_get - Get function for sysfs attribute bootflag
370 * bootflag_set - Set function for sysfs attribute bootflag
400 * boottime_get - Get function for sysfs attribute boottime
420 * boottime_set - Set function for sysfs attribute boottime
459 * channel_get - Get function for sysfs attribute channel
479 * channel_set - Set function for sysfs attribute channel
509 * mesh_id_get - Get function for sysfs attribute mesh_id
538 * mesh_id_set - Set function for sysfs attribute mesh_id
584 * protocol_id_get - Get function for sysfs attribute protocol_id
604 * protocol_id_set - Set function for sysfs attribute protocol_id
645 * metric_id_get - Get function for sysfs attribute metric_id
665 * metric_id_set - Set function for sysfs attribute metric_id
706 * capability_get - Get function for sysfs attribute capability
726 * capability_set - Set function for sysfs attribute capability
/linux-4.1.27/arch/parisc/kernel/
H A Dtopology.c2 * arch/parisc/kernel/topology.c - Populate sysfs with topology information
/linux-4.1.27/arch/avr32/boards/merisc/
H A Dmerisc_sysfs.c2 * Merisc sysfs exports
/linux-4.1.27/tools/thermal/tmon/
H A DMakefile25 OBJS = tmon.o tui.o sysfs.o pid.o
H A Dsysfs.c2 * sysfs.c sysfs ABI access functions for TMON program
264 * Before calling scan_tzones, thermal sysfs must be probed to determine
398 fprintf(stderr, "\nNo thermal sysfs, exit\n"); probe_thermal_sysfs()
403 syslog(LOG_ERR, "scandir failed in thermal sysfs"); probe_thermal_sysfs()
474 /* convert sysfs zone instance to zone array index */ zone_instance_to_index()
/linux-4.1.27/drivers/staging/iio/resolver/
H A Dad2s90.c16 #include <linux/sysfs.h>
20 #include <linux/iio/sysfs.h>
H A Dad2s1200.c17 #include <linux/sysfs.h>
24 #include <linux/iio/sysfs.h>
/linux-4.1.27/include/video/
H A Dudlfb.h48 char *edid; /* null until we read edid from hw or get from sysfs */
55 /* blit-only rendering path metrics, exposed through sysfs */
/linux-4.1.27/drivers/scsi/megaraid/
H A Dmegaraid_mbox.h172 * @sysfs_mtx : mutex to serialize access to sysfs res.
173 * @sysfs_uioc : management packet to issue FW calls from sysfs
174 * @sysfs_mbox64 : mailbox packet to issue FW calls from sysfs
175 * @sysfs_buffer : data buffer for FW commands issued from sysfs
176 * @sysfs_buffer_dma : DMA buffer for FW commands issued from sysfs
177 * @sysfs_wait_q : wait queue for sysfs operations
/linux-4.1.27/drivers/scsi/pm8001/
H A Dpm8001_ctl.c52 * A sysfs 'read-only' shost attribute.
77 * A sysfs 'read-only' shost attribute.
106 * A sysfs 'read-only' shost attribute.
129 * A sysfs 'read-only' shost attribute.
155 * A sysfs 'read-only' shost attribute.
199 * A sysfs 'read-only' shost attribute.
228 * A sysfs 'read-only' shost attribute.
247 * A sysfs 'read/write' shost attribute.
280 * A sysfs 'read-only' shost attribute.
315 * A sysfs 'read-only' shost attribute.
347 * A sysfs 'read-only' shost attribute.
379 * A sysfs 'read-only' shost attribute.
417 * A sysfs 'read-only' shost attribute.
453 ** A sysfs 'read-only' shost attribute.
472 **A sysfs 'read-only' shost attribute.
/linux-4.1.27/net/batman-adv/
H A Dsysfs.c19 #include "sysfs.h"
51 /* VLAN specific attributes are located in the root sysfs folder if they batadv_vlan_kobj_to_batpriv()
464 * @kobj: kobject representing the private mesh sysfs directory
483 * @kobj: kobject representing the private mesh sysfs directory
596 * batadv_vlan_attrs - array of vlan specific sysfs attributes
613 batadv_err(dev, "Can't add sysfs directory: %s/%s\n", dev->name, batadv_sysfs_add_meshif()
622 batadv_err(dev, "Can't add sysfs file: %s/%s/%s\n", batadv_sysfs_add_meshif()
654 * batadv_sysfs_add_vlan - add all the needed sysfs objects for the new vlan
675 batadv_err(dev, "Can't add sysfs directory: %s/%s\n", batadv_sysfs_add_vlan()
691 batadv_err(dev, "Can't add sysfs file: %s/%s/%s\n", batadv_sysfs_add_vlan()
711 * batadv_sysfs_del_vlan - remove all the sysfs objects for a given VLAN
863 batadv_err(dev, "Can't add sysfs directory: %s/%s\n", dev->name, batadv_sysfs_add_hardif()
871 batadv_err(dev, "Can't add sysfs file: %s/%s/%s\n", batadv_sysfs_add_hardif()
H A Dsysfs.h25 * created in the sysfs hierarchy for each VLAN interface. The subfolder will
/linux-4.1.27/kernel/
H A Dparams.c513 /* sysfs output in /sys/modules/XYZ/parameters/ */
552 /* sysfs always hands a nul-terminated string in buf. We rely on that. */ param_attr_store()
593 * add_sysfs_param - add a parameter to sysfs
595 * @kparam: the actual parameter definition to add to sysfs
599 * create file in sysfs. Returns an error on out of memory. Always cleans up
675 * module_param_sysfs_setup - setup sysfs support for one module
680 * Adds sysfs entries for module parameters under
712 * module_param_sysfs_remove - remove sysfs support for one module
715 * Remove sysfs entries for module parameters and the corresponding
761 pr_crit("Adding module '%s' to sysfs failed (%d), the system may be unstable.\n", locate_module_kobject()
798 * param_sysfs_builtin - add sysfs parameters for built-in modules
800 * Add module_parameters to sysfs for "modules" built into the kernel.
862 /* module-related sysfs stuff */
H A Dksysfs.c2 * kernel/ksysfs.c - sysfs attributes in /sys/kernel, which
13 #include <linux/sysfs.h>
/linux-4.1.27/drivers/pci/
H A Dpci-label.c3 * a pci device to sysfs
10 * number and string name. This code retrieves them and exports them to sysfs.
13 * sysfs.
17 * it to sysfs.
24 #include <linux/sysfs.h>
H A Dpci-sysfs.c2 * drivers/pci/pci-sysfs.c
481 dev_info(&pdev->dev, "Driver doesn't support SRIOV configuration via sysfs\n"); sriov_numvfs_store()
798 * @filp: open sysfs file
824 * @filp: open sysfs file
850 * @filp: open sysfs file
871 * @filp: open sysfs file
908 * their associated read, write and mmap files from pci-sysfs.c
954 printk(KERN_WARNING "pci: warning: could not create legacy I/O port and ISA memory resources to sysfs\n"); pci_create_legacy_files()
1115 * If we created resource files for @pdev, remove them from sysfs and
1176 * pci_create_resource_files - create resource files in sysfs for @dev
1212 * @filp: sysfs file pci_remove_resource_files()
1237 * @filp: sysfs file
1322 /* If the device has VPD, try to expose it in sysfs. */ pci_create_capabilities_sysfs()
1388 /* If the device has a ROM, try to expose it in sysfs. */ pci_create_sysfs_dev_files()
1409 /* add sysfs entries for various capabilities */ pci_create_sysfs_dev_files()
1450 * pci_remove_sysfs_dev_files - cleanup PCI specific sysfs files
1453 * Cleanup when @pdev is removed from sysfs.
/linux-4.1.27/drivers/rtc/
H A Drtc-ds1672.c133 /* following are the sysfs callback functions */ show_control()
188 /* Register sysfs hooks */ ds1672_probe()
191 dev_err(&client->dev, "Unable to create sysfs entry: %s\n", ds1672_probe()
H A Drtc-pcf2123.c11 * the sysfs contributions to this driver.
47 #include <linux/sysfs.h>
312 dev_err(&spi->dev, "Unable to create sysfs %s\n", pcf2123_probe()
H A Drtc-sysfs.c2 * RTC subsystem, sysfs interface
21 * NOTE: RTC times displayed in sysfs use the RTC's timezone. That's
228 /* The reason to trigger an alarm with no process watching it (via sysfs)
/linux-4.1.27/include/target/
H A Dconfigfs_macros.h21 * Based on sysfs:
22 * sysfs is Copyright (C) 2001, 2002, 2003 Patrick Mochel
62 * (similar to sysfs' __ATTR) to make defining attributes easier.
/linux-4.1.27/fs/exofs/
H A Dsys.c148 * This function creates sysfs entries to hold the current exofs cluster
165 EXOFS_ERR("ERROR: Failed to create sysfs entry for " exofs_sysfs_sb_add()
185 EXOFS_ERR("ERROR: Failed to create sysfs entry for " exofs_sysfs_odev_add()
/linux-4.1.27/drivers/iommu/
H A Diommu-sysfs.c2 * IOMMU sysfs class support
104 * directory of the IOMMU device in sysfs and an "iommu" link will be
/linux-4.1.27/drivers/sfi/
H A Dsfi_core.h59 #include <linux/sysfs.h>
67 /* sysfs interface */
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_semaphore.c68 /* for debugging lockup only, used by sysfs debug files */ radeon_semaphore_emit_signal()
85 /* for debugging lockup only, used by sysfs debug files */ radeon_semaphore_emit_wait()
/linux-4.1.27/arch/sh/drivers/dma/
H A Ddma-sysfs.c2 * arch/sh/drivers/dma/dma-sysfs.c
4 * sysfs interface for SH DMA API
/linux-4.1.27/drivers/net/ethernet/intel/igb/
H A Digb_hwmon.c30 #include <linux/sysfs.h>
100 /* igb_add_hwmon_attr - Create hwmon attr table for a hwmon sysfs file.
105 * For each file we want in hwmon's sysfs interface we need a device_attribute
199 /* Only create hwmon sysfs entries for sensors that have igb_sysfs_init()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sysfs.c35 #include <linux/sysfs.h>
100 * ixgbe_add_hwmon_attr - Create hwmon attr table for a hwmon sysfs file.
105 * For each file we want in hwmon's sysfs interface we need a device_attribute
197 * Only create hwmon sysfs entries for sensors that have ixgbe_sysfs_init()
/linux-4.1.27/drivers/misc/genwqe/
H A Dcard_sysfs.c33 #include <linux/sysfs.h>
145 * unreliable data in very rare cases. This makes this sysfs
272 * genwqe_is_visible() - Determine if sysfs attribute should be visible or not
274 * VFs have restricted mmio capabilities, so not all sysfs entries
/linux-4.1.27/arch/sh/kernel/
H A Dtopology.c71 * registered under each node. Without this, sysfs fails topology_init()
/linux-4.1.27/arch/metag/kernel/
H A Dtopology.c67 * registered under each node. Without this, sysfs fails topology_init()
/linux-4.1.27/drivers/acpi/
H A DMakefile49 acpi-y += sysfs.o
H A Dbgrt.c14 #include <linux/sysfs.h>
/linux-4.1.27/drivers/base/
H A Dmodule.c2 * module.c - module sysfs fun for drivers
H A Ddriver.c18 #include <linux/sysfs.h>
98 * driver_create_file - create sysfs file for driver.
116 * driver_remove_file - remove sysfs file for driver.
/linux-4.1.27/Documentation/networking/
H A Dcxacru-cf.py19 # Output: values string suitable for the sysfs adsl_config attribute
/linux-4.1.27/arch/alpha/kernel/
H A Dpci-sysfs.c2 * arch/alpha/kernel/pci-sysfs.c
9 * drivers/pci/pci-sysfs.c
111 * If we created resource files for @dev, remove them from sysfs and
224 * pci_create_resource_files - create resource files in sysfs for @dev
/linux-4.1.27/fs/btrfs/
H A Dsysfs.h5 * Data exported through sysfs
/linux-4.1.27/tools/power/cpupower/utils/
H A Dcpupower-info.c17 #include "helpers/sysfs.h"
H A Dcpupower-set.c17 #include "helpers/sysfs.h"
/linux-4.1.27/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.h26 kernel sysfs: cpu */
/linux-4.1.27/sound/soc/codecs/
H A Dtlv320aic26.c14 #include <linux/sysfs.h>
259 * SPI device portion of driver: sysfs files for debugging
313 /* Register the sysfs files for debugging */ aic26_probe()
317 dev_info(codec->dev, "error creating sysfs files\n"); aic26_probe()
H A Drt5677-spi.c28 #include <linux/sysfs.h>
/linux-4.1.27/drivers/gpio/
H A Dgpiolib-sysfs.c4 #include <linux/sysfs.h>
16 * sysfs files are active.
470 status = gpiod_request(desc, "sysfs"); export_store()
538 * gpiod_export - export a GPIO through sysfs
547 * will see "direction" sysfs attribute which may be used to change
561 /* can't export until sysfs is available ... */ gpiod_export()
631 * gpiod_export_link - create a sysfs link to an exported GPIO node
676 * gpiod_sysfs_set_active_low - set the polarity of gpio sysfs value
680 * Set the polarity of /sys/class/gpio/gpioN/value sysfs attribute.
813 /* unregister gpiod class devices owned by sysfs */ gpiochip_unexport()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_sysfs.c19 #include <linux/sysfs.h>
24 #include <linux/hwmon-sysfs.h>
1286 /* hwmon-sysfs attributes */
1335 "failed to create bridged_mode sysfs entry\n"); qlcnic_create_sysfs_entries()
1351 dev_info(dev, "failed to create port stats sysfs entry"); qlcnic_create_diag_entries()
1356 dev_info(dev, "failed to create diag_mode sysfs entry\n"); qlcnic_create_diag_entries()
1358 dev_info(dev, "failed to create crb sysfs entry\n"); qlcnic_create_diag_entries()
1360 dev_info(dev, "failed to create mem sysfs entry\n"); qlcnic_create_diag_entries()
1366 dev_info(dev, "failed to create pci config sysfs entry"); qlcnic_create_diag_entries()
1369 dev_info(dev, "failed to create beacon sysfs entry"); qlcnic_create_diag_entries()
1374 dev_info(dev, "failed to create esw config sysfs entry"); qlcnic_create_diag_entries()
1378 dev_info(dev, "failed to create npar config sysfs entry"); qlcnic_create_diag_entries()
1380 dev_info(dev, "failed to create pm config sysfs entry"); qlcnic_create_diag_entries()
1382 dev_info(dev, "failed to create eswitch stats sysfs entry"); qlcnic_create_diag_entries()
1429 dev_info(dev, "failed to create flash sysfs entry\n"); qlcnic_83xx_add_sysfs()
/linux-4.1.27/drivers/firmware/efi/
H A Defivars.c8 * exports them via sysfs
34 * converted driver to export variable information via sysfs
78 MODULE_DESCRIPTION("sysfs interface to EFI Variables");
117 * Prototype for sysfs creation function
474 printk(KERN_WARNING "efivars: failed to create sysfs entry.\n"); efivar_create()
536 * efivar_create_sysfs_entry - create a new entry in sysfs
616 printk(KERN_ERR "efivars: unable to create new_var sysfs file" create_efivars_bin_attributes()
623 printk(KERN_ERR "efivars: unable to create del_var sysfs file" create_efivars_bin_attributes()
657 /* Add new sysfs entries */ efivar_update_sysfs_entries()
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dopal-flash.c18 #include <linux/sysfs.h>
513 * sysfs interface :
514 * OPAL uses below sysfs files for code update.
566 /* Create the sysfs files */ opal_flash_update_init()
569 pr_warn("FLASH: Failed to create sysfs files\n"); opal_flash_update_init()
575 pr_warn("FLASH: Failed to create sysfs files\n"); opal_flash_update_init()
/linux-4.1.27/drivers/iio/accel/
H A Dkxsd9.c22 #include <linux/sysfs.h>
27 #include <linux/iio/sysfs.h>
/linux-4.1.27/drivers/iio/amplifiers/
H A Dad8366.c12 #include <linux/sysfs.h>
20 #include <linux/iio/sysfs.h>
/linux-4.1.27/drivers/iio/common/hid-sensors/
H A Dhid-sensor-trigger.c29 #include <linux/iio/sysfs.h>
175 /* Default to 3 seconds, but can be changed from sysfs */ hid_sensor_setup_trigger()
/linux-4.1.27/drivers/iio/gyro/
H A Dadis16080.c14 #include <linux/sysfs.h>
18 #include <linux/iio/sysfs.h>
/linux-4.1.27/drivers/iio/humidity/
H A Dsi7020.c32 #include <linux/sysfs.h>
35 #include <linux/iio/sysfs.h>
/linux-4.1.27/drivers/staging/iio/accel/
H A Dadis16201_core.c15 #include <linux/sysfs.h>
19 #include <linux/iio/sysfs.h>
H A Dadis16203_core.c15 #include <linux/sysfs.h>
19 #include <linux/iio/sysfs.h>
H A Dadis16204_core.c17 #include <linux/sysfs.h>
22 #include <linux/iio/sysfs.h>
H A Dadis16209_core.c15 #include <linux/sysfs.h>
20 #include <linux/iio/sysfs.h>
/linux-4.1.27/drivers/staging/iio/adc/
H A Dad7780.c13 #include <linux/sysfs.h>
22 #include <linux/iio/sysfs.h>
/linux-4.1.27/drivers/staging/iio/gyro/
H A Dadis16060_core.c16 #include <linux/sysfs.h>
19 #include <linux/iio/sysfs.h>
/linux-4.1.27/drivers/s390/net/
H A Dctcm_sysfs.c15 #include <linux/sysfs.h>
20 * sysfs attributes
/linux-4.1.27/arch/mips/alchemy/devboards/
H A Dpm.c10 #include <linux/sysfs.h>
17 * This code exports a few sysfs nodes under /sys/power/db1x/ which
/linux-4.1.27/fs/configfs/
H A Dconfigfs_internal.h21 * Based on sysfs:
22 * sysfs is Copyright (C) 2001, 2002, 2003 Patrick Mochel
H A Dmount.c21 * Based on sysfs:
22 * sysfs is Copyright (C) 2001, 2002, 2003 Patrick Mochel
/linux-4.1.27/tools/testing/selftests/cpu-hotplug/
H A Dcpu-on-off-test.sh16 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
19 echo $msg sysfs is not mounted >&2
/linux-4.1.27/tools/testing/selftests/memory-hotplug/
H A Dmem-on-off-test.sh14 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
17 echo $msg sysfs is not mounted >&2
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
H A Dsysfs.c109 ATH5K_ERR(ah, "failed to create sysfs group\n"); ath5k_sysfs_register()
/linux-4.1.27/drivers/scsi/arcmsr/
H A Darcmsr_attr.c6 ** Description: attributes exported to sysfs and device host
227 printk(KERN_ERR "arcmsr: alloc sysfs mu_read failed\n"); arcmsr_alloc_sysfs_attr()
232 printk(KERN_ERR "arcmsr: alloc sysfs mu_write failed\n"); arcmsr_alloc_sysfs_attr()
237 printk(KERN_ERR "arcmsr: alloc sysfs mu_clear failed\n"); arcmsr_alloc_sysfs_attr()
/linux-4.1.27/drivers/staging/iio/frequency/
H A Ddds.h2 * dds.h - sysfs attributes associated with DDS devices
/linux-4.1.27/drivers/rapidio/switches/
H A Didt_gen2.c399 /* Initialize sysfs entries */ idtg2_sysfs()
402 dev_err(dev, "Unable create sysfs errlog file\n"); idtg2_sysfs()
439 /* Create device-specific sysfs attributes */ idtg2_probe()
456 /* Remove device-specific sysfs attributes */ idtg2_remove()
/linux-4.1.27/drivers/infiniband/hw/usnic/
H A Dusnic_ib.h68 /* sysfs vars for QPN reporting */
/linux-4.1.27/arch/sparc/kernel/
H A DMakefile58 obj-$(CONFIG_SPARC64) += sysfs.o
/linux-4.1.27/drivers/base/power/
H A Dpower.h24 * sysfs.c
/linux-4.1.27/drivers/usb/gadget/function/
H A Du_serial.h31 * hookups to sysfs and /dev for each logical "tty" device.
/linux-4.1.27/drivers/usb/usbip/
H A Dvhci.h17 #include <linux/sysfs.h>
/linux-4.1.27/drivers/w1/
H A Dw1_family.h57 * @groups: sysfs group
/linux-4.1.27/include/linux/power/
H A Dbq2415x_charger.h26 * voltages and currents which can be also later configured via sysfs. If
H A Dcharger-manager.h102 * @attr_name: "name" sysfs entry
103 * @attr_state: "state" sysfs entry
104 * @attr_externally_control: "externally_control" sysfs entry
/linux-4.1.27/arch/powerpc/platforms/cell/
H A Dspu_callbacks.c25 * uselib, pciconfig_*, sysfs, ...
/linux-4.1.27/lib/
H A Dtest_firmware.c91 pr_err("could not create sysfs interface: %d\n", rc); test_firmware_init()
/linux-4.1.27/tools/power/cpupower/
H A DMakefile128 utils/helpers/sysfs.o utils/helpers/misc.o utils/helpers/cpuid.o \
146 LIB_HEADERS = lib/cpufreq.h lib/sysfs.h
147 LIB_SRC = lib/cpufreq.c lib/sysfs.c
148 LIB_OBJS = lib/cpufreq.o lib/sysfs.o
/linux-4.1.27/tools/usb/usbip/libsrc/
H A Dusbip_common.h33 /* sysfs constants */
/linux-4.1.27/drivers/iio/adc/
H A Dmcp3422.c10 * This driver exports the value of analog input voltage to sysfs, the
23 #include <linux/sysfs.h>
27 #include <linux/iio/sysfs.h>
/linux-4.1.27/drivers/misc/
H A Dds1682.c19 * the sysfs. The following attributes are added to the device node:
38 #include <linux/sysfs.h>
40 #include <linux/hwmon-sysfs.h>
/linux-4.1.27/drivers/staging/iio/
H A Diio_dummy_evgen.c22 #include <linux/sysfs.h>
26 #include <linux/iio/sysfs.h>
102 * That irq can then be caused to 'fire' by using the associated sysfs file.
/linux-4.1.27/drivers/pwm/
H A Dsysfs.c2 * A simple sysfs interface for the generic PWM framework
253 pwm = pwm_request_from_chip(chip, hwpwm, "sysfs"); pwm_export_store()
326 "device_create failed for pwm_chip sysfs export\n"); pwmchip_sysfs_export()
/linux-4.1.27/arch/powerpc/platforms/pseries/
H A Dpseries_energy.c202 * Create sysfs interface:
236 /* Create the sysfs files */ pseries_energy_init()
273 /* Remove the sysfs files */ pseries_energy_cleanup()
/linux-4.1.27/sound/hda/
H A Dhdac_sysfs.c2 * sysfs support for HD-audio core device
6 #include <linux/sysfs.h>
70 * Widget tree sysfs

Completed in 4304 milliseconds

1234567