lmacid 55 drivers/net/ethernet/cavium/thunder/thunder_bgx.c int lmacid; /* ID within BGX */ lmacid 205 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status) lmacid 215 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 223 drivers/net/ethernet/cavium/thunder/thunder_bgx.c const u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid) lmacid 228 drivers/net/ethernet/cavium/thunder/thunder_bgx.c return bgx->lmac[lmacid].mac; lmacid 234 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac) lmacid 241 drivers/net/ethernet/cavium/thunder/thunder_bgx.c ether_addr_copy(bgx->lmac[lmacid].mac, mac); lmacid 245 drivers/net/ethernet/cavium/thunder/thunder_bgx.c static void bgx_flush_dmac_cam_filter(struct bgx *bgx, int lmacid) lmacid 250 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 254 drivers/net/ethernet/cavium/thunder/thunder_bgx.c ((lmacid * lmac->dmacs_count) + idx) * lmacid 311 drivers/net/ethernet/cavium/thunder/thunder_bgx.c static int bgx_set_dmac_cam_filter_mac(struct bgx *bgx, int lmacid, lmacid 321 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 324 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = RX_DMACX_CAM_LMACID(lmacid & LMAC_ID_MASK) | lmacid 327 drivers/net/ethernet/cavium/thunder/thunder_bgx.c ((lmacid * lmac->dmacs_count) + idx) * sizeof(u64), cfg); lmacid 331 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void bgx_set_dmac_cam_filter(int node, int bgx_idx, int lmacid, lmacid 340 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 354 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void bgx_set_xcast_mode(int node, int bgx_idx, int lmacid, u8 mode) lmacid 364 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 366 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_CMRX_RX_DMAC_CTL); lmacid 381 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_set_dmac_cam_filter_mac(bgx, lmacid, lmacid 384 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_CMRX_RX_DMAC_CTL, cfg); lmacid 388 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void bgx_reset_xcast_mode(int node, int bgx_idx, int lmacid, u8 vf_id) lmacid 395 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_lmac_remove_filters(&bgx->lmac[lmacid], vf_id); lmacid 396 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_flush_dmac_cam_filter(bgx, lmacid); lmacid 397 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_set_xcast_mode(node, bgx_idx, lmacid, lmacid 402 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable) lmacid 410 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 412 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_CMRX_CFG); lmacid 417 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_GMP_GMI_TXX_INT_ENA_W1S, lmacid 423 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_GMP_GMI_TXX_INT_ENA_W1C, lmacid 426 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_CMRX_CFG, cfg); lmacid 434 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void bgx_config_timestamping(int node, int bgx_idx, int lmacid, bool enable) lmacid 443 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 452 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, csr_offset); lmacid 458 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, csr_offset, cfg); lmacid 462 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void bgx_lmac_get_pfc(int node, int bgx_idx, int lmacid, void *pause) lmacid 471 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 475 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SMUX_CBFC_CTL); lmacid 482 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void bgx_lmac_set_pfc(int node, int bgx_idx, int lmacid, void *pause) lmacid 491 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 495 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SMUX_CBFC_CTL); lmacid 499 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SMUX_CBFC_CTL, cfg); lmacid 511 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cmr_cfg = bgx_reg_read(bgx, lmac->lmacid, BGX_CMRX_CFG); lmacid 515 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, BGX_CMRX_CFG, cmr_cfg); lmacid 518 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(bgx, lmac->lmacid, BGX_GMP_GMI_PRTX_CFG, lmacid 521 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx->bgx_id, lmac->lmacid); lmacid 526 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(bgx, lmac->lmacid, BGX_GMP_GMI_PRTX_CFG, lmacid 529 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx->bgx_id, lmac->lmacid); lmacid 533 drivers/net/ethernet/cavium/thunder/thunder_bgx.c port_cfg = bgx_reg_read(bgx, lmac->lmacid, BGX_GMP_GMI_PRTX_CFG); lmacid 534 drivers/net/ethernet/cavium/thunder/thunder_bgx.c misc_ctl = bgx_reg_read(bgx, lmac->lmacid, BGX_GMP_PCS_MISCX_CTL); lmacid 551 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_TXX_SLOT, 64); lmacid 552 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_TXX_BURST, 0); lmacid 560 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_TXX_SLOT, 64); lmacid 561 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_TXX_BURST, 0); lmacid 569 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_TXX_SLOT, 512); lmacid 571 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, lmacid 574 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, lmacid 580 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_PCS_MISCX_CTL, misc_ctl); lmacid 581 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, BGX_GMP_GMI_PRTX_CFG, port_cfg); lmacid 585 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmac->lmacid, BGX_CMRX_CFG, cmr_cfg); lmacid 689 drivers/net/ethernet/cavium/thunder/thunder_bgx.c int lmacid = lmac->lmacid; lmacid 692 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_GMP_GMI_TXX_THRESH, 0x30); lmacid 694 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_GMP_GMI_RXX_JABBER, MAX_FRAME_SIZE); lmacid 697 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_GMP_GMI_TXX_APPEND); lmacid 699 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_GMP_GMI_TXX_SGMII_CTL, 0); lmacid 702 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_CMRX_CFG, CMR_EN); lmacid 705 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_GMP_PCS_MRX_CTL, PCS_MRX_CTL_RESET); lmacid 706 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(bgx, lmacid, BGX_GMP_PCS_MRX_CTL, lmacid 713 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_GMP_PCS_MRX_CTL); lmacid 726 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_GMP_PCS_MRX_CTL, cfg); lmacid 730 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_GMP_PCS_MISCX_CTL); lmacid 732 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_GMP_PCS_MISCX_CTL, cfg); lmacid 737 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(bgx, lmacid, BGX_GMP_PCS_MRX_STATUS, lmacid 750 drivers/net/ethernet/cavium/thunder/thunder_bgx.c int lmacid = lmac->lmacid; lmacid 753 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_SPUX_CONTROL1, SPU_CTL_RESET); lmacid 754 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(bgx, lmacid, BGX_SPUX_CONTROL1, SPU_CTL_RESET, true)) { lmacid 760 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_CMRX_CFG); lmacid 762 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_CMRX_CFG, cfg); lmacid 764 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_SPUX_CONTROL1, SPU_CTL_LOW_POWER); lmacid 767 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_SPUX_MISC_CONTROL, lmacid 771 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SPUX_MISC_CONTROL); lmacid 773 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_MISC_CONTROL, cfg); lmacid 776 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SMUX_RX_INT); lmacid 777 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SMUX_RX_INT, cfg); lmacid 778 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SMUX_TX_INT); lmacid 779 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SMUX_TX_INT, cfg); lmacid 780 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SPUX_INT); lmacid 781 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_INT, cfg); lmacid 784 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_BR_PMD_LP_CUP, 0x00); lmacid 785 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_BR_PMD_LD_CUP, 0x00); lmacid 786 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_BR_PMD_LD_REP, 0x00); lmacid 788 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, lmacid 793 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_SMUX_TX_APPEND, SMU_TX_APPEND_FCS_D); lmacid 796 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SPUX_FEC_CONTROL); lmacid 798 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_FEC_CONTROL, cfg); lmacid 801 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SPUX_AN_CONTROL); lmacid 803 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_AN_CONTROL, cfg); lmacid 805 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SPUX_AN_ADV); lmacid 813 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_AN_ADV, cfg); lmacid 820 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_CMRX_CFG, CMR_EN); lmacid 822 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SPUX_CONTROL1); lmacid 824 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_CONTROL1, cfg); lmacid 826 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SMUX_TX_CTL); lmacid 829 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SMUX_TX_CTL, cfg); lmacid 832 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SMUX_CBFC_CTL, ((0xffffULL << 32) | lmacid 835 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, lmacid 837 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SMUX_TX_PAUSE_PKT_INTERVAL); lmacid 839 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SMUX_TX_PAUSE_PKT_INTERVAL, lmacid 841 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SMUX_TX_PAUSE_ZERO, 0x01); lmacid 844 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_SMUX_TX_THRESH, (0x100 - 1)); lmacid 846 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_SMUX_RX_JABBER, MAX_FRAME_SIZE); lmacid 854 drivers/net/ethernet/cavium/thunder/thunder_bgx.c int lmacid = lmac->lmacid; lmacid 859 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SPUX_INT); lmacid 862 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_INT, cfg); lmacid 863 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SPUX_BR_PMD_CRTL); lmacid 865 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_BR_PMD_CRTL, cfg); lmacid 871 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(bgx, lmacid, BGX_SPUX_CONTROL1, SPU_CTL_RESET, true)) { lmacid 878 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(bgx, lmacid, BGX_SPUX_BR_STATUS1, lmacid 885 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(bgx, lmacid, BGX_SPUX_BX_STATUS, lmacid 894 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_reg_read(bgx, lmacid, BGX_SPUX_STATUS2) & SPU_STATUS2_RCVFLT) lmacid 895 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, lmacid 897 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_reg_read(bgx, lmacid, BGX_SPUX_STATUS2) & SPU_STATUS2_RCVFLT) { lmacid 900 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SPUX_INT); lmacid 903 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SPUX_INT, cfg); lmacid 904 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, lmacid 907 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, lmacid 916 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(bgx, lmacid, BGX_SMUX_CTL, SMU_CTL_RX_IDLE, false)) { lmacid 922 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(bgx, lmacid, BGX_SMUX_CTL, SMU_CTL_TX_IDLE, false)) { lmacid 928 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SMUX_RX_CTL); lmacid 947 drivers/net/ethernet/cavium/thunder/thunder_bgx.c pcs_link = bgx_reg_read(lmac->bgx, lmac->lmacid, lmacid 952 drivers/net/ethernet/cavium/thunder/thunder_bgx.c pcs_link = bgx_reg_read(lmac->bgx, lmac->lmacid, lmacid 955 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (bgx_poll_reg(lmac->bgx, lmac->lmacid, BGX_GMP_PCS_MRX_STATUS, lmacid 964 drivers/net/ethernet/cavium/thunder/thunder_bgx.c an_result = bgx_reg_read(lmac->bgx, lmac->lmacid, lmacid 1009 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(lmac->bgx, lmac->lmacid, lmacid 1011 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_poll_reg(lmac->bgx, lmac->lmacid, BGX_SPUX_STATUS1, lmacid 1014 drivers/net/ethernet/cavium/thunder/thunder_bgx.c spu_link = bgx_reg_read(lmac->bgx, lmac->lmacid, BGX_SPUX_STATUS1); lmacid 1015 drivers/net/ethernet/cavium/thunder/thunder_bgx.c smu_link = bgx_reg_read(lmac->bgx, lmac->lmacid, BGX_SMUX_RX_CTL); lmacid 1056 drivers/net/ethernet/cavium/thunder/thunder_bgx.c static int bgx_lmac_enable(struct bgx *bgx, u8 lmacid) lmacid 1061 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 1077 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_GMP_GMI_TXX_APPEND); lmacid 1079 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_GMP_GMI_TXX_APPEND, cfg); lmacid 1080 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_GMP_GMI_TXX_MIN_PKT, 60 - 1); lmacid 1082 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_SMUX_TX_APPEND); lmacid 1084 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_SMUX_TX_APPEND, cfg); lmacid 1085 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_SMUX_TX_MIN_PKT, 60 + 4); lmacid 1096 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, BGX_CMRX_CFG, CMR_EN); lmacid 1099 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_CMRX_RX_DMAC_CTL, 0x03); lmacid 1107 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, lmacid 1142 drivers/net/ethernet/cavium/thunder/thunder_bgx.c static void bgx_lmac_disable(struct bgx *bgx, u8 lmacid) lmacid 1147 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 1155 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_CMRX_CFG); lmacid 1157 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_CMRX_CFG, cfg); lmacid 1160 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_poll_reg(bgx, lmacid, BGX_CMRX_RX_FIFO_LEN, (u64)0x1FFF, true); lmacid 1161 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_poll_reg(bgx, lmacid, BGX_CMRX_TX_FIFO_LEN, (u64)0x3FFF, true); lmacid 1164 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_CMRX_CFG); lmacid 1166 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_CMRX_CFG, cfg); lmacid 1170 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, lmacid 1173 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_modify(bgx, lmacid, lmacid 1177 drivers/net/ethernet/cavium/thunder/thunder_bgx.c cfg = bgx_reg_read(bgx, lmacid, BGX_CMRX_CFG); lmacid 1179 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_reg_write(bgx, lmacid, BGX_CMRX_CFG, cfg); lmacid 1181 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx_flush_dmac_cam_filter(bgx, lmacid); lmacid 1231 drivers/net/ethernet/cavium/thunder/thunder_bgx.c return (u8)(bgx_reg_read(bgx, lmac->lmacid, BGX_CMRX_CFG) & 0xFF); lmacid 1234 drivers/net/ethernet/cavium/thunder/thunder_bgx.c static void bgx_print_qlm_mode(struct bgx *bgx, u8 lmacid) lmacid 1240 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (!bgx->is_dlm && lmacid) lmacid 1243 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac = &bgx->lmac[lmacid]; lmacid 1247 drivers/net/ethernet/cavium/thunder/thunder_bgx.c sprintf(str, "BGX%d LMAC%d mode", bgx->bgx_id, lmacid); lmacid 1288 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac->lane_to_sds = lmac->lmacid; lmacid 1296 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac->lane_to_sds = (lmac->lmacid) ? 0xE : 0x4; lmacid 1312 drivers/net/ethernet/cavium/thunder/thunder_bgx.c static void lmac_set_training(struct bgx *bgx, struct lmac *lmac, int lmacid) lmacid 1320 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac->use_training = bgx_reg_read(bgx, lmacid, BGX_SPUX_BR_PMD_CRTL) & lmacid 1360 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac_set_training(bgx, lmac, lmac->lmacid); lmacid 1371 drivers/net/ethernet/cavium/thunder/thunder_bgx.c lmac->lmacid = idx; lmacid 1422 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx->lmac[bgx->acpi_lmac_idx].lmacid = bgx->acpi_lmac_idx; lmacid 1491 drivers/net/ethernet/cavium/thunder/thunder_bgx.c bgx->lmac[lmac].lmacid = lmac; lmacid 219 drivers/net/ethernet/cavium/thunder/thunder_bgx.h void bgx_set_dmac_cam_filter(int node, int bgx_idx, int lmacid, u64 mac, u8 vf); lmacid 220 drivers/net/ethernet/cavium/thunder/thunder_bgx.h void bgx_reset_xcast_mode(int node, int bgx_idx, int lmacid, u8 vf); lmacid 221 drivers/net/ethernet/cavium/thunder/thunder_bgx.h void bgx_set_xcast_mode(int node, int bgx_idx, int lmacid, u8 mode); lmacid 223 drivers/net/ethernet/cavium/thunder/thunder_bgx.h void bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable); lmacid 227 drivers/net/ethernet/cavium/thunder/thunder_bgx.h const u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid); lmacid 228 drivers/net/ethernet/cavium/thunder/thunder_bgx.h void bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac); lmacid 229 drivers/net/ethernet/cavium/thunder/thunder_bgx.h void bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status); lmacid 232 drivers/net/ethernet/cavium/thunder/thunder_bgx.h void bgx_config_timestamping(int node, int bgx_idx, int lmacid, bool enable); lmacid 233 drivers/net/ethernet/cavium/thunder/thunder_bgx.h void bgx_lmac_get_pfc(int node, int bgx_idx, int lmacid, void *pause); lmacid 234 drivers/net/ethernet/cavium/thunder/thunder_bgx.h void bgx_lmac_set_pfc(int node, int bgx_idx, int lmacid, void *pause);