Lines Matching refs:mib
1667 unsigned long snmp_fold_field(void __percpu *mib, int offt) in snmp_fold_field() argument
1673 res += snmp_get_cpu_field(mib, i, offt); in snmp_fold_field()
1680 u64 snmp_get_cpu_field64(void __percpu *mib, int cpu, int offt, in snmp_get_cpu_field64() argument
1688 bhptr = per_cpu_ptr(mib, cpu); in snmp_get_cpu_field64()
1699 u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_offset) in snmp_fold_field64() argument
1705 res += snmp_get_cpu_field64(mib, cpu, offt, syncp_offset); in snmp_fold_field64()
1751 net->mib.tcp_statistics = alloc_percpu(struct tcp_mib); in ipv4_mib_init_net()
1752 if (!net->mib.tcp_statistics) in ipv4_mib_init_net()
1754 net->mib.ip_statistics = alloc_percpu(struct ipstats_mib); in ipv4_mib_init_net()
1755 if (!net->mib.ip_statistics) in ipv4_mib_init_net()
1760 af_inet_stats = per_cpu_ptr(net->mib.ip_statistics, i); in ipv4_mib_init_net()
1764 net->mib.net_statistics = alloc_percpu(struct linux_mib); in ipv4_mib_init_net()
1765 if (!net->mib.net_statistics) in ipv4_mib_init_net()
1767 net->mib.udp_statistics = alloc_percpu(struct udp_mib); in ipv4_mib_init_net()
1768 if (!net->mib.udp_statistics) in ipv4_mib_init_net()
1770 net->mib.udplite_statistics = alloc_percpu(struct udp_mib); in ipv4_mib_init_net()
1771 if (!net->mib.udplite_statistics) in ipv4_mib_init_net()
1773 net->mib.icmp_statistics = alloc_percpu(struct icmp_mib); in ipv4_mib_init_net()
1774 if (!net->mib.icmp_statistics) in ipv4_mib_init_net()
1776 net->mib.icmpmsg_statistics = kzalloc(sizeof(struct icmpmsg_mib), in ipv4_mib_init_net()
1778 if (!net->mib.icmpmsg_statistics) in ipv4_mib_init_net()
1785 free_percpu(net->mib.icmp_statistics); in ipv4_mib_init_net()
1787 free_percpu(net->mib.udplite_statistics); in ipv4_mib_init_net()
1789 free_percpu(net->mib.udp_statistics); in ipv4_mib_init_net()
1791 free_percpu(net->mib.net_statistics); in ipv4_mib_init_net()
1793 free_percpu(net->mib.ip_statistics); in ipv4_mib_init_net()
1795 free_percpu(net->mib.tcp_statistics); in ipv4_mib_init_net()
1802 kfree(net->mib.icmpmsg_statistics); in ipv4_mib_exit_net()
1803 free_percpu(net->mib.icmp_statistics); in ipv4_mib_exit_net()
1804 free_percpu(net->mib.udplite_statistics); in ipv4_mib_exit_net()
1805 free_percpu(net->mib.udp_statistics); in ipv4_mib_exit_net()
1806 free_percpu(net->mib.net_statistics); in ipv4_mib_exit_net()
1807 free_percpu(net->mib.ip_statistics); in ipv4_mib_exit_net()
1808 free_percpu(net->mib.tcp_statistics); in ipv4_mib_exit_net()
1811 free_percpu(net->mib.mptcp_statistics); in ipv4_mib_exit_net()