Lines Matching full:properties
3 * apple-properties.c - EFI device properties on Macs
6 * Note, all properties are considered as u8 arrays.
10 #define pr_fmt(fmt) "apple-properties: " fmt
103 dev_err(dev, "got %d device properties, expected %u\n", i, in unmarshal_key_value_pairs()
110 dev_info(dev, "assigning %d device properties\n", i); in unmarshal_key_value_pairs()
113 static int __init unmarshal_devices(struct properties_header *properties) in unmarshal_devices() argument
117 while (offset + sizeof(struct dev_header) < properties->len) { in unmarshal_devices()
118 struct dev_header *dev_header = (void *)properties + offset; in unmarshal_devices()
125 if (offset + dev_header->len > properties->len || in unmarshal_devices()
147 dev_err(dev, "cannot allocate properties\n"); in unmarshal_devices()
157 dev_err(dev, "error %d assigning properties\n", ret); in unmarshal_devices()
173 struct properties_header *properties; in map_properties() local
205 properties = (struct properties_header *)data->data; in map_properties()
206 if (properties->version != 1) { in map_properties()
209 16, 1, properties, data_len, true); in map_properties()
211 } else if (properties->len != data_len) { in map_properties()
214 16, 1, properties, data_len, true); in map_properties()
217 ret = unmarshal_devices(properties); in map_properties()