Lines Matching defs:pins

152 		pin = pctldev->desc->pins[i].number;
184 const struct pinctrl_pin_desc *pins,
193 pins[i].number);
196 pins[i].number);
244 const struct pinctrl_pin_desc *pins,
251 ret = pinctrl_register_one_pin(pctldev, &pins[i]);
276 if (range->pins)
277 return range->pins[offset];
310 * pinctrl_ready_for_gpio_range() - check if other GPIO pins of
316 * to check whether pinctrl device is ready or not. Maybe some GPIO pins
445 const unsigned **pins, unsigned *num_pins)
457 return pctlops->get_group_pins(pctldev, gs, pins, num_pins);
470 if (range->pins) {
473 if (range->pins[a] == pin)
550 * pinctrl_generic_get_group_pins() - gets the pin group pins
553 * @pins: pins in the group
554 * @num_pins: number of pins in the group
558 const unsigned int **pins,
571 *pins = group->pins;
621 * @pins: pins in the pin group
622 * @num_pins: number of pins in the pin group
628 int *pins, int num_pins, void *data)
647 group->pins = pins;
775 * shall *NOT* request GPIO pins to be muxed in.
810 * shall *NOT* request GPIO pins to be muxed out.
1297 * That means that some pins are muxed differently now
1299 * "unmux a pin"!), but it's not a big deal since the pins
1502 * We'll use this time to switch the pins from "init" to "default" unless the
1509 struct dev_pin_info *pins = dev->pins;
1512 if (!pins)
1515 if (IS_ERR(pins->init_state))
1518 if (pins->p->state != pins->init_state)
1521 if (IS_ERR(pins->default_state))
1524 ret = pinctrl_select_state(pins->p, pins->default_state);
1534 struct dev_pin_info *pins = dev->pins;
1539 ret = pinctrl_select_state(pins->p, state);
1552 if (!dev->pins)
1555 return pinctrl_select_bound_state(dev, dev->pins->default_state);
1577 if (!dev->pins)
1580 return pinctrl_select_bound_state(dev, dev->pins->sleep_state);
1590 if (!dev->pins)
1593 return pinctrl_select_bound_state(dev, dev->pins->idle_state);
1611 seq_printf(s, "registered pins: %d\n", pctldev->desc->npins);
1619 pin = pctldev->desc->pins[i].number;
1671 const unsigned *pins = NULL;
1680 &pins, &num_pins);
1687 pname = pin_get_name(pctldev, pins[i]);
1692 seq_printf(s, "pin %d (%s)\n", pins[i], pname);
1716 if (range->pins) {
1722 seq_printf(s, "%u, ", range->pins[a]);
1723 seq_printf(s, "%u}\n", range->pins[a]);
1895 debugfs_create_file("pins", S_IFREG | S_IRUGO,
2016 /* Register all the pins */
2017 dev_dbg(dev, "try to register %d pins ...\n", pctldesc->npins);
2018 ret = pinctrl_register_pins(pctldev, pctldesc->pins, pctldesc->npins);
2021 pinctrl_free_pindescs(pctldev, pctldesc->pins,
2180 pinctrl_free_pindescs(pctldev, pctldev->desc->pins,