Lines Matching refs:names
294 * Note that there is no guarantee that GPIO names are globally unique!
330 * Take the names from gc->names and assign them to their GPIO descriptors.
334 * 1. Non-unique names are still accepted,
342 /* First check all names if they are unique */
346 gpio = gpio_name_to_desc(gc->names[i]);
350 gc->names[i]);
353 /* Then add all names to the GPIO descriptors */
355 gdev->descs[i].name = gc->names[i];
361 * devprop_gpiochip_set_names - Set GPIO line names using device properties
364 * Looks for device property "gpio-line-names" and if it exists assigns
365 * GPIO line names for the chip. The memory allocated for the assigned
366 * names belong to the underlying firmware node and should not be released
373 const char **names;
377 count = fwnode_property_string_array_count(fwnode, "gpio-line-names");
382 dev_warn(&gdev->dev, "gpio-line-names is length %d but should be at most length %d",
387 names = kcalloc(count, sizeof(*names), GFP_KERNEL);
388 if (!names)
391 ret = fwnode_property_read_string_array(fwnode, "gpio-line-names",
392 names, count);
394 dev_warn(&gdev->dev, "failed to read GPIO line names\n");
395 kfree(names);
400 gdev->descs[i].name = names[i];
402 kfree(names);
694 if (gc->names)