Lines Matching refs:eth

478 static void __init octeon_fdt_set_phy(int eth, int phy_addr)  in octeon_fdt_set_phy()  argument
490 phy_handle = fdt_getprop(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
497 alt_phy_handle = fdt_getprop(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
508 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
510 fdt_nop_property(initial_boot_params, eth, "cavium,alt-phy-handle"); in octeon_fdt_set_phy()
524 phy_prop = fdt_get_property(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
527 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
528 alt_prop = fdt_get_property_w(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
606 static void __init _octeon_rx_tx_delay(int eth, int rx_delay, int tx_delay) in _octeon_rx_tx_delay() argument
608 fdt_setprop_inplace_cell(initial_boot_params, eth, "rx-delay", in _octeon_rx_tx_delay()
610 fdt_setprop_inplace_cell(initial_boot_params, eth, "tx-delay", in _octeon_rx_tx_delay()
614 static void __init octeon_rx_tx_delay(int eth, int iface, int port) in octeon_rx_tx_delay() argument
625 _octeon_rx_tx_delay(eth, 0xc, 0x0c); in octeon_rx_tx_delay()
629 _octeon_rx_tx_delay(eth, 0x0, 0x0); in octeon_rx_tx_delay()
636 _octeon_rx_tx_delay(eth, 0x0, 0x10); in octeon_rx_tx_delay()
641 fdt_nop_property(initial_boot_params, eth, "rx-delay"); in octeon_rx_tx_delay()
642 fdt_nop_property(initial_boot_params, eth, "tx-delay"); in octeon_rx_tx_delay()
648 int eth; in octeon_fdt_pip_port() local
654 eth = fdt_subnode_offset(initial_boot_params, iface, name_buffer); in octeon_fdt_pip_port()
655 if (eth < 0) in octeon_fdt_pip_port()
659 octeon_fdt_rm_ethernet(eth); in octeon_fdt_pip_port()
668 octeon_fdt_set_phy(eth, phy_addr); in octeon_fdt_pip_port()
670 fixed_link = fdt_subnode_offset(initial_boot_params, eth, "fixed-link"); in octeon_fdt_pip_port()
675 octeon_rx_tx_delay(eth, i, p); in octeon_fdt_pip_port()
750 int eth; in octeon_fill_mac_addresses() local
754 eth = fdt_subnode_offset(initial_boot_params, iface, in octeon_fill_mac_addresses()
756 if (eth < 0) in octeon_fill_mac_addresses()
758 octeon_fdt_set_mac_addr(eth, &mac_addr_base); in octeon_fill_mac_addresses()