Lines Matching refs:hw_params
153 for (i = 0; i < priv->hw_params.num_ports; i++) { in bcm_sf2_imp_vlan_setup()
330 if (priv->int_phy_mask & 1 << port && priv->hw_params.num_gphy == 1) { in bcm_sf2_port_setup()
382 if (priv->int_phy_mask & 1 << port && priv->hw_params.num_gphy == 1) in bcm_sf2_port_disable()
494 for (i = 0; i < priv->hw_params.num_ports; i++) { in bcm_sf2_sw_br_join()
527 for (i = 0; i < priv->hw_params.num_ports; i++) { in bcm_sf2_sw_br_leave()
994 priv->hw_params.num_ports = core_readl(priv, CORE_IMP0_PRT_ID) + 1; in bcm_sf2_sw_setup()
995 if (priv->hw_params.num_ports > DSA_MAX_PORTS) in bcm_sf2_sw_setup()
996 priv->hw_params.num_ports = DSA_MAX_PORTS; in bcm_sf2_sw_setup()
1000 &priv->hw_params.num_gphy)) in bcm_sf2_sw_setup()
1001 priv->hw_params.num_gphy = 1; in bcm_sf2_sw_setup()
1004 for (port = 0; port < priv->hw_params.num_ports; port++) { in bcm_sf2_sw_setup()
1031 priv->hw_params.top_rev = (rev >> SWITCH_TOP_REV_SHIFT) & in bcm_sf2_sw_setup()
1033 priv->hw_params.core_rev = (rev & SF2_REV_MASK); in bcm_sf2_sw_setup()
1036 priv->hw_params.gphy_rev = rev & PHY_REVISION_MASK; in bcm_sf2_sw_setup()
1039 priv->hw_params.top_rev >> 8, priv->hw_params.top_rev & 0xff, in bcm_sf2_sw_setup()
1040 priv->hw_params.core_rev >> 8, priv->hw_params.core_rev & 0xff, in bcm_sf2_sw_setup()
1071 return priv->hw_params.gphy_rev; in bcm_sf2_sw_get_phy_flags()
1307 if (priv->hw_params.num_gphy == 1) in bcm_sf2_sw_resume()