Lines Matching defs:dev
14 static int davinci_emac_3517_get_macid(struct device *dev, u16 offset,
21 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon");
41 static int cpsw_am33xx_cm_get_macid(struct device *dev, u16 offset, int slave,
48 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon");
68 int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr)
71 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr);
74 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr);
76 if (of_device_is_compatible(dev->of_node, "ti,am3517-emac"))
77 return davinci_emac_3517_get_macid(dev, 0x110, slave, mac_addr);
79 if (of_device_is_compatible(dev->of_node, "ti,dm816-emac"))
80 return cpsw_am33xx_cm_get_macid(dev, 0x30, slave, mac_addr);
83 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr);
86 return davinci_emac_3517_get_macid(dev, 0x514, slave, mac_addr);
88 dev_info(dev, "incompatible machine/device type for reading mac address\n");