Lines Matching refs:dev_header
32 struct dev_header { struct
46 struct dev_header dev_header[]; member
49 static void __init unmarshal_key_value_pairs(struct dev_header *dev_header, in unmarshal_key_value_pairs() argument
55 for (i = 0; i < dev_header->prop_count; i++) { in unmarshal_key_value_pairs()
56 int remaining = dev_header->len - (ptr - (void *)dev_header); in unmarshal_key_value_pairs()
69 ptr - (void *)dev_header); in unmarshal_key_value_pairs()
77 ptr - (void *)dev_header + key_len); in unmarshal_key_value_pairs()
107 if (i != dev_header->prop_count) { in unmarshal_key_value_pairs()
109 dev_header->prop_count); in unmarshal_key_value_pairs()
111 16, 1, dev_header, dev_header->len, true); in unmarshal_key_value_pairs()
120 size_t offset = offsetof(struct properties_header, dev_header[0]); in unmarshal_devices()
122 while (offset + sizeof(struct dev_header) < properties->len) { in unmarshal_devices()
123 struct dev_header *dev_header = (void *)properties + offset; in unmarshal_devices() local
130 if (offset + dev_header->len > properties->len || in unmarshal_devices()
131 dev_header->len <= sizeof(*dev_header)) { in unmarshal_devices()
136 ptr = dev_header->path; in unmarshal_devices()
137 len = dev_header->len - sizeof(*dev_header); in unmarshal_devices()
142 PTR_ERR(dev), (void *)ptr - (void *)dev_header); in unmarshal_devices()
144 16, 1, dev_header, dev_header->len, true); in unmarshal_devices()
149 entry = kcalloc(dev_header->prop_count + 1, sizeof(*entry), in unmarshal_devices()
156 unmarshal_key_value_pairs(dev_header, dev, ptr, entry); in unmarshal_devices()
170 offset += dev_header->len; in unmarshal_devices()