Lines Matching refs:npins
48 int npins; member
245 chip.ngpio = priv->npins; in rza2_gpio_register()
256 (of_args.args[2] != priv->npins)) { in rza2_gpio_register()
262 priv->gpio_range.npins = priv->npins; in rza2_gpio_register()
285 pins = devm_kcalloc(priv->dev, priv->npins, sizeof(*pins), GFP_KERNEL); in rza2_pinctrl_register()
291 priv->desc.npins = priv->npins; in rza2_pinctrl_register()
293 for (i = 0; i < priv->npins; i++) { in rza2_pinctrl_register()
332 int i, ret, npins, gsel, fsel; in rza2_dt_node_to_map() local
342 npins = of_pins->length / sizeof(u32); in rza2_dt_node_to_map()
344 pins = devm_kcalloc(priv->dev, npins, sizeof(*pins), GFP_KERNEL); in rza2_dt_node_to_map()
345 psel_val = devm_kcalloc(priv->dev, npins, sizeof(*psel_val), in rza2_dt_node_to_map()
352 for (i = 0; i < npins; ++i) { in rza2_dt_node_to_map()
363 gsel = pinctrl_generic_add_group(pctldev, np->name, pins, npins, NULL); in rza2_dt_node_to_map()
379 dev_dbg(priv->dev, "Parsed %pOF with %d pins\n", np, npins); in rza2_dt_node_to_map()
479 priv->npins = (int)(uintptr_t)of_device_get_match_data(&pdev->dev) * in rza2_pinctrl_probe()
492 port_names[priv->desc.npins / RZA2_PINS_PER_PORT - 1]); in rza2_pinctrl_probe()