Searched refs:items (Results 1 - 15 of 15) sorted by relevance

/fuchsia/zircon/system/utest/events/
H A Devents.c17 zx_wait_item_t items[2]; local
18 items[0].waitfor = ZX_EVENT_SIGNALED;
19 items[0].handle = event;
20 items[1].waitfor = ZX_EVENT_SIGNALED;
21 items[1].handle = quit_event;
23 ms = zx_object_wait_many(items, 2, ZX_TIME_INFINITE);
27 return (items[1].pending & ZX_EVENT_SIGNALED);
33 zx_wait_item_t items[2]; local
34 items[0].waitfor = user_signal;
35 items[
172 zx_wait_item_t items[3]; local
262 zx_wait_item_t items[2]; local
[all...]
/fuchsia/zircon/system/private/zircon/
H A Dinitializer_list.h40 constexpr initializer_list(const T* items, size_t size) argument
41 : items_(items), size_(size) {}
/fuchsia/zircon/kernel/syscalls/
H A Dobject_wait.cpp107 zx_wait_item_t items[kMaxWaitHandleCount];
108 if (user_items.copy_array_from_user(items, count) != ZX_OK)
122 Handle* handle = up->GetHandleLocked(items[num_added].handle);
132 result = wait_state_observers[num_added].Begin(&event, handle, items[num_added].waitfor);
155 combined |= (items[ix].pending = wait_state_observers[ix].End());
158 if (user_items.copy_array_to_user(items, count) != ZX_OK)
/fuchsia/zircon/system/uapp/lspwr/
H A Dlspwr.c103 zx_wait_item_t items[2]; local
105 items[i].handle = dev[i].h;
106 items[i].waitfor = ZX_USER_SIGNAL_0;
107 items[i].pending = 0;
109 zx_status_t status = zx_object_wait_many(items, idx, ZX_TIME_INFINITE);
116 if (items[i].pending & ZX_USER_SIGNAL_0) {
/fuchsia/zircon/system/dev/serial/serial/
H A Dserial.c49 zx_wait_item_t items[2]; local
51 items[WAIT_ITEM_SOCKET].handle = port->socket;
52 items[WAIT_ITEM_EVENT].handle = port->event;
95 items[WAIT_ITEM_SOCKET].waitfor = ZX_SOCKET_READABLE | ZX_SOCKET_PEER_CLOSED;
96 items[WAIT_ITEM_EVENT].waitfor = EVENT_READABLE_SIGNAL | EVENT_CANCEL_SIGNAL;
99 items[WAIT_ITEM_SOCKET].waitfor |= ZX_SOCKET_WRITABLE;
102 items[WAIT_ITEM_EVENT].waitfor |= EVENT_WRITABLE_SIGNAL;
105 zx_status_t status = zx_object_wait_many(items, countof(items), ZX_TIME_INFINITE);
111 if (items[WAIT_ITEM_EVEN
[all...]
/fuchsia/zircon/system/dev/bluetooth/bt-transport-uart/
H A Dbt-transport-uart.c111 zx_wait_item_t* items = hci->read_wait_items; local
112 memset(items, 0, sizeof(hci->read_wait_items));
116 items[count].handle = hci->cmd_channel;
117 items[count].waitfor = ZX_CHANNEL_READABLE | ZX_CHANNEL_PEER_CLOSED;
122 items[count].handle = hci->acl_channel;
123 items[count].waitfor = ZX_CHANNEL_READABLE | ZX_CHANNEL_PEER_CLOSED;
127 items[count].handle = hci->uart_socket;
128 items[count].waitfor = ZX_CHANNEL_READABLE | ZX_CHANNEL_PEER_CLOSED;
131 items[count].handle = hci->channels_changed_evt;
132 items[coun
[all...]
/fuchsia/zircon/system/host/zbi/
H A Dzbi.cpp336 void Summary(const char* verbed, const char* items, bool verbose) { argument
339 fprintf(stderr, "no %s\n", items);
342 fprintf(stderr, "no matching %s\n", items);
346 verbed, names_matched(), names_checked(), items);
986 Extracted items use the file names shown below:\n\
1088 // and items earlier on the list can hold pointers into the buffer.
1351 const ItemList& items) {
1358 for (const auto& item : items) {
1361 // the items alive past then.
1385 // The payload_ items migh
1350 WriteZBI(FileWriter* writer, const char* name, const ItemList& items) argument
1651 ImportFile(const FileContents& file, const char* filename, ItemList* items) argument
1684 IncompleteImage(const ItemList& items, const uint32_t image_arch) argument
1825 ItemList items; local
[all...]
/fuchsia/zircon/system/ulib/test-utils/
H A Dtest-utils.c121 zx_wait_item_t items[num_objects]; local
123 items[n].handle = handles[n];
124 items[n].waitfor = signals[n];
126 zx_status_t status = zx_object_wait_many(items, num_objects, ZX_TIME_INFINITE);
128 pending[n] = items[n].pending;
/fuchsia/zircon/system/dev/bluetooth/bt-transport-usb/
H A Dbt-transport-usb.c250 zx_wait_item_t* items = hci->read_wait_items; local
251 memset(items, 0, sizeof(hci->read_wait_items));
255 items[count].handle = hci->cmd_channel;
256 items[count].waitfor = ZX_CHANNEL_READABLE | ZX_CHANNEL_PEER_CLOSED;
261 items[count].handle = hci->acl_channel;
262 items[count].waitfor = ZX_CHANNEL_READABLE | ZX_CHANNEL_PEER_CLOSED;
266 items[count].handle = hci->channels_changed_evt;
267 items[count].waitfor = ZX_EVENT_SIGNALED;
/fuchsia/zircon/system/utest/async-loop/
H A Dloop_tests.cpp1065 // Post a number of work items to run all at once.
1066 ThreadAssertWait* items[num_items]; local
1068 items[i] = new ThreadAssertWait(event.get(), ZX_USER_SIGNAL_0, &measure);
1069 EXPECT_EQ(ZX_OK, items[i]->Begin(loop.dispatcher()), "begin wait");
1075 // Ensure all work items completed.
1078 EXPECT_EQ(1u, items[i]->run_count, "run count");
1079 EXPECT_EQ(ZX_OK, items[i]->last_status, "status");
1080 EXPECT_NONNULL(items[i]->last_signal, "signal");
1081 EXPECT_EQ(ZX_USER_SIGNAL_0, items[i]->last_signal->observed & ZX_USER_SIGNAL_ALL, "observed");
1082 delete items[
1107 ThreadAssertTask* items[num_items]; local
[all...]
/fuchsia/zircon/system/utest/thread-state/
H A Dthread-state.cpp286 zx_wait_item_t items[num_handles]; local
288 items[i].handle = msg->handles[i];
289 items[i].waitfor = ZX_EVENTPAIR_PEER_CLOSED;
291 auto status = zx_object_wait_many(&items[0], num_handles, ZX_TIME_INFINITE);
305 if (items[i].pending & ZX_EVENTPAIR_PEER_CLOSED) {
/fuchsia/zircon/system/utest/core/channel/
H A Dchannel.c47 zx_wait_item_t items[2]; local
48 items[0].handle = channel[0];
49 items[1].handle = channel[1];
50 items[0].waitfor = ZX_CHANNEL_READABLE | ZX_CHANNEL_PEER_CLOSED;
51 items[1].waitfor = ZX_CHANNEL_READABLE | ZX_CHANNEL_PEER_CLOSED;
53 status = zx_object_wait_many(items, 2, ZX_TIME_INFINITE);
57 if (items[0].pending & ZX_CHANNEL_READABLE) {
62 } else if (items[1].pending & ZX_CHANNEL_READABLE) {
68 if (items[0].pending & ZX_CHANNEL_PEER_CLOSED)
70 if (items[
[all...]
/fuchsia/zircon/system/ulib/fdio/
H A Dunistd.c2004 zx_wait_item_t items[n]; local
2032 items[nvalid].handle = h;
2033 items[nvalid].waitfor = sigs;
2034 items[nvalid].pending = 0;
2051 r = zx_object_wait_many(items, nvalid, tmo);
2066 io->ops->wait_end(io, items[j].pending, &events);
2107 zx_wait_item_t items[n]; local
2138 items[nvalid].handle = h;
2139 items[nvalid].waitfor = sigs;
2140 items[nvali
[all...]
/fuchsia/zircon/scripts/
H A Dsymbolize497 for bias, candidate_dso in self.bias_to_name.items():
/fuchsia/zircon/make/
H A Dengine.mk422 # additional bootdata items to be included to bootdata.bin

Completed in 85 milliseconds