Lines Matching refs:entry
234 pr_warn("Found unsupported MADT entry (type = 0x%x)\n",
241 acpi_get_entry_type(struct acpi_subtable_entry *entry)
243 switch (entry->type) {
245 return entry->hdr->common.type;
247 return entry->hdr->hmat.type;
251 return entry->hdr->cedt.type;
257 acpi_get_entry_length(struct acpi_subtable_entry *entry)
259 switch (entry->type) {
261 return entry->hdr->common.length;
263 return entry->hdr->hmat.length;
265 return entry->hdr->prmt.length;
267 return entry->hdr->cedt.length;
273 acpi_get_subtable_header_length(struct acpi_subtable_entry *entry)
275 switch (entry->type) {
277 return sizeof(entry->hdr->common);
279 return sizeof(entry->hdr->hmat);
281 return sizeof(entry->hdr->prmt);
283 return sizeof(entry->hdr->cedt);
322 * @proc: array of acpi_subtable_proc struct containing entry id
329 * entry id.
344 struct acpi_subtable_entry entry;
354 entry.type = acpi_get_subtable_type(id);
355 entry.hdr = (union acpi_subtable_headers *)
357 subtable_len = acpi_get_subtable_header_length(&entry);
359 while (((unsigned long)entry.hdr) + subtable_len < table_end) {
364 if (acpi_get_entry_type(&entry) != proc[i].id)
368 call_handler(&proc[i], entry.hdr, table_end))) {
380 * If entry->length is 0, break from this loop to avoid
383 entry_len = acpi_get_entry_length(&entry);
389 entry.hdr = (union acpi_subtable_headers *)
390 ((unsigned long)entry.hdr + entry_len);