Home
last modified time | relevance | path

Searched refs:bgmap (Results 1 – 2 of 2) sorted by relevance

/titanic_44/usr/src/uts/common/io/cxgbe/common/
H A Dt4_hw.c3461 u32 bgmap = get_mps_bg_map(adap, idx); in t4_get_port_stats() local
3519 p->rx_ovflow0 = (bgmap & 1) ? GET_STAT_COM(RX_BG_0_MAC_DROP_FRAME) : 0; in t4_get_port_stats()
3520 p->rx_ovflow1 = (bgmap & 2) ? GET_STAT_COM(RX_BG_1_MAC_DROP_FRAME) : 0; in t4_get_port_stats()
3521 p->rx_ovflow2 = (bgmap & 4) ? GET_STAT_COM(RX_BG_2_MAC_DROP_FRAME) : 0; in t4_get_port_stats()
3522 p->rx_ovflow3 = (bgmap & 8) ? GET_STAT_COM(RX_BG_3_MAC_DROP_FRAME) : 0; in t4_get_port_stats()
3523 p->rx_trunc0 = (bgmap & 1) ? GET_STAT_COM(RX_BG_0_MAC_TRUNC_FRAME) : 0; in t4_get_port_stats()
3524 p->rx_trunc1 = (bgmap & 2) ? GET_STAT_COM(RX_BG_1_MAC_TRUNC_FRAME) : 0; in t4_get_port_stats()
3525 p->rx_trunc2 = (bgmap & 4) ? GET_STAT_COM(RX_BG_2_MAC_TRUNC_FRAME) : 0; in t4_get_port_stats()
3526 p->rx_trunc3 = (bgmap & 8) ? GET_STAT_COM(RX_BG_3_MAC_TRUNC_FRAME) : 0; in t4_get_port_stats()
3543 u32 bgmap = get_mps_bg_map(adap, idx); in t4_clr_port_stats() local
[all …]
/titanic_44/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_sge.c3186 uint32_t bgmap; in update_port_info_kstats() local
3207 bgmap = G_NUMPORTS(t4_read_reg(pi->adapter, A_MPS_CMN_CTL)); in update_port_info_kstats()
3208 if (bgmap == 0) in update_port_info_kstats()
3209 bgmap = (pi->port_id == 0) ? 0xf : 0; in update_port_info_kstats()
3210 else if (bgmap == 1) in update_port_info_kstats()
3211 bgmap = (pi->port_id < 2) ? (3 << (2 * pi->port_id)) : 0; in update_port_info_kstats()
3213 bgmap = 1; in update_port_info_kstats()
3215 KS_U_SET(rx_ovflow0, (bgmap & 1) ? in update_port_info_kstats()
3217 KS_U_SET(rx_ovflow1, (bgmap & 2) ? in update_port_info_kstats()
3219 KS_U_SET(rx_ovflow2, (bgmap & 4) ? in update_port_info_kstats()
[all …]