Lines Matching refs:name
40 * name_show() - retrieve useful identifying name
44 * @buf: buffer to print the name into
54 return sysfs_emit(buf, "%s\n", trig->name);
57 static DEVICE_ATTR_RO(name);
65 static struct iio_trigger *__iio_trigger_find_by_name(const char *name);
75 /* Set the name used for the sysfs directory etc */
84 if (__iio_trigger_find_by_name(trig_info->name)) {
85 pr_err("Duplicate trigger name '%s'\n", trig_info->name);
134 /* Search for trigger by name, assuming iio_trigger_list_lock held */
135 static struct iio_trigger *__iio_trigger_find_by_name(const char *name)
140 if (!strcmp(iter->name, name))
146 static struct iio_trigger *iio_trigger_acquire_by_name(const char *name)
152 if (sysfs_streq(iter->name, name)) {
302 trig->name, CONFIG_IIO_CONSUMERS_PER_TRIGGER);
308 pf->type, pf->name,
385 pf->name = kvasprintf(GFP_KERNEL, fmt, vargs);
387 if (pf->name == NULL) {
402 kfree(pf->name);
412 * @buf: buffer where the current trigger name will be printed into
426 return sysfs_emit(buf, "%s\n", indio_dev->trig->name);
434 * @buf: string buffer that holds the name of the trigger
435 * @len: length of the trigger name held by buf
439 * name.
513 .name = "trigger",
536 kfree(trig->name);
587 trig->name = kvasprintf(GFP_KERNEL, fmt, vargs);
588 if (trig->name == NULL)
595 trig->subirq_chip.name = trig->name;
618 * @fmt: trigger name format. If it includes format
658 * @fmt: trigger name format. If it includes format