Lines Matching defs:con_id

3714 static struct gpio_desc *gpiod_find(struct device *dev, const char *con_id,
3732 /* If the lookup entry has a con_id, require exact match */
3733 if (p->con_id && (!con_id || strcmp(p->con_id, con_id)))
3780 static int platform_gpio_count(struct device *dev, const char *con_id)
3791 if ((con_id && p->con_id && !strcmp(con_id, p->con_id)) ||
3792 (!con_id && !p->con_id))
3804 * @con_id: function within the GPIO consumer
3823 const char *con_id, int index,
3832 if (con_id)
3834 con_id, gpio_suffixes[i]);
3853 * @con_id: function within the GPIO consumer
3855 int gpiod_count(struct device *dev, const char *con_id)
3860 count = of_gpio_get_count(dev, con_id);
3862 count = acpi_gpio_count(dev, con_id);
3865 count = platform_gpio_count(dev, con_id);
3874 * @con_id: function within the GPIO consumer
3877 * Return the GPIO descriptor corresponding to the function con_id of device
3881 struct gpio_desc *__must_check gpiod_get(struct device *dev, const char *con_id,
3884 return gpiod_get_index(dev, con_id, 0, flags);
3891 * @con_id: function within the GPIO consumer
3899 const char *con_id,
3902 return gpiod_get_index_optional(dev, con_id, 0, flags);
3910 * @con_id: function within the GPIO consumer
3919 int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
3961 gpiod_dbg(desc, "no flags found for %s\n", con_id);
3978 * @con_id: function within the GPIO consumer
3990 const char *con_id,
4000 dev_dbg(dev, "GPIO lookup for consumer %s\n", con_id);
4006 desc = of_find_gpio(dev, con_id, idx, &lookupflags);
4009 desc = acpi_find_gpio(dev, con_id, idx, &flags, &lookupflags);
4019 desc = gpiod_find(dev, con_id, idx, &lookupflags);
4023 dev_dbg(dev, "No GPIO consumer %s found\n", con_id);
4031 ret = gpiod_request(desc, con_id ? con_id : devname);
4043 con_id ? con_id : devname);
4050 ret = gpiod_configure_flags(desc, con_id, lookupflags, flags);
4052 dev_dbg(dev, "setup of GPIO %s failed\n", con_id);
4136 * @con_id: function within the GPIO consumer
4145 const char *con_id,
4151 desc = gpiod_get_index(dev, con_id, index, flags);
4217 * @con_id: function within the GPIO consumer
4227 const char *con_id,
4236 count = gpiod_count(dev, con_id);
4245 desc = gpiod_get_index(dev, con_id, descs->ndescs, flags);
4344 * @con_id: function within the GPIO consumer
4351 const char *con_id,
4356 descs = gpiod_get_array(dev, con_id, flags);