Lines Matching refs:nr64_mac
94 #define nr64_mac(reg) readq(np->mac_regs + (reg)) macro
124 u64 val = nr64_mac(reg); in __niu_wait_bits_clear_mac()
146 (unsigned long long)nr64_mac(reg)); in __niu_set_and_wait_clear_mac()
1096 val2 = nr64_mac(XMAC_INTER2); in link_status_10g_serdes()
1563 val = nr64_mac(XMAC_CONFIG); in xcvr_init_10g_bcm8706()
1619 val = nr64_mac(XMAC_CONFIG); in xcvr_init_10g()
2688 val = nr64_mac(reg); in niu_enable_alt_mac()
2701 u64 val = nr64_mac(reg); in __set_rdc_table_num_hw()
3907 u64 xrxmac_stat = nr64_mac(XRXMAC_STATUS); in niu_mif_interrupt()
3924 val = nr64_mac(XTXMAC_STATUS); in niu_xmac_interrupt()
3938 val = nr64_mac(XRXMAC_STATUS); in niu_xmac_interrupt()
3980 val = nr64_mac(XMAC_FC_STAT); in niu_xmac_interrupt()
3994 val = nr64_mac(BTXMAC_STATUS); in niu_bmac_interrupt()
4004 val = nr64_mac(BRXMAC_STATUS); in niu_bmac_interrupt()
4016 val = nr64_mac(BMAC_CTRL_STATUS); in niu_bmac_interrupt()
5272 val = nr64_mac(XMAC_CONFIG); in niu_handle_led()
5299 val = nr64_mac(XMAC_CONFIG); in niu_init_xif_xmac()
5331 val = nr64_mac(XMAC_CONFIG); in niu_init_xif_xmac()
5430 val = nr64_mac(XMAC_CONFIG); in niu_init_pcs()
5486 if (!(nr64_mac(BTXMAC_SW_RST) & BTXMAC_SW_RST_RESET)) in niu_reset_tx_bmac()
5493 (unsigned long long) nr64_mac(BTXMAC_SW_RST)); in niu_reset_tx_bmac()
5512 val = nr64_mac(XMAC_MIN); in niu_init_tx_xmac()
5523 val = nr64_mac(XMAC_IPG); in niu_init_tx_xmac()
5533 val = nr64_mac(XMAC_CONFIG); in niu_init_tx_xmac()
5555 val = nr64_mac(BTXMAC_CONFIG); in niu_init_tx_bmac()
5590 if (!(nr64_mac(XRXMAC_SW_RST) & (XRXMAC_SW_RST_REG_RS | in niu_reset_rx_xmac()
5598 (unsigned long long) nr64_mac(XRXMAC_SW_RST)); in niu_reset_rx_xmac()
5612 if (!(nr64_mac(BRXMAC_SW_RST) & BRXMAC_SW_RST_RESET)) in niu_reset_rx_bmac()
5619 (unsigned long long) nr64_mac(BRXMAC_SW_RST)); in niu_reset_rx_bmac()
5653 val = nr64_mac(XMAC_CONFIG); in niu_init_rx_xmac()
5705 val = nr64_mac(BRXMAC_CONFIG); in niu_init_rx_bmac()
5716 val = nr64_mac(BMAC_ADDR_CMPEN); in niu_init_rx_bmac()
5733 u64 val = nr64_mac(XMAC_CONFIG); in niu_enable_tx_xmac()
5744 u64 val = nr64_mac(BTXMAC_CONFIG); in niu_enable_tx_bmac()
5763 u64 val = nr64_mac(XMAC_CONFIG); in niu_enable_rx_xmac()
5782 u64 val = nr64_mac(BRXMAC_CONFIG); in niu_enable_rx_bmac()
6194 mp->tx_frames += nr64_mac(TXMAC_FRM_CNT); in niu_sync_xmac_stats()
6195 mp->tx_bytes += nr64_mac(TXMAC_BYTE_CNT); in niu_sync_xmac_stats()
6197 mp->rx_link_faults += nr64_mac(LINK_FAULT_CNT); in niu_sync_xmac_stats()
6198 mp->rx_align_errors += nr64_mac(RXMAC_ALIGN_ERR_CNT); in niu_sync_xmac_stats()
6199 mp->rx_frags += nr64_mac(RXMAC_FRAG_CNT); in niu_sync_xmac_stats()
6200 mp->rx_mcasts += nr64_mac(RXMAC_MC_FRM_CNT); in niu_sync_xmac_stats()
6201 mp->rx_bcasts += nr64_mac(RXMAC_BC_FRM_CNT); in niu_sync_xmac_stats()
6202 mp->rx_hist_cnt1 += nr64_mac(RXMAC_HIST_CNT1); in niu_sync_xmac_stats()
6203 mp->rx_hist_cnt2 += nr64_mac(RXMAC_HIST_CNT2); in niu_sync_xmac_stats()
6204 mp->rx_hist_cnt3 += nr64_mac(RXMAC_HIST_CNT3); in niu_sync_xmac_stats()
6205 mp->rx_hist_cnt4 += nr64_mac(RXMAC_HIST_CNT4); in niu_sync_xmac_stats()
6206 mp->rx_hist_cnt5 += nr64_mac(RXMAC_HIST_CNT5); in niu_sync_xmac_stats()
6207 mp->rx_hist_cnt6 += nr64_mac(RXMAC_HIST_CNT6); in niu_sync_xmac_stats()
6208 mp->rx_hist_cnt7 += nr64_mac(RXMAC_HIST_CNT7); in niu_sync_xmac_stats()
6209 mp->rx_octets += nr64_mac(RXMAC_BT_CNT); in niu_sync_xmac_stats()
6210 mp->rx_code_violations += nr64_mac(RXMAC_CD_VIO_CNT); in niu_sync_xmac_stats()
6211 mp->rx_len_errors += nr64_mac(RXMAC_MPSZER_CNT); in niu_sync_xmac_stats()
6212 mp->rx_crc_errors += nr64_mac(RXMAC_CRC_ER_CNT); in niu_sync_xmac_stats()
6219 mp->tx_bytes += nr64_mac(BTXMAC_BYTE_CNT); in niu_sync_bmac_stats()
6220 mp->tx_frames += nr64_mac(BTXMAC_FRM_CNT); in niu_sync_bmac_stats()
6222 mp->rx_frames += nr64_mac(BRXMAC_FRAME_CNT); in niu_sync_bmac_stats()
6223 mp->rx_align_errors += nr64_mac(BRXMAC_ALIGN_ERR_CNT); in niu_sync_bmac_stats()
6224 mp->rx_crc_errors += nr64_mac(BRXMAC_ALIGN_ERR_CNT); in niu_sync_bmac_stats()
6225 mp->rx_len_errors += nr64_mac(BRXMAC_CODE_VIOL_ERR_CNT); in niu_sync_bmac_stats()
7833 return nr64_mac(XMAC_CONFIG); in niu_led_state_save()
7835 return nr64_mac(BMAC_XIF_CONFIG); in niu_led_state_save()
7858 val = nr64_mac(reg); in niu_force_led()