Home
last modified time | relevance | path

Searched refs:dev_fd (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/can/
Dcan_native_linux.c40 int dev_fd; /* Linux socket file descriptor */ member
95 while (linux_socketcan_poll_data(data->dev_fd) == 0) { in rx_thread()
96 count = linux_socketcan_read_data(data->dev_fd, (void *)(&sframe), in rx_thread()
172 if (data->dev_fd <= 0) { in can_native_linux_send()
173 LOG_ERR("No file descriptor: %d", data->dev_fd); in can_native_linux_send()
190 ret = nsi_host_write(data->dev_fd, &sframe, mtu); in can_native_linux_send()
316 err = linux_socketcan_set_mode_fd(data->dev_fd, (mode & CAN_MODE_FD) != 0); in can_native_linux_set_mode()
464 data->dev_fd = linux_socketcan_iface_open(if_name); in can_native_linux_init()
465 if (data->dev_fd < 0) { in can_native_linux_init()
466 LOG_ERR("Cannot open %s (%d)", if_name, data->dev_fd); in can_native_linux_init()
/Zephyr-latest/drivers/ethernet/
Deth_native_posix.c61 int dev_fd; member
185 ret = nsi_host_write(ctx->dev_fd, ctx->send, count); in eth_send()
262 while (!eth_wait_data(ctx->dev_fd)) { in eth_rx()
263 read_data(ctx, ctx->dev_fd); in eth_rx()
359 ctx->dev_fd = eth_iface_create(CONFIG_ETH_NATIVE_POSIX_DEV_NAME, ctx->if_name, false); in eth_iface_init()
360 if (ctx->dev_fd < 0) { in eth_iface_init()
361 LOG_ERR("Cannot create %s (%d/%s)", ctx->if_name, ctx->dev_fd, in eth_iface_init()
362 strerror(-ctx->dev_fd)); in eth_iface_init()