Lines Matching refs:syscon
20 struct regmap *syscon; in davinci_emac_3517_get_macid() local
22 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in davinci_emac_3517_get_macid()
23 if (IS_ERR(syscon)) { in davinci_emac_3517_get_macid()
24 if (PTR_ERR(syscon) == -ENODEV) in davinci_emac_3517_get_macid()
26 return PTR_ERR(syscon); in davinci_emac_3517_get_macid()
29 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lsb); in davinci_emac_3517_get_macid()
30 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_msb); in davinci_emac_3517_get_macid()
47 struct regmap *syscon; in cpsw_am33xx_cm_get_macid() local
49 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in cpsw_am33xx_cm_get_macid()
50 if (IS_ERR(syscon)) { in cpsw_am33xx_cm_get_macid()
51 if (PTR_ERR(syscon) == -ENODEV) in cpsw_am33xx_cm_get_macid()
53 return PTR_ERR(syscon); in cpsw_am33xx_cm_get_macid()
56 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lo); in cpsw_am33xx_cm_get_macid()
57 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_hi); in cpsw_am33xx_cm_get_macid()