Lines Matching defs:eth

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