Lines Matching refs:chip_port
35 lan966x, AFI_PORT_CFG(port->chip_port)); in lan966x_port_link_down()
39 val = lan_rd(lan966x, AFI_PORT_FRM_OUT(port->chip_port)); in lan966x_port_link_down()
46 pr_err("AFI timeout chip port %u", port->chip_port); in lan966x_port_link_down()
56 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_link_down()
61 lan966x, DEV_MAC_ENA_CFG(port->chip_port)); in lan966x_port_link_down()
66 lan966x, QSYS_SW_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
71 lan966x, QSYS_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
76 lan966x, SYS_PAUSE_CFG(port->chip_port)); in lan966x_port_link_down()
81 lan966x, QSYS_SW_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
89 lan966x, SYS_FRONT_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
94 lan966x, QSYS_SW_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
99 lan966x, QSYS_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
103 val = lan_rd(lan966x, QSYS_SW_STATUS(port->chip_port)); in lan966x_port_link_down()
110 pr_err("Flush timeout chip port %u", port->chip_port); in lan966x_port_link_down()
118 lan966x, DEV_MAC_ENA_CFG(port->chip_port)); in lan966x_port_link_down()
122 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_link_down()
132 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_link_down()
137 lan966x, QSYS_SW_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
178 lan966x, DEV_MAC_MODE_CFG(port->chip_port)); in lan966x_port_link_up()
186 lan966x, DEV_MAC_IFG_CFG(port->chip_port)); in lan966x_port_link_up()
192 lan966x, DEV_MAC_HDX_CFG(port->chip_port)); in lan966x_port_link_up()
199 CHIP_TOP_CUPHY_PORT_CFG(port->chip_port)); in lan966x_port_link_up()
204 CHIP_TOP_CUPHY_PORT_CFG(port->chip_port)); in lan966x_port_link_up()
209 lan966x, ANA_PFC_CFG(port->chip_port)); in lan966x_port_link_up()
213 lan966x, DEV_PCS1G_CFG(port->chip_port)); in lan966x_port_link_up()
217 lan966x, DEV_PCS1G_SD_CFG(port->chip_port)); in lan966x_port_link_up()
223 lan966x, SYS_PAUSE_CFG(port->chip_port)); in lan966x_port_link_up()
226 lan_wr(0, lan966x, DEV_FC_MAC_LOW_CFG(port->chip_port)); in lan966x_port_link_up()
227 lan_wr(0, lan966x, DEV_FC_MAC_HIGH_CFG(port->chip_port)); in lan966x_port_link_up()
242 lan966x, SYS_MAC_FC_CFG(port->chip_port)); in lan966x_port_link_up()
251 SYS_ATOP(port->chip_port)); in lan966x_port_link_up()
258 lan966x, DEV_MAC_ENA_CFG(port->chip_port)); in lan966x_port_link_up()
262 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_link_up()
268 lan966x, QSYS_SW_PORT_MODE(port->chip_port)); in lan966x_port_link_up()
274 lan966x, AFI_PORT_CFG(port->chip_port)); in lan966x_port_link_up()
296 val = lan_rd(lan966x, DEV_PCS1G_STICKY(port->chip_port)); in lan966x_port_status_get()
299 lan_wr(val, lan966x, DEV_PCS1G_STICKY(port->chip_port)); in lan966x_port_status_get()
302 val = lan_rd(lan966x, DEV_PCS1G_LINK_STATUS(port->chip_port)); in lan966x_port_status_get()
308 val = lan_rd(lan966x, DEV_PCS1G_ANEG_STATUS(port->chip_port)); in lan966x_port_status_get()
364 lan966x, DEV_PCS1G_MODE_CFG(port->chip_port)); in lan966x_port_pcs_set()
368 lan966x, DEV_PCS1G_CFG(port->chip_port)); in lan966x_port_pcs_set()
379 lan966x, DEV_PCS1G_ANEG_CFG(port->chip_port)); in lan966x_port_pcs_set()
381 lan_wr(0, lan966x, DEV_PCS1G_ANEG_CFG(port->chip_port)); in lan966x_port_pcs_set()
391 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_pcs_set()
406 port->lan966x, ANA_QOS_CFG(port->chip_port)); in lan966x_port_qos_pcp_set()
418 ANA_PCP_DEI_CFG(port->chip_port, i)); in lan966x_port_qos_pcp_set()
430 lan966x, ANA_QOS_CFG(port->chip_port)); in lan966x_port_qos_dscp_set()
455 port->lan966x, ANA_QOS_CFG(port->chip_port)); in lan966x_port_qos_default_set()
462 port->lan966x, ANA_VLAN_CFG(port->chip_port)); in lan966x_port_qos_default_set()
483 port->lan966x, REW_TAG_CFG(port->chip_port)); in lan966x_port_qos_pcp_rewr_set()
498 REW_PCP_DEI_CFG(port->chip_port, in lan966x_port_qos_pcp_rewr_set()
517 port->lan966x, REW_DSCP_CFG(port->chip_port)); in lan966x_port_qos_dscp_rewr_set()
534 port->lan966x, ANA_QOS_CFG(port->chip_port)); in lan966x_port_qos_dscp_rewr_mode_set()
554 lan966x, ANA_PORT_CFG(port->chip_port)); in lan966x_port_init()
570 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_init()