Lines Matching refs:newprops
31 union acpi_object *props, *newprops; in acpi_extract_apple_properties() local
96 newprops = ACPI_ALLOCATE_ZEROED(newsize); in acpi_extract_apple_properties()
97 if (!newprops) in acpi_extract_apple_properties()
101 newprops->type = ACPI_TYPE_PACKAGE; in acpi_extract_apple_properties()
102 newprops->package.count = numvalid; in acpi_extract_apple_properties()
103 newprops->package.elements = &newprops[1]; in acpi_extract_apple_properties()
104 free_space = &newprops[1 + 3 * numvalid]; in acpi_extract_apple_properties()
112 newprops[1 + j].type = ACPI_TYPE_PACKAGE; in acpi_extract_apple_properties()
113 newprops[1 + j].package.count = 2; in acpi_extract_apple_properties()
114 newprops[1 + j].package.elements = &newprops[k]; in acpi_extract_apple_properties()
116 newprops[k].type = ACPI_TYPE_STRING; in acpi_extract_apple_properties()
117 newprops[k].string.length = key->string.length; in acpi_extract_apple_properties()
118 newprops[k].string.pointer = free_space; in acpi_extract_apple_properties()
122 newprops[v].type = val->type; in acpi_extract_apple_properties()
124 newprops[v].integer.value = val->integer.value; in acpi_extract_apple_properties()
126 newprops[v].string.length = val->string.length; in acpi_extract_apple_properties()
127 newprops[v].string.pointer = free_space; in acpi_extract_apple_properties()
132 newprops[v].buffer.length = val->buffer.length; in acpi_extract_apple_properties()
133 newprops[v].buffer.pointer = free_space; in acpi_extract_apple_properties()
140 WARN_ON(free_space != (void *)newprops + newsize); in acpi_extract_apple_properties()
142 adev->data.pointer = newprops; in acpi_extract_apple_properties()
143 acpi_data_add_props(&adev->data, &apple_prp_guid, newprops); in acpi_extract_apple_properties()