Lines Matching refs:access
49 unsigned int access; member
82 static inline unsigned int access_to_group(unsigned int access) in access_to_group() argument
84 return ((access & SNDRV_CTL_ELEM_ACCESS_LED_MASK) >> in access_to_group()
93 static struct snd_ctl_led *snd_ctl_led_get_by_access(unsigned int access) in snd_ctl_led_get_by_access() argument
95 unsigned int group = access_to_group(access); in snd_ctl_led_get_by_access()
138 static void snd_ctl_led_set_state(struct snd_card *card, unsigned int access, in snd_ctl_led_set_state() argument
146 led = snd_ctl_led_get_by_access(access); in snd_ctl_led_set_state()
164 lctl->access = access; in snd_ctl_led_set_state()
201 unsigned int access) in snd_ctl_led_remove() argument
208 if (lctl && (access == 0 || access != lctl->access)) { in snd_ctl_led_remove()
209 ret = lctl->access; in snd_ctl_led_remove()
220 unsigned int access, access2; in snd_ctl_led_notify() local
223 access = snd_ctl_led_remove(kctl, ioff, 0); in snd_ctl_led_notify()
224 if (access) in snd_ctl_led_notify()
225 snd_ctl_led_set_state(card, access, NULL, 0); in snd_ctl_led_notify()
228 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK; in snd_ctl_led_notify()
229 access2 = snd_ctl_led_remove(kctl, ioff, access); in snd_ctl_led_notify()
232 if (access) in snd_ctl_led_notify()
233 snd_ctl_led_set_state(card, access, kctl, ioff); in snd_ctl_led_notify()
237 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK; in snd_ctl_led_notify()
238 if (access) in snd_ctl_led_notify()
239 snd_ctl_led_set_state(card, access, kctl, ioff); in snd_ctl_led_notify()
251 unsigned int ioff, access, new_access; in DEFINE_FREE() local
262 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK; in DEFINE_FREE()
263 if (access != 0 && access != group_to_access(group)) in DEFINE_FREE()
265 new_access = vd->access & ~SNDRV_CTL_ELEM_ACCESS_LED_MASK; in DEFINE_FREE()
268 if (new_access != vd->access) { in DEFINE_FREE()
269 vd->access = new_access; in DEFINE_FREE()
322 vd->access &= ~group_to_access(group); in snd_ctl_led_reset()