Lines Matching full: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
72 pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL); in bcm63xx_pinctrl_probe()
73 if (!pc) in bcm63xx_pinctrl_probe()
76 platform_set_drvdata(pdev, pc); in bcm63xx_pinctrl_probe()
78 pc->dev = dev; in bcm63xx_pinctrl_probe()
79 pc->driver_data = driver_data; in bcm63xx_pinctrl_probe()
81 pc->regs = syscon_node_to_regmap(dev->parent->of_node); in bcm63xx_pinctrl_probe()
82 if (IS_ERR(pc->regs)) in bcm63xx_pinctrl_probe()
83 return PTR_ERR(pc->regs); in bcm63xx_pinctrl_probe()
85 pc->pctl_desc.name = dev_name(dev); in bcm63xx_pinctrl_probe()
86 pc->pctl_desc.pins = soc->pins; in bcm63xx_pinctrl_probe()
87 pc->pctl_desc.npins = soc->npins; in bcm63xx_pinctrl_probe()
88 pc->pctl_desc.pctlops = soc->pctl_ops; in bcm63xx_pinctrl_probe()
89 pc->pctl_desc.pmxops = soc->pmx_ops; in bcm63xx_pinctrl_probe()
90 pc->pctl_desc.owner = THIS_MODULE; in bcm63xx_pinctrl_probe()
92 pc->pctl_dev = devm_pinctrl_register(dev, &pc->pctl_desc, pc); in bcm63xx_pinctrl_probe()
93 if (IS_ERR(pc->pctl_dev)) in bcm63xx_pinctrl_probe()
94 return PTR_ERR(pc->pctl_dev); in bcm63xx_pinctrl_probe()
98 err = bcm63xx_gpio_probe(dev, node, soc, pc); in bcm63xx_pinctrl_probe()