Searched refs:port (Results 1 - 25 of 131) sorted by relevance

123456

/fuchsia/zircon/system/ulib/zx/
H A Dport.cpp5 #include <lib/zx/port.h>
11 zx_status_t port::create(uint32_t options, port* result) {
/fuchsia/zircon/third_party/ulib/musl/src/network/
H A Dgetservbyport.c4 struct servent* getservbyport(int port, const char* prots) { argument
8 if (getservbyport_r(port, prots, &se, (void*)buf, sizeof buf, &res))
H A Dlookup_serv.c16 unsigned long port = 0; local
43 buf[0].port = 0;
52 port = strtoul(name, &z, 10);
55 if (port > 65535)
58 buf[cnt].port = port;
63 buf[cnt].port = port;
106 port = strtoul(p, &z, 10);
107 if (port > 6553
[all...]
H A Dgetservbyport_r.c9 int getservbyport_r(int port, const char* prots, struct servent* se, char* buf, size_t buflen, argument
13 .sin_family = AF_INET, .sin_port = port,
17 int r = getservbyport_r(port, "tcp", se, buf, buflen, res);
19 r = getservbyport_r(port, "udp", se, buf, buflen, res);
35 se->s_port = port;
/fuchsia/zircon/system/ulib/port/
H A Dport.c11 #include <zircon/syscalls/port.h>
15 #include <port/port.h>
23 zx_status_t port_init(port_t* port) { argument
24 zx_status_t r = zx_port_create(0, &port->handle);
25 zprintf("port_init(%p) port=%x\n", port, port->handle);
29 zx_status_t port_wait(port_t* port, port_handler_t* ph) { argument
30 zprintf("port_wait(%p, %p) obj=%x port
37 port_wait_repeating(port_t* port, port_handler_t* ph) argument
46 port_cancel(port_t* port, port_handler_t* ph) argument
54 port_queue(port_t* port, port_handler_t* ph, uint32_t evt) argument
64 port_dispatch(port_t* port, zx_time_t deadline, bool once) argument
[all...]
/fuchsia/zircon/system/dev/serial/serial/
H A Dserial.c42 serial_port_t* port = arg; local
51 items[WAIT_ITEM_SOCKET].handle = port->socket;
52 items[WAIT_ITEM_EVENT].handle = port->event;
60 zx_status_t status = zx_socket_write(port->socket, 0, in_buffer + in_buffer_offset,
78 zx_status_t status = serial_impl_write(&port->serial, out_buffer + out_buffer_offset,
113 status = serial_impl_read(&port->serial, in_buffer + in_buffer_count,
125 status = zx_socket_read(port->socket, 0, out_buffer + out_buffer_count,
138 serial_impl_enable(&port->serial, false);
139 serial_impl_set_notify_callback(&port->serial, NULL, NULL);
141 zx_handle_close(port
153 serial_port_t* port = cookie; local
186 serial_port_t* port = ctx; local
191 serial_port_t* port = ctx; local
196 serial_port_t* port = ctx; local
249 serial_port_t* port = ctx; local
270 serial_port_t* port = ctx; local
289 serial_port_t* port = ctx; local
300 serial_port_t* port = ctx; local
312 serial_port_t* port = ctx; local
333 serial_port_t* port = ctx; local
353 serial_port_t* port = calloc(1, sizeof(serial_port_t)); local
[all...]
/fuchsia/zircon/system/ulib/zx/include/lib/zx/
H A Dport.h13 class port : public object<port> { class in namespace:zx
17 constexpr port() = default;
19 explicit port(zx_handle_t value) : object(value) {} function in class:zx::port
21 explicit port(handle&& h) : object(h.release()) {} function in class:zx::port
23 port(port&& other) : object(other.release()) {} function in class:zx::port
25 port& operator=(port&& other) {
30 static zx_status_t create(uint32_t options, port* resul
[all...]
H A Dtask.h13 class port;
32 const object<port>& port, uint64_t key, uint32_t options) const {
33 return zx_task_bind_exception_port(object<T>::get(), port.get(), key, options);
48 zx_status_t resume_from_exception(const object<port>& port, uint32_t options) { argument
49 return zx_task_resume_from_exception(object<T>::get(), port.get(), options);
31 bind_exception_port( const object<port>& port, uint64_t key, uint32_t options) const argument
H A Dguest.h9 #include <lib/zx/port.h>
36 const port& port, uint64_t key) {
37 return zx_guest_set_trap(get(), kind, addr, len, port.get(), key);
35 set_trap(uint32_t kind, zx_gpaddr_t addr, size_t len, const port& port, uint64_t key) argument
/fuchsia/zircon/system/dev/block/ahci/
H A Dahci.c39 // port is implemented by the controller
41 // a device is present on port
43 // port is paused (no queued transactions will be processed)
125 ahci_port_t* port = &dev->ports[portnr]; local
127 return (port->flags & flags) == flags;
130 static void ahci_port_disable(ahci_port_t* port) { argument
131 uint32_t cmd = ahci_read(&port->regs->cmd);
134 ahci_write(&port->regs->cmd, cmd);
135 zx_status_t status = ahci_wait_for_clear(&port->regs->cmd, AHCI_PORT_CMD_CR, 500 * 1000 * 1000);
137 zxlogf(ERROR, "ahci.%d: port disabl
141 ahci_port_enable(ahci_port_t* port) argument
156 ahci_port_reset(ahci_port_t* port) argument
190 ahci_port_cmd_busy(ahci_port_t* port, int slot) argument
221 ahci_port_complete_txn(ahci_device_t* dev, ahci_port_t* port, zx_status_t status) argument
234 ahci_do_txn(ahci_device_t* dev, ahci_port_t* port, int slot, sata_txn_t* txn) argument
374 ahci_port_initialize(ahci_device_t* dev, ahci_port_t* port) argument
474 ahci_port_t* port = &device->ports[portnr]; local
481 ahci_port_t* port = &device->ports[portnr]; local
510 ahci_port_t* port; local
616 ahci_port_t* port = &dev->ports[i]; local
655 ahci_port_t* port = &dev->ports[nr]; local
727 ahci_port_t* port; local
[all...]
/fuchsia/zircon/system/ulib/ddk/include/ddk/protocol/
H A Dusb-hub.h15 void (*reset_port)(void* ctx, uint32_t port);
23 static inline void usb_hub_reset_port(usb_hub_interface_t* hub, uint32_t port) { argument
24 hub->ops->reset_port(hub->ctx, port);
H A Dusb-bus.h21 zx_status_t (*hub_device_added)(void* ctx, zx_device_t* hub_device, int port,
23 zx_status_t (*hub_device_removed)(void* ctx, zx_device_t* hub_device, int port);
39 int port, usb_speed_t speed) {
40 return bus->ops->hub_device_added(bus->ctx, hub_device, port, speed);
44 zx_device_t* hub_device, int port) {
45 return bus->ops->hub_device_removed(bus->ctx, hub_device, port);
57 void (*reset_hub_port)(void* ctx, uint32_t hub_id, uint32_t port);
74 static inline void usb_bus_reset_hub_port(usb_bus_interface_t* bus, uint32_t hub_id, uint32_t port) { argument
75 bus->ops->reset_hub_port(bus->ctx, hub_id, port);
38 usb_bus_hub_device_added(usb_bus_protocol_t* bus, zx_device_t* hub_device, int port, usb_speed_t speed) argument
43 usb_bus_hub_device_removed(usb_bus_protocol_t* bus, zx_device_t* hub_device, int port) argument
H A Dusb-hci.h34 zx_status_t (*hub_device_added)(void* ctx, uint32_t device_id, int port, usb_speed_t speed);
35 zx_status_t (*hub_device_removed)(void* ctx, uint32_t device_id, int port);
79 int port, usb_speed_t speed) {
80 return hci->ops->hub_device_added(hci->ctx, device_id, port, speed);
84 int port) {
85 return hci->ops->hub_device_removed(hci->ctx, device_id, port);
78 usb_hci_hub_device_added(usb_hci_protocol_t* hci, uint32_t device_id, int port, usb_speed_t speed) argument
83 usb_hci_hub_device_removed(usb_hci_protocol_t* hci, uint32_t device_id, int port) argument
/fuchsia/zircon/system/ulib/fzl/
H A Dmemory-probe.cpp10 #include <zircon/syscalls/port.h>
11 #include <lib/zx/port.h>
46 zx::port port; local
47 status = zx::port::create(0, &port);
51 // Cause the port to be signaled with kThreadKey when the background thread crashes or teminates without crashing.
53 if (thread.wait_async(port, kThreadKey, ZX_THREAD_TERMINATED, ZX_WAIT_ASYNC_ONCE) != ZX_OK) {
56 if (zx_task_bind_exception_port(thread.get(), port.get(), kThreadKey, 0) != ZX_OK) {
64 if (port
[all...]
/fuchsia/zircon/system/dev/usb/usb-hub/
H A Dusb-hub.c40 // delay after port power in microseconds
49 // port status values for our ports
57 bool usb_hub_is_port_attached(usb_hub_t* hub, int port) { argument
58 return (hub->attached_ports[port / 8] & (1 << (port % 8))) != 0;
61 void usb_hub_set_port_attached(usb_hub_t* hub, int port, bool enabled) { argument
63 hub->attached_ports[port / 8] |= (1 << (port % 8));
65 hub->attached_ports[port / 8] &= ~(1 << (port
69 usb_hub_get_port_status(usb_hub_t* hub, int port, port_status_t* out_status) argument
131 usb_hub_wait_for_port(usb_hub_t* hub, int port, port_status_t* out_status, port_status_t status_bits, port_status_t status_mask, zx_time_t stable_time) argument
168 usb_hub_power_on_port(usb_hub_t* hub, int port) argument
173 usb_hub_port_enabled(usb_hub_t* hub, int port) argument
202 usb_hub_port_connected(usb_hub_t* hub, int port) argument
218 usb_hub_port_reset(void* ctx, uint32_t port) argument
233 usb_hub_port_disconnected(usb_hub_t* hub, int port) argument
239 usb_hub_handle_port_status(usb_hub_t* hub, int port, port_status_t status) argument
378 int port = 1; local
[all...]
/fuchsia/zircon/system/ulib/port/include/port/
H A Dport.h26 // Initialize a port
27 zx_status_t port_init(port_t* port);
30 // the provided port handler.
31 zx_status_t port_wait(port_t* port, port_handler_t* ph);
34 // the provided port handler, in repeating mode.
35 zx_status_t port_wait_repeating(port_t* port, port_handler_t* ph);
37 // Wait for a packet to arrive of for the port to timeout
38 // If the port wait returns and error or timeout, returns that.
41 // If a packet is received, the callback for the port handler
43 // is invoked on that port handle
[all...]
/fuchsia/zircon/system/dev/block/zxcrypt/
H A Dworker.h11 #include <lib/zx/port.h>
12 #include <zircon/syscalls/port.h>
39 // |port|. Cryptographic operations will use the key material from the given |volume|.
40 zx_status_t Start(Device* device, const Volume& volume, zx::port&& port);
69 // The port to wait for I/O request on, as given by the device.
70 zx::port port_;
/fuchsia/zircon/kernel/syscalls/
H A Dport.cpp53 fbl::RefPtr<PortDispatcher> port; local
54 zx_status_t status = up->GetDispatcherWithRights(handle, ZX_RIGHT_WRITE, &port);
63 return port->QueueUser(packet);
72 fbl::RefPtr<PortDispatcher> port; local
73 zx_status_t status = up->GetDispatcherWithRights(handle, ZX_RIGHT_READ, &port);
77 ktrace(TAG_PORT_WAIT, (uint32_t)port->get_koid(), 0, 0, 0);
80 zx_status_t st = port->Dequeue(deadline, &pp);
82 ktrace(TAG_PORT_WAIT_DONE, (uint32_t)port->get_koid(), st, 0, 0);
97 fbl::RefPtr<PortDispatcher> port; local
98 zx_status_t status = up->GetDispatcherWithRights(handle, ZX_RIGHT_WRITE, &port);
[all...]
/fuchsia/zircon/system/utest/core/port/
H A Dports.cpp9 #include <zircon/syscalls/port.h>
18 zx_handle_t port; local
19 status = zx_port_create(0, &port);
20 EXPECT_EQ(status, 0, "could not create port");
31 status = zx_port_queue(port, nullptr);
34 status = zx_port_queue(port, &in);
37 status = zx_port_wait(port, ZX_TIME_INFINITE, &out);
46 status = zx_handle_close(port);
56 zx_handle_t port; local
57 status = zx_port_create(0, &port);
84 zx_handle_t port; local
117 zx_handle_t port; local
177 zx_handle_t port; local
241 zx_handle_t port; local
287 zx_handle_t port; local
338 zx_handle_t port; local
368 zx_handle_t port; local
415 zx_handle_t port; local
476 zx_handle_t port; local
532 zx_handle_t port; member in struct:test_context
552 zx_handle_t port; local
622 auto& port = ob[0]; local
[all...]
/fuchsia/zircon/kernel/arch/x86/
H A Dioport.cpp101 int IoBitmap::SetIoBitmap(uint32_t port, uint32_t len, bool enable) { argument
104 if ((port + len < port) || (port + len > IO_BITMAP_BITS))
144 status = enable ? bitmap_->SetNoAlloc(port, port + len, &bitmap_freelist) : bitmap_->ClearNoAlloc(port, port + len, &bitmap_freelist);
154 bitmap_clear(reinterpret_cast<unsigned long*>(tss->tss_bitmap), port, len);
156 bitmap_set(reinterpret_cast<unsigned long*>(tss->tss_bitmap), port, le
[all...]
/fuchsia/zircon/system/utest/x86-umip/
H A Dmain.cpp12 #include <zircon/syscalls/port.h>
13 #include <lib/zx/port.h>
101 zx::port port; local
102 ASSERT_EQ(zx::port::create(0, &port), ZX_OK);
104 ASSERT_EQ(thread.wait_async(port, 0, ZX_THREAD_TERMINATED, ZX_WAIT_ASYNC_ONCE), ZX_OK);
105 ASSERT_EQ(zx_task_bind_exception_port(thread.get(), port.get(), 0, 0), ZX_OK);
111 while (port.wait(zx::time::infinite(), &packet) == ZX_OK) {
/fuchsia/zircon/system/ulib/unittest/
H A Dcrash-handler.cpp12 #include <zircon/syscalls/port.h>
21 // Signals sent from the test thread to the crash handler port to indicate
140 // there is no race condition with when we unbind the exception port.
152 static test_result_t watch_test_thread(zx_handle_t port, crash_list_t crash_list) { argument
155 zx_status_t status = zx_port_wait(port, ZX_TIME_INFINITE, &packet);
157 UNITTEST_FAIL_TRACEF("failed to wait on port: error %s\n",
194 zx_handle_t port; member in struct:test_data_t
198 // Whether to bind to the thread exception port.
212 zx_status_t status = zx_object_wait_async(self, data->port, TEST_THREAD_TERMINATED_KEY,
223 status = zx_task_bind_exception_port(self, data->port, EXCEPTION_PORT_KE
257 zx_handle_t port; local
[all...]
/fuchsia/zircon/system/dev/usb/xhci/
H A Dxhci-device-manager.h13 zx_status_t xhci_enumerate_device(xhci_t* xhci, uint32_t hub_address, uint32_t port,
15 zx_status_t xhci_device_disconnected(xhci_t* xhci, uint32_t hub_address, uint32_t port);
/fuchsia/zircon/system/utest/core/threads/thread-functions/
H A Dthread-functions.cpp11 #include <zircon/syscalls/port.h>
73 zx_handle_t* port = (zx_handle_t*)arg; local
75 zx_port_wait(port[0], ZX_TIME_INFINITE, &packet);
77 zx_port_queue(port[1], &packet);
/fuchsia/zircon/kernel/arch/x86/hypervisor/
H A Dguest.cpp94 fbl::RefPtr<PortDispatcher> port, uint64_t key) {
103 if (port) {
108 if (!port) {
113 if (port) {
118 return traps_.InsertTrap(kind, addr, len, fbl::move(port), key);
131 return traps_.InsertTrap(kind, addr, len, fbl::move(port), key);
93 SetTrap(uint32_t kind, zx_vaddr_t addr, size_t len, fbl::RefPtr<PortDispatcher> port, uint64_t key) argument

Completed in 187 milliseconds

123456