Home
last modified time | relevance | path

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

12

/tools/iio/
Diio_utils.c294 struct iio_channel_info temp; in bsort_channel_array_by_index() local
300 temp = ci_array[y + 1]; in bsort_channel_array_by_index()
302 ci_array[y] = temp; in bsort_channel_array_by_index()
658 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int() local
660 if (!temp) in _write_sysfs_int()
663 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_int()
667 sysfsfp = fopen(temp, "w"); in _write_sysfs_int()
670 fprintf(stderr, "failed to open %s\n", temp); in _write_sysfs_int()
688 sysfsfp = fopen(temp, "r"); in _write_sysfs_int()
691 fprintf(stderr, "failed to open %s\n", temp); in _write_sysfs_int()
[all …]
/tools/thermal/thermal-engine/
Dthermal-engine.c52 tt->id, tt->type, tt->temp, tt->hyst); in show_trip()
61 INFO("temperature: %d\n", tz->temp); in show_temp()
148 static int trip_high(int tz_id, int trip_id, int temp, void *arg) in trip_high() argument
154 tz_id, tz->name, trip_id, temp); in trip_high()
159 static int trip_low(int tz_id, int trip_id, int temp, void *arg) in trip_low() argument
165 tz_id, tz->name, trip_id, temp); in trip_low()
170 static int trip_add(int tz_id, int trip_id, int type, int temp, int hyst, __maybe_unused void *arg) in trip_add() argument
173 tz_id, trip_id, type, temp, hyst); in trip_add()
185 static int trip_change(int tz_id, int trip_id, int type, int temp, in trip_change() argument
192 tz_id, trip_id, type, temp, hyst); in trip_change()
[all …]
/tools/testing/selftests/size/
Dget_size.c70 unsigned long long temp; in print_k_value() local
75 temp = num; in print_k_value()
76 temp = (temp * units)/1024; in print_k_value()
77 num = temp; in print_k_value()
/tools/lib/thermal/include/
Dthermal.h26 int (*tz_temp)(int tz_id, int temp, void *arg);
34 int (*trip_high)(int tz_id, int trip_id, int temp, void *arg);
35 int (*trip_low)(int tz_id, int trip_id, int temp, void *arg);
36 int (*trip_add)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg);
37 int (*trip_change)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg);
46 int (*threshold_up)(int tz_id, int temp, int prev_temp, void *arg);
47 int (*threshold_down)(int tz_id, int temp, int prev_temp, void *arg);
58 int temp; member
69 int temp; member
/tools/lib/api/
Dio.h156 char *line = NULL, *temp; in io__getdelim() local
169 temp = realloc(line, line_len + sizeof(buf)); in io__getdelim()
170 if (!temp) in io__getdelim()
172 line = temp; in io__getdelim()
179 temp = realloc(line, line_len + buf_pos + 1); in io__getdelim()
180 if (!temp) in io__getdelim()
182 line = temp; in io__getdelim()
/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.c55 struct timespec temp; in timespec_diff_us() local
57 temp.tv_sec = end.tv_sec - start.tv_sec - 1; in timespec_diff_us()
58 temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; in timespec_diff_us()
60 temp.tv_sec = end.tv_sec - start.tv_sec; in timespec_diff_us()
61 temp.tv_nsec = end.tv_nsec - start.tv_nsec; in timespec_diff_us()
63 return (temp.tv_sec * 1000000) + (temp.tv_nsec / 1000); in timespec_diff_us()
78 char *temp; in fill_string_with_spaces() local
84 temp = malloc(sizeof(char) * (n+1)); in fill_string_with_spaces()
88 snprintf(temp, n+1, " %s", s); in fill_string_with_spaces()
89 strcpy(s, temp); in fill_string_with_spaces()
[all …]
/tools/testing/selftests/net/forwarding/
Dbridge_mdb_max.sh411 ${CFG}_entries_add "$locus" temp 5
418 ${CFG}_entries_del "$locus" temp 5
499 ${CFG}_entries_add "$locus1" temp 5 111
510 ${CFG}_entries_add "$locus2" temp 5 112
521 ${CFG}_entries_del "$locus1" temp 5 111
523 ${CFG}_entries_del "$locus2" temp 5 112
580 ${CFG}_entries_add "$locus" temp 5
582 ${CFG}_entries_del "$locus" temp 5
759 ${CFG}_entries_add "$locus" temp 5 111
765 msg=$(${CFG}_entries_add "$locus" temp 2 112 2>&1)
[all …]
Dbridge_mdb.sh246 bridge mdb add dev br0 port $swp1 $grp_key temp vid 10 &> /dev/null
339 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
356 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
372 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
423 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
433 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
443 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
446 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
453 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
463 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
[all …]
/tools/testing/selftests/resctrl/
Dmba_test.c125 char *token_array[8], output[] = RESULT_FILE_NAME, temp[512]; in check_results() local
138 while (fgets(temp, sizeof(temp), fp)) { in check_results()
139 char *token = strtok(temp, ":\t"); in check_results()
Dmbm_test.c54 char temp[1024], *token_array[8]; in check_results() local
69 while (fgets(temp, sizeof(temp), fp)) { in check_results()
70 char *token = strtok(temp, ":\t"); in check_results()
Dcmt_test.c79 char *token_array[8], temp[512]; in check_results() local
92 while (fgets(temp, sizeof(temp), fp)) { in check_results()
93 char *token = strtok(temp, ":\t"); in check_results()
Dresctrl_val.c204 char imc_dir[512], *temp; in num_of_imcs() local
213 temp = strstr(ep->d_name, UNCORE_IMC); in num_of_imcs()
214 if (!temp) in num_of_imcs()
224 temp = temp + sizeof(UNCORE_IMC); in num_of_imcs()
231 if (temp[0] >= '0' && temp[0] <= '9') { in num_of_imcs()
Dcat_test.c71 char *token_array[8], temp[512]; in check_results() local
88 while (fgets(temp, sizeof(temp), fp)) { in check_results()
89 char *token = strtok(temp, ":\t"); in check_results()
/tools/testing/selftests/net/
Dtcp_mmap.c107 unsigned long temp = htotal; in hash_zone() local
111 temp ^= *(unsigned long *)zone; in hash_zone()
112 temp ^= *(unsigned long *)(zone + sizeof(long)); in hash_zone()
113 temp ^= *(unsigned long *)(zone + 2*sizeof(long)); in hash_zone()
114 temp ^= *(unsigned long *)(zone + 3*sizeof(long)); in hash_zone()
115 temp ^= *(unsigned long *)(zone + 4*sizeof(long)); in hash_zone()
116 temp ^= *(unsigned long *)(zone + 5*sizeof(long)); in hash_zone()
117 temp ^= *(unsigned long *)(zone + 6*sizeof(long)); in hash_zone()
118 temp ^= *(unsigned long *)(zone + 7*sizeof(long)); in hash_zone()
123 temp ^= *(unsigned char *)zone; in hash_zone()
[all …]
/tools/thermal/tmon/
Dtmon.c184 ptdata.tzi[i].tp[j].temp); in prepare_logging()
221 double yk = 0.0, temp; /* controller output */ in main() local
245 temp = strtod(optarg, NULL); in main()
246 if (temp < 0) { in main()
250 target_temp_user = temp; in main()
325 controller_handler(trec[0].temp[target_tz_index] / 1000, &yk); in main()
Dtmon.h46 unsigned long temp[MAX_NR_TZONE]; member
68 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.c190 tzi->tp[tp_id].temp = temp_ulong; in find_tzone_tp()
504 &trec[next_thermal_record].temp[i]); in update_thermal_data()
507 trec[next_thermal_record].temp[i] / 1000); in update_thermal_data()
/tools/lib/thermal/
Dcommands.c142 __tt[size - 1].temp = nla_get_u32(attr); in parse_tz_get_trip()
167 tz->temp = nla_get_u32(info->attrs[THERMAL_GENL_ATTR_TZ_TEMP]); in parse_tz_get_temp()
346 int temp; member
365 if (nla_put_u32(msg, THERMAL_GENL_ATTR_THRESHOLD_TEMP, p->temp)) in thermal_genl_threshold_encode()
454 struct cmd_param p = { .tz_id = tz->id, .temp = temperature, .direction = direction }; in thermal_cmd_threshold_add()
465 struct cmd_param p = { .tz_id = tz->id, .temp = temperature, .direction = direction }; in thermal_cmd_threshold_delete()
/tools/perf/util/
Dtrace-event-info.c593 int fd, bool temp) in tracing_data_get() argument
609 tdata->temp = temp; in tracing_data_get()
612 if (temp) { in tracing_data_get()
662 if (temp) { in tracing_data_get()
679 if (tdata->temp) { in tracing_data_put()
Dtrace-event.h77 bool temp; member
82 int fd, bool temp);
Dgenelf_debug.c304 unsigned int temp; in get_special_opcode() local
310 temp = (ent->lineno - last_line) - default_debug_line_header.line_base; in get_special_opcode()
312 if (temp >= default_debug_line_header.line_range) in get_special_opcode()
325 unsigned long opcode = temp + in get_special_opcode()
Ddsos.c199 struct dso **temp; in __dsos__add() local
203 temp = realloc(dsos->dsos, sizeof(struct dso *) * to_allocate); in __dsos__add()
204 if (!temp) in __dsos__add()
206 dsos->dsos = temp; in __dsos__add()
/tools/testing/selftests/hid/
Dhid_common.h323 char temp[512]; in match_sysfs_device() local
339 nread = read(fd, temp, ARRAY_SIZE(temp)); in match_sysfs_device()
340 if (nread > 0 && (strstr(temp, phys)) != NULL) in match_sysfs_device()
/tools/testing/selftests/sgx/
Dsigstruct.c68 uint8_t temp; in reverse_bytes() local
72 temp = ptr[i]; in reverse_bytes()
74 ptr[j] = temp; in reverse_bytes()

12