Lines Matching refs:new_mapping

5866 		struct necp_string_id_mapping * __single new_mapping = NULL;  in necp_create_string_to_id_mapping()  local
5867 new_mapping = kalloc_type(struct necp_string_id_mapping, in necp_create_string_to_id_mapping()
5874 new_mapping->string = __unsafe_null_terminated_from_indexable(buffer, &buffer[length - 1]); in necp_create_string_to_id_mapping()
5875 new_mapping->id = necp_get_new_string_id(); in necp_create_string_to_id_mapping()
5876 os_ref_init(&new_mapping->refcount, &necp_refgrp); in necp_create_string_to_id_mapping()
5877 LIST_INSERT_HEAD(list, new_mapping, chain); in necp_create_string_to_id_mapping()
5878 string_id = new_mapping->id; in necp_create_string_to_id_mapping()
5880 kfree_type(struct necp_string_id_mapping, new_mapping); in necp_create_string_to_id_mapping()
5881 new_mapping = NULL; in necp_create_string_to_id_mapping()
6679 struct necp_uuid_id_mapping *new_mapping = NULL; in necp_create_uuid_app_id_mapping() local
6680 new_mapping = kalloc_type(struct necp_uuid_id_mapping, in necp_create_uuid_app_id_mapping()
6682 uuid_copy(new_mapping->uuid, uuid); in necp_create_uuid_app_id_mapping()
6683 new_mapping->id = necp_get_new_app_uuid_id(); in necp_create_uuid_app_id_mapping()
6684 os_ref_init(&new_mapping->refcount, &necp_refgrp); in necp_create_uuid_app_id_mapping()
6686 new_mapping->table_usecount = 1; in necp_create_uuid_app_id_mapping()
6688 new_mapping->table_usecount = 0; in necp_create_uuid_app_id_mapping()
6691 LIST_INSERT_HEAD(APPUUIDHASH(uuid), new_mapping, chain); in necp_create_uuid_app_id_mapping()
6697 local_id = new_mapping->id; in necp_create_uuid_app_id_mapping()
6860 struct necp_uuid_id_mapping *new_mapping = NULL; in necp_create_agent_uuid_id_mapping() local
6861 new_mapping = kalloc_type(struct necp_uuid_id_mapping, in necp_create_agent_uuid_id_mapping()
6863 uuid_copy(new_mapping->uuid, uuid); in necp_create_agent_uuid_id_mapping()
6864 new_mapping->id = necp_get_new_agent_id(true); in necp_create_agent_uuid_id_mapping()
6865 os_ref_init(&new_mapping->refcount, &necp_refgrp); in necp_create_agent_uuid_id_mapping()
6867 LIST_INSERT_HEAD(&necp_agent_uuid_id_list, new_mapping, chain); in necp_create_agent_uuid_id_mapping()
6869 agent_id = new_mapping->id; in necp_create_agent_uuid_id_mapping()
6967 struct necp_agent_type_id_mapping * __single new_mapping = NULL; in necp_create_agent_type_to_id_mapping() local
6968 new_mapping = kalloc_type(struct necp_agent_type_id_mapping, in necp_create_agent_type_to_id_mapping()
6970 …strlcpy(new_mapping->agent_type.agent_domain, __unsafe_null_terminated_from_indexable(agent_type->… in necp_create_agent_type_to_id_mapping()
6971 …strlcpy(new_mapping->agent_type.agent_type, __unsafe_null_terminated_from_indexable(agent_type->ag… in necp_create_agent_type_to_id_mapping()
6972 new_mapping->id = necp_get_new_agent_id(false); in necp_create_agent_type_to_id_mapping()
6973 os_ref_init(&new_mapping->refcount, &necp_refgrp); in necp_create_agent_type_to_id_mapping()
6974 LIST_INSERT_HEAD(&necp_agent_type_id_list, new_mapping, chain); in necp_create_agent_type_to_id_mapping()
6975 agent_type_id = new_mapping->id; in necp_create_agent_type_to_id_mapping()