Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 20 of 20) sorted by relevance

/hal_espressif-latest/components/mbedtls/port/
Dnet_sockets.c53 ctx->fd = -1; in mbedtls_net_init()
81 int fd = socket( cur->ai_family, cur->ai_socktype, cur->ai_protocol ); in mbedtls_net_connect() local
83 if ( fd < 0 ) { in mbedtls_net_connect()
88 if ( connect( fd, cur->ai_addr, cur->ai_addrlen ) == 0 ) { in mbedtls_net_connect()
89 ctx->fd = fd; // connected! in mbedtls_net_connect()
94 close( fd ); in mbedtls_net_connect()
132 int fd = socket( cur->ai_family, cur->ai_socktype, cur->ai_protocol ); in mbedtls_net_bind() local
133 if ( fd < 0 ) { in mbedtls_net_bind()
140 if ( setsockopt( fd, SOL_SOCKET, SO_REUSEADDR, in mbedtls_net_bind()
142 close( fd ); in mbedtls_net_bind()
[all …]
/hal_espressif-latest/components/esp_netif/vfs_l2tap/
Desp_vfs_l2tap.c84 static void l2tap_select_notify(int fd, l2tap_select_notif_e select_notif);
209 int fd; in l2tap_open() local
212 for (fd = 0; fd < L2TAP_MAX_FDS; fd++) { in l2tap_open()
214 if (atomic_compare_exchange_strong(&s_l2tap_sockets[fd].state, &exp_state, in l2tap_open()
216 if (init_rx_queue(&s_l2tap_sockets[fd]) != ESP_OK) { in l2tap_open()
217 atomic_store(&s_l2tap_sockets[fd].state, L2TAP_SOCK_STATE_READY); in l2tap_open()
220 s_l2tap_sockets[fd].ethtype_filter = 0x0; in l2tap_open()
221 s_l2tap_sockets[fd].driver_handle = NULL; in l2tap_open()
222 s_l2tap_sockets[fd].non_blocking = ((flags & O_NONBLOCK) == O_NONBLOCK); in l2tap_open()
223 s_l2tap_sockets[fd].driver_transmit = esp_eth_transmit; in l2tap_open()
[all …]
/hal_espressif-latest/components/newlib/
Dsyscalls.c30 ssize_t _write_r_console(struct _reent *r, int fd, const void * data, size_t size) in _write_r_console() argument
33 if (fd == STDOUT_FILENO || fd == STDERR_FILENO) { in _write_r_console()
43 ssize_t _read_r_console(struct _reent *r, int fd, void * data, size_t size) in _read_r_console() argument
46 if (fd == STDIN_FILENO) { in _read_r_console()
64 static ssize_t _fstat_r_console(struct _reent *r, int fd, struct stat * st) in _fstat_r_console() argument
66 if (fd == STDOUT_FILENO || fd == STDERR_FILENO) { in _fstat_r_console()
81 ssize_t _read_r(struct _reent *r, int fd, void * dst, size_t size)
83 ssize_t _write_r(struct _reent *r, int fd, const void * data, size_t size)
85 int _fstat_r (struct _reent *r, int fd, struct stat *st)
100 int _close_r(struct _reent *r, int fd)
[all …]
Dpoll.c39 if (fds[i].fd < 0) { in poll()
44 if (fds[i].fd >= FD_SETSIZE) { in poll()
51 FD_SET(fds[i].fd, &readfds); in poll()
52 FD_SET(fds[i].fd, &errorfds); in poll()
53 max_fd = MAX(max_fd, fds[i].fd); in poll()
57 FD_SET(fds[i].fd, &writefds); in poll()
58 FD_SET(fds[i].fd, &errorfds); in poll()
59 max_fd = MAX(max_fd, fds[i].fd); in poll()
69 if (FD_ISSET(fds[i].fd, &readfds)) { in poll()
73 if (FD_ISSET(fds[i].fd, &writefds)) { in poll()
[all …]
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/src/
Decc_platform_specific.c80 int fd = open("/dev/urandom", O_RDONLY | O_CLOEXEC); in default_CSPRNG() local
81 if (fd == -1) { in default_CSPRNG()
82 fd = open("/dev/random", O_RDONLY | O_CLOEXEC); in default_CSPRNG()
83 if (fd == -1) { in default_CSPRNG()
91 ssize_t bytes_read = read(fd, ptr, left); in default_CSPRNG()
93 close(fd); in default_CSPRNG()
100 close(fd); in default_CSPRNG()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Decc_platform_specific.c82 int fd = open("/dev/urandom", O_RDONLY | O_CLOEXEC); in default_CSPRNG() local
83 if (fd == -1) { in default_CSPRNG()
84 fd = open("/dev/random", O_RDONLY | O_CLOEXEC); in default_CSPRNG()
85 if (fd == -1) { in default_CSPRNG()
93 ssize_t bytes_read = read(fd, ptr, left); in default_CSPRNG()
95 close(fd); in default_CSPRNG()
102 close(fd); in default_CSPRNG()
/hal_espressif-latest/components/newlib/platform_include/sys/
Dtermios.h226 int tcdrain(int fd);
235 int tcflow(int fd, int action);
244 int tcflush(int fd, int select);
253 int tcgetattr(int fd, struct termios *p);
261 pid_t tcgetsid(int fd);
270 int tcsendbreak(int fd, int duration);
280 int tcsetattr(int fd, int optional_actions, const struct termios *p);
Dioctl.h13 int ioctl(int fd, int request, ...);
Duio.h20 ssize_t readv(int fd, const struct iovec *iov, int iovcnt);
Dpoll.h27 int fd; /* The descriptor. */ member
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/l2cap/
Dbtc_l2cap.c62 int fd; member
144 static l2cap_slot_t *l2cap_find_slot_by_fd(int fd) in l2cap_find_slot_by_fd() argument
150 if (slot != NULL && slot->fd == fd) { in l2cap_find_slot_by_fd()
191 (*slot)->fd = -1; in l2cap_malloc_slot()
212 if (esp_vfs_register_fd(l2cap_local_param.l2cap_vfs_id, &(*slot)->fd) != ESP_OK) { in l2cap_malloc_slot()
245 esp_vfs_unregister_fd(l2cap_local_param.l2cap_vfs_id, slot->fd); in l2cap_free_slot()
673 param.open.fd = -1; in btc_l2cap_connect()
808 param.open.fd = slot->fd; in btc_l2cap_cb_handler()
1002 static ssize_t l2cap_vfs_write(int fd, const void * data, size_t size) in l2cap_vfs_write() argument
1018 slot = l2cap_find_slot_by_fd(fd); in l2cap_vfs_write()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/spp/
Dbtc_spp.c63 int fd; member
144 (*slot)->fd = -1; in spp_malloc_slot()
176 if (esp_vfs_register_fd(spp_local_param.spp_vfs_id, &(*slot)->fd) != ESP_OK) { in spp_malloc_slot()
229 static spp_slot_t *spp_find_slot_by_fd(int fd) in spp_find_slot_by_fd() argument
234 if (slot != NULL && slot->fd == fd) { in spp_find_slot_by_fd()
282 (void) esp_vfs_unregister_fd(spp_local_param.spp_vfs_id, slot->fd); in spp_free_slot()
688 param.open.fd = -1; in btc_spp_connect()
1056 param.open.fd = slot->fd; in btc_spp_cb_handler()
1059 param.open.fd = -1; in btc_spp_cb_handler()
1087 param.srv_open.fd = slot->fd; in btc_spp_cb_handler()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/api/include/api/
Desp_spp_api.h140 int fd; /*!< The file descriptor only for ESP_SPP_MODE_VFS */ member
151 int fd; /*!< The file descriptor only for ESP_SPP_MODE_VFS */ member
Desp_l2cap_bt_api.h80 int fd; /*!< File descriptor */ member
/hal_espressif-latest/tools/esptool_py/test/
Dtest_image_info.py219 fd, file = tempfile.mkstemp(suffix=".hex")
231 os.close(fd)
Dtest_esptool.py410 fd, f = tempfile.mkstemp(suffix=".hex")
414 os.close(fd)
439 fd, f = tempfile.mkstemp(suffix=".hex")
445 os.close(fd)
1228 fd, f = tempfile.mkstemp(suffix=".hex")
1235 os.close(fd)
/hal_espressif-latest/components/esp_wifi/src/
Dsmartconfig_ack.c56 static int sc_ack_send_get_errno(int fd) in sc_ack_send_get_errno() argument
61 if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &sock_errno, &optlen) < 0) { in sc_ack_send_get_errno()
/hal_espressif-latest/tools/idf_monitor/idf_monitor_base/
Dconsole_reader.py97 fcntl.ioctl(self.console.fd, termios.TIOCSTI, b'\0')
/hal_espressif-latest/components/bt/host/bluedroid/stack/smp/
Daes.c90 #define fd(x) (f8(x) ^ f4(x) ^ x) macro
205 static const uint_8t gfmul_d[256] = mm_data(fd);
299 #define gfm_d(x) fd(x)
/hal_espressif-latest/tools/esptool_py/docs/en/espefuse/inc/
Dsummary_ESP32-C3.rst59 = 25 60 04 96 c3 fd 41 6f be ed 2c 51 1d e3 7e 21 R/W