Lines Matching defs:con_id
3911 static struct gpio_desc *gpiod_find(struct device *dev, const char *con_id,
3929 /* If the lookup entry has a con_id, require exact match */
3930 if (p->con_id && (!con_id || strcmp(p->con_id, con_id)))
3977 static int platform_gpio_count(struct device *dev, const char *con_id)
3988 if ((con_id && p->con_id && !strcmp(con_id, p->con_id)) ||
3989 (!con_id && !p->con_id))
4000 const char *con_id,
4009 fwnode, con_id);
4010 desc = of_find_gpio(to_of_node(fwnode), con_id, idx, lookupflags);
4013 fwnode, con_id);
4014 desc = acpi_find_gpio(fwnode, con_id, idx, flags, lookupflags);
4017 fwnode, con_id);
4018 desc = swnode_find_gpio(fwnode, con_id, idx, lookupflags);
4026 const char *con_id,
4036 desc = gpiod_find_by_fwnode(fwnode, consumer, con_id, idx, &flags, &lookupflags);
4044 desc = gpiod_find(consumer, con_id, idx, &lookupflags);
4048 dev_dbg(consumer, "No GPIO consumer %s found\n", con_id);
4070 "nonexclusive access to GPIO for %s\n", con_id);
4074 ret = gpiod_configure_flags(desc, con_id, lookupflags, flags);
4076 dev_dbg(consumer, "setup of GPIO %s failed\n", con_id);
4089 * @con_id: function within the GPIO consumer
4108 const char *con_id,
4113 return gpiod_find_and_request(NULL, fwnode, con_id, index, flags, label, false);
4121 * @con_id: function within the GPIO consumer
4123 int gpiod_count(struct device *dev, const char *con_id)
4129 count = of_gpio_get_count(dev, con_id);
4131 count = acpi_gpio_count(dev, con_id);
4133 count = swnode_gpio_count(fwnode, con_id);
4136 count = platform_gpio_count(dev, con_id);
4145 * @con_id: function within the GPIO consumer
4148 * Return the GPIO descriptor corresponding to the function con_id of device
4152 struct gpio_desc *__must_check gpiod_get(struct device *dev, const char *con_id,
4155 return gpiod_get_index(dev, con_id, 0, flags);
4162 * @con_id: function within the GPIO consumer
4170 const char *con_id,
4173 return gpiod_get_index_optional(dev, con_id, 0, flags);
4181 * @con_id: function within the GPIO consumer
4190 int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
4236 gpiod_dbg(desc, "no flags found for %s\n", con_id);
4253 * @con_id: function within the GPIO consumer
4265 const char *con_id,
4271 const char *label = con_id ?: devname;
4273 return gpiod_find_and_request(dev, fwnode, con_id, idx, flags, label, true);
4281 * @con_id: function within the GPIO consumer
4290 const char *con_id,
4296 desc = gpiod_get_index(dev, con_id, index, flags);
4358 * @con_id: function within the GPIO consumer
4368 const char *con_id,
4378 count = gpiod_count(dev, con_id);
4388 desc = gpiod_get_index(dev, con_id, descs->ndescs, flags);
4486 * @con_id: function within the GPIO consumer
4493 const char *con_id,
4498 descs = gpiod_get_array(dev, con_id, flags);