Lines Matching refs:kvalue
112 struct virtio_snd_ctl_value *kvalue; in virtsnd_kctl_get() local
114 size_t response_size = sizeof(struct virtio_snd_hdr) + sizeof(*kvalue); in virtsnd_kctl_get()
132 kvalue = (void *)((u8 *)virtsnd_ctl_msg_response(msg) + in virtsnd_kctl_get()
140 le32_to_cpu(kvalue->value.integer[i]); in virtsnd_kctl_get()
145 le64_to_cpu(kvalue->value.integer64[i]); in virtsnd_kctl_get()
150 le32_to_cpu(kvalue->value.enumerated[i]); in virtsnd_kctl_get()
153 memcpy(uvalue->value.bytes.data, kvalue->value.bytes, count); in virtsnd_kctl_get()
156 memcpy(&uvalue->value.iec958, &kvalue->value.iec958, in virtsnd_kctl_get()
185 struct virtio_snd_ctl_value *kvalue; in virtsnd_kctl_put() local
186 size_t request_size = sizeof(*hdr) + sizeof(*kvalue); in virtsnd_kctl_put()
198 kvalue = (void *)((u8 *)hdr + sizeof(*hdr)); in virtsnd_kctl_put()
204 kvalue->value.integer[i] = in virtsnd_kctl_put()
209 kvalue->value.integer64[i] = in virtsnd_kctl_put()
214 kvalue->value.enumerated[i] = in virtsnd_kctl_put()
218 memcpy(kvalue->value.bytes, uvalue->value.bytes.data, count); in virtsnd_kctl_put()
221 memcpy(&kvalue->value.iec958, &uvalue->value.iec958, in virtsnd_kctl_put()
222 sizeof(kvalue->value.iec958)); in virtsnd_kctl_put()