Home
last modified time | relevance | path

Searched refs:event_index (Results 1 – 22 of 22) sorted by relevance

/external/pthreadpool/src/
Dwindows.c23 static void checkin_worker_thread(struct pthreadpool* threadpool, uint32_t event_index) { in checkin_worker_thread() argument
25 SetEvent(threadpool->completion_event[event_index]); in checkin_worker_thread()
29 static void wait_worker_threads(struct pthreadpool* threadpool, uint32_t event_index) { in wait_worker_threads() argument
47 const DWORD wait_status = WaitForSingleObject(threadpool->completion_event[event_index], INFINITE); in wait_worker_threads()
75 const uint32_t event_index = (last_command >> 31); in wait_for_new_command() local
76 const DWORD wait_status = WaitForSingleObject(threadpool->command_event[event_index], INFINITE); in wait_for_new_command()
126 const uint32_t event_index = command >> 31; in thread_main() local
127 checkin_worker_thread(threadpool, event_index); in thread_main()
255 const uint32_t event_index = (old_command >> 31); in pthreadpool_parallelize() local
256 BOOL reset_event_status = ResetEvent(threadpool->command_event[event_index ^ 1]); in pthreadpool_parallelize()
[all …]
/external/crosvm/src/sys/windows/
Dirq_wait.rs91 for (event_index, source, evt) in irq_events { in run()
92 child_wait_ctx.add(&evt, ChildToken::IrqEvent { event_index })?; in run()
93 max_event_index = std::cmp::max(max_event_index, event_index); in run()
94 irq_event_sources.insert(event_index, source); in run()
160 let event_index = irq_chip in run() localVariable
166 if let Some(event_index) = event_index { in run()
168 event_index, in run()
175 .insert(event_index, source); in run()
197 ChildToken::IrqEvent { event_index }, in run()
316 IrqEvent { event_index: IrqEventIndex },
[all …]
/external/tensorflow/tensorflow/lite/profiling/
Dprofile_buffer.h123 int event_index = event_handle % max_size; variable
124 event_buffer_[event_index].elapsed_time =
125 time::NowMicros() - event_buffer_[event_index].begin_timestamp_us;
126 if (event_buffer_[event_index].event_type !=
128 event_buffer_[event_index].end_mem_usage = memory::GetMemoryUsage();
131 event_buffer_[event_index].event_metadata = *event_metadata1;
134 event_buffer_[event_index].extra_event_metadata = *event_metadata2;
/external/crosvm/base/src/sys/windows/
Dwait.rs214 let mut event_index = (result - WAIT_OBJECT_0) as usize; localVariable
215 if event_index >= handles_len {
221 if event_index == 0 {
236 let event_to_return = raw_handles_list[event_index + handles_offset];
253 handles_offset += event_index + 1;
257 event_index = (unsafe {
266 if event_index >= (handles_len - handles_offset) {
/external/ltp/testcases/kernel/syscalls/epoll/
Depoll-ltp.c406 unsigned int event_index; /* index into event list for the events field of the in test_epoll_ctl() local
462 for (event_index = 0; in test_epoll_ctl()
463 event_index < (sizeof(epoll_events) / sizeof(int)); in test_epoll_ctl()
464 event_index++) { in test_epoll_ctl()
481 [event_index]; in test_epoll_ctl()
/external/cronet/base/trace_event/
Dtrace_buffer.cc91 return chunk->GetEventAt(handle.event_index); in GetEventByHandle()
209 return chunk->GetEventAt(handle.event_index); in GetEventByHandle()
261 TraceEvent* TraceBufferChunk::AddTraceEvent(size_t* event_index) { in AddTraceEvent() argument
263 *event_index = next_free_++; in AddTraceEvent()
264 return &chunk_[*event_index]; in AddTraceEvent()
Dtrace_log.cc149 size_t event_index, in MakeHandle() argument
153 DCHECK(event_index < TraceBufferChunk::kTraceBufferChunkSize); in MakeHandle()
157 handle->event_index = static_cast<uint16_t>(event_index); in MakeHandle()
476 return chunk_->GetEventAt(handle.event_index); in GetEventByHandle()
551 size_t event_index; in AddTraceEvent() local
552 TraceEvent* trace_event = chunk_->AddTraceEvent(&event_index); in AddTraceEvent()
554 MakeHandle(chunk_->seq(), chunk_index_, event_index, handle); in AddTraceEvent()
1231 size_t event_index; in AddEventToThreadSharedChunkWhileLocked() local
1232 TraceEvent* trace_event = thread_shared_chunk_->AddTraceEvent(&event_index); in AddEventToThreadSharedChunkWhileLocked()
1235 event_index, handle); in AddEventToThreadSharedChunkWhileLocked()
[all …]
Dtrace_buffer.h27 TraceEvent* AddTraceEvent(size_t* event_index);
Dtrace_event_impl.h45 unsigned event_index : 6; member
/external/libchrome/base/trace_event/
Dtrace_buffer.cc88 return chunk->GetEventAt(handle.event_index); in GetEventByHandle()
205 return chunk->GetEventAt(handle.event_index); in GetEventByHandle()
259 TraceEvent* TraceBufferChunk::AddTraceEvent(size_t* event_index) { in AddTraceEvent() argument
261 *event_index = next_free_++; in AddTraceEvent()
262 return &chunk_[*event_index]; in AddTraceEvent()
Dtrace_log.cc150 size_t event_index, in MakeHandle() argument
154 DCHECK(event_index < TraceBufferChunk::kTraceBufferChunkSize); in MakeHandle()
158 handle->event_index = static_cast<uint16_t>(event_index); in MakeHandle()
214 return chunk_->GetEventAt(handle.event_index); in GetEventByHandle()
290 size_t event_index; in AddTraceEvent() local
291 TraceEvent* trace_event = chunk_->AddTraceEvent(&event_index); in AddTraceEvent()
293 MakeHandle(chunk_->seq(), chunk_index_, event_index, handle); in AddTraceEvent()
807 size_t event_index; in AddEventToThreadSharedChunkWhileLocked() local
808 TraceEvent* trace_event = thread_shared_chunk_->AddTraceEvent(&event_index); in AddEventToThreadSharedChunkWhileLocked()
811 event_index, handle); in AddEventToThreadSharedChunkWhileLocked()
[all …]
Dtrace_buffer.h26 TraceEvent* AddTraceEvent(size_t* event_index);
Dtrace_event_impl.h72 unsigned event_index : 6; member
/external/crosvm/devices/src/irqchip/
Dwhpx.rs313 fn service_irq_event(&mut self, event_index: IrqEventIndex) -> Result<()> { in service_irq_event()
315 let evt = if let Some(evt) = &irq_events[event_index] { in service_irq_event()
353 delayed_events.events.push(event_index); in service_irq_event()
504 delayed_events.events.retain(|&event_index| { in process_delayed_irq_events()
505 if let Some(evt) = &irq_events[event_index] { in process_delayed_irq_events()
Duserspace.rs487 fn service_irq_event(&mut self, event_index: IrqEventIndex) -> Result<()> { in service_irq_event()
489 let evt = if let Some(evt) = &irq_events[event_index] { in service_irq_event()
527 delayed_events.events.push(event_index); in service_irq_event()
793 delayed_events.events.retain(|&event_index| { in process_delayed_irq_events()
794 if let Some(evt) = &irq_events[event_index] { in process_delayed_irq_events()
Dmod.rs195 fn service_irq_event(&mut self, event_index: IrqEventIndex) -> Result<()>; in service_irq_event()
/external/crosvm/devices/src/irqchip/kvm/
Dx86_64.rs513 fn service_irq_event(&mut self, event_index: IrqEventIndex) -> Result<()> { in service_irq_event()
514 if let Some(evt) = &self.irq_events.lock()[event_index] { in service_irq_event()
534 self.delayed_ioapic_irq_events.lock().push(event_index); in service_irq_event()
696 .retain(|&event_index| { in process_delayed_irq_events()
697 if let Some(evt) = &self.irq_events.lock()[event_index] { in process_delayed_irq_events()
/external/autotest/client/cros/power/
Dpower_dashboard.py322 event_index = 0
328 while checkpoint_event_list[event_index][1] <= curr_time:
329 name, _, is_start = checkpoint_event_list[event_index]
334 event_index += 1
/external/autotest/client/common_lib/cros/bluetooth/
Dbluetooth_socket.py428 for idx, (event, event_index, data) in enumerate(self.events):
429 if event_index == index and event in events:
433 (event, event_index, data) = self.recv_event()
434 if event_index == index and event in events:
/external/libchrome/base/test/
Dtrace_event_analyzer.cc809 for (size_t event_index = 0; event_index < raw_events_.size(); in AssociateEvents() local
810 ++event_index) { in AssociateEvents()
812 TraceEvent& this_event = raw_events_[event_index]; in AssociateEvents()
/external/mesa3d/src/amd/compiler/
Daco_insert_waitcnt.cpp912 unsigned event_index = u_bit_scan(&event_mask); in calculate_score() local
914 for (unsigned dist : ctx.wait_distances[event_index]) { in calculate_score()
920 switch (1 << event_index) { in calculate_score()
/external/crosvm/src/crosvm/sys/
Dunix.rs3576 if let Some(event_index) = in handle_irq_tube_request()
3580 wait_ctx.add(ev, IrqHandlerToken::IrqFd { index: event_index }) in handle_irq_tube_request()