Lines Matching defs:ue
891 struct user_element *ue = kcontrol->private_data;
893 *uinfo = ue->info;
900 struct user_element *ue = kcontrol->private_data;
902 memcpy(&ucontrol->value, ue->elem_data, ue->elem_data_size);
910 struct user_element *ue = kcontrol->private_data;
912 change = memcmp(&ucontrol->value, ue->elem_data, ue->elem_data_size) != 0;
914 memcpy(ue->elem_data, &ucontrol->value, ue->elem_data_size);
923 struct user_element *ue = kcontrol->private_data;
934 change = ue->tlv_data_size != size;
936 change = memcmp(ue->tlv_data, new_data, size);
937 kfree(ue->tlv_data);
938 ue->tlv_data = new_data;
939 ue->tlv_data_size = size;
941 if (! ue->tlv_data_size || ! ue->tlv_data)
943 if (size < ue->tlv_data_size)
945 if (copy_to_user(tlv, ue->tlv_data, ue->tlv_data_size))
953 struct user_element *ue = kcontrol->private_data;
954 if (ue->tlv_data)
955 kfree(ue->tlv_data);
956 kfree(ue);
966 struct user_element *ue;
1032 ue = kzalloc(sizeof(struct user_element) + private_size, GFP_KERNEL);
1033 if (ue == NULL)
1035 ue->info = *info;
1036 ue->info.access = 0;
1037 ue->elem_data = (char *)ue + sizeof(*ue);
1038 ue->elem_data_size = private_size;
1042 kfree(ue);
1045 _kctl->private_data = ue;