Lines Matching refs:copy

549 	struct	aml_environ *copy;  in aml_parse_defpackage()  local
556 copy = memman_alloc(aml_memman, memid_aml_environ); in aml_parse_defpackage()
557 if (copy == NULL) { in aml_parse_defpackage()
574 *copy = *env; in aml_parse_defpackage()
575 env->dp = copy->end = start + pkglength; in aml_parse_defpackage()
578 while ((copy->dp < copy->end) && (i < numelements)) { in aml_parse_defpackage()
580 tmpname = aml_parse_termobj(copy, indent + 1); in aml_parse_defpackage()
583 objects[i] = aml_copy_object(copy, tmpname->property); in aml_parse_defpackage()
588 aml_free_objectcontent(&copy->tempobject); in aml_parse_defpackage()
597 memman_free(aml_memman, memid_aml_environ, copy); in aml_parse_defpackage()
608 struct aml_environ *copy; in aml_parse_defmethod() local
615 copy = memman_alloc(aml_memman, memid_aml_environ); in aml_parse_defmethod()
616 if (copy == NULL) { in aml_parse_defmethod()
638 *copy = *env; in aml_parse_defmethod()
641 meth->to = env->dp = copy->end = start + pkglength; in aml_parse_defmethod()
645 memman_free(aml_memman, memid_aml_environ, copy); in aml_parse_defmethod()
782 struct aml_environ *copy; in aml_parse_deffield() local
790 copy = memman_alloc(aml_memman, memid_aml_environ); in aml_parse_deffield()
791 if (copy == NULL) { in aml_parse_deffield()
801 *copy = *env; in aml_parse_deffield()
802 env->dp = copy->end = start + pkglength; in aml_parse_deffield()
811 aml_parse_fieldlist(copy, &fieldtemplate, indent + 1); in aml_parse_deffield()
814 aml_free_objectcontent(&copy->tempobject); in aml_parse_deffield()
816 AML_SYSASSERT(copy->dp == copy->end); in aml_parse_deffield()
817 memman_free(aml_memman, memid_aml_environ, copy); in aml_parse_deffield()
826 struct aml_environ *copy; in aml_parse_defindexfield() local
834 copy = memman_alloc(aml_memman, memid_aml_environ); in aml_parse_defindexfield()
835 if (copy == NULL) { in aml_parse_defindexfield()
854 *copy = *env; in aml_parse_defindexfield()
855 env->dp = copy->end = start + pkglength; in aml_parse_defindexfield()
856 aml_parse_fieldlist(copy, &template, indent + 1); in aml_parse_defindexfield()
859 aml_free_objectcontent(&copy->tempobject); in aml_parse_defindexfield()
861 AML_SYSASSERT(copy->dp == copy->end); in aml_parse_defindexfield()
862 memman_free(aml_memman, memid_aml_environ, copy); in aml_parse_defindexfield()
871 struct aml_environ *copy; in aml_parse_defbankfield() local
880 copy = memman_alloc(aml_memman, memid_aml_environ); in aml_parse_defbankfield()
881 if (copy == NULL) { in aml_parse_defbankfield()
900 *copy = *env; in aml_parse_defbankfield()
901 env->dp = copy->end = start + pkglength; in aml_parse_defbankfield()
906 aml_parse_fieldlist(copy, &template, indent + 1); in aml_parse_defbankfield()
910 aml_free_objectcontent(&copy->tempobject); in aml_parse_defbankfield()
911 AML_SYSASSERT(copy->dp == copy->end); in aml_parse_defbankfield()
912 memman_free(aml_memman, memid_aml_environ, copy); in aml_parse_defbankfield()
921 struct aml_environ *copy; in aml_parse_defdevice() local
925 copy = memman_alloc(aml_memman, memid_aml_environ); in aml_parse_defdevice()
926 if (copy == NULL) { in aml_parse_defdevice()
934 *copy = *env; in aml_parse_defdevice()
935 AML_CREATE_NAME(copy->curname, env, name,); in aml_parse_defdevice()
936 if (copy->curname->property != NULL) { in aml_parse_defdevice()
941 AML_ALLOC_OBJECT(copy->curname->property, env, aml_t_device,); in aml_parse_defdevice()
942 env->dp = copy->end = start + pkglength; in aml_parse_defdevice()
943 aml_parse_objectlist(copy, indent + 1); in aml_parse_defdevice()
946 aml_free_objectcontent(&copy->tempobject); in aml_parse_defdevice()
948 AML_SYSASSERT(copy->dp == copy->end); in aml_parse_defdevice()
950 memman_free(aml_memman, memid_aml_environ, copy); in aml_parse_defdevice()
959 struct aml_environ *copy; in aml_parse_defprocessor() local
965 copy = memman_alloc(aml_memman, memid_aml_environ); in aml_parse_defprocessor()
966 if (copy == NULL) { in aml_parse_defprocessor()
979 *copy = *env; in aml_parse_defprocessor()
980 AML_CREATE_NAME(copy->curname, env, name,); in aml_parse_defprocessor()
981 if (copy->curname->property != NULL) { in aml_parse_defprocessor()
986 copy->curname->property = obj; in aml_parse_defprocessor()
987 env->dp = copy->end = start + pkglength; in aml_parse_defprocessor()
988 aml_parse_objectlist(copy, indent + 1); in aml_parse_defprocessor()
991 aml_free_objectcontent(&copy->tempobject); in aml_parse_defprocessor()
993 AML_SYSASSERT(copy->dp == copy->end); in aml_parse_defprocessor()
995 memman_free(aml_memman, memid_aml_environ, copy); in aml_parse_defprocessor()
1004 struct aml_environ *copy; in aml_parse_defpowerres() local
1010 copy = memman_alloc(aml_memman, memid_aml_environ); in aml_parse_defpowerres()
1011 if (copy == NULL) { in aml_parse_defpowerres()
1023 *copy = *env; in aml_parse_defpowerres()
1024 AML_CREATE_NAME(copy->curname, env, name,); in aml_parse_defpowerres()
1025 if (copy->curname->property != NULL) { in aml_parse_defpowerres()
1030 copy->curname->property = obj; in aml_parse_defpowerres()
1031 env->dp = copy->end = start + pkglength; in aml_parse_defpowerres()
1033 aml_parse_objectlist(copy, indent + 1); in aml_parse_defpowerres()
1036 aml_free_objectcontent(&copy->tempobject); in aml_parse_defpowerres()
1038 AML_SYSASSERT(copy->dp == copy->end); in aml_parse_defpowerres()
1040 memman_free(aml_memman, memid_aml_environ, copy); in aml_parse_defpowerres()
1049 struct aml_environ *copy; in aml_parse_defthermalzone() local
1053 copy = memman_alloc(aml_memman, memid_aml_environ); in aml_parse_defthermalzone()
1054 if (copy == NULL) { in aml_parse_defthermalzone()
1062 *copy = *env; in aml_parse_defthermalzone()
1063 AML_CREATE_NAME(copy->curname, env, name,); in aml_parse_defthermalzone()
1064 if (copy->curname->property != NULL) { in aml_parse_defthermalzone()
1069 AML_ALLOC_OBJECT(copy->curname->property, env, aml_t_therm,); in aml_parse_defthermalzone()
1070 env->dp = copy->end = start + pkglength; in aml_parse_defthermalzone()
1071 aml_parse_objectlist(copy, indent + 1); in aml_parse_defthermalzone()
1074 aml_free_objectcontent(&copy->tempobject); in aml_parse_defthermalzone()
1075 AML_SYSASSERT(copy->dp == copy->end); in aml_parse_defthermalzone()
1077 memman_free(aml_memman, memid_aml_environ, copy); in aml_parse_defthermalzone()