Lines Matching refs:dev

95 	struct device		*dev;  member
1570 dev_dbg(npcm->dev, "group size: %zu\n", ARRAY_SIZE(npcm7xx_groups)); in npcm7xx_get_groups_count()
1598 dev_dbg(npcm->dev, "dt_node_to_map: %s\n", np_config->name); in npcm7xx_dt_node_to_map()
1648 dev_dbg(npcm->dev, "set_mux: %d, %d[%s]\n", function, group, in npcm7xx_pinmux_set_mux()
1664 dev_err(npcm->dev, "invalid range\n"); in npcm7xx_gpio_request_enable()
1668 dev_err(npcm->dev, "invalid gpiochip\n"); in npcm7xx_gpio_request_enable()
1872 struct device *dev = pctrl->dev; in npcm7xx_gpio_of() local
1877 for_each_gpiochip_node(dev, child) { in npcm7xx_gpio_of()
1882 dev_err(dev, "Resource fail for GPIO bank %u\n", id); in npcm7xx_gpio_of()
1890 ret = bgpio_init(&pctrl->gpio_bank[id].gc, dev, 4, in npcm7xx_gpio_of()
1898 dev_err(dev, "bgpio_init() failed\n"); in npcm7xx_gpio_of()
1904 dev_err(dev, "gpio-ranges fail for GPIO bank %u\n", id); in npcm7xx_gpio_of()
1910 dev_err(dev, "No IRQ for GPIO bank %u\n", id); in npcm7xx_gpio_of()
1919 pctrl->gpio_bank[id].gc.parent = dev; in npcm7xx_gpio_of()
1921 pctrl->gpio_bank[id].gc.label = devm_kasprintf(dev, GFP_KERNEL, "%pfw", child); in npcm7xx_gpio_of()
1951 girq->parents = devm_kcalloc(pctrl->dev, 1, in npcm7xx_gpio_register()
1961 ret = devm_gpiochip_add_data(pctrl->dev, in npcm7xx_gpio_register()
1965 dev_err(pctrl->dev, "Failed to add GPIO chip %u\n", id); in npcm7xx_gpio_register()
1970 dev_name(pctrl->dev), in npcm7xx_gpio_register()
1975 dev_err(pctrl->dev, "Failed to add GPIO bank %u\n", id); in npcm7xx_gpio_register()
1995 pctrl = devm_kzalloc(&pdev->dev, sizeof(*pctrl), GFP_KERNEL); in npcm7xx_pinctrl_probe()
1999 pctrl->dev = &pdev->dev; in npcm7xx_pinctrl_probe()
2000 dev_set_drvdata(&pdev->dev, pctrl); in npcm7xx_pinctrl_probe()
2005 dev_err(pctrl->dev, "didn't find nuvoton,npcm750-gcr\n"); in npcm7xx_pinctrl_probe()
2011 dev_err(pctrl->dev, "Failed to gpio dt-binding %u\n", ret); in npcm7xx_pinctrl_probe()
2015 pctrl->pctldev = devm_pinctrl_register(&pdev->dev, in npcm7xx_pinctrl_probe()
2018 dev_err(&pdev->dev, "Failed to register pinctrl device\n"); in npcm7xx_pinctrl_probe()
2024 dev_err(pctrl->dev, "Failed to register gpio %u\n", ret); in npcm7xx_pinctrl_probe()