Lines Matching refs:priv
970 struct snd_timer_system_private *priv = timer->private_data; in snd_timer_s_function() local
972 if (time_after(jiff, priv->last_expires)) in snd_timer_s_function()
973 priv->correction += (long)jiff - (long)priv->last_expires; in snd_timer_s_function()
974 snd_timer_interrupt(timer, (long)jiff - (long)priv->last_jiffies); in snd_timer_s_function()
979 struct snd_timer_system_private *priv; in snd_timer_s_start() local
982 priv = (struct snd_timer_system_private *) timer->private_data; in snd_timer_s_start()
983 njiff = (priv->last_jiffies = jiffies); in snd_timer_s_start()
984 if (priv->correction > timer->sticks - 1) { in snd_timer_s_start()
985 priv->correction -= timer->sticks - 1; in snd_timer_s_start()
988 njiff += timer->sticks - priv->correction; in snd_timer_s_start()
989 priv->correction = 0; in snd_timer_s_start()
991 priv->last_expires = priv->tlist.expires = njiff; in snd_timer_s_start()
992 add_timer(&priv->tlist); in snd_timer_s_start()
998 struct snd_timer_system_private *priv; in snd_timer_s_stop() local
1001 priv = (struct snd_timer_system_private *) timer->private_data; in snd_timer_s_stop()
1002 del_timer(&priv->tlist); in snd_timer_s_stop()
1004 if (time_before(jiff, priv->last_expires)) in snd_timer_s_stop()
1005 timer->sticks = priv->last_expires - jiff; in snd_timer_s_stop()
1008 priv->correction = 0; in snd_timer_s_stop()
1029 struct snd_timer_system_private *priv; in snd_timer_register_system() local
1037 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in snd_timer_register_system()
1038 if (priv == NULL) { in snd_timer_register_system()
1042 init_timer(&priv->tlist); in snd_timer_register_system()
1043 priv->tlist.function = snd_timer_s_function; in snd_timer_register_system()
1044 priv->tlist.data = (unsigned long) timer; in snd_timer_register_system()
1045 timer->private_data = priv; in snd_timer_register_system()