Lines Matching full:eth
480 static void __init octeon_fdt_set_phy(int eth, int phy_addr) in octeon_fdt_set_phy() argument
492 phy_handle = fdt_getprop(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
499 alt_phy_handle = fdt_getprop(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
510 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
512 fdt_nop_property(initial_boot_params, eth, "cavium,alt-phy-handle"); in octeon_fdt_set_phy()
526 phy_prop = fdt_get_property(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
529 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
530 alt_prop = fdt_get_property_w(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
608 static void __init _octeon_rx_tx_delay(int eth, int rx_delay, int tx_delay) in _octeon_rx_tx_delay() argument
610 fdt_setprop_inplace_cell(initial_boot_params, eth, "rx-delay", in _octeon_rx_tx_delay()
612 fdt_setprop_inplace_cell(initial_boot_params, eth, "tx-delay", in _octeon_rx_tx_delay()
616 static void __init octeon_rx_tx_delay(int eth, int iface, int port) in octeon_rx_tx_delay() argument
627 _octeon_rx_tx_delay(eth, 0xc, 0x0c); in octeon_rx_tx_delay()
631 _octeon_rx_tx_delay(eth, 0x0, 0x0); in octeon_rx_tx_delay()
638 _octeon_rx_tx_delay(eth, 0x0, 0x10); in octeon_rx_tx_delay()
643 fdt_nop_property(initial_boot_params, eth, "rx-delay"); in octeon_rx_tx_delay()
644 fdt_nop_property(initial_boot_params, eth, "tx-delay"); in octeon_rx_tx_delay()
650 int eth; in octeon_fdt_pip_port() local
656 eth = fdt_subnode_offset(initial_boot_params, iface, name_buffer); in octeon_fdt_pip_port()
657 if (eth < 0) in octeon_fdt_pip_port()
661 octeon_fdt_rm_ethernet(eth); in octeon_fdt_pip_port()
670 octeon_fdt_set_phy(eth, phy_addr); in octeon_fdt_pip_port()
672 fixed_link = fdt_subnode_offset(initial_boot_params, eth, "fixed-link"); in octeon_fdt_pip_port()
677 octeon_rx_tx_delay(eth, i, p); in octeon_fdt_pip_port()
752 int eth; in octeon_fill_mac_addresses() local
756 eth = fdt_subnode_offset(initial_boot_params, iface, in octeon_fill_mac_addresses()
758 if (eth < 0) in octeon_fill_mac_addresses()
760 octeon_fdt_set_mac_addr(eth, &mac_addr_base); in octeon_fill_mac_addresses()