Lines Matching +full:rpm +full:- +full:proc

1 // SPDX-License-Identifier: GPL-2.0
12 * location. Write Documentation on what the /proc/rtas/ entries
63 #define SENSOR_HW_ERROR -1
64 #define SENSOR_BUSY -2
65 #define SENSOR_NOT_EXIST -3
66 #define SENSOR_DR_ENTITY -9000
97 #define TONE_FREQUENCY 0x0001 /* 0 - 1000 (HZ)*/
98 #define TONE_VOLUME 0x0002 /* 0 - 100 (%) */
108 /* 9003 - 9004: Vendor specific */
109 /* 9006 - 9999: Vendor specific */
114 #define SENSOR_PREFIX "ibm,sensor-"
234 return -ENODEV; in proc_rtas_init()
238 return -ENODEV; in proc_rtas_init()
264 return -EINVAL; in parse_number()
267 return -EFAULT; in parse_number()
275 /* POWER-ON-TIME */
317 count = MAX_LINELENGTH -1; in ppc_rtas_progress_write()
319 return -EFAULT; in ppc_rtas_progress_write()
405 sprintf (rstr, SENSOR_PREFIX"%04d", p->token); in ppc_rtas_sensors_show()
409 for (j = 0, offs = 0; j <= p->quant; j++) { in ppc_rtas_sensors_show()
411 p->token, j); in ppc_rtas_sensors_show()
433 utmp = of_get_property(rtas_node, "rtas-sensors", &len); in ppc_rtas_find_all_sensors()
435 printk (KERN_ERR "error: could not get rtas-sensors\n"); in ppc_rtas_find_all_sensors()
514 switch (s->token) { in ppc_rtas_process_sensor()
600 seq_printf(m, "Fan (rpm):\t"); in ppc_rtas_process_sensor()
619 s->token); in ppc_rtas_process_sensor()
660 seq_printf(m, "- %c", c[1]); in check_location()
672 * ${LETTER}${NUMBER}[[-/]${LETTER}${NUMBER} [ ... ] ]
680 else if (*c == '/' || *c == '-') in check_location_string()
693 seq_printf(m, "---");/* does not have a location */ in get_location_code()
700 /* INDICATORS - Tone Frequency */
725 /* INDICATORS - Tone Volume */
754 * ppc_rtas_rmo_buf_show() - Describe RTAS-addressable region for user space.
758 * Base + size description of a range of RTAS-addressable memory set