Lines Matching refs:label

104 	struct gpio_desc_label *label;
115 label = srcu_dereference_check(desc->label, &desc->gdev->desc_srcu,
118 return label->str;
126 static int desc_set_label(struct gpio_desc *desc, const char *label)
130 if (label) {
131 new = kzalloc(struct_size(new, str, strlen(label) + 1),
136 strcpy(new->str, label);
139 old = rcu_replace_pointer(desc->label, new, 1);
275 * gpio_device_get_label() - Get the label of this GPIO device
279 * Pointer to the string containing the GPIO device label. The string's
284 return gdev->label;
720 kfree_const(gdev->label);
766 gdev->base + gdev->ngpio - 1, gdev->label);
790 __func__, gc->label, hog->chip_hwnum, rv);
800 if (!strcmp(gc->label, hog->chip_label))
937 gdev->label = kstrdup_const(gc->label ?: "unknown", GFP_KERNEL);
938 if (!gdev->label) {
1092 kfree_const(gdev->label);
1106 gc->label ? : "generic", ret);
1209 static int gpio_chip_match_by_label(struct gpio_chip *gc, const void *label)
1211 return gc->label && !strcmp(gc->label, label);
1216 * GPIO device by its backing chip's label
1217 * @label: Label to lookup
1223 struct gpio_device *gpio_device_find_by_label(const char *label)
1225 return gpio_device_find((void *)label, gpio_chip_match_by_label);
2146 pin_range->range.name = gc->label;
2204 pin_range->range.name = gc->label;
2251 static int gpiod_request_commit(struct gpio_desc *desc, const char *label)
2280 ret = desc_set_label(desc, label ? : "?");
2322 int gpiod_request(struct gpio_desc *desc, const char *label)
2329 ret = gpiod_request_commit(desc, label);
2386 * gpiochip_dup_line_label - Get a copy of the consumer label.
2391 * Pointer to a copy of the consumer label if the line is requested or NULL
2400 char *label;
2411 label = kstrdup(gpiod_get_label(desc), GFP_KERNEL);
2412 if (!label)
2415 return label;
2428 * @label: label for the GPIO
2447 const char *label,
2452 const char *name = function_name_or_default(label);
2460 ret = gpiod_request_commit(desc, label);
2464 ret = gpiod_configure_flags(desc, label, lflags, dflags);
4137 gc->label);
4203 const char *label,
4235 * If a connection label was passed use that, else attempt to use
4236 * the device name as label
4238 ret = gpiod_request(desc, label);
4274 * @label: label to attach to the requested GPIO
4293 const char *label)
4295 return gpiod_find_and_request(NULL, fwnode, con_id, index, flags, label, false);
4454 const char *label = con_id ?: devname;
4456 return gpiod_find_and_request(dev, fwnode, con_id, idx, flags, label, true);
4518 name, gdev->label, hwnum, ret);
4662 array_info->chip->label, array_info->size,
4894 if (gc->label)
4895 seq_printf(s, ", %s", gc->label);