Lines Matching refs:dev
30 struct device *dev; member
128 dev_err(p->dev, "%s is already enabled\n", in mtmips_pmx_group_enable()
168 dev_err(p->dev, "pin %d is not set to gpio mux\n", pin); in mtmips_pmx_group_gpio_request_enable()
206 p->group_names = devm_kcalloc(p->dev, p->group_count, in mtmips_pinctrl_index()
220 p->func = devm_kcalloc(p->dev, p->func_count, in mtmips_pinctrl_index()
222 gpio_func.groups = devm_kcalloc(p->dev, p->group_count, sizeof(int), in mtmips_pinctrl_index()
239 p->func[c]->groups = devm_kzalloc(p->dev, sizeof(int), in mtmips_pinctrl_index()
265 p->func[i]->pins = devm_kcalloc(p->dev, in mtmips_pinctrl_pins()
280 p->gpio = devm_kcalloc(p->dev, p->max_pins, sizeof(u8), GFP_KERNEL); in mtmips_pinctrl_pins()
282 p->pads = devm_kcalloc(p->dev, p->max_pins, in mtmips_pinctrl_pins()
302 char *name = devm_kzalloc(p->dev, 5, GFP_KERNEL); in mtmips_pinctrl_pins()
320 struct pinctrl_dev *dev; in mtmips_pinctrl_init() local
327 p = devm_kzalloc(&pdev->dev, sizeof(struct mtmips_priv), GFP_KERNEL); in mtmips_pinctrl_init()
331 p->dev = &pdev->dev; in mtmips_pinctrl_init()
339 dev_err(&pdev->dev, "failed to load index\n"); in mtmips_pinctrl_init()
345 dev_err(&pdev->dev, "failed to load pins\n"); in mtmips_pinctrl_init()
348 dev = pinctrl_register(p->desc, &pdev->dev, p); in mtmips_pinctrl_init()
350 return PTR_ERR_OR_ZERO(dev); in mtmips_pinctrl_init()