Lines Matching refs:dev
43 struct device *dev; member
241 struct device_node *np = priv->dev->of_node; in rza2_gpio_register()
245 chip.label = devm_kasprintf(priv->dev, GFP_KERNEL, "%pOFn", np); in rza2_gpio_register()
246 chip.parent = priv->dev; in rza2_gpio_register()
252 dev_err(priv->dev, "Unable to parse gpio-ranges\n"); in rza2_gpio_register()
259 dev_err(priv->dev, "gpio-ranges does not match selected SOC\n"); in rza2_gpio_register()
269 ret = devm_gpiochip_add_data(priv->dev, &chip, priv); in rza2_gpio_register()
276 dev_dbg(priv->dev, "Registered gpio controller\n"); in rza2_gpio_register()
287 pins = devm_kcalloc(priv->dev, priv->npins, sizeof(*pins), GFP_KERNEL); in rza2_pinctrl_register()
300 ret = devm_pinctrl_register_and_init(priv->dev, &priv->desc, priv, in rza2_pinctrl_register()
303 dev_err(priv->dev, "pinctrl registration failed\n"); in rza2_pinctrl_register()
309 dev_err(priv->dev, "pinctrl enable failed\n"); in rza2_pinctrl_register()
315 dev_err(priv->dev, "GPIO registration failed\n"); in rza2_pinctrl_register()
341 dev_info(priv->dev, "Missing pinmux property\n"); in rza2_dt_node_to_map()
346 pins = devm_kcalloc(priv->dev, npins, sizeof(*pins), GFP_KERNEL); in rza2_dt_node_to_map()
347 psel_val = devm_kcalloc(priv->dev, npins, sizeof(*psel_val), in rza2_dt_node_to_map()
349 pin_fn = devm_kzalloc(priv->dev, sizeof(*pin_fn), GFP_KERNEL); in rza2_dt_node_to_map()
385 dev_dbg(priv->dev, "Parsed %pOF with %d pins\n", np, npins); in rza2_dt_node_to_map()
413 dev_err(priv->dev, "Unable to parse DT node %s\n", np->name); in rza2_dt_node_to_map()
451 dev_dbg(priv->dev, "Setting P%c_%d to PSEL=%d\n", in rza2_set_mux()
478 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in rza2_pinctrl_probe()
482 priv->dev = &pdev->dev; in rza2_pinctrl_probe()
492 priv->npins = (int)(uintptr_t)of_device_get_match_data(&pdev->dev) * in rza2_pinctrl_probe()
504 dev_info(&pdev->dev, "Registered ports P0 - P%c\n", in rza2_pinctrl_probe()