Lines Matching refs:eth

481 static void __init octeon_fdt_set_phy(int eth, int phy_addr)  in octeon_fdt_set_phy()  argument
493 phy_handle = fdt_getprop(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
500 alt_phy_handle = fdt_getprop(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
511 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
513 fdt_nop_property(initial_boot_params, eth, "cavium,alt-phy-handle"); in octeon_fdt_set_phy()
527 phy_prop = fdt_get_property(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
530 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
531 alt_prop = fdt_get_property_w(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
609 static void __init _octeon_rx_tx_delay(int eth, int rx_delay, int tx_delay) in _octeon_rx_tx_delay() argument
611 fdt_setprop_inplace_cell(initial_boot_params, eth, "rx-delay", in _octeon_rx_tx_delay()
613 fdt_setprop_inplace_cell(initial_boot_params, eth, "tx-delay", in _octeon_rx_tx_delay()
617 static void __init octeon_rx_tx_delay(int eth, int iface, int port) in octeon_rx_tx_delay() argument
628 _octeon_rx_tx_delay(eth, 0xc, 0x0c); in octeon_rx_tx_delay()
632 _octeon_rx_tx_delay(eth, 0x0, 0x0); in octeon_rx_tx_delay()
639 _octeon_rx_tx_delay(eth, 0x0, 0x10); in octeon_rx_tx_delay()
644 fdt_nop_property(initial_boot_params, eth, "rx-delay"); in octeon_rx_tx_delay()
645 fdt_nop_property(initial_boot_params, eth, "tx-delay"); in octeon_rx_tx_delay()
651 int eth; in octeon_fdt_pip_port() local
657 eth = fdt_subnode_offset(initial_boot_params, iface, name_buffer); in octeon_fdt_pip_port()
658 if (eth < 0) in octeon_fdt_pip_port()
662 octeon_fdt_rm_ethernet(eth); in octeon_fdt_pip_port()
671 octeon_fdt_set_phy(eth, phy_addr); in octeon_fdt_pip_port()
673 fixed_link = fdt_subnode_offset(initial_boot_params, eth, "fixed-link"); in octeon_fdt_pip_port()
678 octeon_rx_tx_delay(eth, i, p); in octeon_fdt_pip_port()
753 int eth; in octeon_fill_mac_addresses() local
757 eth = fdt_subnode_offset(initial_boot_params, iface, in octeon_fill_mac_addresses()
759 if (eth < 0) in octeon_fill_mac_addresses()
761 octeon_fdt_set_mac_addr(eth, &mac_addr_base); in octeon_fill_mac_addresses()