Lines Matching refs:lan966x

27 	struct lan966x *lan966x = port->lan966x;  in lan966x_port_link_down()  local
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()
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()
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()
147 struct lan966x *lan966x = port->lan966x; in lan966x_port_link_up() local
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()
198 lan966x, in lan966x_port_link_up()
203 lan966x, 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()
245 atop_wm = lan966x->shared_queue_sz; in lan966x_port_link_up()
250 lan_wr(lan966x_wm_enc(atop_wm / lan966x->num_phys_ports + 1), lan966x, in lan966x_port_link_up()
252 lan_wr(lan966x_wm_enc(atop_wm), lan966x, SYS_ATOP_TOT_CFG); 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()
290 struct lan966x *lan966x = port->lan966x; in lan966x_port_status_get() local
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()
334 struct lan966x *lan966x = port->lan966x; in lan966x_port_pcs_set() local
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()
417 port->lan966x, in lan966x_port_qos_pcp_set()
425 struct lan966x *lan966x = port->lan966x; in lan966x_port_qos_dscp_set() local
430 lan966x, ANA_QOS_CFG(port->chip_port)); in lan966x_port_qos_dscp_set()
438 lan966x, ANA_DSCP_CFG(i)); in lan966x_port_qos_dscp_set()
444 lan966x, ANA_DSCP_CFG(i)); 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()
497 port->lan966x, in lan966x_port_qos_pcp_rewr_set()
517 port->lan966x, REW_DSCP_CFG(port->chip_port)); in lan966x_port_qos_dscp_rewr_set()
525 port->lan966x, ANA_DSCP_REWR_CFG(i)); in lan966x_port_qos_dscp_rewr_set()
534 port->lan966x, ANA_QOS_CFG(port->chip_port)); in lan966x_port_qos_dscp_rewr_mode_set()
550 struct lan966x *lan966x = port->lan966x; in lan966x_port_init() local
554 lan966x, ANA_PORT_CFG(port->chip_port)); in lan966x_port_init()
558 if (lan966x->fdma) in lan966x_port_init()
559 lan966x_fdma_netdev_init(lan966x, port->dev); in lan966x_port_init()
570 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_init()