Lines Matching defs:dev
15 static int davinci_emac_3517_get_macid(struct device *dev, u16 offset,
22 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon");
42 static int cpsw_am33xx_cm_get_macid(struct device *dev, u16 offset, int slave,
49 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon");
69 int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr)
72 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr);
75 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr);
77 if (of_device_is_compatible(dev->of_node, "ti,am3517-emac"))
78 return davinci_emac_3517_get_macid(dev, 0x110, slave, mac_addr);
80 if (of_device_is_compatible(dev->of_node, "ti,dm816-emac"))
81 return cpsw_am33xx_cm_get_macid(dev, 0x30, slave, mac_addr);
84 return cpsw_am33xx_cm_get_macid(dev, 0x630, slave, mac_addr);
87 return davinci_emac_3517_get_macid(dev, 0x514, slave, mac_addr);
89 dev_info(dev, "incompatible machine/device type for reading mac address\n");