Lines Matching refs:syscon
30 struct regmap *syscon; in davinci_emac_3517_get_macid() local
32 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in davinci_emac_3517_get_macid()
33 if (IS_ERR(syscon)) { in davinci_emac_3517_get_macid()
34 if (PTR_ERR(syscon) == -ENODEV) in davinci_emac_3517_get_macid()
36 return PTR_ERR(syscon); in davinci_emac_3517_get_macid()
39 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lsb); in davinci_emac_3517_get_macid()
40 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_msb); in davinci_emac_3517_get_macid()
57 struct regmap *syscon; in cpsw_am33xx_cm_get_macid() local
59 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in cpsw_am33xx_cm_get_macid()
60 if (IS_ERR(syscon)) { in cpsw_am33xx_cm_get_macid()
61 if (PTR_ERR(syscon) == -ENODEV) in cpsw_am33xx_cm_get_macid()
63 return PTR_ERR(syscon); in cpsw_am33xx_cm_get_macid()
66 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lo); in cpsw_am33xx_cm_get_macid()
67 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_hi); in cpsw_am33xx_cm_get_macid()