Lines Matching refs:eth

482 static void __init octeon_fdt_set_phy(int eth, int phy_addr)  in octeon_fdt_set_phy()  argument
494 phy_handle = fdt_getprop(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
501 alt_phy_handle = fdt_getprop(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
512 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
514 fdt_nop_property(initial_boot_params, eth, "cavium,alt-phy-handle"); in octeon_fdt_set_phy()
528 phy_prop = fdt_get_property(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
531 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
532 alt_prop = fdt_get_property_w(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
610 static void __init _octeon_rx_tx_delay(int eth, int rx_delay, int tx_delay) in _octeon_rx_tx_delay() argument
612 fdt_setprop_inplace_cell(initial_boot_params, eth, "rx-delay", in _octeon_rx_tx_delay()
614 fdt_setprop_inplace_cell(initial_boot_params, eth, "tx-delay", in _octeon_rx_tx_delay()
618 static void __init octeon_rx_tx_delay(int eth, int iface, int port) in octeon_rx_tx_delay() argument
629 _octeon_rx_tx_delay(eth, 0xc, 0x0c); in octeon_rx_tx_delay()
633 _octeon_rx_tx_delay(eth, 0x0, 0x0); in octeon_rx_tx_delay()
640 _octeon_rx_tx_delay(eth, 0x0, 0x10); in octeon_rx_tx_delay()
645 fdt_nop_property(initial_boot_params, eth, "rx-delay"); in octeon_rx_tx_delay()
646 fdt_nop_property(initial_boot_params, eth, "tx-delay"); in octeon_rx_tx_delay()
652 int eth; in octeon_fdt_pip_port() local
658 eth = fdt_subnode_offset(initial_boot_params, iface, name_buffer); in octeon_fdt_pip_port()
659 if (eth < 0) in octeon_fdt_pip_port()
663 octeon_fdt_rm_ethernet(eth); in octeon_fdt_pip_port()
672 octeon_fdt_set_phy(eth, phy_addr); in octeon_fdt_pip_port()
674 fixed_link = fdt_subnode_offset(initial_boot_params, eth, "fixed-link"); in octeon_fdt_pip_port()
679 octeon_rx_tx_delay(eth, i, p); in octeon_fdt_pip_port()
754 int eth; in octeon_fill_mac_addresses() local
758 eth = fdt_subnode_offset(initial_boot_params, iface, in octeon_fill_mac_addresses()
760 if (eth < 0) in octeon_fill_mac_addresses()
762 octeon_fdt_set_mac_addr(eth, &mac_addr_base); in octeon_fill_mac_addresses()