Lines Matching refs:phy_addr
482 static void __init octeon_fdt_set_phy(int eth, int phy_addr) in octeon_fdt_set_phy() argument
510 if (phy_addr < 0 || phy < 0) { in octeon_fdt_set_phy()
522 if (phy_addr >= 256 && alt_phy > 0) { in octeon_fdt_set_phy()
537 phy_addr &= 0xff; in octeon_fdt_set_phy()
551 if (phy_addr == be32_to_cpup(reg)) in octeon_fdt_set_phy()
554 fdt_setprop_inplace_cell(initial_boot_params, phy, "reg", phy_addr); in octeon_fdt_set_phy()
556 snprintf(new_name, sizeof(new_name), "ethernet-phy@%x", phy_addr); in octeon_fdt_set_phy()
653 int phy_addr; in octeon_fdt_pip_port() local
671 phy_addr = cvmx_helper_board_get_mii_address(ipd_port); in octeon_fdt_pip_port()
672 octeon_fdt_set_phy(eth, phy_addr); in octeon_fdt_pip_port()
815 int phy_addr = cvmx_helper_board_get_mii_address(CVMX_HELPER_BOARD_MGMT_IPD_PORT + i); in octeon_prune_device_tree() local
817 octeon_fdt_set_phy(mgmt, phy_addr); in octeon_prune_device_tree()