Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 120) sorted by relevance

12345

/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c79 void fix_up_intel_idle_driver_name(char *tmp, int num) in fix_up_intel_idle_driver_name() argument
83 switch (num) { in fix_up_intel_idle_driver_name()
95 switch (num) { in fix_up_intel_idle_driver_name()
110 switch (num) { in fix_up_intel_idle_driver_name()
143 int num; in cpuidle_register() local
155 for (num = 0; num < cpuidle_sysfs_monitor.hw_states_num; num++) { in cpuidle_register()
156 tmp = cpuidle_state_name(this_cpu, num); in cpuidle_register()
161 fix_up_intel_idle_driver_name(tmp, num); in cpuidle_register()
162 strncpy(cpuidle_cstates[num].name, tmp, CSTATE_NAME_LEN - 1); in cpuidle_register()
165 tmp = cpuidle_state_desc(this_cpu, num); in cpuidle_register()
[all …]
Dhsw_ext_idle.c115 int num, cpu; in hsw_ext_start() local
118 for (num = 0; num < HSW_EXT_CSTATE_COUNT; num++) { in hsw_ext_start()
120 hsw_ext_get_count(num, &val, cpu); in hsw_ext_start()
121 previous_count[num][cpu] = val; in hsw_ext_start()
131 int num, cpu; in hsw_ext_stop() local
135 for (num = 0; num < HSW_EXT_CSTATE_COUNT; num++) { in hsw_ext_stop()
137 is_valid[cpu] = !hsw_ext_get_count(num, &val, cpu); in hsw_ext_stop()
138 current_count[num][cpu] = val; in hsw_ext_stop()
148 int num; in hsw_ext_register() local
162 for (num = 0; num < HSW_EXT_CSTATE_COUNT; num++) { in hsw_ext_register()
[all …]
Dsnb_idle.c113 int num, cpu; in snb_start() local
116 for (num = 0; num < SNB_CSTATE_COUNT; num++) { in snb_start()
118 snb_get_count(num, &val, cpu); in snb_start()
119 previous_count[num][cpu] = val; in snb_start()
129 int num, cpu; in snb_stop() local
133 for (num = 0; num < SNB_CSTATE_COUNT; num++) { in snb_stop()
135 is_valid[cpu] = !snb_get_count(num, &val, cpu); in snb_stop()
136 current_count[num][cpu] = val; in snb_stop()
146 int num; in snb_register() local
167 for (num = 0; num < SNB_CSTATE_COUNT; num++) { in snb_register()
[all …]
Dnhm_idle.c128 int num, cpu; in nhm_start() local
133 for (num = 0; num < NHM_CSTATE_COUNT; num++) { in nhm_start()
135 is_valid[cpu] = !nhm_get_count(num, &val, cpu); in nhm_start()
136 previous_count[num][cpu] = val; in nhm_start()
148 int num, cpu; in nhm_stop() local
152 for (num = 0; num < NHM_CSTATE_COUNT; num++) { in nhm_stop()
154 is_valid[cpu] = !nhm_get_count(num, &val, cpu); in nhm_stop()
155 current_count[num][cpu] = val; in nhm_stop()
168 int num; in intel_nhm_register() local
181 for (num = 0; num < NHM_CSTATE_COUNT; num++) { in intel_nhm_register()
[all …]
Dcpupower-monitor.c222 unsigned int num; in parse_monitor_param() local
238 for (num = 0; num < avail_monitors; num++) { in parse_monitor_param()
239 if (!strcmp(monitors[num]->name, token)) { in parse_monitor_param()
241 tmp_mons[hits] = monitors[num]; in parse_monitor_param()
284 unsigned int num; in fork_it() local
292 for (num = 0; num < avail_monitors; num++) in fork_it()
293 monitors[num]->start(); in fork_it()
313 for (num = 0; num < avail_monitors; num++) in fork_it()
314 monitors[num]->stop(); in fork_it()
326 unsigned int num; in do_interval_measure() local
[all …]
Damd_fam14h_idle.c230 int num, cpu; in amd_fam14h_start() local
232 for (num = 0; num < AMD_FAM14H_STATE_NUM; num++) { in amd_fam14h_start()
234 amd_fam14h_init(&amd_fam14h_cstates[num], cpu); in amd_fam14h_start()
247 int num, cpu; in amd_fam14h_stop() local
252 for (num = 0; num < AMD_FAM14H_STATE_NUM; num++) { in amd_fam14h_stop()
254 amd_fam14h_disable(&amd_fam14h_cstates[num], cpu); in amd_fam14h_stop()
278 int num; in amd_fam14h_register() local
293 for (num = 0; num < AMD_FAM14H_STATE_NUM - 1; num++) { in amd_fam14h_register()
294 previous_count[num] = calloc(cpu_count, in amd_fam14h_register()
296 current_count[num] = calloc(cpu_count, in amd_fam14h_register()
[all …]
/tools/include/asm-generic/bitops/
D__ffs.h16 int num = 0; in __ffs() local
20 num += 32; in __ffs()
25 num += 16; in __ffs()
29 num += 8; in __ffs()
33 num += 4; in __ffs()
37 num += 2; in __ffs()
41 num += 1; in __ffs()
42 return num; in __ffs()
D__fls.h15 int num = BITS_PER_LONG - 1; in __fls() local
19 num -= 32; in __fls()
24 num -= 16; in __fls()
28 num -= 8; in __fls()
32 num -= 4; in __fls()
36 num -= 2; in __fls()
40 num -= 1; in __fls()
41 return num; in __fls()
/tools/testing/selftests/size/
Dget_size.c45 static inline char *num_to_str(unsigned long num, char *buf, int len) in num_to_str() argument
53 digit = num % 10; in num_to_str()
55 num /= 10; in num_to_str()
56 } while (num > 0); in num_to_str()
61 static int print_num(unsigned long num) in print_num() argument
65 return print(num_to_str(num, num_buf, sizeof(num_buf))); in print_num()
68 static int print_k_value(const char *s, unsigned long num, unsigned long units) in print_k_value() argument
75 temp = num; in print_k_value()
77 num = temp; in print_k_value()
78 ccode = print_num(num); in print_k_value()
/tools/bpf/bpftool/
Djson_writer.c214 void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num) in jsonw_float_fmt() argument
216 jsonw_printf(self, fmt, num); in jsonw_float_fmt()
220 void jsonw_float(json_writer_t *self, double num) in jsonw_float() argument
222 jsonw_printf(self, "%g", num); in jsonw_float()
226 void jsonw_hu(json_writer_t *self, unsigned short num) in jsonw_hu() argument
228 jsonw_printf(self, "%hu", num); in jsonw_hu()
231 void jsonw_uint(json_writer_t *self, uint64_t num) in jsonw_uint() argument
233 jsonw_printf(self, "%"PRIu64, num); in jsonw_uint()
236 void jsonw_lluint(json_writer_t *self, unsigned long long int num) in jsonw_lluint() argument
238 jsonw_printf(self, "%llu", num); in jsonw_lluint()
[all …]
Djson_writer.h43 void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num);
48 void jsonw_lluint(json_writer_t *self, unsigned long long int num);
53 void jsonw_float_field(json_writer_t *self, const char *prop, double num);
54 void jsonw_uint_field(json_writer_t *self, const char *prop, uint64_t num);
55 void jsonw_hu_field(json_writer_t *self, const char *prop, unsigned short num);
56 void jsonw_int_field(json_writer_t *self, const char *prop, int64_t num);
59 unsigned long long int num);
/tools/include/nolibc/
Dnolibc.h299 #define my_syscall0(num) \ argument
302 register long _num asm("rax") = (num); \
313 #define my_syscall1(num, arg1) \ argument
316 register long _num asm("rax") = (num); \
329 #define my_syscall2(num, arg1, arg2) \ argument
332 register long _num asm("rax") = (num); \
346 #define my_syscall3(num, arg1, arg2, arg3) \ argument
349 register long _num asm("rax") = (num); \
364 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument
367 register long _num asm("rax") = (num); \
[all …]
/tools/perf/util/
Dpmu.l11 long num; in value() local
14 num = strtoul(perf_pmu_text, NULL, base); in value()
18 perf_pmu_lval.num = num; in value()
Dtime-utils.c125 int i, num = 0, rc = 0; in perf_time__parse_strs() local
129 num += !!(*cp == ','); in perf_time__parse_strs()
131 if (!num) in perf_time__parse_strs()
134 BUG_ON(num > size); in perf_time__parse_strs()
141 for (i = 0, p = str; i < num - 1; i++) { in perf_time__parse_strs()
166 for (i = 0; i < num - 1; i++) { in perf_time__parse_strs()
173 rc = num; in perf_time__parse_strs()
282 static int percent_comma_split(struct perf_time_interval *ptime_buf, int num, in percent_comma_split() argument
297 if (i >= num) { in percent_comma_split()
358 int perf_time__percent_parse_str(struct perf_time_interval *ptime_buf, int num, in perf_time__percent_parse_str() argument
[all …]
/tools/perf/arch/arm/util/
Ddwarf-regs.c17 #define REG_DWARFNUM_NAME(r, num) {.name = r, .dwarfnum = num} argument
18 #define GPR_DWARFNUM_NAME(num) \ argument
19 {.name = __stringify(%r##num), .dwarfnum = num}
/tools/perf/tests/
Dpmu.c30 .val.num = 15,
36 .val.num = 170,
42 .val.num = 1,
48 .val.num = 27,
54 .val.num = 1,
60 .val.num = 2,
66 .val.num = 119,
72 .val.num = 11,
78 .val.num = 2,
Dtime-utils-test.c65 int num; member
95 if (range_size < d->num || range_num != d->num) { in test__perf_time__parse_for_ranges()
97 range_size, range_num, d->num); in test__perf_time__parse_for_ranges()
101 for (i = 0; i < d->num; i++) { in test__perf_time__parse_for_ranges()
110 if (perf_time__ranges_skip_sample(ptime, d->num, 0)) { in test__perf_time__parse_for_ranges()
117 !perf_time__ranges_skip_sample(ptime, d->num, d->skip[i])) { in test__perf_time__parse_for_ranges()
122 perf_time__ranges_skip_sample(ptime, d->num, d->noskip[i])) { in test__perf_time__parse_for_ranges()
163 .num = 1, in test__time_utils()
180 .num = 3, in test__time_utils()
195 .num = 1, in test__time_utils()
[all …]
/tools/testing/selftests/bpf/
Dtesting_helpers.c9 int i, set_len = 0, new_len, num, start = 0, end = -1; in parse_num_list() local
15 num = strtol(s, &next, 10); in parse_num_list()
20 end = num; in parse_num_list()
22 start = num; in parse_num_list()
31 end = num; in parse_num_list()
35 end = num; in parse_num_list()
/tools/perf/arch/powerpc/util/
Ddwarf-regs.c22 #define REG_DWARFNUM_NAME(r, num) \ argument
23 {.name = __stringify(%)__stringify(r), .dwarfnum = num, \
25 #define GPR_DWARFNUM_NAME(num) \ argument
26 {.name = __stringify(%gpr##num), .dwarfnum = num, \
27 .ptregs_offset = offsetof(struct pt_regs, gpr[num])}
/tools/testing/selftests/net/
Dpsock_lib.h111 static __maybe_unused void pair_udp_send_char(int fds[], int num, char payload) in pair_udp_send_char() argument
116 while (num--) { in pair_udp_send_char()
119 fprintf(stderr, "ERROR: send failed left=%d\n", num); in pair_udp_send_char()
123 fprintf(stderr, "ERROR: recv failed left=%d\n", num); in pair_udp_send_char()
127 fprintf(stderr, "ERROR: data failed left=%d\n", num); in pair_udp_send_char()
133 static __maybe_unused void pair_udp_send(int fds[], int num) in pair_udp_send() argument
135 return pair_udp_send_char(fds, num, DATA_CHAR); in pair_udp_send()
/tools/testing/selftests/kvm/include/
Dsparsebit.h37 sparsebit_idx_t idx, sparsebit_num_t num);
40 sparsebit_idx_t idx, sparsebit_num_t num);
51 sparsebit_idx_t start, sparsebit_num_t num);
53 sparsebit_idx_t start, sparsebit_num_t num);
57 sparsebit_num_t num);
62 sparsebit_idx_t start, sparsebit_num_t num);
/tools/perf/arch/arm64/util/
Ddwarf-regs.c20 #define REG_DWARFNUM_NAME(r, num) {.name = r, .dwarfnum = num} argument
21 #define GPR_DWARFNUM_NAME(num) \ argument
22 {.name = __stringify(%x##num), .dwarfnum = num}
/tools/vm/
Dpage_owner_sort.c23 int num; member
59 return l2->num - l1->num; in compare_num()
67 list[list_size-1].num++; in add_list()
76 list[list_size].num = 1; in add_list()
143 list2[count-1].num += list[i].num; in main()
150 fprintf(fout, "%d times:\n%s\n", list2[i].num, list2[i].txt); in main()
/tools/usb/usbip/libsrc/
Dusbip_common.c20 int num; member
36 int num; member
54 if (portst_strings[i].num == status) in usbip_status_string()
60 const char *usbip_speed_string(int num) in usbip_speed_string() argument
63 if (speed_strings[i].num == num) in usbip_speed_string()
70 int num; member
87 if (op_common_status_strings[i].num == status) in usbip_op_common_status_string()
145 int num = 0; in read_attr_value() local
164 ret = sscanf(attr, format, &num); in read_attr_value()
175 return num; in read_attr_value()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dglobal_data.c8 __u64 num; in test_global_data_number() local
17 __u64 num; in test_global_data_number() member
33 err = bpf_map_lookup_elem(map_fd, &tests[i].key, &num); in test_global_data_number()
34 CHECK(err || num != tests[i].num, tests[i].name, in test_global_data_number()
36 err, num, tests[i].num); in test_global_data_number()

12345