Lines Matching refs:pins
41 struct pinctrl_pin_desc *pins;
61 const unsigned **pins, unsigned *num_pins)
65 *pins = pmx->pfc->info->groups[selector].pins;
139 /* Count the number of pins and groups and reallocate mappings. */
140 ret = of_property_count_strings(np, "pins");
144 dev_err(dev, "Invalid pins list in DT\n");
180 /* Iterate over pins and groups and create the mappings. */
205 of_property_for_each_string(np, "pins", prop, pin) {
337 int idx = sh_pfc_get_pin_index(pfc, grp->pins[i]);
354 /* All group pins are configured, mark the pins as muxed */
356 int idx = sh_pfc_get_pin_index(pfc, grp->pins[i]);
384 const struct sh_pfc_pin *pin = &pfc->info->pins[idx];
428 const struct sh_pfc_pin *pin = &pfc->info->pins[idx];
546 const struct sh_pfc_pin *pin = &pfc->info->pins[idx];
614 const struct sh_pfc_pin *pin = &pfc->info->pins[idx];
687 const struct sh_pfc_pin *pin = &pfc->info->pins[idx];
731 const unsigned int *pins;
735 pins = pmx->pfc->info->groups[group].pins;
739 ret = sh_pfc_pinconf_set(pctldev, pins[i], configs, num_configs);
760 /* Allocate and initialize the pins and configs arrays. */
761 pmx->pins = devm_kcalloc(pfc->dev,
762 pfc->info->nr_pins, sizeof(*pmx->pins),
764 if (unlikely(!pmx->pins))
774 const struct sh_pfc_pin *info = &pfc->info->pins[i];
775 struct pinctrl_pin_desc *pin = &pmx->pins[i];
777 /* If the pin number is equal to -1 all pins are considered */
805 pmx->pctl_desc.pins = pmx->pins;
826 for (j = 0; j < ARRAY_SIZE(info->bias_regs[i].pins); j++) {
827 if (info->bias_regs[i].pins[j] == pin) {