Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 17 of 17) sorted by relevance

/tools/iio/
Diio_utils.c291 struct iio_channel_info temp; in bsort_channel_array_by_index() local
297 temp = ci_array[y + 1]; in bsort_channel_array_by_index()
299 ci_array[y] = temp; in bsort_channel_array_by_index()
661 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int() local
663 if (!temp) in _write_sysfs_int()
666 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_int()
670 sysfsfp = fopen(temp, "w"); in _write_sysfs_int()
673 fprintf(stderr, "failed to open %s\n", temp); in _write_sysfs_int()
691 sysfsfp = fopen(temp, "r"); in _write_sysfs_int()
694 fprintf(stderr, "failed to open %s\n", temp); in _write_sysfs_int()
[all …]
/tools/testing/selftests/size/
Dget_size.c58 unsigned long long temp; in print_k_value() local
63 temp = num; in print_k_value()
64 temp = (temp * units)/1024; in print_k_value()
65 num = temp; in print_k_value()
/tools/testing/selftests/net/
Dtcp_mmap.c98 unsigned long temp = htotal; in hash_zone() local
102 temp ^= *(unsigned long *)zone; in hash_zone()
103 temp ^= *(unsigned long *)(zone + sizeof(long)); in hash_zone()
104 temp ^= *(unsigned long *)(zone + 2*sizeof(long)); in hash_zone()
105 temp ^= *(unsigned long *)(zone + 3*sizeof(long)); in hash_zone()
106 temp ^= *(unsigned long *)(zone + 4*sizeof(long)); in hash_zone()
107 temp ^= *(unsigned long *)(zone + 5*sizeof(long)); in hash_zone()
108 temp ^= *(unsigned long *)(zone + 6*sizeof(long)); in hash_zone()
109 temp ^= *(unsigned long *)(zone + 7*sizeof(long)); in hash_zone()
114 temp ^= *(unsigned char *)zone; in hash_zone()
[all …]
/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.c53 struct timespec temp; in timespec_diff_us() local
55 temp.tv_sec = end.tv_sec - start.tv_sec - 1; in timespec_diff_us()
56 temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; in timespec_diff_us()
58 temp.tv_sec = end.tv_sec - start.tv_sec; in timespec_diff_us()
59 temp.tv_nsec = end.tv_nsec - start.tv_nsec; in timespec_diff_us()
61 return (temp.tv_sec * 1000000) + (temp.tv_nsec / 1000); in timespec_diff_us()
76 char *temp; in fill_string_with_spaces() local
82 temp = malloc(sizeof(char) * (n+1)); in fill_string_with_spaces()
86 snprintf(temp, n+1, " %s", s); in fill_string_with_spaces()
87 strcpy(s, temp); in fill_string_with_spaces()
[all …]
/tools/thermal/tmon/
Dtmon.c188 ptdata.tzi[i].tp[j].temp); in prepare_logging()
227 double yk = 0.0, temp; /* controller output */ in main() local
251 temp = strtod(optarg, NULL); in main()
252 if (temp < 0) { in main()
256 target_temp_user = temp; in main()
331 controller_handler(trec[0].temp[target_tz_index] / 1000, in main()
Dtmon.h43 unsigned long temp[MAX_NR_TZONE]; member
65 unsigned long temp; member
Dtui.c555 x = ptdata.tzi[tz].tp[j].temp / 1000; in draw_tp_line()
560 tz, j, ptdata.tzi[tz].tp[j].temp); in draw_tp_line()
583 int temp = trec[cur_thermal_record].temp[i] / 1000; in show_data_w() local
590 ptdata.tzi[i].instance, temp); in show_data_w()
591 draw_hbar(thermal_data_window, y, TDATA_LEFT, temp, ACS_RARROW, in show_data_w()
Dsysfs.c189 tzi->tp[tp_id].temp = temp_ulong; in find_tzone_tp()
502 &trec[next_thermal_record].temp[i]); in update_thermal_data()
505 trec[next_thermal_record].temp[i] / 1000); in update_thermal_data()
/tools/perf/util/
Dtrace-event-info.c492 int fd, bool temp) in tracing_data_get() argument
508 tdata->temp = temp; in tracing_data_get()
511 if (temp) { in tracing_data_get()
561 if (temp) { in tracing_data_get()
578 if (tdata->temp) { in tracing_data_put()
Dtrace-event.h58 bool temp; member
63 int fd, bool temp);
Dgenelf_debug.c297 unsigned int temp; in get_special_opcode() local
303 temp = (ent->lineno - last_line) - default_debug_line_header.line_base; in get_special_opcode()
305 if (temp >= default_debug_line_header.line_range) in get_special_opcode()
318 unsigned long opcode = temp + in get_special_opcode()
Dparse-events.c798 struct parse_events_term *term, *temp; in split_bpf_config_terms() local
808 list_for_each_entry_safe(term, temp, evt_head_config, list) in split_bpf_config_terms()
2662 struct parse_events_term *temp, in new_term() argument
2671 *term = *temp; in new_term()
2699 struct parse_events_term temp = { in parse_events_term__num() local
2708 return new_term(term, &temp, NULL, num); in parse_events_term__num()
2718 struct parse_events_term temp = { in parse_events_term__str() local
2726 return new_term(term, &temp, str, 0); in parse_events_term__str()
2733 struct parse_events_term temp = { in parse_events_term__sym_hw() local
2742 return new_term(term, &temp, (char *) sym->symbol, 0); in parse_events_term__sym_hw()
[all …]
Devlist.c181 struct evsel *evsel, *temp; in perf_evlist__splice_list_tail() local
183 __evlist__for_each_entry_safe(list, temp, evsel) { in perf_evlist__splice_list_tail()
Dsymbol-elf.c1335 bool temp) in kcore__init() argument
1339 if (temp) in kcore__init()
/tools/testing/selftests/android/ion/
Dipcsocket.c16 int ret, temp = 1; in opensocket() local
32 (char *)&temp, sizeof(int)) < 0) { in opensocket()
/tools/lib/traceevent/
Devent-plugin.c110 char **temp = list; in tep_plugin_list_options() local
119 list = temp; in tep_plugin_list_options()
/tools/perf/
Dbuiltin-script.c3090 char *temp; in find_scripts() local
3130 temp = strchr(script_dirent->d_name, '.'); in find_scripts()
3132 (temp - script_dirent->d_name) + 1, in find_scripts()