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
177 lan966x, DEV_MAC_MODE_CFG(port->chip_port)); in lan966x_port_link_up()
185 lan966x, DEV_MAC_IFG_CFG(port->chip_port)); in lan966x_port_link_up()
191 lan966x, DEV_MAC_HDX_CFG(port->chip_port)); in lan966x_port_link_up()
197 lan966x, in lan966x_port_link_up()
202 lan966x, in lan966x_port_link_up()
208 lan966x, ANA_PFC_CFG(port->chip_port)); in lan966x_port_link_up()
212 lan966x, DEV_PCS1G_CFG(port->chip_port)); in lan966x_port_link_up()
216 lan966x, DEV_PCS1G_SD_CFG(port->chip_port)); in lan966x_port_link_up()
222 lan966x, SYS_PAUSE_CFG(port->chip_port)); in lan966x_port_link_up()
225 lan_wr(0, lan966x, DEV_FC_MAC_LOW_CFG(port->chip_port)); in lan966x_port_link_up()
226 lan_wr(0, lan966x, DEV_FC_MAC_HIGH_CFG(port->chip_port)); in lan966x_port_link_up()
241 lan966x, SYS_MAC_FC_CFG(port->chip_port)); in lan966x_port_link_up()
244 atop_wm = lan966x->shared_queue_sz; in lan966x_port_link_up()
249 lan_wr(lan966x_wm_enc(atop_wm / lan966x->num_phys_ports + 1), lan966x, in lan966x_port_link_up()
251 lan_wr(lan966x_wm_enc(atop_wm), lan966x, SYS_ATOP_TOT_CFG); in lan966x_port_link_up()
257 lan966x, DEV_MAC_ENA_CFG(port->chip_port)); in lan966x_port_link_up()
261 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_link_up()
267 lan966x, QSYS_SW_PORT_MODE(port->chip_port)); in lan966x_port_link_up()
273 lan966x, AFI_PORT_CFG(port->chip_port)); in lan966x_port_link_up()
289 struct lan966x *lan966x = port->lan966x; in lan966x_port_status_get() local
295 val = lan_rd(lan966x, DEV_PCS1G_STICKY(port->chip_port)); in lan966x_port_status_get()
298 lan_wr(val, lan966x, DEV_PCS1G_STICKY(port->chip_port)); in lan966x_port_status_get()
301 val = lan_rd(lan966x, DEV_PCS1G_LINK_STATUS(port->chip_port)); in lan966x_port_status_get()
307 val = lan_rd(lan966x, DEV_PCS1G_ANEG_STATUS(port->chip_port)); in lan966x_port_status_get()
333 struct lan966x *lan966x = port->lan966x; in lan966x_port_pcs_set() local
363 lan966x, DEV_PCS1G_MODE_CFG(port->chip_port)); in lan966x_port_pcs_set()
367 lan966x, DEV_PCS1G_CFG(port->chip_port)); in lan966x_port_pcs_set()
378 lan966x, DEV_PCS1G_ANEG_CFG(port->chip_port)); in lan966x_port_pcs_set()
380 lan_wr(0, lan966x, DEV_PCS1G_ANEG_CFG(port->chip_port)); in lan966x_port_pcs_set()
390 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_pcs_set()
400 struct lan966x *lan966x = port->lan966x; in lan966x_port_init() local
404 lan966x, ANA_PORT_CFG(port->chip_port)); in lan966x_port_init()
408 if (lan966x->fdma) in lan966x_port_init()
409 lan966x_fdma_netdev_init(lan966x, port->dev); in lan966x_port_init()
420 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_init()