Searched refs:old_total (Results 1 – 1 of 1) sorted by relevance
75 uint16_t old_total = 0U; in modem_socket_packet_size_update() local96 old_total = modem_socket_packet_get_total(sock); in modem_socket_packet_size_update()97 if (new_total == old_total) { in modem_socket_packet_size_update()102 if (new_total < old_total) { in modem_socket_packet_size_update()104 while (old_total > new_total && sock->packet_count > 0) { in modem_socket_packet_size_update()106 if (old_total - new_total < sock->packet_sizes[0]) { in modem_socket_packet_size_update()107 sock->packet_sizes[0] -= old_total - new_total; in modem_socket_packet_size_update()111 old_total -= sock->packet_sizes[0]; in modem_socket_packet_size_update()124 if (new_total - old_total > 0) { in modem_socket_packet_size_update()125 sock->packet_sizes[sock->packet_count] = new_total - old_total; in modem_socket_packet_size_update()