Lines Matching refs:t
335 struct snd_timer_instance *t = in snd_timer_open() local
338 if (t->flags & SNDRV_TIMER_IFLG_EXCLUSIVE) { in snd_timer_open()
1156 static void snd_timer_s_function(struct timer_list *t) in snd_timer_s_function() argument
1158 struct snd_timer_system_private *priv = from_timer(priv, t, in snd_timer_s_function()
1660 struct snd_timer *t; in snd_timer_user_ginfo() local
1672 t = snd_timer_find(&tid); in snd_timer_user_ginfo()
1673 if (t != NULL) { in snd_timer_user_ginfo()
1674 ginfo->card = t->card ? t->card->number : -1; in snd_timer_user_ginfo()
1675 if (t->hw.flags & SNDRV_TIMER_HW_SLAVE) in snd_timer_user_ginfo()
1677 strscpy(ginfo->id, t->id, sizeof(ginfo->id)); in snd_timer_user_ginfo()
1678 strscpy(ginfo->name, t->name, sizeof(ginfo->name)); in snd_timer_user_ginfo()
1679 spin_lock_irq(&t->lock); in snd_timer_user_ginfo()
1680 ginfo->resolution = snd_timer_hw_resolution(t); in snd_timer_user_ginfo()
1681 spin_unlock_irq(&t->lock); in snd_timer_user_ginfo()
1682 if (t->hw.resolution_min > 0) { in snd_timer_user_ginfo()
1683 ginfo->resolution_min = t->hw.resolution_min; in snd_timer_user_ginfo()
1684 ginfo->resolution_max = t->hw.resolution_max; in snd_timer_user_ginfo()
1686 list_for_each(p, &t->open_list_head) { in snd_timer_user_ginfo()
1701 struct snd_timer *t; in timer_set_gparams() local
1705 t = snd_timer_find(&gparams->tid); in timer_set_gparams()
1706 if (!t) { in timer_set_gparams()
1710 if (!list_empty(&t->open_list_head)) { in timer_set_gparams()
1714 if (!t->hw.set_period) { in timer_set_gparams()
1718 err = t->hw.set_period(t, gparams->period_num, gparams->period_den); in timer_set_gparams()
1739 struct snd_timer *t; in snd_timer_user_gstatus() local
1748 t = snd_timer_find(&tid); in snd_timer_user_gstatus()
1749 if (t != NULL) { in snd_timer_user_gstatus()
1750 spin_lock_irq(&t->lock); in snd_timer_user_gstatus()
1751 gstatus.resolution = snd_timer_hw_resolution(t); in snd_timer_user_gstatus()
1752 if (t->hw.precise_resolution) { in snd_timer_user_gstatus()
1753 t->hw.precise_resolution(t, &gstatus.resolution_num, in snd_timer_user_gstatus()
1759 spin_unlock_irq(&t->lock); in snd_timer_user_gstatus()
1818 struct snd_timer *t; in snd_timer_user_info() local
1824 t = tu->timeri->timer; in snd_timer_user_info()
1825 if (!t) in snd_timer_user_info()
1831 info->card = t->card ? t->card->number : -1; in snd_timer_user_info()
1832 if (t->hw.flags & SNDRV_TIMER_HW_SLAVE) in snd_timer_user_info()
1834 strscpy(info->id, t->id, sizeof(info->id)); in snd_timer_user_info()
1835 strscpy(info->name, t->name, sizeof(info->name)); in snd_timer_user_info()
1836 spin_lock_irq(&t->lock); in snd_timer_user_info()
1837 info->resolution = snd_timer_hw_resolution(t); in snd_timer_user_info()
1838 spin_unlock_irq(&t->lock); in snd_timer_user_info()
1850 struct snd_timer *t; in snd_timer_user_params() local
1856 t = tu->timeri->timer; in snd_timer_user_params()
1857 if (!t) in snd_timer_user_params()
1861 if (!(t->hw.flags & SNDRV_TIMER_HW_SLAVE)) { in snd_timer_user_params()
1900 spin_lock_irq(&t->lock); in snd_timer_user_params()
1910 spin_unlock_irq(&t->lock); in snd_timer_user_params()