Lines Matching refs:collection
144 struct its_collection *collection; member
261 struct its_collection *collection; in find_collection() local
263 list_for_each_entry(collection, &its->collection_list, coll_list) { in find_collection()
264 if (coll_id == collection->collection_id) in find_collection()
265 return collection; in find_collection()
391 if (!its_is_collection_mapped(ite->collection)) in update_affinity_ite()
394 vcpu = kvm_get_vcpu(kvm, ite->collection->target_addr); in update_affinity_ite()
409 if (ite->collection != coll) in update_affinity_collection()
679 if (!ite || !its_is_collection_mapped(ite->collection)) in vgic_its_resolve_lpi()
682 vcpu = kvm_get_vcpu(kvm, ite->collection->target_addr); in vgic_its_resolve_lpi()
849 if (ite && its_is_collection_mapped(ite->collection)) { in vgic_its_cmd_handle_discard()
876 struct its_collection *collection; in vgic_its_cmd_handle_movi() local
882 if (!its_is_collection_mapped(ite->collection)) in vgic_its_cmd_handle_movi()
885 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_movi()
886 if (!its_is_collection_mapped(collection)) in vgic_its_cmd_handle_movi()
889 ite->collection = collection; in vgic_its_cmd_handle_movi()
890 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_cmd_handle_movi()
1010 struct its_collection *collection; in vgic_its_alloc_collection() local
1012 collection = kzalloc(sizeof(*collection), GFP_KERNEL_ACCOUNT); in vgic_its_alloc_collection()
1013 if (!collection) in vgic_its_alloc_collection()
1016 collection->collection_id = coll_id; in vgic_its_alloc_collection()
1017 collection->target_addr = COLLECTION_NOT_MAPPED; in vgic_its_alloc_collection()
1019 list_add_tail(&collection->coll_list, &its->collection_list); in vgic_its_alloc_collection()
1020 *colp = collection; in vgic_its_alloc_collection()
1027 struct its_collection *collection; in vgic_its_free_collection() local
1036 collection = find_collection(its, coll_id); in vgic_its_free_collection()
1037 if (!collection) in vgic_its_free_collection()
1041 if (ite->collection && in vgic_its_free_collection()
1042 ite->collection->collection_id == coll_id) in vgic_its_free_collection()
1043 ite->collection = NULL; in vgic_its_free_collection()
1045 list_del(&collection->coll_list); in vgic_its_free_collection()
1046 kfree(collection); in vgic_its_free_collection()
1051 struct its_collection *collection, in vgic_its_alloc_ite() argument
1061 ite->collection = collection; in vgic_its_alloc_ite()
1080 struct its_collection *collection, *new_coll = NULL; in vgic_its_cmd_handle_mapi() local
1103 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_mapi()
1104 if (!collection) { in vgic_its_cmd_handle_mapi()
1110 ret = vgic_its_alloc_collection(its, &collection, coll_id); in vgic_its_cmd_handle_mapi()
1113 new_coll = collection; in vgic_its_cmd_handle_mapi()
1116 ite = vgic_its_alloc_ite(device, collection, event_id); in vgic_its_cmd_handle_mapi()
1123 if (its_is_collection_mapped(collection)) in vgic_its_cmd_handle_mapi()
1124 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_cmd_handle_mapi()
1246 struct its_collection *collection; in vgic_its_cmd_handle_mapc() local
1260 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_mapc()
1262 if (!collection) { in vgic_its_cmd_handle_mapc()
1269 ret = vgic_its_alloc_collection(its, &collection, in vgic_its_cmd_handle_mapc()
1273 collection->target_addr = target_addr; in vgic_its_cmd_handle_mapc()
1275 collection->target_addr = target_addr; in vgic_its_cmd_handle_mapc()
1276 update_affinity_collection(kvm, its, collection); in vgic_its_cmd_handle_mapc()
1378 struct its_collection *collection; in vgic_its_cmd_handle_invall() local
1381 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_invall()
1382 if (!its_is_collection_mapped(collection)) in vgic_its_cmd_handle_invall()
1385 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_cmd_handle_invall()
2188 ite->collection->collection_id; in vgic_its_save_ite()
2203 struct its_collection *collection; in vgic_its_restore_ite() local
2230 collection = find_collection(its, coll_id); in vgic_its_restore_ite()
2231 if (!collection) in vgic_its_restore_ite()
2237 ite = vgic_its_alloc_ite(dev, collection, event_id); in vgic_its_restore_ite()
2241 if (its_is_collection_mapped(collection)) in vgic_its_restore_ite()
2242 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_restore_ite()
2520 struct its_collection *collection, in vgic_its_save_cte() argument
2526 ((u64)collection->target_addr << KVM_ITS_CTE_RDBASE_SHIFT) | in vgic_its_save_cte()
2527 collection->collection_id); in vgic_its_save_cte()
2539 struct its_collection *collection; in vgic_its_restore_cte() local
2560 collection = find_collection(its, coll_id); in vgic_its_restore_cte()
2561 if (collection) in vgic_its_restore_cte()
2567 ret = vgic_its_alloc_collection(its, &collection, coll_id); in vgic_its_restore_cte()
2570 collection->target_addr = target_addr; in vgic_its_restore_cte()
2583 struct its_collection *collection; in vgic_its_save_collection_table() local
2593 list_for_each_entry(collection, &its->collection_list, coll_list) { in vgic_its_save_collection_table()
2594 ret = vgic_its_save_cte(its, collection, gpa, cte_esz); in vgic_its_save_collection_table()