Lines Matching refs:nr_pins
234 ret = bgpio_init(&gctrl->chip, dev, gctrl->bank->nr_pins / 8, in gpiolib_reg()
266 (pin - bank->pin_base) < bank->nr_pins) in find_pinbank_via_pin()
776 unsigned int nr_pins; in pinctrl_reg() local
789 for (i = 0, nr_pins = 0; i < drvdata->nr_banks; i++) in pinctrl_reg()
790 nr_pins += drvdata->pin_banks[i].nr_pins; in pinctrl_reg()
792 pdesc = devm_kcalloc(dev, nr_pins, sizeof(*pdesc), GFP_KERNEL); in pinctrl_reg()
795 pin_names = devm_kcalloc(dev, nr_pins, PIN_NAME_LEN, GFP_KERNEL); in pinctrl_reg()
799 for (i = 0; i < nr_pins; i++) { in pinctrl_reg()
806 pctl_desc->npins = nr_pins; in pinctrl_reg()
807 dev_dbg(dev, "pinctrl total pin number: %u\n", nr_pins); in pinctrl_reg()
846 bank->nr_pins = spec.args[2]; in pinbank_init()
853 bank->nr_pins, bank->aval_pinmap); in pinbank_init()