/kernel/linux/linux-5.10/include/net/ |
D | snmp.h | 127 #define __SNMP_INC_STATS(mib, field) \ argument 128 __this_cpu_inc(mib->mibs[field]) 130 #define SNMP_INC_STATS_ATOMIC_LONG(mib, field) \ argument 131 atomic_long_inc(&mib->mibs[field]) 133 #define SNMP_INC_STATS(mib, field) \ argument 134 this_cpu_inc(mib->mibs[field]) 136 #define SNMP_DEC_STATS(mib, field) \ argument 137 this_cpu_dec(mib->mibs[field]) 139 #define __SNMP_ADD_STATS(mib, field, addend) \ argument 140 __this_cpu_add(mib->mibs[field], addend) [all …]
|
D | udp.h | 408 if (is_udplite) SNMP_INC_STATS((net)->mib.udplite_statistics, field); \ 409 else SNMP_INC_STATS((net)->mib.udp_statistics, field); } while(0) 411 if (is_udplite) __SNMP_INC_STATS((net)->mib.udplite_statistics, field); \ 412 else __SNMP_INC_STATS((net)->mib.udp_statistics, field); } while(0) 415 if (is_udplite) __SNMP_INC_STATS((net)->mib.udplite_stats_in6, field);\ 416 else __SNMP_INC_STATS((net)->mib.udp_stats_in6, field); \ 419 if (__lite) SNMP_INC_STATS((net)->mib.udplite_stats_in6, field); \ 420 else SNMP_INC_STATS((net)->mib.udp_stats_in6, field); \ 426 ipv4 ? (IS_UDPLITE(sk) ? sock_net(sk)->mib.udplite_statistics : \ 427 sock_net(sk)->mib.udp_statistics) : \ [all …]
|
D | icmp.h | 29 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) 30 #define __ICMP_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.icmp_statistics, field) 31 #define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, … 32 #define ICMPMSGIN_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, …
|
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/ |
D | smtdef.c | 73 static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper); 130 smc->mib.fddiESSPayload = 0 ; in smt_reset_defaults() 131 smc->mib.fddiESSOverhead = 0 ; in smt_reset_defaults() 132 smc->mib.fddiESSMaxTNeg = (u_long)(- MS2BCLK(25)) ; in smt_reset_defaults() 133 smc->mib.fddiESSMinSegmentSize = 1 ; in smt_reset_defaults() 134 smc->mib.fddiESSCategory = SB_STATIC ; in smt_reset_defaults() 135 smc->mib.fddiESSSynchTxMode = FALSE ; in smt_reset_defaults() 162 struct fddi_mib *mib ; in smt_init_mib() local 167 mib = &smc->mib ; in smt_init_mib() 179 mib->fddiSMTRemoteDisconnectFlag = 0 ; in smt_init_mib() [all …]
|
D | pcmplc.c | 71 #define GO_STATE(x) (mib->fddiPORTPCMState = (x)|AFLAG) 72 #define ACTIONS_DONE() (mib->fddiPORTPCMState &= ~AFLAG) 235 struct fddi_mib_p *mib ; in pcm_init() local 239 mib = phy->mib ; in pcm_init() 240 mib->fddiPORTPCMState = ACTIONS(PC0_OFF) ; in pcm_init() 245 mib->fddiPORTMy_Type = (np == PS) ? TS : TM ; in pcm_init() 248 mib->fddiPORTMy_Type = (np == PA) ? TA : in pcm_init() 252 mib->fddiPORTMy_Type = TM ; in pcm_init() 256 mib->fddiPORTMy_Type = (np == PS) ? TS : TNONE ; in pcm_init() 257 mib->fddiPORTHardwarePresent = (np == PS) ? TRUE : in pcm_init() [all …]
|
D | smt.c | 112 *(short *)(&smc->mib.m[MAC0].fddiMACSMTAddress.a[0]) in is_my_addr() 114 *(short *)(&smc->mib.m[MAC0].fddiMACSMTAddress.a[2]) in is_my_addr() 116 *(short *)(&smc->mib.m[MAC0].fddiMACSMTAddress.a[4])) ; in is_my_addr() 154 smc->mib.m[MAC0].fddiMACSMTAddress = smc->hw.fddi_home_addr ; in smt_agent_init() 159 smc->mib.fddiSMTStationId.sid_oem[0] = 0 ; in smt_agent_init() 160 smc->mib.fddiSMTStationId.sid_oem[1] = 0 ; in smt_agent_init() 161 driver_get_bia(smc,&smc->mib.fddiSMTStationId.sid_node) ; in smt_agent_init() 163 smc->mib.fddiSMTStationId.sid_node.a[i] = in smt_agent_init() 164 bitrev8(smc->mib.fddiSMTStationId.sid_node.a[i]); in smt_agent_init() 166 smc->mib.fddiSMTManufacturerData[0] = in smt_agent_init() [all …]
|
D | cfm.c | 43 #define GO_STATE(x) (smc->mib.fddiSMTCF_State = (x)|AFLAG) 44 #define ACTIONS_DONE() (smc->mib.fddiSMTCF_State &= ~AFLAG) 97 smc->mib.fddiSMTCF_State = ACTIONS(SC0_ISOLATED) ; in cfm_init() 113 switch (phy->mib->fddiPORTMy_Type) { in selection_criteria() 222 smc->mib.fddiSMTCF_State & AFLAG ? "ACTIONS " : "", in cfm() 223 cfm_states[smc->mib.fddiSMTCF_State & ~AFLAG], in cfm() 225 state = smc->mib.fddiSMTCF_State ; in cfm() 228 } while (state != smc->mib.fddiSMTCF_State) ; in cfm() 235 if ( (smc->mib.fddiSMTCF_State == SC9_C_WRAP_A && in cfm() 237 (smc->mib.fddiSMTCF_State == SC10_C_WRAP_B && in cfm() [all …]
|
D | ess.c | 173 if (!local || smc->mib.fddiESSPayload) in ess_raf_received_pack() 191 smc->mib.a[PATH0].fddiPATHSbaPayload ; in ess_raf_received_pack() 194 smc->mib.a[PATH0].fddiPATHSbaOverhead ; in ess_raf_received_pack() 436 if (smc->mib.fddiESSPayload && in process_bw_alloc() 437 ((u_long)payload != smc->mib.fddiESSPayload || in process_bw_alloc() 438 (u_long)overhead != smc->mib.fddiESSOverhead)) { in process_bw_alloc() 451 (long)smc->mib.m[MAC0].fddiMACT_Neg * in process_bw_alloc() 461 smc->mib.a[PATH0].fddiPATHSbaPayload = payload ; in process_bw_alloc() 462 smc->mib.a[PATH0].fddiPATHSbaOverhead = overhead ; in process_bw_alloc() 518 chg->payload.mib_payload = smc->mib.a[PATH0].fddiPATHSbaPayload ; in ess_send_response() [all …]
|
D | ecm.c | 51 #define GO_STATE(x) (smc->mib.fddiSMTECMState = (x)|AFLAG) 52 #define ACTIONS_DONE() (smc->mib.fddiSMTECMState &= ~AFLAG) 104 smc->mib.fddiSMTECMState = ACTIONS(EC0_OUT) ; in ecm_init() 123 smc->mib.fddiSMTECMState & AFLAG ? "ACTIONS " : "", in ecm() 124 ecm_states[smc->mib.fddiSMTECMState & ~AFLAG], in ecm() 126 state = smc->mib.fddiSMTECMState ; in ecm() 129 } while (state != smc->mib.fddiSMTECMState) ; in ecm() 130 ecm_state_change(smc,(int)smc->mib.fddiSMTECMState) ; in ecm() 143 smc->mib.fddiSMTBypassPresent = sm_pm_bypass_present(smc) ; in ecm_fsm() 145 smc->mib.fddiSMTRemoteDisconnectFlag = FALSE ; in ecm_fsm() [all …]
|
D | rmt.c | 56 #define GO_STATE(x) (smc->mib.m[MAC0].fddiMACRMTState = (x)|AFLAG) 57 #define ACTIONS_DONE() (smc->mib.m[MAC0].fddiMACRMTState &= ~AFLAG) 121 smc->mib.m[MAC0].fddiMACRMTState = ACTIONS(RM0_ISOLATED) ; in rmt_init() 124 smc->mib.m[MAC0].fddiMACMA_UnitdataAvailable = FALSE ; in rmt_init() 147 smc->mib.m[MAC0].fddiMACRMTState & AFLAG ? "ACTIONS " : "", in rmt() 148 rmt_states[smc->mib.m[MAC0].fddiMACRMTState & ~AFLAG], in rmt() 150 state = smc->mib.m[MAC0].fddiMACRMTState ; in rmt() 153 } while (state != smc->mib.m[MAC0].fddiMACRMTState) ; in rmt() 154 rmt_state_change(smc,(int)smc->mib.m[MAC0].fddiMACRMTState) ; in rmt() 166 smc->mib.m[MAC0].fddiMACRMTState != ACTIONS(RM0_ISOLATED) && in rmt_fsm() [all …]
|
D | smtinit.c | 49 struct fddi_mib *mib ; in set_oem_spec_val() local 51 mib = &smc->mib ; in set_oem_spec_val() 57 mib->fddiSMTConnectionPolicy = POLICY_MM ; in set_oem_spec_val() 88 smc->y[p].mib = & smc->mib.p[p] ; in init_smt()
|
D | pmf.c | 486 smc->mib.fddiSMTSetCount.count++ ; in smt_build_pmf_response() 487 smt_set_timestamp(smc,smc->mib.fddiSMTSetCount.timestamp) ; in smt_build_pmf_response() 488 smc->mib.fddiSMTLastSetStationId = req->smt_sid ; in smt_build_pmf_response() 504 p = (char *) &smc->mib.fddiPRPMFStation ; in smt_authorize() 509 (char *) &smc->mib.fddiPRPMFStation,8)) in smt_authorize() 515 p = (char *) smc->mib.fddiPRPMFPasswd ; in smt_authorize() 524 if (memcmp((char *)(pa+1),(char *)smc->mib.fddiPRPMFPasswd,8)) in smt_authorize() 538 if ((smc->mib.fddiSMTSetCount.count != sc->count) || in smt_check_set_count() 539 memcmp((char *) smc->mib.fddiSMTSetCount.timestamp, in smt_check_set_count() 608 mib_addr = (char *) (&smc->mib) ; in smt_add_para() [all …]
|
D | srf.c | 104 smc->evcs[0].evc_cond_state = &smc->mib.fddiSMTPeerWrapFlag ; in smt_init_evc() 106 &smc->mib.m[MAC0].fddiMACDuplicateAddressCond ; in smt_init_evc() 108 &smc->mib.m[MAC0].fddiMACFrameErrorFlag ; in smt_init_evc() 110 &smc->mib.m[MAC0].fddiMACNotCopiedFlag ; in smt_init_evc() 115 smc->evcs[4].evc_multiple = &smc->mib.m[MAC0].fddiMACMultiple_N ; in smt_init_evc() 116 smc->evcs[5].evc_multiple = &smc->mib.m[MAC0].fddiMACMultiple_P ; in smt_init_evc() 124 &smc->mib.p[i].fddiPORTLerFlag ; in smt_init_evc() 126 &smc->mib.p[i].fddiPORTEB_Condition ; in smt_init_evc() 132 &smc->mib.p[i].fddiPORTMultiple_U ; in smt_init_evc() 134 &smc->mib.p[i].fddiPORTMultiple_P ; in smt_init_evc() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/wlan-ng/ |
D | prism2mib.c | 89 int (*func)(struct mibrec *mib, 96 static int prism2mib_bytearea2pstr(struct mibrec *mib, 103 static int prism2mib_uint32(struct mibrec *mib, 109 static int prism2mib_flag(struct mibrec *mib, 115 static int prism2mib_wepdefaultkey(struct mibrec *mib, 122 static int prism2mib_privacyinvoked(struct mibrec *mib, 130 prism2mib_fragmentationthreshold(struct mibrec *mib, 137 static int prism2mib_priv(struct mibrec *mib, 258 struct mibrec *mib; in prism2mgmt_mibset_mibget() local 283 for (mib = mibtab; mib->did != 0; mib++) in prism2mgmt_mibset_mibget() [all …]
|
/kernel/linux/linux-5.10/drivers/net/dsa/microchip/ |
D | ksz_common.c | 45 struct ksz_port_mib *mib = &dev->ports[port].mib; in port_r_cnt() local 49 while (mib->cnt_ptr < dev->reg_mib_cnt) { in port_r_cnt() 50 dev->dev_ops->r_mib_cnt(dev, port, mib->cnt_ptr, in port_r_cnt() 51 &mib->counters[mib->cnt_ptr]); in port_r_cnt() 52 ++mib->cnt_ptr; in port_r_cnt() 56 dropped = &mib->counters[dev->mib_cnt]; in port_r_cnt() 59 while (mib->cnt_ptr < dev->mib_cnt) { in port_r_cnt() 60 dev->dev_ops->r_mib_pkt(dev, port, mib->cnt_ptr, in port_r_cnt() 61 dropped, &mib->counters[mib->cnt_ptr]); in port_r_cnt() 62 ++mib->cnt_ptr; in port_r_cnt() [all …]
|
/kernel/linux/linux-5.10/net/mptcp/ |
D | mib.c | 44 struct mptcp_mib __percpu *mib = alloc_percpu(struct mptcp_mib); in mptcp_mib_alloc() local 46 if (!mib) in mptcp_mib_alloc() 49 if (cmpxchg(&net->mib.mptcp_statistics, NULL, mib)) in mptcp_mib_alloc() 50 free_percpu(mib); in mptcp_mib_alloc() 66 if (!net->mib.mptcp_statistics) { in mptcp_seq_show() 76 snmp_fold_field(net->mib.mptcp_statistics, in mptcp_seq_show()
|
D | mib.h | 38 if (likely(net->mib.mptcp_statistics)) in MPTCP_INC_STATS() 39 SNMP_INC_STATS(net->mib.mptcp_statistics, field); in MPTCP_INC_STATS() 45 if (likely(net->mib.mptcp_statistics)) in __MPTCP_INC_STATS() 46 __SNMP_INC_STATS(net->mib.mptcp_statistics, field); in __MPTCP_INC_STATS()
|
/kernel/linux/linux-5.10/arch/ia64/lib/ |
D | memset.S | 75 } { .mib 80 { .mib 82 } { .mib 92 { .mib 95 } { .mib 99 { .mib 102 } { .mib 124 { .mib 149 { .mib 219 { .mib [all …]
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | proc.c | 200 static void snmp6_seq_show_item64(struct seq_file *seq, void __percpu *mib, in snmp6_seq_show_item64() argument 208 snmp_get_cpu_field64_batch(buff64, itemlist, mib, syncpoff); in snmp6_seq_show_item64() 217 snmp6_seq_show_item64(seq, net->mib.ipv6_statistics, in snmp6_seq_show() 219 snmp6_seq_show_item(seq, net->mib.icmpv6_statistics, in snmp6_seq_show() 221 snmp6_seq_show_icmpv6msg(seq, net->mib.icmpv6msg_statistics->mibs); in snmp6_seq_show() 222 snmp6_seq_show_item(seq, net->mib.udp_stats_in6, in snmp6_seq_show() 224 snmp6_seq_show_item(seq, net->mib.udplite_stats_in6, in snmp6_seq_show() 251 if (!net->mib.proc_net_devsnmp6) in snmp6_register_dev() 255 net->mib.proc_net_devsnmp6, snmp6_dev_seq_show, idev); in snmp6_register_dev() 266 if (!net->mib.proc_net_devsnmp6) in snmp6_unregister_dev() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 226 STAT_MIB_RX("rx_64_octets", mib.rx.pkt_cnt.cnt_64), 227 STAT_MIB_RX("rx_65_127_oct", mib.rx.pkt_cnt.cnt_127), 228 STAT_MIB_RX("rx_128_255_oct", mib.rx.pkt_cnt.cnt_255), 229 STAT_MIB_RX("rx_256_511_oct", mib.rx.pkt_cnt.cnt_511), 230 STAT_MIB_RX("rx_512_1023_oct", mib.rx.pkt_cnt.cnt_1023), 231 STAT_MIB_RX("rx_1024_1518_oct", mib.rx.pkt_cnt.cnt_1518), 232 STAT_MIB_RX("rx_vlan_1519_1522_oct", mib.rx.pkt_cnt.cnt_mgv), 233 STAT_MIB_RX("rx_1522_2047_oct", mib.rx.pkt_cnt.cnt_2047), 234 STAT_MIB_RX("rx_2048_4095_oct", mib.rx.pkt_cnt.cnt_4095), 235 STAT_MIB_RX("rx_4096_9216_oct", mib.rx.pkt_cnt.cnt_9216), [all …]
|
D | bcm63xx_enet.c | 1245 { "rx_good_octets", GEN_STAT(mib.rx_gd_octets), ETH_MIB_RX_GD_OCTETS}, 1246 { "rx_good_pkts", GEN_STAT(mib.rx_gd_pkts), ETH_MIB_RX_GD_PKTS }, 1247 { "rx_broadcast", GEN_STAT(mib.rx_brdcast), ETH_MIB_RX_BRDCAST }, 1248 { "rx_multicast", GEN_STAT(mib.rx_mult), ETH_MIB_RX_MULT }, 1249 { "rx_64_octets", GEN_STAT(mib.rx_64), ETH_MIB_RX_64 }, 1250 { "rx_65_127_oct", GEN_STAT(mib.rx_65_127), ETH_MIB_RX_65_127 }, 1251 { "rx_128_255_oct", GEN_STAT(mib.rx_128_255), ETH_MIB_RX_128_255 }, 1252 { "rx_256_511_oct", GEN_STAT(mib.rx_256_511), ETH_MIB_RX_256_511 }, 1253 { "rx_512_1023_oct", GEN_STAT(mib.rx_512_1023), ETH_MIB_RX_512_1023 }, 1254 { "rx_1024_max_oct", GEN_STAT(mib.rx_1024_max), ETH_MIB_RX_1024_MAX }, [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | ramnv1a.c | 30 u32 mem, mib; in nv1a_ram_new() local 48 mib = ((mem >> 6) & 31) + 1; in nv1a_ram_new() 51 mib = ((mem >> 4) & 127) + 1; in nv1a_ram_new() 55 mib * 1024 * 1024, pram); in nv1a_ram_new()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | af_inet.c | 1684 u64 snmp_get_cpu_field(void __percpu *mib, int cpu, int offt) in snmp_get_cpu_field() argument 1686 return *(((unsigned long *)per_cpu_ptr(mib, cpu)) + offt); in snmp_get_cpu_field() 1690 unsigned long snmp_fold_field(void __percpu *mib, int offt) in snmp_fold_field() argument 1696 res += snmp_get_cpu_field(mib, i, offt); in snmp_fold_field() 1703 u64 snmp_get_cpu_field64(void __percpu *mib, int cpu, int offt, in snmp_get_cpu_field64() argument 1711 bhptr = per_cpu_ptr(mib, cpu); in snmp_get_cpu_field64() 1722 u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_offset) in snmp_fold_field64() argument 1728 res += snmp_get_cpu_field64(mib, cpu, offt, syncp_offset); in snmp_fold_field64() 1768 net->mib.tcp_statistics = alloc_percpu(struct tcp_mib); in ipv4_mib_init_net() 1769 if (!net->mib.tcp_statistics) in ipv4_mib_init_net() [all …]
|
D | proc.c | 328 val = atomic_long_read(&net->mib.icmpmsg_statistics->mibs[i]); in icmpmsg_put() 347 atomic_long_t *ptr = net->mib.icmpmsg_statistics->mibs; in icmp_put() 356 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INMSGS), in icmp_put() 357 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INERRORS), in icmp_put() 358 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_CSUMERRORS)); in icmp_put() 363 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTMSGS), in icmp_put() 364 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTERRORS)); in icmp_put() 391 net->mib.ip_statistics, in snmp_seq_show_ipstats() 413 net->mib.tcp_statistics); in snmp_seq_show_tcp_udp() 425 net->mib.udp_statistics); in snmp_seq_show_tcp_udp() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/prism54/ |
D | oid_mgt.c | 228 priv->mib = kcalloc(OID_NUM_LAST, sizeof (void *), GFP_KERNEL); in mgt_init() 229 if (!priv->mib) in mgt_init() 235 priv->mib[i] = kcalloc(isl_oid[i].size, in mgt_init() 238 if (!priv->mib[i]) in mgt_init() 241 priv->mib[i] = NULL; in mgt_init() 255 if (!priv->mib) in mgt_clean() 258 kfree(priv->mib[i]); in mgt_clean() 259 priv->mib[i] = NULL; in mgt_clean() 261 kfree(priv->mib); in mgt_clean() 262 priv->mib = NULL; in mgt_clean() [all …]
|