Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 9 of 9) sorted by relevance

/tools/thermal/tmon/
Dtui.c388 static void handle_input_val(int ch) in handle_input_val() argument
400 if (ch == ptdata.nr_cooling_dev) { in handle_input_val()
412 CDEV, ptdata.cdi[ch].instance); in handle_input_val()
424 static void handle_input_choice(int ch) in handle_input_choice() argument
430 if ((ch >= 'A' && ch <= 'A' + ptdata.nr_cooling_dev) || in handle_input_choice()
431 (ch >= 'a' && ch <= 'a' + ptdata.nr_cooling_dev)) { in handle_input_choice()
432 base = (ch < 'a') ? 'A' : 'a'; in handle_input_choice()
433 cdev_id = ch - base; in handle_input_choice()
443 snprintf(buf, sizeof(buf), "Invalid selection %d", ch); in handle_input_choice()
450 int ch; in handle_tui_events() local
[all …]
Dsysfs.c158 char *ch; in get_instance_id() local
161 ch = strtok(name, "_"); in get_instance_id()
162 while (ch != NULL) { in get_instance_id()
164 syslog(LOG_INFO, "%s:%s:%s:%d", __func__, name, ch, i); in get_instance_id()
165 ch = strtok(NULL, "_"); in get_instance_id()
167 return atol(ch + skip); in get_instance_id()
/tools/perf/util/
Dutil.c219 static int hex(char ch) in hex() argument
221 if ((ch >= '0') && (ch <= '9')) in hex()
222 return ch - '0'; in hex()
223 if ((ch >= 'a') && (ch <= 'f')) in hex()
224 return ch - 'a' + 10; in hex()
225 if ((ch >= 'A') && (ch <= 'F')) in hex()
226 return ch - 'A' + 10; in hex()
Dconfig.c172 int ch = get_next_char(); in get_extended_base_var() local
174 if (ch == '\n') in get_extended_base_var()
176 if (ch == '"') in get_extended_base_var()
178 if (ch == '\\') { in get_extended_base_var()
179 ch = get_next_char(); in get_extended_base_var()
180 if (ch == '\n') in get_extended_base_var()
183 name[baselen++] = ch; in get_extended_base_var()
/tools/perf/tests/
Dattr.py283 ch = logging.StreamHandler()
284 ch.setLevel(level)
286 ch.setFormatter(formatter)
287 log.addHandler(ch)
/tools/lib/traceevent/
Devent-parse.c795 static enum event_type get_type(int ch) in get_type() argument
797 if (ch == '\n') in get_type()
799 if (isspace(ch)) in get_type()
801 if (isalnum(ch) || ch == '_') in get_type()
803 if (ch == '\'') in get_type()
805 if (ch == '"') in get_type()
807 if (!isprint(ch)) in get_type()
809 if (ch == '(' || ch == ')' || ch == ',') in get_type()
865 int ch, last_ch, quote_ch, next_ch; in __read_token() local
873 ch = __read_char(); in __read_token()
[all …]
/tools/testing/ktest/
Dktest.pl1702 my $ch;
1715 while (sysread $fp, $ch, 1) {
1716 $line .= $ch;
1717 last if ($ch eq "\n");
/tools/power/cpupower/po/
Dcs.po354 " v těchto mezích.\n"
504 "Není-li při použití přepínačů označených * zadán parametr -c nebo --cpu,\n"
593 "Není-li při použití přepínačů označených * zadán parametr -c nebo --cpu,\n"
628 "Chyba při nastavování nových hodnot. Obvyklé problémy:\n"
/tools/perf/
DMakefile.perf757 TE_SOURCES = $(wildcard $(TRACE_EVENT_DIR)*.[ch])
773 LIBAPIKFS_SOURCES = $(wildcard $(LIB_PATH)fs/*.[ch] $(LIB_PATH)fd/*.[ch])