Lines Matching defs:npins
497 int npins = of_property_count_u32_elems(child, "pins");
499 if (npinmux > 0 && npins > 0) {
505 if (npinmux == 0 && npins == 0) {
531 int npins;
542 if ((npins = of_property_count_u32_elems(child, "pinmux")) > 0) {
543 pins = devm_kcalloc(dev, npins, sizeof(*pins), GFP_KERNEL);
549 pinmux = devm_kcalloc(dev, npins, sizeof(*pinmux), GFP_KERNEL);
555 ret = of_property_read_u32_array(child, "pinmux", pinmux, npins);
559 for (i = 0; i < npins; i++) {
569 } else if ((npins = of_property_count_u32_elems(child, "pins")) > 0) {
570 pins = devm_kcalloc(dev, npins, sizeof(*pins), GFP_KERNEL);
578 for (i = 0; i < npins; i++) {
591 ret = pinctrl_generic_add_group(pctldev, grpname, pins, npins, pinmux);
909 .npins = ARRAY_SIZE(starfive_pins),
1052 sfp->gpios.npins = NR_GPIOS;