Lines Matching refs:idlestate
104 unsigned int idlestate, in sysfs_idlestate_file_exists() argument
112 cpu, idlestate, fname); in sysfs_idlestate_file_exists()
124 unsigned int sysfs_idlestate_read_file(unsigned int cpu, unsigned int idlestate, in sysfs_idlestate_read_file() argument
132 cpu, idlestate, fname); in sysfs_idlestate_read_file()
158 unsigned int idlestate, in sysfs_idlestate_write_file() argument
167 cpu, idlestate, fname); in sysfs_idlestate_write_file()
204 unsigned int idlestate, in sysfs_idlestate_get_one_value() argument
215 len = sysfs_idlestate_read_file(cpu, idlestate, in sysfs_idlestate_get_one_value()
244 unsigned int idlestate, in sysfs_idlestate_get_one_string() argument
254 len = sysfs_idlestate_read_file(cpu, idlestate, in sysfs_idlestate_get_one_string()
278 unsigned int idlestate) in sysfs_is_idlestate_disabled() argument
280 if (sysfs_get_idlestate_count(cpu) <= idlestate) in sysfs_is_idlestate_disabled()
283 if (!sysfs_idlestate_file_exists(cpu, idlestate, in sysfs_is_idlestate_disabled()
286 return sysfs_idlestate_get_one_value(cpu, idlestate, IDLESTATE_DISABLE); in sysfs_is_idlestate_disabled()
299 unsigned int idlestate, in sysfs_idlestate_disable() argument
305 if (sysfs_get_idlestate_count(cpu) <= idlestate) in sysfs_idlestate_disable()
308 if (!sysfs_idlestate_file_exists(cpu, idlestate, in sysfs_idlestate_disable()
314 bytes_written = sysfs_idlestate_write_file(cpu, idlestate, "disable", in sysfs_idlestate_disable()
322 unsigned int idlestate) in sysfs_get_idlestate_latency() argument
324 return sysfs_idlestate_get_one_value(cpu, idlestate, IDLESTATE_LATENCY); in sysfs_get_idlestate_latency()
328 unsigned int idlestate) in sysfs_get_idlestate_usage() argument
330 return sysfs_idlestate_get_one_value(cpu, idlestate, IDLESTATE_USAGE); in sysfs_get_idlestate_usage()
334 unsigned int idlestate) in sysfs_get_idlestate_time() argument
336 return sysfs_idlestate_get_one_value(cpu, idlestate, IDLESTATE_TIME); in sysfs_get_idlestate_time()
339 char *sysfs_get_idlestate_name(unsigned int cpu, unsigned int idlestate) in sysfs_get_idlestate_name() argument
341 return sysfs_idlestate_get_one_string(cpu, idlestate, IDLESTATE_NAME); in sysfs_get_idlestate_name()
344 char *sysfs_get_idlestate_desc(unsigned int cpu, unsigned int idlestate) in sysfs_get_idlestate_desc() argument
346 return sysfs_idlestate_get_one_string(cpu, idlestate, IDLESTATE_DESC); in sysfs_get_idlestate_desc()