Home
last modified time | relevance | path

Searched refs:mib (Results 1 – 25 of 94) sorted by relevance

1234

/linux/include/net/
H A Dsnmp.h127 #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 …]
/linux/drivers/net/fddi/skfp/
H A Dsmtdef.c69 static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper);
126 smc->mib.fddiESSPayload = 0 ; in smt_reset_defaults()
127 smc->mib.fddiESSOverhead = 0 ; in smt_reset_defaults()
128 smc->mib.fddiESSMaxTNeg = (u_long)(- MS2BCLK(25)) ; in smt_reset_defaults()
129 smc->mib.fddiESSMinSegmentSize = 1 ; in smt_reset_defaults()
130 smc->mib.fddiESSCategory = SB_STATIC ; in smt_reset_defaults()
131 smc->mib.fddiESSSynchTxMode = FALSE ; in smt_reset_defaults()
158 struct fddi_mib *mib ; in smt_init_mib() local
163 mib = &smc->mib ; in smt_init_mib()
175 mib->fddiSMTRemoteDisconnectFlag = 0 ; in smt_init_mib()
[all …]
H A Dpcmplc.c67 #define GO_STATE(x) (mib->fddiPORTPCMState = (x)|AFLAG)
68 #define ACTIONS_DONE() (mib->fddiPORTPCMState &= ~AFLAG)
231 struct fddi_mib_p *mib ; in pcm_init() local
235 mib = phy->mib ; in pcm_init()
236 mib->fddiPORTPCMState = ACTIONS(PC0_OFF) ; in pcm_init()
241 mib->fddiPORTMy_Type = (np == PS) ? TS : TM ; in pcm_init()
244 mib->fddiPORTMy_Type = (np == PA) ? TA : in pcm_init()
248 mib->fddiPORTMy_Type = TM ; in pcm_init()
252 mib->fddiPORTMy_Type = (np == PS) ? TS : TNONE ; in pcm_init()
253 mib->fddiPORTHardwarePresent = (np == PS) ? TRUE : in pcm_init()
[all …]
H A Dsmt.c112 *(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 …]
H A Dcfm.c43 #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 …]
H A Dess.c172 if (!local || smc->mib.fddiESSPayload) in ess_raf_received_pack()
190 smc->mib.a[PATH0].fddiPATHSbaPayload ; in ess_raf_received_pack()
193 smc->mib.a[PATH0].fddiPATHSbaOverhead ; in ess_raf_received_pack()
435 if (smc->mib.fddiESSPayload && in process_bw_alloc()
436 ((u_long)payload != smc->mib.fddiESSPayload || in process_bw_alloc()
437 (u_long)overhead != smc->mib.fddiESSOverhead)) { in process_bw_alloc()
450 (long)smc->mib.m[MAC0].fddiMACT_Neg * in process_bw_alloc()
460 smc->mib.a[PATH0].fddiPATHSbaPayload = payload ; in process_bw_alloc()
461 smc->mib.a[PATH0].fddiPATHSbaOverhead = overhead ; in process_bw_alloc()
517 chg->payload.mib_payload = smc->mib.a[PATH0].fddiPATHSbaPayload ; in ess_send_response()
[all …]
H A Decm.c47 #define GO_STATE(x) (smc->mib.fddiSMTECMState = (x)|AFLAG)
48 #define ACTIONS_DONE() (smc->mib.fddiSMTECMState &= ~AFLAG)
100 smc->mib.fddiSMTECMState = ACTIONS(EC0_OUT) ; in ecm_init()
119 smc->mib.fddiSMTECMState & AFLAG ? "ACTIONS " : "", in ecm()
120 ecm_states[smc->mib.fddiSMTECMState & ~AFLAG], in ecm()
122 state = smc->mib.fddiSMTECMState ; in ecm()
125 } while (state != smc->mib.fddiSMTECMState) ; in ecm()
126 ecm_state_change(smc,(int)smc->mib.fddiSMTECMState) ; in ecm()
139 smc->mib.fddiSMTBypassPresent = sm_pm_bypass_present(smc) ; in ecm_fsm()
141 smc->mib.fddiSMTRemoteDisconnectFlag = FALSE ; in ecm_fsm()
[all …]
H A Drmt.c52 #define GO_STATE(x) (smc->mib.m[MAC0].fddiMACRMTState = (x)|AFLAG)
53 #define ACTIONS_DONE() (smc->mib.m[MAC0].fddiMACRMTState &= ~AFLAG)
117 smc->mib.m[MAC0].fddiMACRMTState = ACTIONS(RM0_ISOLATED) ; in rmt_init()
120 smc->mib.m[MAC0].fddiMACMA_UnitdataAvailable = FALSE ; in rmt_init()
143 smc->mib.m[MAC0].fddiMACRMTState & AFLAG ? "ACTIONS " : "", in rmt()
144 rmt_states[smc->mib.m[MAC0].fddiMACRMTState & ~AFLAG], in rmt()
146 state = smc->mib.m[MAC0].fddiMACRMTState ; in rmt()
149 } while (state != smc->mib.m[MAC0].fddiMACRMTState) ; in rmt()
150 rmt_state_change(smc,(int)smc->mib.m[MAC0].fddiMACRMTState) ; in rmt()
162 smc->mib.m[MAC0].fddiMACRMTState != ACTIONS(RM0_ISOLATED) && in rmt_fsm()
[all …]
H A Dsmtinit.c45 struct fddi_mib *mib ; in set_oem_spec_val() local
47 mib = &smc->mib ; in set_oem_spec_val()
53 mib->fddiSMTConnectionPolicy = POLICY_MM ; in set_oem_spec_val()
84 smc->y[p].mib = & smc->mib.p[p] ; in init_smt()
H A Dpmf.c482 smc->mib.fddiSMTSetCount.count++ ; in smt_build_pmf_response()
483 smt_set_timestamp(smc,smc->mib.fddiSMTSetCount.timestamp) ; in smt_build_pmf_response()
484 smc->mib.fddiSMTLastSetStationId = req->smt_sid ; in smt_build_pmf_response()
500 p = (char *) &smc->mib.fddiPRPMFStation ; in smt_authorize()
505 (char *) &smc->mib.fddiPRPMFStation,8)) in smt_authorize()
511 p = (char *) smc->mib.fddiPRPMFPasswd ; in smt_authorize()
520 if (memcmp((char *)(pa+1),(char *)smc->mib.fddiPRPMFPasswd,8)) in smt_authorize()
534 if ((smc->mib.fddiSMTSetCount.count != sc->count) || in smt_check_set_count()
535 memcmp((char *) smc->mib.fddiSMTSetCount.timestamp, in smt_check_set_count()
604 mib_addr = (char *) (&smc->mib) ; in smt_add_para()
[all …]
H A Dsrf.c99 smc->evcs[0].evc_cond_state = &smc->mib.fddiSMTPeerWrapFlag ; in smt_init_evc()
101 &smc->mib.m[MAC0].fddiMACDuplicateAddressCond ; in smt_init_evc()
103 &smc->mib.m[MAC0].fddiMACFrameErrorFlag ; in smt_init_evc()
105 &smc->mib.m[MAC0].fddiMACNotCopiedFlag ; in smt_init_evc()
110 smc->evcs[4].evc_multiple = &smc->mib.m[MAC0].fddiMACMultiple_N ; in smt_init_evc()
111 smc->evcs[5].evc_multiple = &smc->mib.m[MAC0].fddiMACMultiple_P ; in smt_init_evc()
119 &smc->mib.p[i].fddiPORTLerFlag ; in smt_init_evc()
121 &smc->mib.p[i].fddiPORTEB_Condition ; in smt_init_evc()
127 &smc->mib.p[i].fddiPORTMultiple_U ; in smt_init_evc()
129 &smc->mib.p[i].fddiPORTMultiple_P ; in smt_init_evc()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Ddebugfs.c289 phy->mib.dl_cck_cnt, in mt7915_muru_stats_show()
290 phy->mib.dl_ofdm_cnt, in mt7915_muru_stats_show()
291 phy->mib.dl_htmix_cnt, in mt7915_muru_stats_show()
292 phy->mib.dl_htgf_cnt, in mt7915_muru_stats_show()
293 phy->mib.dl_vht_su_cnt); in mt7915_muru_stats_show()
302 phy->mib.dl_vht_2mu_cnt, in mt7915_muru_stats_show()
303 phy->mib.dl_vht_3mu_cnt, in mt7915_muru_stats_show()
304 phy->mib.dl_vht_4mu_cnt); in mt7915_muru_stats_show()
306 sub_total_cnt = phy->mib.dl_vht_2mu_cnt + in mt7915_muru_stats_show()
307 phy->mib.dl_vht_3mu_cnt + in mt7915_muru_stats_show()
[all …]
H A Dmain.c925 struct mt76_mib_stats *mib = &phy->mib; in mt7915_get_stats() local
929 stats->dot11RTSSuccessCount = mib->rts_cnt; in mt7915_get_stats()
930 stats->dot11RTSFailureCount = mib->rts_retries_cnt; in mt7915_get_stats()
931 stats->dot11FCSErrorCount = mib->fcs_err_cnt; in mt7915_get_stats()
932 stats->dot11ACKFailureCount = mib->ack_fail_cnt; in mt7915_get_stats()
1456 struct mt76_mib_stats *mib = &phy->mib; in mt7915_get_et_stats() local
1468 data[ei++] = mib->tx_ampdu_cnt; in mt7915_get_et_stats()
1469 data[ei++] = mib->tx_stop_q_empty_cnt; in mt7915_get_et_stats()
1470 data[ei++] = mib->tx_mpdu_attempts_cnt; in mt7915_get_et_stats()
1471 data[ei++] = mib->tx_mpdu_success_cnt; in mt7915_get_et_stats()
[all …]
H A Dmac.c1710 struct mt76_mib_stats *mib = &phy->mib; in mt7915_mac_update_stats() local
1717 mib->fcs_err_cnt += is_mt7915(&dev->mt76) ? in mt7915_mac_update_stats()
1722 mib->rx_fifo_full_cnt += FIELD_GET(MT_MIB_SDR4_RX_FIFO_FULL_MASK, cnt); in mt7915_mac_update_stats()
1725 mib->rx_mpdu_cnt += cnt; in mt7915_mac_update_stats()
1728 mib->channel_idle_cnt += FIELD_GET(MT_MIB_SDR6_CHANNEL_IDL_CNT_MASK, cnt); in mt7915_mac_update_stats()
1731 mib->rx_vector_mismatch_cnt += in mt7915_mac_update_stats()
1735 mib->rx_delimiter_fail_cnt += in mt7915_mac_update_stats()
1739 mib->rx_mrdy_cnt += is_mt7915(&dev->mt76) ? in mt7915_mac_update_stats()
1744 mib->rx_len_mismatch_cnt += in mt7915_mac_update_stats()
1748 mib->tx_ampdu_cnt += cnt; in mt7915_mac_update_stats()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt792x_mac.c79 struct mt76_mib_stats *mib = &phy->mib; in mt792x_mac_update_mib_stats() local
84 mib->fcs_err_cnt += mt76_get_field(dev, MT_MIB_SDR3(0), in mt792x_mac_update_mib_stats()
86 mib->ack_fail_cnt += mt76_get_field(dev, MT_MIB_MB_BSDR3(0), in mt792x_mac_update_mib_stats()
88 mib->ba_miss_cnt += mt76_get_field(dev, MT_MIB_MB_BSDR2(0), in mt792x_mac_update_mib_stats()
90 mib->rts_cnt += mt76_get_field(dev, MT_MIB_MB_BSDR0(0), in mt792x_mac_update_mib_stats()
92 mib->rts_retries_cnt += mt76_get_field(dev, MT_MIB_MB_BSDR1(0), in mt792x_mac_update_mib_stats()
95 mib->tx_ampdu_cnt += mt76_rr(dev, MT_MIB_SDR12(0)); in mt792x_mac_update_mib_stats()
96 mib->tx_mpdu_attempts_cnt += mt76_rr(dev, MT_MIB_SDR14(0)); in mt792x_mac_update_mib_stats()
97 mib->tx_mpdu_success_cnt += mt76_rr(dev, MT_MIB_SDR15(0)); in mt792x_mac_update_mib_stats()
100 mib->tx_pkt_ebf_cnt += FIELD_GET(MT_MIB_SDR9_EBF_CNT_MASK, val); in mt792x_mac_update_mib_stats()
[all …]
H A Dmt792x_debugfs.c36 seq_printf(file, "BA miss count: %d\n", phy->mib.ba_miss_cnt); in mt792x_ampdu_stat_read_phy()
43 struct mt76_mib_stats *mib = &phy->mib; in mt792x_tx_stats_show() local
51 for (i = 0; i < ARRAY_SIZE(mib->tx_amsdu); i++) { in mt792x_tx_stats_show()
53 i + 1, mib->tx_amsdu[i]); in mt792x_tx_stats_show()
54 if (mib->tx_amsdu_cnt) in mt792x_tx_stats_show()
56 mib->tx_amsdu[i] * 100 / mib->tx_amsdu_cnt); in mt792x_tx_stats_show()
/linux/net/mptcp/
H A Dmib.h95 if (likely(net->mib.mptcp_statistics)) in MPTCP_ADD_STATS()
96 SNMP_ADD_STATS(net->mib.mptcp_statistics, field, val); in MPTCP_ADD_STATS()
102 if (likely(net->mib.mptcp_statistics)) in MPTCP_INC_STATS()
103 SNMP_INC_STATS(net->mib.mptcp_statistics, field); in MPTCP_INC_STATS()
109 if (likely(net->mib.mptcp_statistics)) in __MPTCP_INC_STATS()
110 __SNMP_INC_STATS(net->mib.mptcp_statistics, field); in __MPTCP_INC_STATS()
116 if (likely(net->mib.mptcp_statistics)) in MPTCP_DEC_STATS()
117 SNMP_DEC_STATS(net->mib.mptcp_statistics, field); in MPTCP_DEC_STATS()
H A Dmib.c92 struct mptcp_mib __percpu *mib = alloc_percpu(struct mptcp_mib); in mptcp_mib_alloc() local
94 if (!mib) in mptcp_mib_alloc()
97 if (cmpxchg(&net->mib.mptcp_statistics, NULL, mib)) in mptcp_mib_alloc()
98 free_percpu(mib); in mptcp_mib_alloc()
116 if (net->mib.mptcp_statistics) in mptcp_seq_show()
118 net->mib.mptcp_statistics); in mptcp_seq_show()
/linux/net/ipv6/
H A Dproc.c204 static void snmp6_seq_show_item64(struct seq_file *seq, void __percpu *mib, in snmp6_seq_show_item64() argument
212 snmp_get_cpu_field64_batch(buff64, itemlist, mib, syncpoff); in snmp6_seq_show_item64()
221 snmp6_seq_show_item64(seq, net->mib.ipv6_statistics, in snmp6_seq_show()
223 snmp6_seq_show_item(seq, net->mib.icmpv6_statistics, in snmp6_seq_show()
225 snmp6_seq_show_icmpv6msg(seq, net->mib.icmpv6msg_statistics->mibs); in snmp6_seq_show()
226 snmp6_seq_show_item(seq, net->mib.udp_stats_in6, in snmp6_seq_show()
228 snmp6_seq_show_item(seq, net->mib.udplite_stats_in6, in snmp6_seq_show()
255 if (!net->mib.proc_net_devsnmp6) in snmp6_register_dev()
259 net->mib.proc_net_devsnmp6, snmp6_dev_seq_show, idev); in snmp6_register_dev()
270 if (!net->mib.proc_net_devsnmp6) in snmp6_unregister_dev()
[all …]
/linux/drivers/net/ethernet/broadcom/
H A Dbcmsysport.c227 STAT_MIB_RX("rx_64_octets", mib.rx.pkt_cnt.cnt_64),
228 STAT_MIB_RX("rx_65_127_oct", mib.rx.pkt_cnt.cnt_127),
229 STAT_MIB_RX("rx_128_255_oct", mib.rx.pkt_cnt.cnt_255),
230 STAT_MIB_RX("rx_256_511_oct", mib.rx.pkt_cnt.cnt_511),
231 STAT_MIB_RX("rx_512_1023_oct", mib.rx.pkt_cnt.cnt_1023),
232 STAT_MIB_RX("rx_1024_1518_oct", mib.rx.pkt_cnt.cnt_1518),
233 STAT_MIB_RX("rx_vlan_1519_1522_oct", mib.rx.pkt_cnt.cnt_mgv),
234 STAT_MIB_RX("rx_1522_2047_oct", mib.rx.pkt_cnt.cnt_2047),
235 STAT_MIB_RX("rx_2048_4095_oct", mib.rx.pkt_cnt.cnt_4095),
236 STAT_MIB_RX("rx_4096_9216_oct", mib.rx.pkt_cnt.cnt_9216),
[all …]
H A Dbcm63xx_enet.c1264 { "rx_good_octets", GEN_STAT(mib.rx_gd_octets), ETH_MIB_RX_GD_OCTETS},
1265 { "rx_good_pkts", GEN_STAT(mib.rx_gd_pkts), ETH_MIB_RX_GD_PKTS },
1266 { "rx_broadcast", GEN_STAT(mib.rx_brdcast), ETH_MIB_RX_BRDCAST },
1267 { "rx_multicast", GEN_STAT(mib.rx_mult), ETH_MIB_RX_MULT },
1268 { "rx_64_octets", GEN_STAT(mib.rx_64), ETH_MIB_RX_64 },
1269 { "rx_65_127_oct", GEN_STAT(mib.rx_65_127), ETH_MIB_RX_65_127 },
1270 { "rx_128_255_oct", GEN_STAT(mib.rx_128_255), ETH_MIB_RX_128_255 },
1271 { "rx_256_511_oct", GEN_STAT(mib.rx_256_511), ETH_MIB_RX_256_511 },
1272 { "rx_512_1023_oct", GEN_STAT(mib.rx_512_1023), ETH_MIB_RX_512_1023 },
1273 { "rx_1024_max_oct", GEN_STAT(mib.rx_1024_max), ETH_MIB_RX_1024_MAX },
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Ddebugfs.c476 seq_printf(file, "BA miss count: %d\n", phy->mib.ba_miss_cnt); in mt7996_ampdu_stat_read_phy()
482 struct mt76_mib_stats *mib = &phy->mib; in mt7996_txbf_stat_read_phy() local
491 mib->tx_bf_ibf_ppdu_cnt, in mt7996_txbf_stat_read_phy()
492 mib->tx_bf_ebf_ppdu_cnt); in mt7996_txbf_stat_read_phy()
498 mib->tx_bf_rx_fb_all_cnt, in mt7996_txbf_stat_read_phy()
499 mib->tx_bf_rx_fb_eht_cnt, in mt7996_txbf_stat_read_phy()
500 mib->tx_bf_rx_fb_he_cnt, in mt7996_txbf_stat_read_phy()
501 mib->tx_bf_rx_fb_vht_cnt, in mt7996_txbf_stat_read_phy()
502 mib->tx_bf_rx_fb_ht_cnt); in mt7996_txbf_stat_read_phy()
505 bw[mib->tx_bf_rx_fb_bw], in mt7996_txbf_stat_read_phy()
[all …]
H A Dmain.c842 struct mt76_mib_stats *mib = &phy->mib; in mt7996_get_stats() local
846 stats->dot11RTSSuccessCount = mib->rts_cnt; in mt7996_get_stats()
847 stats->dot11RTSFailureCount = mib->rts_retries_cnt; in mt7996_get_stats()
848 stats->dot11FCSErrorCount = mib->fcs_err_cnt; in mt7996_get_stats()
849 stats->dot11ACKFailureCount = mib->ack_fail_cnt; in mt7996_get_stats()
1274 struct mt76_mib_stats *mib = &phy->mib; in mt7996_get_et_stats() local
1286 data[ei++] = mib->tx_ampdu_cnt; in mt7996_get_et_stats()
1287 data[ei++] = mib->tx_stop_q_empty_cnt; in mt7996_get_et_stats()
1288 data[ei++] = mib->tx_mpdu_attempts_cnt; in mt7996_get_et_stats()
1289 data[ei++] = mib->tx_mpdu_success_cnt; in mt7996_get_et_stats()
[all …]
/linux/net/ipv4/
H A Dproc.c339 val = atomic_long_read(&net->mib.icmpmsg_statistics->mibs[i]); in icmpmsg_put()
358 atomic_long_t *ptr = net->mib.icmpmsg_statistics->mibs; in icmp_put()
367 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INMSGS), in icmp_put()
368 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INERRORS), in icmp_put()
369 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_CSUMERRORS)); in icmp_put()
374 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTMSGS), in icmp_put()
375 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTERRORS), in icmp_put()
376 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_RATELIMITGLOBAL), in icmp_put()
377 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_RATELIMITHOST)); in icmp_put()
404 net->mib.ip_statistics, in snmp_seq_show_ipstats()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dramnv1a.c30 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()

1234