Lines Matching defs:gctl

771 	struct snd_emu10k1_fx8010_control_gpr *gctl;
783 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
784 if (! gctl)
788 if (copy_gctl(emu, gctl, icode->gpr_add_controls, i,
793 if (snd_emu10k1_look_for_ctl(emu, &gctl->id))
795 gctl_id = (struct snd_ctl_elem_id *)&gctl->id;
805 switch (gctl->translation) {
811 if (gctl->min != 0 || gctl->max != 100) {
818 if (gctl->min != 0 || gctl->max != 40) {
824 if (gctl->min != 0 || gctl->max != 1) {
836 if (copy_gctl(emu, gctl, icode->gpr_list_controls, i,
843 kfree(gctl);
863 struct snd_emu10k1_fx8010_control_gpr *gctl;
872 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
874 if (!val || !gctl || !nctl) {
880 if (copy_gctl(emu, gctl, icode->gpr_add_controls, i,
885 gctl_id = (struct snd_ctl_elem_id *)&gctl->id;
895 ctl = snd_emu10k1_look_for_ctl(emu, &gctl->id);
903 knew.tlv.p = copy_tlv((const unsigned int __user *)gctl->tlv, in_kernel);
910 nctl->vcount = gctl->vcount;
911 nctl->count = gctl->count;
913 nctl->gpr[j] = gctl->gpr[j];
914 nctl->value[j] = ~gctl->value[j]; /* inverted, we want to write new value in gpr_ctl_put() */
915 val->value.integer.value[j] = gctl->value[j];
917 nctl->min = gctl->min;
918 nctl->max = gctl->max;
919 nctl->translation = gctl->translation;
951 kfree(gctl);
983 struct snd_emu10k1_fx8010_control_gpr *gctl;
987 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
988 if (! gctl)
995 memset(gctl, 0, sizeof(*gctl));
997 gctl->id.iface = (__force int)id->iface;
998 strscpy(gctl->id.name, id->name, sizeof(gctl->id.name));
999 gctl->id.index = id->index;
1000 gctl->id.device = id->device;
1001 gctl->id.subdevice = id->subdevice;
1002 gctl->vcount = ctl->vcount;
1003 gctl->count = ctl->count;
1005 gctl->gpr[j] = ctl->gpr[j];
1006 gctl->value[j] = ctl->value[j];
1008 gctl->min = ctl->min;
1009 gctl->max = ctl->max;
1010 gctl->translation = ctl->translation;
1012 gctl, i)) {
1013 kfree(gctl);
1020 kfree(gctl);