Lines Matching refs:ioff
139 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_set_state() argument
156 if (lctl->kctl == kctl && lctl->index_offset == ioff) in snd_ctl_led_set_state()
166 lctl->index_offset = ioff; in snd_ctl_led_set_state()
185 static struct snd_ctl_led_ctl *snd_ctl_led_find(struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_find() argument
194 if (lctl->kctl == kctl && lctl->index_offset == ioff) in snd_ctl_led_find()
200 static unsigned int snd_ctl_led_remove(struct snd_kcontrol *kctl, unsigned int ioff, in snd_ctl_led_remove() argument
207 lctl = snd_ctl_led_find(kctl, ioff); in snd_ctl_led_remove()
217 struct snd_kcontrol *kctl, unsigned int ioff) in snd_ctl_led_notify() argument
223 access = snd_ctl_led_remove(kctl, ioff, 0); in snd_ctl_led_notify()
227 vd = &kctl->vd[ioff]; in snd_ctl_led_notify()
229 access2 = snd_ctl_led_remove(kctl, ioff, access); in snd_ctl_led_notify()
233 snd_ctl_led_set_state(card, access, kctl, ioff); in snd_ctl_led_notify()
236 vd = &kctl->vd[ioff]; in snd_ctl_led_notify()
239 snd_ctl_led_set_state(card, access, kctl, ioff); in snd_ctl_led_notify()
250 unsigned int ioff, access, new_access; in DEFINE_FREE() local
260 ioff = snd_ctl_get_ioff(kctl, id); in DEFINE_FREE()
261 vd = &kctl->vd[ioff]; in DEFINE_FREE()
270 snd_ctl_led_notify(card, SNDRV_CTL_EVENT_MASK_INFO, kctl, ioff); in DEFINE_FREE()
335 unsigned int ioff; in snd_ctl_led_register() local
344 for (ioff = 0; ioff < kctl->count; ioff++) in snd_ctl_led_register()
345 snd_ctl_led_notify(card, SNDRV_CTL_EVENT_MASK_VALUE, kctl, ioff); in snd_ctl_led_register()