Lines Matching refs:phy_addr
481 static void __init octeon_fdt_set_phy(int eth, int phy_addr) in octeon_fdt_set_phy() argument
509 if (phy_addr < 0 || phy < 0) { in octeon_fdt_set_phy()
521 if (phy_addr >= 256 && alt_phy > 0) { in octeon_fdt_set_phy()
536 phy_addr &= 0xff; in octeon_fdt_set_phy()
550 if (phy_addr == be32_to_cpup(reg)) in octeon_fdt_set_phy()
553 fdt_setprop_inplace_cell(initial_boot_params, phy, "reg", phy_addr); in octeon_fdt_set_phy()
555 snprintf(new_name, sizeof(new_name), "ethernet-phy@%x", phy_addr); in octeon_fdt_set_phy()
652 int phy_addr; in octeon_fdt_pip_port() local
670 phy_addr = cvmx_helper_board_get_mii_address(ipd_port); in octeon_fdt_pip_port()
671 octeon_fdt_set_phy(eth, phy_addr); in octeon_fdt_pip_port()
814 int phy_addr = cvmx_helper_board_get_mii_address(CVMX_HELPER_BOARD_MGMT_IPD_PORT + i); in octeon_prune_device_tree() local
816 octeon_fdt_set_phy(mgmt, phy_addr); in octeon_prune_device_tree()