Lines Matching defs:gctl
741 struct snd_emu10k1_fx8010_control_gpr *gctl;
753 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
754 if (! gctl)
758 if (copy_gctl(emu, gctl, icode->gpr_add_controls, i,
763 if (snd_emu10k1_look_for_ctl(emu, &gctl->id))
765 gctl_id = (struct snd_ctl_elem_id *)&gctl->id;
781 if (copy_gctl(emu, gctl, icode->gpr_list_controls, i,
788 kfree(gctl);
808 struct snd_emu10k1_fx8010_control_gpr *gctl;
817 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
819 if (!val || !gctl || !nctl) {
825 if (copy_gctl(emu, gctl, icode->gpr_add_controls, i,
830 gctl_id = (struct snd_ctl_elem_id *)&gctl->id;
840 ctl = snd_emu10k1_look_for_ctl(emu, &gctl->id);
848 knew.tlv.p = copy_tlv((const unsigned int __user *)gctl->tlv, in_kernel);
855 nctl->vcount = gctl->vcount;
856 nctl->count = gctl->count;
858 nctl->gpr[j] = gctl->gpr[j];
859 nctl->value[j] = ~gctl->value[j]; /* inverted, we want to write new value in gpr_ctl_put() */
860 val->value.integer.value[j] = gctl->value[j];
862 nctl->min = gctl->min;
863 nctl->max = gctl->max;
864 nctl->translation = gctl->translation;
894 kfree(gctl);
928 struct snd_emu10k1_fx8010_control_gpr *gctl;
932 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
933 if (! gctl)
940 memset(gctl, 0, sizeof(*gctl));
942 gctl->id.iface = (__force int)id->iface;
943 strlcpy(gctl->id.name, id->name, sizeof(gctl->id.name));
944 gctl->id.index = id->index;
945 gctl->id.device = id->device;
946 gctl->id.subdevice = id->subdevice;
947 gctl->vcount = ctl->vcount;
948 gctl->count = ctl->count;
950 gctl->gpr[j] = ctl->gpr[j];
951 gctl->value[j] = ctl->value[j];
953 gctl->min = ctl->min;
954 gctl->max = ctl->max;
955 gctl->translation = ctl->translation;
957 gctl, i)) {
958 kfree(gctl);
965 kfree(gctl);