Lines Matching refs:lwip_stats
149 extern struct stats_ lwip_stats;
153 #define STATS_INC(x) ++lwip_stats.x
154 #define STATS_DEC(x) --lwip_stats.x
155 #define STATS_INC_USED(x, y) do { lwip_stats.x.used += y; \
156 if (lwip_stats.x.max < lwip_stats.x.used) { \
157 lwip_stats.x.max = lwip_stats.x.used; \
169 #define TCP_STATS_DISPLAY() stats_display_proto(&lwip_stats.tcp, "TCP")
177 #define UDP_STATS_DISPLAY() stats_display_proto(&lwip_stats.udp, "UDP")
185 #define ICMP_STATS_DISPLAY() stats_display_proto(&lwip_stats.icmp, "ICMP")
193 #define IGMP_STATS_DISPLAY() stats_display_igmp(&lwip_stats.igmp)
201 #define IP_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip, "IP")
209 #define IPFRAG_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip_frag, "IP_FRAG")
217 #define ETHARP_STATS_DISPLAY() stats_display_proto(&lwip_stats.etharp, "ETHARP")
225 #define LINK_STATS_DISPLAY() stats_display_proto(&lwip_stats.link, "LINK")
232 #define MEM_STATS_AVAIL(x, y) lwip_stats.mem.x = y
235 #define MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x -= y
236 #define MEM_STATS_DISPLAY() stats_display_mem(&lwip_stats.mem, "HEAP")
246 #define MEMP_STATS_AVAIL(x, i, y) lwip_stats.memp[i].x = y
250 #define MEMP_STATS_DISPLAY(i) stats_display_memp(&lwip_stats.memp[i], i)
263 #define SYS_STATS_DISPLAY() stats_display_sys(&lwip_stats.sys)