Lines Matching defs:kv
122 struct kvm_vfio *kv = dev->private;
126 list_for_each_entry(kvf, &kv->file_list, node) {
133 if (noncoherent != kv->noncoherent) {
134 kv->noncoherent = noncoherent;
136 if (kv->noncoherent)
145 struct kvm_vfio *kv = dev->private;
160 mutex_lock(&kv->lock);
162 list_for_each_entry(kvf, &kv->file_list, node) {
176 list_add_tail(&kvf->node, &kv->file_list);
183 mutex_unlock(&kv->lock);
191 struct kvm_vfio *kv = dev->private;
202 mutex_lock(&kv->lock);
204 list_for_each_entry(kvf, &kv->file_list, node) {
222 mutex_unlock(&kv->lock);
234 struct kvm_vfio *kv = dev->private;
248 mutex_lock(&kv->lock);
250 list_for_each_entry(kvf, &kv->file_list, node) {
268 mutex_unlock(&kv->lock);
334 struct kvm_vfio *kv = dev->private;
337 list_for_each_entry_safe(kvf, tmp, &kv->file_list, node) {
350 kfree(kv);
367 struct kvm_vfio *kv;
376 kv = kzalloc(sizeof(*kv), GFP_KERNEL_ACCOUNT);
377 if (!kv)
380 INIT_LIST_HEAD(&kv->file_list);
381 mutex_init(&kv->lock);
383 dev->private = kv;