Lines Matching defs:eth

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