Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 29) sorted by relevance

12

/tools/usb/ffs-aio-example/simple/host_app/
Dtest.c64 int test_init(struct test_state *state) in test_init() argument
70 state->found = NULL; in test_init()
71 state->ctx = NULL; in test_init()
72 state->handle = NULL; in test_init()
73 state->attached = 0; in test_init()
75 ret = libusb_init(&state->ctx); in test_init()
81 cnt = libusb_get_device_list(state->ctx, &list); in test_init()
97 state->found = dev; in test_init()
102 if (!state->found) { in test_init()
107 ret = libusb_open(state->found, &state->handle); in test_init()
[all …]
/tools/usb/ffs-aio-example/multibuff/host_app/
Dtest.c64 int test_init(struct test_state *state) in test_init() argument
70 state->found = NULL; in test_init()
71 state->ctx = NULL; in test_init()
72 state->handle = NULL; in test_init()
73 state->attached = 0; in test_init()
75 ret = libusb_init(&state->ctx); in test_init()
81 cnt = libusb_get_device_list(state->ctx, &list); in test_init()
97 state->found = dev; in test_init()
102 if (!state->found) { in test_init()
107 ret = libusb_open(state->found, &state->handle); in test_init()
[all …]
/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c48 int cpu, state; in cpuidle_start() local
51 for (state = 0; state < cpuidle_sysfs_monitor.hw_states_num; in cpuidle_start()
52 state++) { in cpuidle_start()
53 previous_count[cpu][state] = in cpuidle_start()
54 sysfs_get_idlestate_time(cpu, state); in cpuidle_start()
56 cpu, state, previous_count[cpu][state]); in cpuidle_start()
64 int cpu, state; in cpuidle_stop() local
70 for (state = 0; state < cpuidle_sysfs_monitor.hw_states_num; in cpuidle_stop()
71 state++) { in cpuidle_stop()
72 current_count[cpu][state] = in cpuidle_stop()
[all …]
Damd_fam14h_idle.c97 static int amd_fam14h_get_pci_info(struct cstate *state, in amd_fam14h_get_pci_info() argument
102 switch (state->id) { in amd_fam14h_get_pci_info()
125 static int amd_fam14h_init(cstate_t *state, unsigned int cpu) in amd_fam14h_init() argument
130 ret = amd_fam14h_get_pci_info(state, &pci_offset, &enable_bit, cpu); in amd_fam14h_init()
135 if (state->id == NBP1) { in amd_fam14h_init()
144 dprint("Init %s: read at offset: 0x%x val: %u\n", state->name, in amd_fam14h_init()
150 state->name, PCI_MONITOR_ENABLE_REG, enable_bit, in amd_fam14h_init()
155 previous_count[state->id][cpu] = 0; in amd_fam14h_init()
160 static int amd_fam14h_disable(cstate_t *state, unsigned int cpu) in amd_fam14h_disable() argument
165 ret = amd_fam14h_get_pci_info(state, &pci_offset, &enable_bit, cpu); in amd_fam14h_disable()
[all …]
Dcpupower-monitor.c88 int state, need_len; in print_header() local
121 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in print_header()
122 if (state != 0) in print_header()
124 s = monitors[mon]->hw_states[state]; in print_header()
138 int state, ret; in print_results() local
158 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in print_results()
159 if (state != 0) in print_results()
162 s = monitors[mon]->hw_states[state]; in print_results()
251 int state; in list_monitors() local
260 for (state = 0; state < monitors[mon]->hw_states_num; state++) { in list_monitors()
[all …]
/tools/perf/tests/
Dcode-reading.c22 struct state { struct
137 struct state *state) in read_object_code() argument
191 for (d = 0; d < state->done_cnt; d++) { in read_object_code()
192 if (state->done[d] == al.map->start) { in read_object_code()
198 if (state->done_cnt >= ARRAY_SIZE(state->done)) { in read_object_code()
202 state->done[state->done_cnt++] = al.map->start; in read_object_code()
248 union perf_event *event, struct state *state) in process_sample_event() argument
268 state); in process_sample_event()
272 union perf_event *event, struct state *state) in process_event() argument
275 return process_sample_event(machine, evlist, event, state); in process_event()
[all …]
/tools/testing/selftests/memory-hotplug/
Don-off-test.sh32 local state=${1:-.\*}
36 grep -q $state $memory/state; then
54 grep -q online $SYSFS/devices/system/memory/memory$1/state
59 grep -q offline $SYSFS/devices/system/memory/memory$1/state
64 echo online > $SYSFS/devices/system/memory/memory$1/state
69 echo offline > $SYSFS/devices/system/memory/memory$1/state
/tools/lib/traceevent/
Dtrace-seq.c38 (s)->state = TRACE_SEQ__BUFFER_POISONED; \
44 if ((s)->state != TRACE_SEQ__GOOD) \
62 s->state = TRACE_SEQ__GOOD; in trace_seq_init()
64 s->state = TRACE_SEQ__MEM_ALLOC_FAILED; in trace_seq_init()
101 s->state = TRACE_SEQ__MEM_ALLOC_FAILED; in expand_buffer()
238 switch (s->state) { in trace_seq_do_printf()
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DCore.py94 def taskState(state): argument
102 if state not in states:
105 return states[state]
/tools/perf/
Dbuiltin-timechart.c115 long state; member
173 int state; member
344 static void c_state_start(int cpu, u64 timestamp, int state) in c_state_start() argument
347 cpus_cstate_state[cpu] = state; in c_state_start()
357 pwr->state = cpus_cstate_state[cpu]; in c_state_end()
378 pwr->state = cpus_pstate_state[cpu]; in p_state_change()
424 if (p && p->current && p->current->state == TYPE_NONE) { in sched_wakeup()
426 p->current->state = TYPE_WAITING; in sched_wakeup()
428 if (p && p->current && p->current->state == TYPE_BLOCKED) { in sched_wakeup()
429 pid_put_sample(tchart, p->pid, p->current->state, cpu, in sched_wakeup()
[all …]
Dbuiltin-lock.c102 int state; member
373 seq->state = SEQ_STATE_UNINITIALIZED; in get_seq()
422 switch (seq->state) { in report_lock_acquire_event()
426 seq->state = SEQ_STATE_ACQUIRING; in report_lock_acquire_event()
432 seq->state = SEQ_STATE_READ_ACQUIRED; in report_lock_acquire_event()
494 switch (seq->state) { in report_lock_acquired_event()
522 seq->state = SEQ_STATE_ACQUIRED; in report_lock_acquired_event()
556 switch (seq->state) { in report_lock_contended_event()
577 seq->state = SEQ_STATE_CONTENDED; in report_lock_contended_event()
611 switch (seq->state) { in report_lock_release_event()
Dbuiltin-sched.c81 enum thread_state state; member
861 atom->state = THREAD_WAIT_CPU; in add_sched_out_event()
894 if (atom->state != THREAD_WAIT_CPU) in add_sched_in_event()
898 atom->state = THREAD_IGNORE; in add_sched_in_event()
902 atom->state = THREAD_SCHED_IN; in add_sched_in_event()
1048 if (sched->profile_cpu == -1 && atom->state != THREAD_SLEEPING) in latency_wakeup_event()
1057 atom->state = THREAD_WAIT_CPU; in latency_wakeup_event()
/tools/virtio/
Dvirtio_test.c61 struct vhost_vring_state state = { .index = info->idx }; in vhost_vq_setup() local
73 state.num = info->vring.num; in vhost_vq_setup()
74 r = ioctl(dev->control, VHOST_SET_VRING_NUM, &state); in vhost_vq_setup()
76 state.num = 0; in vhost_vq_setup()
77 r = ioctl(dev->control, VHOST_SET_VRING_BASE, &state); in vhost_vq_setup()
/tools/thermal/tmon/
Dtmon.h171 extern void set_ctrl_state(unsigned long state);
172 extern void get_ctrl_state(unsigned long *state);
Dsysfs.c537 void set_ctrl_state(unsigned long state) in set_ctrl_state() argument
553 cdev_state = state * ptdata.cdi[i].max_state/100; in set_ctrl_state()
556 ptdata.cdi[i].instance, state, cdev_state); in set_ctrl_state()
566 void get_ctrl_state(unsigned long *state) in get_ctrl_state() argument
584 *state = 0; in get_ctrl_state()
589 sysfs_get_ulong(ctrl_cdev_path, "cur_state", state); in get_ctrl_state()
Dtui.c307 unsigned long state; in show_control_w() local
309 get_ctrl_state(&state); in show_control_w()
/tools/testing/selftests/cpu-hotplug/
Don-off-test.sh47 local state=${1:-.\*}
50 if [ -f $cpu/online ] && grep -q $state $cpu/online; then
/tools/perf/util/
Dunwind-libdw.c152 frame_callback(Dwfl_Frame *state, void *arg) in frame_callback() argument
157 if (!dwfl_frame_pc(state, &pc, NULL)) { in frame_callback()
/tools/power/cpupower/po/
Dde.po49 msgid "Package in sleep state (PC1 or deeper)"
65 msgid "Processor Core in an idle state"
245 #. P state changes via MSR are identified via cpuid 80000007
252 msgid " boost state support: \n"
285 msgid " Pstate-Pb%d: %luMHz (boost state)\n"
808 msgid "CPU %u: Can't read idle state info\n"
813 msgid "Could not determine max idle state %u\n"
868 msgid "CPU %u: Can't read C-state info\n"
874 msgid "active state: C0\n"
924 msgid " -s, --silent Only show general C-state information\n"
Dfr.po49 msgid "Package in sleep state (PC1 or deeper)"
65 msgid "Processor Core in an idle state"
244 #. P state changes via MSR are identified via cpuid 80000007
251 msgid " boost state support: \n"
284 msgid " Pstate-Pb%d: %luMHz (boost state)\n"
797 msgid "CPU %u: Can't read idle state info\n"
802 msgid "Could not determine max idle state %u\n"
857 msgid "CPU %u: Can't read C-state info\n"
863 msgid "active state: C0\n"
913 msgid " -s, --silent Only show general C-state information\n"
Dcs.po52 msgid "Package in sleep state (PC1 or deeper)"
68 msgid "Processor Core in an idle state"
249 #. P state changes via MSR are identified via cpuid 80000007
256 msgid " boost state support: \n"
289 msgid " Pstate-Pb%d: %luMHz (boost state)\n"
797 msgid "CPU %u: Can't read idle state info\n"
802 msgid "Could not determine max idle state %u\n"
857 msgid "CPU %u: Can't read C-state info\n"
863 msgid "active state: C0\n"
913 msgid " -s, --silent Only show general C-state information\n"
Dit.po49 msgid "Package in sleep state (PC1 or deeper)"
65 msgid "Processor Core in an idle state"
244 #. P state changes via MSR are identified via cpuid 80000007
251 msgid " boost state support: \n"
284 msgid " Pstate-Pb%d: %luMHz (boost state)\n"
806 msgid "CPU %u: Can't read idle state info\n"
811 msgid "Could not determine max idle state %u\n"
866 msgid "CPU %u: Can't read C-state info\n"
872 msgid "active state: C0\n"
922 msgid " -s, --silent Only show general C-state information\n"
Dpt.po47 msgid "Package in sleep state (PC1 or deeper)"
63 msgid "Processor Core in an idle state"
243 #. P state changes via MSR are identified via cpuid 80000007
250 msgid " boost state support: \n"
283 msgid " Pstate-Pb%d: %luMHz (boost state)\n"
808 msgid "CPU %u: Can't read idle state info\n"
813 msgid "Could not determine max idle state %u\n"
868 msgid "CPU %u: Can't read C-state info\n"
874 msgid "active state: C0\n"
924 msgid " -s, --silent Only show general C-state information\n"
/tools/perf/Documentation/
Dperf-timechart.txt49 Don't output processor state transitions
/tools/testing/ktest/
Dktest.pl3344 my $state = "NONE";
3382 $state = "NEW";
3390 } elsif ($state eq "NEW" && /^\s*depends\s+on\s+(.*)$/) {
3395 } elsif ($state eq "NEW" && /^\s*select\s+(\S+)/) {
3417 $state = "NONE";

12