/linux/drivers/net/fddi/skfp/ |
A D | smtdef.c | 158 struct fddi_mib *mib ; in smt_init_mib() local 163 mib = &smc->mib ; in smt_init_mib() 179 mib->fddiSMTOpVersionId = 2 ; in smt_init_mib() 180 mib->fddiSMTHiVersionId = 2 ; in smt_init_mib() 181 mib->fddiSMTLoVersionId = 2 ; in smt_init_mib() 197 mib->fddiSMTTT_Notify = 10 ; in smt_init_mib() 245 pm = mib->p ; in smt_init_mib() 252 smc->y[port].mib = NULL; in smt_init_mib() 315 smc->mib.fddiSMTMaster_Ct = NUMPHYS - smc->mib.fddiSMTNonMaster_Ct ; in smt_fixup_mib() 341 if ((limit > mib) ^ maxflag) in set_min_max() [all …]
|
A D | pcmplc.c | 235 mib = phy->mib ; in pcm_init() 365 mib->fddiPORTPCMStateX = mib->fddiPORTPCMState ; in pcm_init() 599 mib = phy->mib ; in pcm() 673 mib = phy->mib ; in pcm_fsm() 1074 mib = phy->mib ; in lem_evaluate() 1179 mib = phy->mib ; in lem_check_lct() 1256 mib = phy->mib ; in pc_rcode_actions() 1394 mib = phy->mib ; in pc_tcode_actions() 1592 mib = phy->mib ; in pcm_status_state() 1858 mib = phy->mib ; in pcm_get_state() [all …]
|
A D | smt.c | 293 mib = smc->mib.m ; in smt_event() 295 (mib->fddiMACLost_Ct - mib->fddiMACOld_Lost_Ct) + in smt_event() 296 (mib->fddiMACError_Ct - mib->fddiMACOld_Error_Ct) ; in smt_event() 298 (mib->fddiMACFrame_Ct - mib->fddiMACOld_Frame_Ct) + in smt_event() 299 (mib->fddiMACLost_Ct - mib->fddiMACOld_Lost_Ct) ; in smt_event() 304 mib->fddiMACError_Ct != mib->fddiMACOld_Error_Ct) || in smt_event() 333 mib->fddiMACOld_Frame_Ct = mib->fddiMACFrame_Ct ; in smt_event() 334 mib->fddiMACOld_Copied_Ct = mib->fddiMACCopied_Ct ; in smt_event() 335 mib->fddiMACOld_Error_Ct = mib->fddiMACError_Ct ; in smt_event() 336 mib->fddiMACOld_Lost_Ct = mib->fddiMACLost_Ct ; in smt_event() [all …]
|
A D | cfm.c | 113 switch (phy->mib->fddiPORTMy_Type) { in selection_criteria() 225 state = smc->mib.fddiSMTCF_State ; in cfm() 244 if (cond != smc->mib.fddiSMTPeerWrapFlag) in cfm() 258 cf_to_ptype[smc->mib.fddiSMTCF_State] ; in cfm() 268 switch(smc->mib.fddiSMTCF_State) { in cfm_fsm() 272 smc->mib.p[PA].fddiPORTMACPlacement = 0 ; in cfm_fsm() 273 smc->mib.p[PB].fddiPORTMACPlacement = 0 ; in cfm_fsm() 308 smc->mib.p[PB].fddiPORTMACPlacement = 0 ; in cfm_fsm() 372 smc->mib.p[PA].fddiPORTMACPlacement = 0 ; in cfm_fsm() 424 smc->mib.p[PA].fddiPORTMACPlacement = 0 ; in cfm_fsm() [all …]
|
A D | ess.c | 172 if (!local || smc->mib.fddiESSPayload) in ess_raf_received_pack() 435 if (smc->mib.fddiESSPayload && in process_bw_alloc() 450 (long)smc->mib.m[MAC0].fddiMACT_Neg * in process_bw_alloc() 560 if (!smc->mib.fddiESSPayload) { in ess_send_alc_req() 561 smc->mib.fddiESSOverhead = 0 ; in ess_send_alc_req() 564 if (!smc->mib.fddiESSOverhead) in ess_send_alc_req() 568 if (smc->mib.fddiESSOverhead == in ess_send_alc_req() 570 smc->mib.fddiESSPayload == in ess_send_alc_req() 571 smc->mib.a[PATH0].fddiPATHSbaPayload){ in ess_send_alc_req() 613 smc->mib.a[PATH0].fddiPATHSbaPayload ; in ess_send_alc_req() [all …]
|
A D | ecm.c | 100 smc->mib.fddiSMTECMState = ACTIONS(EC0_OUT) ; in ecm_init() 122 state = smc->mib.fddiSMTECMState ; in ecm() 125 } while (state != smc->mib.fddiSMTECMState) ; in ecm() 160 switch(smc->mib.fddiSMTECMState) { in ecm_fsm() 179 smc->mib.fddiSMTBypassPresent && in ecm_fsm() 190 if (smc->mib.p[p].fddiPORTHardwarePresent) in ecm_fsm() 276 smc->mib.fddiSMTBypassPresent && in ecm_fsm() 299 !smc->mib.fddiSMTBypassPresent) { in ecm_fsm() 305 !smc->mib.fddiSMTBypassPresent) { in ecm_fsm() 316 smc->mib.fddiSMTBypassPresent) { in ecm_fsm() [all …]
|
A D | rmt.c | 120 smc->mib.m[MAC0].fddiMACMA_UnitdataAvailable = FALSE ; in rmt_init() 146 state = smc->mib.m[MAC0].fddiMACRMTState ; in rmt() 149 } while (state != smc->mib.m[MAC0].fddiMACRMTState) ; in rmt() 163 smc->mib.m[MAC0].fddiMACRMTState != RM0_ISOLATED) { in rmt_fsm() 170 switch(smc->mib.m[MAC0].fddiMACRMTState) { in rmt_fsm() 180 smc->mib.m[MAC0].fddiMACMA_UnitdataAvailable = FALSE ; in rmt_fsm() 236 if (smc->mib.m[MAC0].fddiMACMA_UnitdataEnable) in rmt_fsm() 237 smc->mib.m[MAC0].fddiMACMA_UnitdataAvailable = TRUE ; in rmt_fsm() 239 smc->mib.m[MAC0].fddiMACMA_UnitdataAvailable = FALSE ; in rmt_fsm() 259 if (smc->mib.m[MAC0].fddiMACMA_UnitdataEnable) in rmt_fsm() [all …]
|
A D | pmf.c | 482 smc->mib.fddiSMTSetCount.count++ ; in smt_build_pmf_response() 511 p = (char *) smc->mib.fddiPRPMFPasswd ; in smt_authorize() 604 mib_addr = (char *) (&smc->mib) ; in smt_add_para() 1079 struct fddi_mib *mib ; in smt_set_para() local 1096 mib = &smc->mib ; in smt_set_para() 1100 mib_addr = (char *) mib ; in smt_set_para() 1106 mib_m = &smc->mib.m[mac] ; in smt_set_para() 1115 mib_a = &smc->mib.a[path] ; in smt_set_para() 1327 smc->mib.fddiESSPayload = long_val ; in smt_set_para() 1333 if (set && smc->mib.fddiESSPayload && in smt_set_para() [all …]
|
A D | srf.c | 99 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() 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() 286 if (!smc->mib.fddiSMTStatRptPolicy) { in smt_srf_event() 307 if (!smc->mib.fddiSMTStatRptPolicy) { in smt_srf_event() [all …]
|
A D | smtinit.c | 45 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()
|
/linux/include/net/ |
A D | snmp.h | 146 __typeof__((mib->mibs) + 0) ptr = mib->mibs; \ 152 __typeof__((mib->mibs) + 0) ptr = mib->mibs; \ 162 __typeof__(*mib) *ptr = raw_cpu_ptr(mib); \ 175 #define __SNMP_INC_STATS64(mib, field) SNMP_ADD_STATS64(mib, field, 1) argument 176 #define SNMP_INC_STATS64(mib, field) SNMP_ADD_STATS64(mib, field, 1) argument 179 __typeof__(*mib) *ptr; \ 193 #define __SNMP_INC_STATS64(mib, field) __SNMP_INC_STATS(mib, field) argument 194 #define SNMP_INC_STATS64(mib, field) SNMP_INC_STATS(mib, field) argument 195 #define SNMP_DEC_STATS64(mib, field) SNMP_DEC_STATS(mib, field) argument 196 #define __SNMP_ADD_STATS64(mib, field, addend) __SNMP_ADD_STATS(mib, field, addend) argument [all …]
|
A D | udp.h | 413 else SNMP_INC_STATS((net)->mib.udp_statistics, field); } while(0) 419 if (is_udplite) __SNMP_INC_STATS((net)->mib.udplite_stats_in6, field);\ 420 else __SNMP_INC_STATS((net)->mib.udp_stats_in6, field); \ 423 if (__lite) SNMP_INC_STATS((net)->mib.udplite_stats_in6, field); \ 424 else SNMP_INC_STATS((net)->mib.udp_stats_in6, field); \ 430 ipv4 ? (IS_UDPLITE(sk) ? sock_net(sk)->mib.udplite_statistics : \ 431 sock_net(sk)->mib.udp_statistics) : \ 432 (IS_UDPLITE(sk) ? sock_net(sk)->mib.udplite_stats_in6 : \ 433 sock_net(sk)->mib.udp_stats_in6); \ 438 IS_UDPLITE(sk) ? sock_net(sk)->mib.udplite_statistics : \ [all …]
|
A D | ip.h | 284 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) 290 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) 295 static inline u64 snmp_get_cpu_field(void __percpu *mib, int cpu, int offt) in snmp_get_cpu_field() argument 297 return *(((unsigned long *)per_cpu_ptr(mib, cpu)) + offt); in snmp_get_cpu_field() 300 unsigned long snmp_fold_field(void __percpu *mib, int offt); 302 u64 snmp_get_cpu_field64(void __percpu *mib, int cpu, int offct, 304 u64 snmp_fold_field64(void __percpu *mib, int offt, size_t sync_off); 306 static inline u64 snmp_get_cpu_field64(void __percpu *mib, int cpu, int offct, in snmp_get_cpu_field64() argument 309 return snmp_get_cpu_field(mib, cpu, offct); in snmp_get_cpu_field64() 313 static inline u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_off) in snmp_fold_field64() argument [all …]
|
/linux/drivers/staging/wlan-ng/ |
A D | prism2mib.c | 89 int (*func)(struct mibrec *mib, 258 struct mibrec *mib; in prism2mgmt_mibset_mibget() local 283 for (mib = mibtab; mib->did != 0; mib++) in prism2mgmt_mibset_mibget() 284 if (mib->did == mibitem->did && (mib->flag & which)) in prism2mgmt_mibset_mibget() 287 if (mib->did == 0) { in prism2mgmt_mibset_mibget() 322 result = mib->func(mib, isget, wlandev, hw, msg, (void *)mibitem->data); in prism2mgmt_mibset_mibget() 381 hfa384x_drvr_getconfig(hw, mib->parm1, bytebuf, mib->parm2); in prism2mib_bytearea2pstr() 387 hfa384x_drvr_setconfig(hw, mib->parm1, bytebuf, mib->parm2); in prism2mib_bytearea2pstr() 485 flags |= mib->parm2; in prism2mib_flag() 487 flags &= ~mib->parm2; in prism2mib_flag() [all …]
|
/linux/drivers/net/dsa/microchip/ |
A D | ksz_common.c | 64 struct ksz_port_mib *mib = &dev->ports[port].mib; in port_r_cnt() local 70 &mib->counters[mib->cnt_ptr]); in port_r_cnt() 71 ++mib->cnt_ptr; in port_r_cnt() 80 dropped, &mib->counters[mib->cnt_ptr]); in port_r_cnt() 81 ++mib->cnt_ptr; in port_r_cnt() 83 mib->cnt_ptr = 0; in port_r_cnt() 90 struct ksz_port_mib *mib; in ksz_mib_read_work() local 99 mib = &p->mib; in ksz_mib_read_work() 100 mutex_lock(&mib->cnt_mutex); in ksz_mib_read_work() 180 struct ksz_port_mib *mib; in ksz_get_ethtool_stats() local [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
A D | debugfs.c | 230 struct mib_stats *mib = &phy->mib; in mt7915_txbf_stat_read_phy() local 236 mib->tx_bf_ibf_ppdu_cnt, in mt7915_txbf_stat_read_phy() 244 mib->tx_bf_rx_fb_he_cnt, in mt7915_txbf_stat_read_phy() 249 bw[mib->tx_bf_rx_fb_bw], in mt7915_txbf_stat_read_phy() 250 mib->tx_bf_rx_fb_nc_cnt, in mt7915_txbf_stat_read_phy() 255 mib->tx_bf_fb_cpl_cnt); in mt7915_txbf_stat_read_phy() 257 mib->tx_bf_fb_trig_cnt); in mt7915_txbf_stat_read_phy() 261 mib->tx_bf_cnt); in mt7915_txbf_stat_read_phy() 276 struct mib_stats *mib = &phy->mib; in mt7915_tx_stats_show() local 290 if (mib->tx_amsdu_cnt) in mt7915_tx_stats_show() [all …]
|
A D | main.c | 814 struct mib_stats *mib = &phy->mib; in mt7915_get_stats() local 1216 struct mib_stats *mib = &phy->mib; in mt7915_get_et_stats() local 1225 data[ei++] = mib->tx_ampdu_cnt; in mt7915_get_et_stats() 1231 data[ei++] = mib->tx_pkt_ebf_cnt; in mt7915_get_et_stats() 1232 data[ei++] = mib->tx_pkt_ibf_cnt; in mt7915_get_et_stats() 1260 data[ei++] = mib->tx_bf_cnt; in mt7915_get_et_stats() 1267 data[ei++] = mib->tx_amsdu[i]; in mt7915_get_et_stats() 1271 data[ei++] = mib->rx_mpdu_cnt; in mt7915_get_et_stats() 1276 data[ei++] = mib->rx_ampdu_cnt; in mt7915_get_et_stats() 1280 data[ei++] = mib->rx_pfdrop_cnt; in mt7915_get_et_stats() [all …]
|
/linux/arch/ia64/lib/ |
A D | memset.S | 75 } { .mib 80 { .mib 82 } { .mib 92 { .mib 99 { .mib 124 { .mib 149 { .mib 219 { .mib 247 { .mib 253 { .mib [all …]
|
/linux/net/mptcp/ |
A D | mib.c | 62 struct mptcp_mib __percpu *mib = alloc_percpu(struct mptcp_mib); in mptcp_mib_alloc() local 64 if (!mib) in mptcp_mib_alloc() 67 if (cmpxchg(&net->mib.mptcp_statistics, NULL, mib)) in mptcp_mib_alloc() 68 free_percpu(mib); in mptcp_mib_alloc() 86 if (net->mib.mptcp_statistics) in mptcp_seq_show() 88 net->mib.mptcp_statistics); in mptcp_seq_show()
|
/linux/drivers/net/ethernet/broadcom/ |
A D | bcmsysport.c | 237 STAT_MIB_RX("rx_pkts", mib.rx.pkt), 241 STAT_MIB_RX("rx_fcs", mib.rx.fcs), 243 STAT_MIB_RX("rx_pause", mib.rx.pf), 247 STAT_MIB_RX("rx_code", mib.rx.cde), 254 STAT_MIB_RX("rx_ppp", mib.rx.ppp), 255 STAT_MIB_RX("rx_crc", mib.rx.rcrc), 270 STAT_MIB_TX("tx_pause", mib.tx.pf), 696 priv->mib.alloc_rx_buff_failed++; in bcm_sysport_rx_refill() 704 priv->mib.rx_dma_failed++; in bcm_sysport_rx_refill() 1258 priv->mib.tx_realloc_tsb++; in bcm_sysport_insert_tsb() [all …]
|
A D | bcm63xx_enet.c | 1268 { "rx_64_octets", GEN_STAT(mib.rx_64), ETH_MIB_RX_64 }, 1274 { "rx_jabber", GEN_STAT(mib.rx_jab), ETH_MIB_RX_JAB }, 1275 { "rx_oversize", GEN_STAT(mib.rx_ovr), ETH_MIB_RX_OVR }, 1280 { "rx_crc", GEN_STAT(mib.rx_crc), ETH_MIB_RX_CRC }, 1290 { "tx_64_oct", GEN_STAT(mib.tx_64), ETH_MIB_TX_64 }, 1296 { "tx_jabber", GEN_STAT(mib.tx_jab), ETH_MIB_TX_JAB }, 2472 { "tx_1024_1522_oct", GEN_STAT(mib.tx_1024_max), 2474 { "tx_1523_2047_oct", GEN_STAT(mib.tx_1523_2047), 2476 { "tx_2048_4095_oct", GEN_STAT(mib.tx_2048_4095), 2478 { "tx_4096_8191_oct", GEN_STAT(mib.tx_4096_8191), [all …]
|
/linux/net/ipv6/ |
A D | proc.c | 210 snmp_get_cpu_field64_batch(buff64, itemlist, mib, syncpoff); in snmp6_seq_show_item64() 219 snmp6_seq_show_item64(seq, net->mib.ipv6_statistics, in snmp6_seq_show() 221 snmp6_seq_show_item(seq, net->mib.icmpv6_statistics, in snmp6_seq_show() 223 snmp6_seq_show_icmpv6msg(seq, net->mib.icmpv6msg_statistics->mibs); in snmp6_seq_show() 224 snmp6_seq_show_item(seq, net->mib.udp_stats_in6, in snmp6_seq_show() 226 snmp6_seq_show_item(seq, net->mib.udplite_stats_in6, in snmp6_seq_show() 253 if (!net->mib.proc_net_devsnmp6) in snmp6_register_dev() 257 net->mib.proc_net_devsnmp6, snmp6_dev_seq_show, idev); in snmp6_register_dev() 268 if (!net->mib.proc_net_devsnmp6) in snmp6_unregister_dev() 287 net->mib.proc_net_devsnmp6 = proc_mkdir("dev_snmp6", net->proc_net); in ipv6_proc_init_net() [all …]
|
/linux/net/ipv4/ |
A D | proc.c | 350 atomic_long_t *ptr = net->mib.icmpmsg_statistics->mibs; in icmp_put() 359 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INMSGS), in icmp_put() 366 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTMSGS), in icmp_put() 394 net->mib.ip_statistics, in snmp_seq_show_ipstats() 416 net->mib.tcp_statistics); in snmp_seq_show_tcp_udp() 428 net->mib.udp_statistics); in snmp_seq_show_tcp_udp() 441 net->mib.udplite_statistics); in snmp_seq_show_tcp_udp() 484 net->mib.net_statistics); in netstat_seq_show() 490 snmp_fold_field(net->mib.net_statistics, in netstat_seq_show() 503 net->mib.ip_statistics, in netstat_seq_show() [all …]
|
A D | af_inet.c | 1688 bhptr = per_cpu_ptr(mib, cpu); in snmp_get_cpu_field64() 1752 if (!net->mib.tcp_statistics) in ipv4_mib_init_net() 1755 if (!net->mib.ip_statistics) in ipv4_mib_init_net() 1765 if (!net->mib.net_statistics) in ipv4_mib_init_net() 1768 if (!net->mib.udp_statistics) in ipv4_mib_init_net() 1771 if (!net->mib.udplite_statistics) in ipv4_mib_init_net() 1774 if (!net->mib.icmp_statistics) in ipv4_mib_init_net() 1778 if (!net->mib.icmpmsg_statistics) in ipv4_mib_init_net() 1793 free_percpu(net->mib.ip_statistics); in ipv4_mib_init_net() 1802 kfree(net->mib.icmpmsg_statistics); in ipv4_mib_exit_net() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
A 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()
|