Lines Matching refs:pins
152 pin = pctldev->desc->pins[i].number;
184 const struct pinctrl_pin_desc *pins,
193 pins[i].number);
196 pins[i].number);
252 const struct pinctrl_pin_desc *pins,
259 ret = pinctrl_register_one_pin(pctldev, &pins[i]);
284 if (range->pins)
285 return range->pins[offset];
318 * pinctrl_ready_for_gpio_range() - check if other GPIO pins of
324 * to check whether pinctrl device is ready or not. Maybe some GPIO pins
458 const unsigned **pins, unsigned *num_pins)
470 return pctlops->get_group_pins(pctldev, gs, pins, num_pins);
483 if (range->pins) {
486 if (range->pins[a] == pin)
563 * pinctrl_generic_get_group_pins() - gets the pin group pins
566 * @pins: pins in the group
567 * @num_pins: number of pins in the group
571 const unsigned int **pins,
584 *pins = group->pins;
634 * @pins: pins in the pin group
635 * @num_pins: number of pins in the pin group
641 int *pins, int num_pins, void *data)
660 group->pins = pins;
790 * shall *NOT* request GPIO pins to be muxed in.
825 * shall *NOT* request GPIO pins to be muxed out.
1334 * That means that some pins are muxed differently now
1336 * "unmux a pin"!), but it's not a big deal since the pins
1539 * We'll use this time to switch the pins from "init" to "default" unless the
1546 struct dev_pin_info *pins = dev->pins;
1549 if (!pins)
1552 if (IS_ERR(pins->init_state))
1555 if (pins->p->state != pins->init_state)
1558 if (IS_ERR(pins->default_state))
1561 ret = pinctrl_select_state(pins->p, pins->default_state);
1571 struct dev_pin_info *pins = dev->pins;
1576 ret = pinctrl_select_state(pins->p, state);
1589 if (!dev->pins)
1592 return pinctrl_select_bound_state(dev, dev->pins->default_state);
1614 if (!dev->pins)
1617 return pinctrl_select_bound_state(dev, dev->pins->sleep_state);
1627 if (!dev->pins)
1630 return pinctrl_select_bound_state(dev, dev->pins->idle_state);
1648 seq_printf(s, "registered pins: %d\n", pctldev->desc->npins);
1656 pin = pctldev->desc->pins[i].number;
1713 const unsigned *pins = NULL;
1722 &pins, &num_pins);
1729 pname = pin_get_name(pctldev, pins[i]);
1734 seq_printf(s, "pin %d (%s)\n", pins[i], pname);
1758 if (range->pins) {
1764 seq_printf(s, "%u, ", range->pins[a]);
1765 seq_printf(s, "%u}\n", range->pins[a]);
1936 debugfs_create_file("pins", 0444,
2057 /* Register all the pins */
2058 dev_dbg(dev, "try to register %d pins ...\n", pctldesc->npins);
2059 ret = pinctrl_register_pins(pctldev, pctldesc->pins, pctldesc->npins);
2062 pinctrl_free_pindescs(pctldev, pctldesc->pins,
2121 pinctrl_free_pindescs(pctldev, pctldev->desc->pins,
2227 pinctrl_free_pindescs(pctldev, pctldev->desc->pins,