Lines Matching refs:pc
47 struct bcm63xx_pinctrl *pc) in bcm63xx_gpio_probe() argument
55 grc.regmap = pc->regs; in bcm63xx_gpio_probe()
69 struct bcm63xx_pinctrl *pc; in bcm63xx_pinctrl_probe() local
73 pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL); in bcm63xx_pinctrl_probe()
74 if (!pc) in bcm63xx_pinctrl_probe()
77 platform_set_drvdata(pdev, pc); in bcm63xx_pinctrl_probe()
79 pc->dev = dev; in bcm63xx_pinctrl_probe()
80 pc->driver_data = driver_data; in bcm63xx_pinctrl_probe()
82 pc->regs = syscon_node_to_regmap(dev->parent->of_node); in bcm63xx_pinctrl_probe()
83 if (IS_ERR(pc->regs)) in bcm63xx_pinctrl_probe()
84 return PTR_ERR(pc->regs); in bcm63xx_pinctrl_probe()
86 pc->pctl_desc.name = dev_name(dev); in bcm63xx_pinctrl_probe()
87 pc->pctl_desc.pins = soc->pins; in bcm63xx_pinctrl_probe()
88 pc->pctl_desc.npins = soc->npins; in bcm63xx_pinctrl_probe()
89 pc->pctl_desc.pctlops = soc->pctl_ops; in bcm63xx_pinctrl_probe()
90 pc->pctl_desc.pmxops = soc->pmx_ops; in bcm63xx_pinctrl_probe()
91 pc->pctl_desc.owner = THIS_MODULE; in bcm63xx_pinctrl_probe()
93 pc->pctl_dev = devm_pinctrl_register(dev, &pc->pctl_desc, pc); in bcm63xx_pinctrl_probe()
94 if (IS_ERR(pc->pctl_dev)) in bcm63xx_pinctrl_probe()
95 return PTR_ERR(pc->pctl_dev); in bcm63xx_pinctrl_probe()
99 err = bcm63xx_gpio_probe(dev, node, soc, pc); in bcm63xx_pinctrl_probe()