• Home
  • Raw
  • Download

Lines Matching refs:vd

121 			if (control->vd[idx].owner == ctl)  in snd_ctl_release()
122 control->vd[idx].owner = NULL; in snd_ctl_release()
206 *kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL); in snd_ctl_new()
211 (*kctl)->vd[idx].access = access; in snd_ctl_new()
212 (*kctl)->vd[idx].owner = file; in snd_ctl_new()
531 if (!(kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_USER)) { in snd_ctl_remove_user_ctl()
536 if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) { in snd_ctl_remove_user_ctl()
565 struct snd_kcontrol_volatile *vd; in snd_ctl_activate_id() local
576 vd = &kctl->vd[index_offset]; in snd_ctl_activate_id()
579 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE)) in snd_ctl_activate_id()
581 vd->access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_ctl_activate_id()
583 if (vd->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE) in snd_ctl_activate_id()
585 vd->access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_ctl_activate_id()
965 struct snd_kcontrol_volatile *vd; in __snd_ctl_elem_info() local
976 vd = &kctl->vd[index_offset]; in __snd_ctl_elem_info()
978 info->access = vd->access; in __snd_ctl_elem_info()
979 if (vd->owner) { in __snd_ctl_elem_info()
981 if (vd->owner == ctl) in __snd_ctl_elem_info()
983 info->owner = pid_vnr(vd->owner->pid); in __snd_ctl_elem_info()
1036 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_read() local
1047 vd = &kctl->vd[index_offset]; in snd_ctl_elem_read()
1048 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_READ) || kctl->get == NULL) in snd_ctl_elem_read()
1110 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_write() local
1119 vd = &kctl->vd[index_offset]; in snd_ctl_elem_write()
1120 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_WRITE) || kctl->put == NULL || in snd_ctl_elem_write()
1121 (file && vd->owner && vd->owner != file)) { in snd_ctl_elem_write()
1173 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_lock() local
1183 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_lock()
1184 if (vd->owner != NULL) in snd_ctl_elem_lock()
1187 vd->owner = file; in snd_ctl_elem_lock()
1201 struct snd_kcontrol_volatile *vd; in snd_ctl_elem_unlock() local
1211 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_unlock()
1212 if (vd->owner == NULL) in snd_ctl_elem_unlock()
1214 else if (vd->owner != file) in snd_ctl_elem_unlock()
1217 vd->owner = NULL; in snd_ctl_elem_unlock()
1328 kctl->vd[i].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ; in replace_user_tlv()
1609 struct snd_kcontrol_volatile *vd = &kctl->vd[snd_ctl_get_ioff(kctl, id)]; in call_tlv_handler() local
1614 if (op_flag == pairs[i].op && (vd->access & pairs[i].perm)) in call_tlv_handler()
1625 vd->owner != NULL && vd->owner != file) in call_tlv_handler()
1634 struct snd_kcontrol_volatile *vd = &kctl->vd[snd_ctl_get_ioff(kctl, id)]; in read_tlv_buf() local
1637 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ)) in read_tlv_buf()
1662 struct snd_kcontrol_volatile *vd; in snd_ctl_tlv_ioctl() local
1684 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_tlv_ioctl()
1686 if (vd->access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) { in snd_ctl_tlv_ioctl()