Lines Matching refs:access

49 	unsigned int access;  member
81 static inline unsigned int access_to_group(unsigned int access) in access_to_group() argument
83 return ((access & SNDRV_CTL_ELEM_ACCESS_LED_MASK) >> in access_to_group()
92 static struct snd_ctl_led *snd_ctl_led_get_by_access(unsigned int access) in snd_ctl_led_get_by_access() argument
94 unsigned int group = access_to_group(access); in snd_ctl_led_get_by_access()
137 static void snd_ctl_led_set_state(struct snd_card *card, unsigned int access, in snd_ctl_led_set_state() argument
145 led = snd_ctl_led_get_by_access(access); in snd_ctl_led_set_state()
165 lctl->access = access; in snd_ctl_led_set_state()
199 unsigned int access) in snd_ctl_led_remove() argument
206 if (lctl && (access == 0 || access != lctl->access)) { in snd_ctl_led_remove()
207 ret = lctl->access; in snd_ctl_led_remove()
219 unsigned int access, access2; in snd_ctl_led_notify() local
222 access = snd_ctl_led_remove(kctl, ioff, 0); in snd_ctl_led_notify()
223 if (access) in snd_ctl_led_notify()
224 snd_ctl_led_set_state(card, access, NULL, 0); in snd_ctl_led_notify()
227 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK; in snd_ctl_led_notify()
228 access2 = snd_ctl_led_remove(kctl, ioff, access); in snd_ctl_led_notify()
231 if (access) in snd_ctl_led_notify()
232 snd_ctl_led_set_state(card, access, kctl, ioff); in snd_ctl_led_notify()
236 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK; in snd_ctl_led_notify()
237 if (access) in snd_ctl_led_notify()
238 snd_ctl_led_set_state(card, access, kctl, ioff); in snd_ctl_led_notify()
248 unsigned int ioff, access, new_access; in snd_ctl_led_set_id() local
258 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK; in snd_ctl_led_set_id()
259 if (access != 0 && access != group_to_access(group)) { in snd_ctl_led_set_id()
263 new_access = vd->access & ~SNDRV_CTL_ELEM_ACCESS_LED_MASK; in snd_ctl_led_set_id()
266 if (new_access != vd->access) { in snd_ctl_led_set_id()
267 vd->access = new_access; in snd_ctl_led_set_id()
336 vd->access &= ~group_to_access(group); in snd_ctl_led_reset()