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 != ite->collection) 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()
983 struct its_collection *collection; in vgic_its_alloc_collection() local
988 collection = kzalloc(sizeof(*collection), GFP_KERNEL); in vgic_its_alloc_collection()
989 if (!collection) in vgic_its_alloc_collection()
992 collection->collection_id = coll_id; in vgic_its_alloc_collection()
993 collection->target_addr = COLLECTION_NOT_MAPPED; in vgic_its_alloc_collection()
995 list_add_tail(&collection->coll_list, &its->collection_list); in vgic_its_alloc_collection()
996 *colp = collection; in vgic_its_alloc_collection()
1003 struct its_collection *collection; in vgic_its_free_collection() local
1012 collection = find_collection(its, coll_id); in vgic_its_free_collection()
1013 if (!collection) in vgic_its_free_collection()
1017 if (ite->collection && in vgic_its_free_collection()
1018 ite->collection->collection_id == coll_id) in vgic_its_free_collection()
1019 ite->collection = NULL; in vgic_its_free_collection()
1021 list_del(&collection->coll_list); in vgic_its_free_collection()
1022 kfree(collection); in vgic_its_free_collection()
1027 struct its_collection *collection, in vgic_its_alloc_ite() argument
1037 ite->collection = collection; in vgic_its_alloc_ite()
1056 struct its_collection *collection, *new_coll = NULL; in vgic_its_cmd_handle_mapi() local
1079 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_mapi()
1080 if (!collection) { in vgic_its_cmd_handle_mapi()
1081 int ret = vgic_its_alloc_collection(its, &collection, coll_id); in vgic_its_cmd_handle_mapi()
1084 new_coll = collection; in vgic_its_cmd_handle_mapi()
1087 ite = vgic_its_alloc_ite(device, collection, event_id); in vgic_its_cmd_handle_mapi()
1094 if (its_is_collection_mapped(collection)) in vgic_its_cmd_handle_mapi()
1095 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_cmd_handle_mapi()
1217 struct its_collection *collection; in vgic_its_cmd_handle_mapc() local
1231 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_mapc()
1233 if (!collection) { in vgic_its_cmd_handle_mapc()
1236 ret = vgic_its_alloc_collection(its, &collection, in vgic_its_cmd_handle_mapc()
1240 collection->target_addr = target_addr; in vgic_its_cmd_handle_mapc()
1242 collection->target_addr = target_addr; in vgic_its_cmd_handle_mapc()
1243 update_affinity_collection(kvm, its, collection); in vgic_its_cmd_handle_mapc()
1306 struct its_collection *collection; in vgic_its_cmd_handle_invall() local
1312 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_invall()
1313 if (!its_is_collection_mapped(collection)) in vgic_its_cmd_handle_invall()
1316 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_cmd_handle_invall()
2132 ite->collection->collection_id; in vgic_its_save_ite()
2147 struct its_collection *collection; in vgic_its_restore_ite() local
2174 collection = find_collection(its, coll_id); in vgic_its_restore_ite()
2175 if (!collection) in vgic_its_restore_ite()
2178 ite = vgic_its_alloc_ite(dev, collection, event_id); in vgic_its_restore_ite()
2182 if (its_is_collection_mapped(collection)) in vgic_its_restore_ite()
2183 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_restore_ite()
2452 struct its_collection *collection, in vgic_its_save_cte() argument
2458 ((u64)collection->target_addr << KVM_ITS_CTE_RDBASE_SHIFT) | in vgic_its_save_cte()
2459 collection->collection_id); in vgic_its_save_cte()
2466 struct its_collection *collection; in vgic_its_restore_cte() local
2487 collection = find_collection(its, coll_id); in vgic_its_restore_cte()
2488 if (collection) in vgic_its_restore_cte()
2490 ret = vgic_its_alloc_collection(its, &collection, coll_id); in vgic_its_restore_cte()
2493 collection->target_addr = target_addr; in vgic_its_restore_cte()
2506 struct its_collection *collection; in vgic_its_save_collection_table() local
2516 list_for_each_entry(collection, &its->collection_list, coll_list) { in vgic_its_save_collection_table()
2517 ret = vgic_its_save_cte(its, collection, gpa, cte_esz); in vgic_its_save_collection_table()