Searched refs:vmaster (Results 1 - 15 of 15) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_drv.c992 struct vmw_master *vmaster = vmw_postclose() local
995 ttm_lock_set_kill(&vmaster->lock, true, SIGTERM); vmw_postclose()
996 ttm_vt_unlock(&vmaster->lock); vmw_postclose()
1034 struct vmw_master *vmaster; vmw_master_check() local
1070 vmaster = vmw_master(file_priv->master); vmw_master_check()
1071 ret = ttm_read_lock(&vmaster->lock, true); vmw_master_check()
1073 vmaster = ERR_PTR(ret); vmw_master_check()
1075 return vmaster; vmw_master_check()
1086 struct vmw_master *vmaster; vmw_generic_ioctl() local
1118 vmaster = vmw_master_check(dev, file_priv, flags); vmw_generic_ioctl()
1119 if (IS_ERR(vmaster)) { vmw_generic_ioctl()
1120 ret = PTR_ERR(vmaster); vmw_generic_ioctl()
1129 if (vmaster) vmw_generic_ioctl()
1130 ttm_read_unlock(&vmaster->lock); vmw_generic_ioctl()
1159 static void vmw_master_init(struct vmw_master *vmaster) vmw_master_init() argument
1161 ttm_lock_init(&vmaster->lock); vmw_master_init()
1167 struct vmw_master *vmaster; vmw_master_create() local
1169 vmaster = kzalloc(sizeof(*vmaster), GFP_KERNEL); vmw_master_create()
1170 if (unlikely(vmaster == NULL)) vmw_master_create()
1173 vmw_master_init(vmaster); vmw_master_create()
1174 ttm_lock_set_kill(&vmaster->lock, true, SIGTERM); vmw_master_create()
1175 master->driver_priv = vmaster; vmw_master_create()
1183 struct vmw_master *vmaster = vmw_master(master); vmw_master_destroy() local
1186 kfree(vmaster); vmw_master_destroy()
1196 struct vmw_master *vmaster = vmw_master(file_priv->master); vmw_master_set() local
1209 ttm_lock_set_kill(&vmaster->lock, false, SIGTERM); vmw_master_set()
1211 ttm_vt_unlock(&vmaster->lock); vmw_master_set()
1216 dev_priv->active_master = vmaster; vmw_master_set()
1227 struct vmw_master *vmaster = vmw_master(file_priv->master); vmw_master_drop() local
1236 ret = ttm_vt_lock(&vmaster->lock, false, vmw_fp->tfile); vmw_master_drop()
1243 ttm_lock_set_kill(&vmaster->lock, false, SIGTERM); vmw_master_drop()
H A Dvmwgfx_drv.h912 void vmw_kms_idle_workqueues(struct vmw_master *vmaster);
/linux-4.4.14/sound/core/
H A DMakefile13 snd-$(CONFIG_SND_VMASTER) += vmaster.o
H A Dvmaster.c104 pr_err("ALSA: vmaster: invalid slave element\n"); slave_init()
382 * After creating a vmaster element, you can add the slave controls
435 * snd_ctl_add_vmaster_hook - Add a hook to a vmaster control
436 * @kcontrol: vmaster kctl element
440 * Adds the given hook to the vmaster control element so that it's called
457 * snd_ctl_sync_vmaster - Sync the vmaster slaves and hook
458 * @kcontrol: vmaster kctl element
462 * to synchronize with the current value of the given vmaster element.
/linux-4.4.14/sound/pci/ca0106/
H A Dca0106_mixer.c793 struct snd_kcontrol *vmaster; snd_ca0106_mixer() local
862 vmaster = snd_ctl_make_virtual_master("Master Playback Volume", snd_ca0106_mixer()
864 if (!vmaster) snd_ca0106_mixer()
866 err = snd_ctl_add(card, vmaster); snd_ca0106_mixer()
869 add_slaves(card, vmaster, slave_vols); snd_ca0106_mixer()
872 vmaster = snd_ctl_make_virtual_master("Master Playback Switch", snd_ca0106_mixer()
874 if (!vmaster) snd_ca0106_mixer()
876 err = snd_ctl_add(card, vmaster); snd_ca0106_mixer()
879 add_slaves(card, vmaster, slave_sws); snd_ca0106_mixer()
/linux-4.4.14/sound/pci/ice1712/
H A Djuli.c68 * vmaster control.
455 struct snd_kcontrol *vmaster; juli_add_controls() local
468 vmaster = snd_ctl_make_virtual_master("Master Playback Volume", juli_add_controls()
470 if (!vmaster) juli_add_controls()
472 add_slaves(ice->card, vmaster, slave_vols); juli_add_controls()
473 err = snd_ctl_add(ice->card, vmaster); juli_add_controls()
H A Dquartet.c810 struct snd_kcontrol *vmaster; qtet_add_controls() local
822 vmaster = snd_ctl_make_virtual_master("Master Playback Volume", qtet_add_controls()
824 if (!vmaster) qtet_add_controls()
826 add_slaves(ice->card, vmaster, slave_vols); qtet_add_controls()
827 err = snd_ctl_add(ice->card, vmaster); qtet_add_controls()
/linux-4.4.14/sound/usb/6fire/
H A Dcontrol.c528 struct snd_kcontrol *vmaster = usb6fire_control_add_virtual() local
532 if (!vmaster) usb6fire_control_add_virtual()
534 ret = snd_ctl_add(card, vmaster); usb6fire_control_add_virtual()
546 ret = snd_ctl_add_slave(vmaster, control); usb6fire_control_add_virtual()
/linux-4.4.14/include/sound/
H A Dcontrol.h199 * @master: vmaster element
224 * @master: vmaster element
/linux-4.4.14/sound/pci/hda/
H A Dhda_generic.h225 unsigned int vmaster_mute_enum:1; /* add vmaster mute mode enum */
H A Dhda_codec.c1757 codec_err(codec, "Mismatching dB step for vmaster slave (%d!=%d)\n", get_kctl_0dB_offset()
1807 * @name: vmaster control name
1812 * @ctl_ret: store the vmaster kcontrol in return
1865 * mute-LED control using vmaster
1908 /* meta hook to call each driver's vmaster hook */ vmaster_hook()
1919 * snd_hda_add_vmaster_hook - Add a vmaster hook for mute-LED
1921 * @hook: the vmaster hook object
1924 * Add a mute-LED hook with the given vmaster switch kctl.
1949 * snd_hda_sync_vmaster_hook - Sync vmaster hook
1950 * @hook: the vmaster hook
1959 /* don't call vmaster hook in the destructor since it might have snd_hda_sync_vmaster_hook()
H A Dpatch_analog.c141 /* follow EAPD via vmaster hook */ ad_vmaster_eapd_hook()
H A Dhda_generic.c1149 * use it master (or "PCM" if a vmaster hook is present) get_line_out_pfx()
4359 /* sync the whole vmaster slaves to reflect the new auto-mute status */ call_update_outputs()
H A Dpatch_sigmatel.c424 /* vmaster hook to update mute LED */ stac_vmaster_hook()
H A Dpatch_realtek.c3339 /* turn on/off mute LED via GPIO per vmaster hook */ alc_fixup_gpio_mute_hook()

Completed in 445 milliseconds