Lines Matching refs:socket_id
387 int socket_id; member
794 static struct hl7800_socket *socket_from_id(int socket_id) in socket_from_id() argument
799 if (socket_id < 1) { in socket_from_id()
804 if (iface_ctx.sockets[i].socket_id == socket_id) { in socket_from_id()
825 sock->socket_id = MDM_INVALID_SOCKET_ID; in socket_put()
1008 iface_ctx.last_socket_id = sock->socket_id; in send_at_cmd()
1433 snprintk(buf, sizeof(buf), "AT+KTCPSND=%d,%zu", sock->socket_id, in send_data()
1442 sock->socket_id, dst_addr, in send_data()
3289 LOG_DBG("Sock %d closed", sock->socket_id); in notify_all_tcp_sockets_closed()
3880 LOG_DBG("Sock %d trigger NULL packet", sock->socket_id); in sock_notif_cb_work()
4025 sock->socket_id = iface_ctx.last_socket_id; in on_cmd_sockcreate()
4052 LOG_DBG("Sock %d RX CB (size: %zd)", sock->socket_id, in sockreadrecv_cb_work()
4087 LOG_DBG("Socket %d RX %u bytes", sock->socket_id, sock->rx_size); in sock_read()
4203 LOG_DBG("Sock %d RX done", sock->socket_id); in sock_read()
4248 if ((sock->socket_id <= 0) || (sock->rx_size <= 0)) { in start_socket_rx()
4250 sock->socket_id, sock->rx_size); in start_socket_rx()
4254 LOG_DBG("Start socket RX ID:%d size:%d", sock->socket_id, rx_size); in start_socket_rx()
4270 sock->socket_id, rx_size); in start_socket_rx()
4285 sock->socket_id, sock->rx_size); in start_socket_rx()
4324 int socket_id, left_bytes, rc; in on_cmd_sockdataind() local
4351 socket_id = strtol(value, NULL, 0); in on_cmd_sockdataind()
4356 sock = socket_from_id(socket_id); in on_cmd_sockdataind()
4358 LOG_ERR("Unable to find socket_id:%d", socket_id); in on_cmd_sockdataind()
4364 LOG_DBG("Defer socket RX -> ID: %d bytes: %u", socket_id, in on_cmd_sockdataind()
5744 snprintk(cmd_con, sizeof(cmd_con), "AT+KTCPCNX=%d", sock->socket_id); in connect_TCP_socket()
5793 sock->socket_id = MDM_CREATE_SOCKET_ID; in configure_TCP_socket()
5819 sock->socket_id = MDM_CREATE_SOCKET_ID; in configure_UDP_socket()
5907 sock->socket_id = MDM_CREATE_SOCKET_ID; in offload_get()
5997 if (sock->socket_id < 1) { in offload_connect()
5999 sock->socket_id, context); in offload_connect()
6201 sock->socket_id); in offload_put()
6204 sock->socket_id); in offload_put()
6215 delete_socket(sock, sock->type, sock->socket_id); in offload_put()
6341 iface_ctx.sockets[i].socket_id = MDM_INVALID_SOCKET_ID; in hl7800_init()