Home
last modified time | relevance | path

Searched refs:ivhd (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/iommu/loongson/
H A Diommu.c1558 static inline int ivhd_entry_length(u8 *ivhd) in ivhd_entry_length() argument
1560 u32 type = ((struct ivhd_entry *)ivhd)->type; in ivhd_entry_length()
1563 return 0x04 << (*ivhd >> 6); in ivhd_entry_length()
1566 return *((u8 *)ivhd + 21) + 22; in ivhd_entry_length()
1819 struct ivhd_header *ivhd = (struct ivhd_header *)(base + IVRS_HEADER_LENGTH); in get_highest_supported_ivhd_type() local
1820 u8 last_type = ivhd->type; in get_highest_supported_ivhd_type()
1821 u16 devid = ivhd->devid; in get_highest_supported_ivhd_type()
1823 while (((u8 *)ivhd - base < ivrs->length) && in get_highest_supported_ivhd_type()
1824 (ivhd->type <= ACPI_IVHD_TYPE_MAX_SUPPORTED) && in get_highest_supported_ivhd_type()
1825 (ivhd in get_highest_supported_ivhd_type()
[all...]
/kernel/linux/linux-5.10/drivers/iommu/amd/
H A Dinit.c540 static inline int ivhd_entry_length(u8 *ivhd) in ivhd_entry_length() argument
542 u32 type = ((struct ivhd_entry *)ivhd)->type; in ivhd_entry_length()
545 return 0x04 << (*ivhd >> 6); in ivhd_entry_length()
548 return *((u8 *)ivhd + 21) + 22; in ivhd_entry_length()
1676 struct ivhd_header *ivhd = (struct ivhd_header *) in get_highest_supported_ivhd_type() local
1678 u8 last_type = ivhd->type; in get_highest_supported_ivhd_type()
1679 u16 devid = ivhd->devid; in get_highest_supported_ivhd_type()
1681 while (((u8 *)ivhd - base < ivrs->length) && in get_highest_supported_ivhd_type()
1682 (ivhd->type <= ACPI_IVHD_TYPE_MAX_SUPPORTED)) { in get_highest_supported_ivhd_type()
1683 u8 *p = (u8 *) ivhd; in get_highest_supported_ivhd_type()
[all...]
/kernel/linux/linux-6.6/drivers/iommu/amd/
H A Dinit.c548 static inline int ivhd_entry_length(u8 *ivhd) in ivhd_entry_length() argument
550 u32 type = ((struct ivhd_entry *)ivhd)->type; in ivhd_entry_length()
553 return 0x04 << (*ivhd >> 6); in ivhd_entry_length()
556 return *((u8 *)ivhd + 21) + 22; in ivhd_entry_length()
1915 struct ivhd_header *ivhd = (struct ivhd_header *) in get_highest_supported_ivhd_type() local
1917 u8 last_type = ivhd->type; in get_highest_supported_ivhd_type()
1918 u16 devid = ivhd->devid; in get_highest_supported_ivhd_type()
1920 while (((u8 *)ivhd - base < ivrs->length) && in get_highest_supported_ivhd_type()
1921 (ivhd->type <= ACPI_IVHD_TYPE_MAX_SUPPORTED)) { in get_highest_supported_ivhd_type()
1922 u8 *p = (u8 *) ivhd; in get_highest_supported_ivhd_type()
[all...]

Completed in 9 milliseconds