Lines Matching defs:ivhd
1558 static inline int ivhd_entry_length(u8 *ivhd)
1560 u32 type = ((struct ivhd_entry *)ivhd)->type;
1563 return 0x04 << (*ivhd >> 6);
1566 return *((u8 *)ivhd + 21) + 22;
1819 struct ivhd_header *ivhd = (struct ivhd_header *)(base + IVRS_HEADER_LENGTH);
1820 u8 last_type = ivhd->type;
1821 u16 devid = ivhd->devid;
1823 while (((u8 *)ivhd - base < ivrs->length) &&
1824 (ivhd->type <= ACPI_IVHD_TYPE_MAX_SUPPORTED) &&
1825 (ivhd->length > 0)) {
1826 u8 *p = (u8 *) ivhd;
1828 if (ivhd->devid == devid)
1829 last_type = ivhd->type;
1830 ivhd = (struct ivhd_header *)(p + ivhd->length);