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");
1126 static struct regmap *sun8i_dwmac_get_syscon_from_dev(struct device_node *node)
1130 struct regmap *regmap = NULL;
1139 regmap = ERR_PTR(-EPROBE_DEFER);
1143 /* If no regmap is found then the other device driver is at fault */
1144 regmap = dev_get_regmap(&syscon_pdev->dev, NULL);
1145 if (!regmap)
1146 regmap = ERR_PTR(-EINVAL);
1151 return regmap;
1164 struct regmap *regmap;
1200 * having the device export a custom regmap, instead of a generic
1206 regmap = sun8i_dwmac_get_syscon_from_dev(pdev->dev.of_node);
1207 if (IS_ERR(regmap))
1208 regmap = syscon_regmap_lookup_by_phandle(pdev->dev.of_node,
1210 if (IS_ERR(regmap)) {
1211 ret = PTR_ERR(regmap);
1216 gmac->regmap_field = devm_regmap_field_alloc(dev, regmap,