Lines Matching refs:collection
148 struct its_collection *collection; member
264 struct its_collection *collection; in find_collection() local
266 list_for_each_entry(collection, &its->collection_list, coll_list) { in find_collection()
267 if (coll_id == collection->collection_id) in find_collection()
268 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()
558 if (!ite || !its_is_collection_mapped(ite->collection)) in vgic_its_resolve_lpi()
561 vcpu = kvm_get_vcpu(kvm, ite->collection->target_addr); in vgic_its_resolve_lpi()
706 if (ite && ite->collection) { in vgic_its_cmd_handle_discard()
731 struct its_collection *collection; in vgic_its_cmd_handle_movi() local
737 if (!its_is_collection_mapped(ite->collection)) in vgic_its_cmd_handle_movi()
740 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_movi()
741 if (!its_is_collection_mapped(collection)) in vgic_its_cmd_handle_movi()
744 ite->collection = collection; in vgic_its_cmd_handle_movi()
745 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_cmd_handle_movi()
832 struct its_collection *collection; in vgic_its_alloc_collection() local
837 collection = kzalloc(sizeof(*collection), GFP_KERNEL); in vgic_its_alloc_collection()
838 if (!collection) in vgic_its_alloc_collection()
841 collection->collection_id = coll_id; in vgic_its_alloc_collection()
842 collection->target_addr = COLLECTION_NOT_MAPPED; in vgic_its_alloc_collection()
844 list_add_tail(&collection->coll_list, &its->collection_list); in vgic_its_alloc_collection()
845 *colp = collection; in vgic_its_alloc_collection()
852 struct its_collection *collection; in vgic_its_free_collection() local
861 collection = find_collection(its, coll_id); in vgic_its_free_collection()
862 if (!collection) in vgic_its_free_collection()
866 if (ite->collection && in vgic_its_free_collection()
867 ite->collection->collection_id == coll_id) in vgic_its_free_collection()
868 ite->collection = NULL; in vgic_its_free_collection()
870 list_del(&collection->coll_list); in vgic_its_free_collection()
871 kfree(collection); in vgic_its_free_collection()
876 struct its_collection *collection, in vgic_its_alloc_ite() argument
886 ite->collection = collection; in vgic_its_alloc_ite()
905 struct its_collection *collection, *new_coll = NULL; in vgic_its_cmd_handle_mapi() local
928 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_mapi()
929 if (!collection) { in vgic_its_cmd_handle_mapi()
930 int ret = vgic_its_alloc_collection(its, &collection, coll_id); in vgic_its_cmd_handle_mapi()
933 new_coll = collection; in vgic_its_cmd_handle_mapi()
936 ite = vgic_its_alloc_ite(device, collection, event_id); in vgic_its_cmd_handle_mapi()
943 if (its_is_collection_mapped(collection)) in vgic_its_cmd_handle_mapi()
944 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_cmd_handle_mapi()
1064 struct its_collection *collection; in vgic_its_cmd_handle_mapc() local
1077 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_mapc()
1079 if (!collection) { in vgic_its_cmd_handle_mapc()
1082 ret = vgic_its_alloc_collection(its, &collection, in vgic_its_cmd_handle_mapc()
1086 collection->target_addr = target_addr; in vgic_its_cmd_handle_mapc()
1088 collection->target_addr = target_addr; in vgic_its_cmd_handle_mapc()
1089 update_affinity_collection(kvm, its, collection); in vgic_its_cmd_handle_mapc()
1152 struct its_collection *collection; in vgic_its_cmd_handle_invall() local
1158 collection = find_collection(its, coll_id); in vgic_its_cmd_handle_invall()
1159 if (!its_is_collection_mapped(collection)) in vgic_its_cmd_handle_invall()
1162 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_cmd_handle_invall()
1936 ite->collection->collection_id; in vgic_its_save_ite()
1951 struct its_collection *collection; in vgic_its_restore_ite() local
1978 collection = find_collection(its, coll_id); in vgic_its_restore_ite()
1979 if (!collection) in vgic_its_restore_ite()
1982 ite = vgic_its_alloc_ite(dev, collection, event_id); in vgic_its_restore_ite()
1986 if (its_is_collection_mapped(collection)) in vgic_its_restore_ite()
1987 vcpu = kvm_get_vcpu(kvm, collection->target_addr); in vgic_its_restore_ite()
2256 struct its_collection *collection, in vgic_its_save_cte() argument
2262 ((u64)collection->target_addr << KVM_ITS_CTE_RDBASE_SHIFT) | in vgic_its_save_cte()
2263 collection->collection_id); in vgic_its_save_cte()
2270 struct its_collection *collection; in vgic_its_restore_cte() local
2290 collection = find_collection(its, coll_id); in vgic_its_restore_cte()
2291 if (collection) in vgic_its_restore_cte()
2293 ret = vgic_its_alloc_collection(its, &collection, coll_id); in vgic_its_restore_cte()
2296 collection->target_addr = target_addr; in vgic_its_restore_cte()
2309 struct its_collection *collection; in vgic_its_save_collection_table() local
2319 list_for_each_entry(collection, &its->collection_list, coll_list) { in vgic_its_save_collection_table()
2320 ret = vgic_its_save_cte(its, collection, gpa, cte_esz); in vgic_its_save_collection_table()