Lines Matching refs:con_id

2419 static inline const char *function_name_or_default(const char *con_id)
2421 return con_id ?: "(default)";
4081 static struct gpio_desc *gpiod_find(struct device *dev, const char *con_id,
4100 /* If the lookup entry has a con_id, require exact match */
4101 if (p->con_id && (!con_id || strcmp(p->con_id, con_id)))
4150 static int platform_gpio_count(struct device *dev, const char *con_id)
4162 if ((con_id && p->con_id && !strcmp(con_id, p->con_id)) ||
4163 (!con_id && !p->con_id))
4176 const char *con_id,
4181 const char *name = function_name_or_default(con_id);
4186 desc = of_find_gpio(to_of_node(fwnode), con_id, idx, lookupflags);
4189 desc = acpi_find_gpio(fwnode, con_id, idx, flags, lookupflags);
4192 desc = swnode_find_gpio(fwnode, con_id, idx, lookupflags);
4200 const char *con_id,
4207 const char *name = function_name_or_default(con_id);
4216 desc = gpiod_find_by_fwnode(fwnode, consumer, con_id, idx,
4226 desc = gpiod_find(consumer, con_id, idx, &lookupflags);
4256 ret = gpiod_configure_flags(desc, con_id, lookupflags, flags);
4271 * @con_id: function within the GPIO consumer
4290 const char *con_id,
4295 return gpiod_find_and_request(NULL, fwnode, con_id, index, flags, label, false);
4303 * @con_id: function within the GPIO consumer
4305 int gpiod_count(struct device *dev, const char *con_id)
4311 count = of_gpio_count(fwnode, con_id);
4313 count = acpi_gpio_count(fwnode, con_id);
4315 count = swnode_gpio_count(fwnode, con_id);
4318 count = platform_gpio_count(dev, con_id);
4327 * @con_id: function within the GPIO consumer
4330 * Return the GPIO descriptor corresponding to the function con_id of device
4334 struct gpio_desc *__must_check gpiod_get(struct device *dev, const char *con_id,
4337 return gpiod_get_index(dev, con_id, 0, flags);
4344 * @con_id: function within the GPIO consumer
4352 const char *con_id,
4355 return gpiod_get_index_optional(dev, con_id, 0, flags);
4363 * @con_id: function within the GPIO consumer
4372 int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
4375 const char *name = function_name_or_default(con_id);
4436 * @con_id: function within the GPIO consumer
4448 const char *con_id,
4454 const char *label = con_id ?: devname;
4456 return gpiod_find_and_request(dev, fwnode, con_id, idx, flags, label, true);
4464 * @con_id: function within the GPIO consumer
4473 const char *con_id,
4479 desc = gpiod_get_index(dev, con_id, index, flags);
4545 * @con_id: function within the GPIO consumer
4555 const char *con_id,
4565 count = gpiod_count(dev, con_id);
4575 desc = gpiod_get_index(dev, con_id, descs->ndescs, flags);
4673 * @con_id: function within the GPIO consumer
4680 const char *con_id,
4685 descs = gpiod_get_array(dev, con_id, flags);