Searched refs:bgmap (Results 1 – 2 of 2) sorted by relevance
3369 uint32_t bgmap; in update_port_info_kstats() local3390 bgmap = G_NUMPORTS(t4_read_reg(pi->adapter, A_MPS_CMN_CTL)); in update_port_info_kstats()3391 if (bgmap == 0) in update_port_info_kstats()3392 bgmap = (pi->port_id == 0) ? 0xf : 0; in update_port_info_kstats()3393 else if (bgmap == 1) in update_port_info_kstats()3394 bgmap = (pi->port_id < 2) ? (3 << (2 * pi->port_id)) : 0; in update_port_info_kstats()3396 bgmap = 1; in update_port_info_kstats()3398 KS_U_SET(rx_ovflow0, (bgmap & 1) ? in update_port_info_kstats()3400 KS_U_SET(rx_ovflow1, (bgmap & 2) ? in update_port_info_kstats()3402 KS_U_SET(rx_ovflow2, (bgmap & 4) ? in update_port_info_kstats()[all …]
6746 u32 bgmap = t4_get_mps_bg_map(adap, idx); in t4_get_port_stats() local6821 p->rx_ovflow0 = (bgmap & 1) ? GET_STAT_COM(RX_BG_0_MAC_DROP_FRAME) : 0; in t4_get_port_stats()6822 p->rx_ovflow1 = (bgmap & 2) ? GET_STAT_COM(RX_BG_1_MAC_DROP_FRAME) : 0; in t4_get_port_stats()6823 p->rx_ovflow2 = (bgmap & 4) ? GET_STAT_COM(RX_BG_2_MAC_DROP_FRAME) : 0; in t4_get_port_stats()6824 p->rx_ovflow3 = (bgmap & 8) ? GET_STAT_COM(RX_BG_3_MAC_DROP_FRAME) : 0; in t4_get_port_stats()6825 p->rx_trunc0 = (bgmap & 1) ? GET_STAT_COM(RX_BG_0_MAC_TRUNC_FRAME) : 0; in t4_get_port_stats()6826 p->rx_trunc1 = (bgmap & 2) ? GET_STAT_COM(RX_BG_1_MAC_TRUNC_FRAME) : 0; in t4_get_port_stats()6827 p->rx_trunc2 = (bgmap & 4) ? GET_STAT_COM(RX_BG_2_MAC_TRUNC_FRAME) : 0; in t4_get_port_stats()6828 p->rx_trunc3 = (bgmap & 8) ? GET_STAT_COM(RX_BG_3_MAC_TRUNC_FRAME) : 0; in t4_get_port_stats()6844 u32 bgmap = t4_get_mps_bg_map(adap, idx); in t4_get_lb_stats() local[all …]