Lines Matching refs:new_mapping
5855 struct necp_string_id_mapping * __single new_mapping = NULL; in necp_create_string_to_id_mapping() local
5856 new_mapping = kalloc_type(struct necp_string_id_mapping, in necp_create_string_to_id_mapping()
5863 new_mapping->string = __unsafe_null_terminated_from_indexable(buffer, &buffer[length - 1]); in necp_create_string_to_id_mapping()
5864 new_mapping->id = necp_get_new_string_id(); in necp_create_string_to_id_mapping()
5865 os_ref_init(&new_mapping->refcount, &necp_refgrp); in necp_create_string_to_id_mapping()
5866 LIST_INSERT_HEAD(list, new_mapping, chain); in necp_create_string_to_id_mapping()
5867 string_id = new_mapping->id; in necp_create_string_to_id_mapping()
5869 kfree_type(struct necp_string_id_mapping, new_mapping); in necp_create_string_to_id_mapping()
5870 new_mapping = NULL; in necp_create_string_to_id_mapping()
6668 struct necp_uuid_id_mapping *new_mapping = NULL; in necp_create_uuid_app_id_mapping() local
6669 new_mapping = kalloc_type(struct necp_uuid_id_mapping, in necp_create_uuid_app_id_mapping()
6671 uuid_copy(new_mapping->uuid, uuid); in necp_create_uuid_app_id_mapping()
6672 new_mapping->id = necp_get_new_app_uuid_id(); in necp_create_uuid_app_id_mapping()
6673 os_ref_init(&new_mapping->refcount, &necp_refgrp); in necp_create_uuid_app_id_mapping()
6675 new_mapping->table_usecount = 1; in necp_create_uuid_app_id_mapping()
6677 new_mapping->table_usecount = 0; in necp_create_uuid_app_id_mapping()
6680 LIST_INSERT_HEAD(APPUUIDHASH(uuid), new_mapping, chain); in necp_create_uuid_app_id_mapping()
6686 local_id = new_mapping->id; in necp_create_uuid_app_id_mapping()
6849 struct necp_uuid_id_mapping *new_mapping = NULL; in necp_create_agent_uuid_id_mapping() local
6850 new_mapping = kalloc_type(struct necp_uuid_id_mapping, in necp_create_agent_uuid_id_mapping()
6852 uuid_copy(new_mapping->uuid, uuid); in necp_create_agent_uuid_id_mapping()
6853 new_mapping->id = necp_get_new_agent_id(true); in necp_create_agent_uuid_id_mapping()
6854 os_ref_init(&new_mapping->refcount, &necp_refgrp); in necp_create_agent_uuid_id_mapping()
6856 LIST_INSERT_HEAD(&necp_agent_uuid_id_list, new_mapping, chain); in necp_create_agent_uuid_id_mapping()
6858 agent_id = new_mapping->id; in necp_create_agent_uuid_id_mapping()
6956 struct necp_agent_type_id_mapping * __single new_mapping = NULL; in necp_create_agent_type_to_id_mapping() local
6957 new_mapping = kalloc_type(struct necp_agent_type_id_mapping, in necp_create_agent_type_to_id_mapping()
6959 …strlcpy(new_mapping->agent_type.agent_domain, __unsafe_null_terminated_from_indexable(agent_type->… in necp_create_agent_type_to_id_mapping()
6960 …strlcpy(new_mapping->agent_type.agent_type, __unsafe_null_terminated_from_indexable(agent_type->ag… in necp_create_agent_type_to_id_mapping()
6961 new_mapping->id = necp_get_new_agent_id(false); in necp_create_agent_type_to_id_mapping()
6962 os_ref_init(&new_mapping->refcount, &necp_refgrp); in necp_create_agent_type_to_id_mapping()
6963 LIST_INSERT_HEAD(&necp_agent_type_id_list, new_mapping, chain); in necp_create_agent_type_to_id_mapping()
6964 agent_type_id = new_mapping->id; in necp_create_agent_type_to_id_mapping()