Lines Matching refs:agl
121 u64 agl; member
328 drop = cvmx_read_csr(p->agl + AGL_GMX_RX_STATS_PKTS_DRP); in octeon_mgmt_update_rx_stats()
329 bad = cvmx_read_csr(p->agl + AGL_GMX_RX_STATS_PKTS_BAD); in octeon_mgmt_update_rx_stats()
349 s0.u64 = cvmx_read_csr(p->agl + AGL_GMX_TX_STAT0); in octeon_mgmt_update_tx_stats()
350 s1.u64 = cvmx_read_csr(p->agl + AGL_GMX_TX_STAT1); in octeon_mgmt_update_tx_stats()
604 agl_gmx_prtx.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_set_rx_filtering()
607 cvmx_write_csr(p->agl + AGL_GMX_PRT_CFG, agl_gmx_prtx.u64); in octeon_mgmt_set_rx_filtering()
614 cvmx_write_csr(p->agl + AGL_GMX_RX_ADR_CTL, adr_ctl.u64); in octeon_mgmt_set_rx_filtering()
616 cvmx_write_csr(p->agl + AGL_GMX_RX_ADR_CAM0, cam_state.cam[0]); in octeon_mgmt_set_rx_filtering()
617 cvmx_write_csr(p->agl + AGL_GMX_RX_ADR_CAM1, cam_state.cam[1]); in octeon_mgmt_set_rx_filtering()
618 cvmx_write_csr(p->agl + AGL_GMX_RX_ADR_CAM2, cam_state.cam[2]); in octeon_mgmt_set_rx_filtering()
619 cvmx_write_csr(p->agl + AGL_GMX_RX_ADR_CAM3, cam_state.cam[3]); in octeon_mgmt_set_rx_filtering()
620 cvmx_write_csr(p->agl + AGL_GMX_RX_ADR_CAM4, cam_state.cam[4]); in octeon_mgmt_set_rx_filtering()
621 cvmx_write_csr(p->agl + AGL_GMX_RX_ADR_CAM5, cam_state.cam[5]); in octeon_mgmt_set_rx_filtering()
622 cvmx_write_csr(p->agl + AGL_GMX_RX_ADR_CAM_EN, cam_state.cam_mask); in octeon_mgmt_set_rx_filtering()
626 cvmx_write_csr(p->agl + AGL_GMX_PRT_CFG, agl_gmx_prtx.u64); in octeon_mgmt_set_rx_filtering()
653 cvmx_write_csr(p->agl + AGL_GMX_RX_FRM_MAX, max_packet); in octeon_mgmt_change_mtu()
659 cvmx_write_csr(p->agl + AGL_GMX_RX_JABBER, in octeon_mgmt_change_mtu()
749 rxx_frm_ctl.u64 = cvmx_read_csr(p->agl + AGL_GMX_RX_FRM_CTL); in octeon_mgmt_ioctl_hwtstamp()
751 cvmx_write_csr(p->agl + AGL_GMX_RX_FRM_CTL, rxx_frm_ctl.u64); in octeon_mgmt_ioctl_hwtstamp()
771 rxx_frm_ctl.u64 = cvmx_read_csr(p->agl + AGL_GMX_RX_FRM_CTL); in octeon_mgmt_ioctl_hwtstamp()
773 cvmx_write_csr(p->agl + AGL_GMX_RX_FRM_CTL, rxx_frm_ctl.u64); in octeon_mgmt_ioctl_hwtstamp()
804 prtx_cfg.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_disable_link()
808 cvmx_write_csr(p->agl + AGL_GMX_PRT_CFG, prtx_cfg.u64); in octeon_mgmt_disable_link()
813 prtx_cfg.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_disable_link()
827 prtx_cfg.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_enable_link()
831 cvmx_write_csr(p->agl + AGL_GMX_PRT_CFG, prtx_cfg.u64); in octeon_mgmt_enable_link()
840 prtx_cfg.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_update_link()
882 cvmx_write_csr(p->agl + AGL_GMX_PRT_CFG, prtx_cfg.u64); in octeon_mgmt_update_link()
885 prtx_cfg.u64 = cvmx_read_csr(p->agl + AGL_GMX_PRT_CFG); in octeon_mgmt_update_link()
892 agl_clk.u64 = cvmx_read_csr(p->agl + AGL_GMX_TX_CLK); in octeon_mgmt_update_link()
901 cvmx_write_csr(p->agl + AGL_GMX_TX_CLK, agl_clk.u64); in octeon_mgmt_update_link()
1145 cvmx_write_csr(p->agl + AGL_GMX_RX_STATS_CTL, 1); in octeon_mgmt_open()
1146 cvmx_write_csr(p->agl + AGL_GMX_RX_STATS_PKTS_DRP, 0); in octeon_mgmt_open()
1147 cvmx_write_csr(p->agl + AGL_GMX_RX_STATS_PKTS_BAD, 0); in octeon_mgmt_open()
1149 cvmx_write_csr(p->agl + AGL_GMX_TX_STATS_CTL, 1); in octeon_mgmt_open()
1150 cvmx_write_csr(p->agl + AGL_GMX_TX_STAT0, 0); in octeon_mgmt_open()
1151 cvmx_write_csr(p->agl + AGL_GMX_TX_STAT1, 0); in octeon_mgmt_open()
1205 cvmx_write_csr(p->agl + AGL_GMX_RX_FRM_CTL, rxx_frm_ctl.u64); in octeon_mgmt_open()
1480 p->agl = (u64)devm_ioremap(&pdev->dev, p->agl_phys, p->agl_size); in octeon_mgmt_probe()
1483 if (!p->mix || !p->agl || !p->agl_prt_ctl) { in octeon_mgmt_probe()