Lines Matching refs:dev_id

351 static int fec_get_hwaddr(int dev_id, unsigned char *mac)  in fec_get_hwaddr()  argument
353 imx_get_mac_from_fuse(dev_id, mac); in fec_get_hwaddr()
934 static void fec_set_dev_name(char *dest, int dev_id) in fec_set_dev_name() argument
936 sprintf(dest, (dev_id == -1) ? "FEC" : "FEC%i", dev_id); in fec_set_dev_name()
1014 struct mii_dev *fec_get_miibus(ulong base_addr, int dev_id) in fec_get_miibus() argument
1028 fec_set_dev_name(bus->name, dev_id); in fec_get_miibus()
1042 int fec_probe(bd_t *bd, int dev_id, uint32_t base_addr, in fec_probe() argument
1045 static int fec_probe(bd_t *bd, int dev_id, uint32_t base_addr, in fec_probe()
1102 fec_set_dev_name(edev->name, dev_id); in fec_probe()
1103 fec->dev_id = (dev_id == -1) ? 0 : dev_id; in fec_probe()
1116 edev->index = fec->dev_id; in fec_probe()
1118 if (fec_get_hwaddr(fec->dev_id, ethaddr) == 0) { in fec_probe()
1119 debug("got MAC%d address from fuse: %pM\n", fec->dev_id, ethaddr); in fec_probe()
1121 if (fec->dev_id) in fec_probe()
1122 sprintf(mac, "eth%daddr", fec->dev_id); in fec_probe()
1139 int fecmxc_initialize_multi(bd_t *bd, int dev_id, int phy_id, uint32_t addr) in fecmxc_initialize_multi() argument
1157 debug("eth_init: fec_probe(bd, %i, %i) @ %08x\n", dev_id, phy_id, addr); in fecmxc_initialize_multi()
1158 bus = fec_get_miibus(base_mii, dev_id); in fecmxc_initialize_multi()
1168 ret = fec_probe(bd, dev_id, addr, bus, phydev); in fecmxc_initialize_multi()
1170 ret = fec_probe(bd, dev_id, addr, bus, phy_id); in fecmxc_initialize_multi()
1206 return fec_get_hwaddr(priv->dev_id, pdata->enetaddr); in fecmxc_read_rom_hwaddr()
1274 priv->dev_id = dev->seq; in fecmxc_probe()