Lines Matching defs:dev

327 	struct device *dev = info->dev;
339 dev_err(dev, "unable to find group for node %pOFn\n", np);
373 dev_dbg(dev, "maps: function %s group %s num %d\n",
1056 dev_err(info->dev, "pin %d is unrouted\n", pin);
1123 struct device *dev = info->dev;
1130 dev_err(dev, "pin %d is unrouted\n", pin);
1136 dev_err(dev, "pin %d only supports a gpio mux\n", pin);
1161 struct device *dev = info->dev;
1175 dev_dbg(dev, "setting mux of GPIO%d-%d to %d\n", bank->bank_num, pin, mux);
2203 struct device *dev = info->dev;
2251 dev_err(dev, "unsupported bit: %d for pinctrl drive type: %d\n",
2263 dev_err(dev, "unsupported pinctrl drive type: %d\n", drv_type);
2282 struct device *dev = info->dev;
2289 dev_dbg(dev, "setting drive of GPIO%d-%d to %d\n",
2323 dev_err(dev, "unsupported driver strength %d\n", strength);
2362 dev_err(dev, "unsupported bit: %d for pinctrl drive type: %d\n",
2373 dev_err(dev, "unsupported pinctrl drive type: %d\n", drv_type);
2407 struct device *dev = info->dev;
2454 dev_err(dev, "unsupported pinctrl type\n");
2464 struct device *dev = info->dev;
2470 dev_dbg(dev, "setting pull of GPIO%d-%d to %d\n", bank->bank_num, pin_num, pull);
2517 dev_err(dev, "unsupported pull setting %d\n", pull);
2529 dev_err(dev, "unsupported pinctrl type\n");
2620 struct device *dev = info->dev;
2626 dev_dbg(dev, "setting input schmitt of GPIO%d-%d to %d\n",
2686 struct device *dev = info->dev;
2690 dev_dbg(dev, "enable function %s group %s\n",
2998 struct device *dev = info->dev;
3006 dev_dbg(dev, "group(%d): %pOFn\n", index, np);
3019 return dev_err_probe(dev, -EINVAL, "wrong pins number or pins and configs should be by 4\n");
3023 grp->pins = devm_kcalloc(dev, grp->npins, sizeof(*grp->pins), GFP_KERNEL);
3024 grp->data = devm_kcalloc(dev, grp->npins, sizeof(*grp->data), GFP_KERNEL);
3059 struct device *dev = info->dev;
3067 dev_dbg(dev, "parse function(%d): %pOFn\n", index, np);
3077 func->groups = devm_kcalloc(dev, func->ngroups, sizeof(*func->groups), GFP_KERNEL);
3097 struct device *dev = &pdev->dev;
3098 struct device_node *np = dev->of_node;
3105 dev_dbg(dev, "nfunctions = %d\n", info->nfunctions);
3106 dev_dbg(dev, "ngroups = %d\n", info->ngroups);
3108 info->functions = devm_kcalloc(dev, info->nfunctions, sizeof(*info->functions), GFP_KERNEL);
3112 info->groups = devm_kcalloc(dev, info->ngroups, sizeof(*info->groups), GFP_KERNEL);
3124 dev_err(dev, "failed to parse function\n");
3139 struct device *dev = &pdev->dev;
3150 pindesc = devm_kcalloc(dev, info->ctrl->nr_pins, sizeof(*pindesc), GFP_KERNEL);
3161 pin_names = devm_kasprintf_strarray(dev, pin_bank->name, pin_bank->nr_pins);
3179 info->pctl_dev = devm_pinctrl_register(dev, ctrldesc, info);
3181 return dev_err_probe(dev, PTR_ERR(info->pctl_dev), "could not register pinctrl driver\n");
3193 struct device *dev = &pdev->dev;
3194 struct device_node *node = dev->of_node;
3249 dev_dbg(dev, "bank %d, iomux %d has iom_offset 0x%x drv_offset 0x%x\n",
3311 static int __maybe_unused rockchip_pinctrl_suspend(struct device *dev)
3313 struct rockchip_pinctrl *info = dev_get_drvdata(dev);
3335 static int __maybe_unused rockchip_pinctrl_resume(struct device *dev)
3337 struct rockchip_pinctrl *info = dev_get_drvdata(dev);
3357 struct device *dev = &pdev->dev;
3358 struct device_node *np = dev->of_node, *node;
3364 if (!dev->of_node)
3365 return dev_err_probe(dev, -ENODEV, "device tree node not found\n");
3367 info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL);
3371 info->dev = dev;
3375 return dev_err_probe(dev, -EINVAL, "driver data not available\n");
3392 devm_regmap_init_mmio(dev, base, &rockchip_regmap_config);
3406 devm_regmap_init_mmio(dev, base, &rockchip_regmap_config);
3425 ret = of_platform_populate(np, NULL, NULL, &pdev->dev);
3427 return dev_err_probe(dev, ret, "failed to register gpio device\n");
3439 of_platform_depopulate(&pdev->dev);