Lines Matching refs:packet_count
28 if (!sock || !sock->packet_count) { in modem_socket_next_packet_size()
44 if (!sock || !sock->packet_count) { in modem_socket_packet_get_total()
48 for (i = 0; i < sock->packet_count; i++) { in modem_socket_packet_get_total()
59 if (!sock || !sock->packet_count) { in modem_socket_packet_drop_first()
63 sock->packet_count--; in modem_socket_packet_drop_first()
64 for (i = 0; i < sock->packet_count; i++) { in modem_socket_packet_drop_first()
68 sock->packet_sizes[sock->packet_count] = 0U; in modem_socket_packet_drop_first()
89 sock->packet_count = 0U; in modem_socket_packet_size_update()
104 while (old_total > new_total && sock->packet_count > 0) { in modem_socket_packet_size_update()
119 if (sock->packet_count >= CONFIG_MODEM_SOCKET_PACKET_COUNT) { in modem_socket_packet_size_update()
125 sock->packet_sizes[sock->packet_count] = new_total - old_total; in modem_socket_packet_size_update()
126 sock->packet_count++; in modem_socket_packet_size_update()
247 sock->packet_count = 0; in modem_socket_put()