Lines Matching defs:name
295 if (ncontrol->name) {
296 strscpy(kctl->id.name, ncontrol->name, sizeof(kctl->id.name));
297 if (strcmp(ncontrol->name, kctl->id.name) != 0)
298 pr_warn("ALSA: Control name '%s' truncated to '%s'\n",
299 ncontrol->name, kctl->id.name);
373 !strncmp(kctl->id.name, id->name, sizeof(kctl->id.name)) &&
380 * It's for the name lookup, hence the numid is excluded.
392 for (i = 0; i < SNDRV_CTL_ELEM_ID_NAME_MAXLEN && id->name[i]; i++)
393 h = MULTIPLIER * h + id->name[i];
417 id.iface, id.name, id.index);
481 id.iface, id.device, id.subdevice, id.name,
761 * @name: the new name
763 * Renames the specified control on the card to the new name.
768 const char *name)
773 if (strscpy(kctl->id.name, name, sizeof(kctl->id.name)) < 0)
774 pr_warn("ALSA: Renamed control new name '%s' truncated to '%s'\n",
775 name, kctl->id.name);
909 strscpy(info->name, card->shortname, sizeof(info->name));
988 info->id.subdevice, info->id.name,
998 info->id.subdevice, info->id.name,
1007 info->id.subdevice, info->id.name,
1079 control->id.subdevice, control->id.name,
1090 control->id.subdevice, control->id.name,
1268 control->id.subdevice, control->id.name,
1463 strcpy(uinfo->value.enumerated.name, names);
1648 if (!*info->id.name)
1650 if (strnlen(info->id.name, sizeof(info->id.name)) >= sizeof(info->id.name))
2458 WARN(strlen(names[info->value.enumerated.item]) >= sizeof(info->value.enumerated.name),
2459 "ALSA: too long item name '%s'\n",
2461 strscpy(info->value.enumerated.name,
2463 sizeof(info->value.enumerated.name));