Lines Matching refs:ginfo
1644 struct snd_timer_ginfo *ginfo; in snd_timer_user_ginfo() local
1650 ginfo = memdup_user(_ginfo, sizeof(*ginfo)); in snd_timer_user_ginfo()
1651 if (IS_ERR(ginfo)) in snd_timer_user_ginfo()
1652 return PTR_ERR(ginfo); in snd_timer_user_ginfo()
1654 tid = ginfo->tid; in snd_timer_user_ginfo()
1655 memset(ginfo, 0, sizeof(*ginfo)); in snd_timer_user_ginfo()
1656 ginfo->tid = tid; in snd_timer_user_ginfo()
1660 ginfo->card = t->card ? t->card->number : -1; in snd_timer_user_ginfo()
1662 ginfo->flags |= SNDRV_TIMER_FLG_SLAVE; in snd_timer_user_ginfo()
1663 strscpy(ginfo->id, t->id, sizeof(ginfo->id)); in snd_timer_user_ginfo()
1664 strscpy(ginfo->name, t->name, sizeof(ginfo->name)); in snd_timer_user_ginfo()
1665 ginfo->resolution = t->hw.resolution; in snd_timer_user_ginfo()
1667 ginfo->resolution_min = t->hw.resolution_min; in snd_timer_user_ginfo()
1668 ginfo->resolution_max = t->hw.resolution_max; in snd_timer_user_ginfo()
1671 ginfo->clients++; in snd_timer_user_ginfo()
1677 if (err >= 0 && copy_to_user(_ginfo, ginfo, sizeof(*ginfo))) in snd_timer_user_ginfo()
1679 kfree(ginfo); in snd_timer_user_ginfo()