Searched refs:fifos (Results 1 - 7 of 7) sorted by relevance

/fuchsia/zircon/system/ulib/inet6/
H A Deth-client.c33 eth_fifos_t fifos; local
37 if ((r = ioctl_ethernet_get_fifos(fd, &fifos)) < 0) {
38 fprintf(stderr, "eth_create: failed to get fifos: %zd\n", r);
56 eth->tx_fifo = fifos.tx_fifo;
57 eth->rx_fifo = fifos.rx_fifo;
58 eth->rx_size = fifos.rx_depth;
59 eth->tx_size = fifos.tx_depth;
66 zx_handle_close(fifos.tx_fifo);
67 zx_handle_close(fifos.rx_fifo);
/fuchsia/zircon/system/uapp/netreflector/
H A Dnetreflector.c142 void handle(char* iobuf, eth_fifos_t* fifos) { argument
161 zx_handle_t fifo = (fifo_id == RX_FIFO ? fifos->rx_fifo : fifos->tx_fifo);
176 rx_complete(iobuf, fifos->rx_fifo, e);
184 send_pending_tx(fifos->tx_fifo);
196 eth_fifos_t fifos; local
204 if ((r = ioctl_ethernet_get_fifos(fd, &fifos)) < 0) {
205 fprintf(stderr, "netreflector: failed to get fifos: %zd\n", r);
234 if ((status = zx_fifo_write(fifos.rx_fifo, sizeof(entry), &entry, 1, NULL)) < 0) {
262 if ((status = zx_object_wait_async(fifos
[all...]
/fuchsia/zircon/system/uapp/netdump/
H A Dnetdump.c418 eth_fifos_t fifos; local
422 if ((r = ioctl_ethernet_get_fifos(fd, &fifos)) < 0) {
423 fprintf(stderr, "netdump: failed to get fifos: %zd\n", r);
427 unsigned count = fifos.rx_depth / 2;
465 if ((status = zx_fifo_write(fifos.rx_fifo, sizeof(entry), &entry, 1, NULL)) < 0) {
481 handle_rx(fifos.rx_fifo, iobuf, count, &options);
483 zx_handle_close(fifos.rx_fifo);
/fuchsia/zircon/system/uapp/ethtool/
H A Dethtool.c147 eth_fifos_t fifos; local
151 if ((r = ioctl_ethernet_get_fifos(fd, &fifos)) < 0) {
152 fprintf(stderr, "ethtool: failed to get fifos: %zd\n", r);
156 unsigned count = fifos.rx_depth / 2;
/fuchsia/zircon/system/utest/core/fifo/
H A Dfifo.c157 zx_handle_t fifos[2]; local
158 ASSERT_EQ(zx_fifo_create(23, 8, 8, &fifos[0], &fifos[1]),
/fuchsia/zircon/system/dev/ethernet/ethernet/
H A Dethernet.c108 // fifos are named from the perspective
554 static zx_status_t eth_get_fifos_locked(ethdev_t* edev, struct zircon_ethernet_Fifos* fifos) { argument
556 if ((status = zx_fifo_create(FIFO_DEPTH, FIFO_ESIZE, 0, &fifos->tx, &edev->tx_fifo)) < 0) {
560 if ((status = zx_fifo_create(FIFO_DEPTH, FIFO_ESIZE, 0, &fifos->rx, &edev->rx_fifo)) < 0) {
562 zx_handle_close(fifos->tx);
570 fifos->tx_depth = FIFO_DEPTH;
571 fifos->rx_depth = FIFO_DEPTH;
585 struct zircon_ethernet_Fifos fifos; local
586 zx_status_t status = eth_get_fifos_locked(edev, &fifos);
589 eth_fifos->tx_fifo = fifos
881 zircon_ethernet_Fifos fifos; local
[all...]
/fuchsia/zircon/system/utest/ethernet/
H A Dethernet.cpp184 eth_fifos_t fifos; local
185 rc = ioctl_ethernet_get_fifos(fd_, &fifos);
187 fprintf(stderr, "could not get fifos: %zd\n", rc);
191 tx_.reset(fifos.tx_fifo);
192 rx_.reset(fifos.rx_fifo);
193 tx_depth_ = fifos.tx_depth;
194 rx_depth_ = fifos.rx_depth;

Completed in 47 milliseconds