• Home
  • Raw
  • Download

Lines Matching refs:label

95 static inline void desc_set_label(struct gpio_desc *d, const char *label)  in desc_set_label()  argument
97 d->label = label; in desc_set_label()
424 const char *label; member
506 kfree(lh->label); in linehandle_release()
573 lh->label = kstrdup(handlereq.consumer_label, in linehandle_create()
575 if (!lh->label) { in linehandle_create()
592 ret = gpiod_request(desc, lh->label); in linehandle_create()
669 kfree(lh->label); in linehandle_create()
697 const char *label; member
778 kfree(le->label); in lineevent_release()
915 le->label = kstrdup(eventreq.consumer_label, in lineevent_create()
917 if (!le->label) { in lineevent_create()
948 ret = gpiod_request(desc, le->label); in lineevent_create()
984 le->label, in lineevent_create()
1026 kfree(le->label); in lineevent_create()
1055 strncpy(chipinfo.label, gdev->label, in gpio_ioctl()
1056 sizeof(chipinfo.label)); in gpio_ioctl()
1057 chipinfo.label[sizeof(chipinfo.label)-1] = '\0'; in gpio_ioctl()
1079 if (desc->label) { in gpio_ioctl()
1080 strncpy(lineinfo.consumer, desc->label, in gpio_ioctl()
1182 kfree_const(gdev->label); in gpiodevice_release()
1210 dev_name(&gdev->dev), gdev->chip->label ? : "generic"); in gpiochip_setup_dev()
1237 __func__, chip->label, hog->chip_hwnum, rv); in gpiochip_machine_hog()
1247 if (!strcmp(chip->label, hog->chip_label)) in machine_gpiochip_add()
1332 gdev->label = kstrdup_const(chip->label ?: "unknown", GFP_KERNEL); in gpiochip_add_data_with_key()
1333 if (!gdev->label) { in gpiochip_add_data_with_key()
1462 kfree_const(gdev->label); in gpiochip_add_data_with_key()
1471 chip->label ? : "generic", ret); in gpiochip_add_data_with_key()
1625 return !strcmp(chip->label, name); in gpiochip_match_name()
2555 pin_range->range.name = chip->label; in gpiochip_add_pingroup_range()
2613 pin_range->range.name = chip->label; in gpiochip_add_pin_range()
2660 static int gpiod_request_commit(struct gpio_desc *desc, const char *label) in gpiod_request_commit() argument
2667 if (label) { in gpiod_request_commit()
2668 label = kstrdup_const(label, GFP_KERNEL); in gpiod_request_commit()
2669 if (!label) in gpiod_request_commit()
2680 desc_set_label(desc, label ? : "?"); in gpiod_request_commit()
2683 kfree_const(label); in gpiod_request_commit()
2700 kfree_const(label); in gpiod_request_commit()
2754 int gpiod_request(struct gpio_desc *desc, const char *label) in gpiod_request() argument
2763 ret = gpiod_request_commit(desc, label); in gpiod_request()
2796 kfree_const(desc->label); in gpiod_free_commit()
2844 return desc->label; in gpiochip_is_requested()
2870 const char *label, in gpiochip_request_own_desc() argument
2882 ret = gpiod_request_commit(desc, label); in gpiochip_request_own_desc()
2886 ret = gpiod_configure_flags(desc, label, lflags, dflags); in gpiochip_request_own_desc()
2888 chip_err(chip, "setup of own GPIO %s failed\n", label); in gpiochip_request_own_desc()
3806 kfree_const(desc->label); in gpiod_set_consumer_name()
3893 if (!desc->label) in gpiochip_lock_as_irq()
3920 if (desc->label && !strcmp(desc->label, "interrupt")) in gpiochip_unlock_as_irq()
4334 chip->label); in gpiod_find()
4604 const char *label) in fwnode_get_named_gpiod() argument
4617 label); in fwnode_get_named_gpiod()
4631 ret = gpiod_request(desc, label); in fwnode_get_named_gpiod()
4698 name, chip->label, hwnum, ret); in gpiod_hog()
4847 array_info->chip->label, array_info->size, in gpiod_get_array()
4955 gpio, gdesc->name ? gdesc->name : "", gdesc->label, in gpiolib_dbg_show()
5026 if (chip->label) in gpiolib_seq_show()
5027 seq_printf(s, ", %s", chip->label); in gpiolib_seq_show()