Home
last modified time | relevance | path

Searched refs:sock_fd (Results 1 – 10 of 10) sorted by relevance

/Zephyr-Core-2.7.6/drivers/modem/
Dmodem_socket.c161 cfg->sockets[i].sock_fd = z_reserve_fd(); in modem_socket_get()
162 if (cfg->sockets[i].sock_fd < 0) { in modem_socket_get()
172 z_finalize_fd(cfg->sockets[i].sock_fd, &cfg->sockets[i], in modem_socket_get()
176 return cfg->sockets[i].sock_fd; in modem_socket_get()
180 int sock_fd) in modem_socket_from_fd() argument
187 if (cfg->sockets[i].sock_fd == sock_fd) { in modem_socket_from_fd()
226 void modem_socket_put(struct modem_socket_config *cfg, int sock_fd) in modem_socket_put() argument
228 struct modem_socket *sock = modem_socket_from_fd(cfg, sock_fd); in modem_socket_put()
237 sock->sock_fd = -1; in modem_socket_put()
Dmodem_socket.h33 int sock_fd; member
71 int sock_fd);
75 void modem_socket_put(struct modem_socket_config *cfg, int sock_fd);
Dquectel-bg9x.c190 snprintk(buf, sizeof(buf), "AT+QICLOSE=%d", sock->sock_fd); in socket_close()
200 modem_socket_put(&mdata.socket_config, sock->sock_fd); in socket_close()
374 return on_cmd_sockread_common(mdata.sock_fd, data, len); in MODEM_CMD_DEFINE()
381 int sock_fd; in MODEM_CMD_DEFINE() local
383 sock_fd = ATOI(argv[0], 0, "sock_fd"); in MODEM_CMD_DEFINE()
386 sock = modem_socket_from_fd(&mdata.socket_config, sock_fd); in MODEM_CMD_DEFINE()
392 LOG_INF("Data Receive Indication for socket: %d", sock_fd); in MODEM_CMD_DEFINE()
402 int sock_fd; in MODEM_CMD_DEFINE() local
404 sock_fd = ATOI(argv[0], 0, "sock_fd"); in MODEM_CMD_DEFINE()
405 sock = modem_socket_from_fd(&mdata.socket_config, sock_fd); in MODEM_CMD_DEFINE()
[all …]
Dquectel-bg9x.h108 int sock_fd; member
Dublox-sara-r4.c754 modem_socket_put(&mdata.socket_config, sock->sock_fd); in MODEM_CMD_DEFINE()
1464 modem_socket_put(&mdata.socket_config, sock->sock_fd); in create_socket()
1512 modem_socket_put(&mdata.socket_config, sock->sock_fd); in offload_close()
1549 sock->id, sock->sock_fd); in offload_connect()
/Zephyr-Core-2.7.6/subsys/net/lib/lwm2m/
Dlwm2m_obj_firmware_pull.c32 .sock_fd = -1
463 if (firmware_ctx.sock_fd > -1) { in lwm2m_firmware_start_transfer()
468 firmware_ctx.sock_fd = -1; in lwm2m_firmware_start_transfer()
Dlwm2m_rd_client.c636 if (client.ctx->sock_fd > -1) { in sm_do_bootstrap_reg()
826 if (client.ctx->sock_fd > -1) { in sm_do_registration()
1069 client.ctx->sock_fd = -1; in lwm2m_rd_client_start()
1093 if (client.ctx->sock_fd > -1) { in lwm2m_rd_client_stop()
Dlwm2m_engine.c1006 rc = send(msg->ctx->sock_fd, msg->cpkt.data, msg->cpkt.offset, 0); in lwm2m_send_message()
4375 int sock_fd = client_ctx->sock_fd; in lwm2m_engine_context_close() local
4400 client_ctx->sock_fd = -1; in lwm2m_engine_context_close()
4401 if (sock_fd >= 0) { in lwm2m_engine_context_close()
4402 return close(sock_fd); in lwm2m_engine_context_close()
4423 sock_fds[sock_nfds].fd = ctx->sock_fd; in lwm2m_socket_add()
4506 len = recvfrom(client_ctx->sock_fd, in_buf, sizeof(in_buf) - 1, in socket_recv_message()
4682 client_ctx->sock_fd = socket(client_ctx->remote_addr.sa_family, in lwm2m_socket_start()
4687 client_ctx->sock_fd = socket(client_ctx->remote_addr.sa_family, in lwm2m_socket_start()
4691 if (client_ctx->sock_fd < 0) { in lwm2m_socket_start()
[all …]
/Zephyr-Core-2.7.6/include/net/
Dlwm2m.h122 int sock_fd; member
/Zephyr-Core-2.7.6/doc/releases/
Drelease-notes-2.0.rst700 * :github:`18238` - drivers/modem/modem_socket: modem_socket_put() sock_fd parameter not handled co…