Lines Matching defs:regmap
22 #include <linux/regmap.h>
66 * @regmap: regmap for using the syscon
942 dev_err(dev, "Fail to read from regmap field.\n");
1124 static struct regmap *sun8i_dwmac_get_syscon_from_dev(struct device_node *node)
1128 struct regmap *regmap = NULL;
1137 regmap = ERR_PTR(-EPROBE_DEFER);
1141 /* If no regmap is found then the other device driver is at fault */
1142 regmap = dev_get_regmap(&syscon_pdev->dev, NULL);
1143 if (!regmap)
1144 regmap = ERR_PTR(-EINVAL);
1149 return regmap;
1162 struct regmap *regmap;
1198 * having the device export a custom regmap, instead of a generic
1204 regmap = sun8i_dwmac_get_syscon_from_dev(pdev->dev.of_node);
1205 if (IS_ERR(regmap))
1206 regmap = syscon_regmap_lookup_by_phandle(pdev->dev.of_node,
1208 if (IS_ERR(regmap)) {
1209 ret = PTR_ERR(regmap);
1214 gmac->regmap_field = devm_regmap_field_alloc(dev, regmap,