Lines Matching refs:gaddr
15 struct acpi_generic_address gaddr; member
33 residency_info_mem.gaddr.bit_width); in lpit_read_residency_counter_us()
41 err = rdmsrl_safe(residency_info_ffh.gaddr.address, counter); in lpit_read_residency_counter_us()
43 u64 mask = GENMASK_ULL(residency_info_ffh.gaddr.bit_offset + in lpit_read_residency_counter_us()
44 residency_info_ffh.gaddr. bit_width - 1, in lpit_read_residency_counter_us()
45 residency_info_ffh.gaddr.bit_offset); in lpit_read_residency_counter_us()
48 *counter >>= residency_info_ffh.gaddr.bit_offset; in lpit_read_residency_counter_us()
88 if (!residency_info_mem.gaddr.address) in lpit_read_residency_count_address()
91 *address = residency_info_mem.gaddr.address; in lpit_read_residency_count_address()
105 info->gaddr = lpit_native->residency_counter; in lpit_update_residency()
106 if (info->gaddr.space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY) { in lpit_update_residency()
107 info->iomem_addr = ioremap(info->gaddr.address, in lpit_update_residency()
108 info->gaddr.bit_width / 8); in lpit_update_residency()
119 } else if (info->gaddr.space_id == ACPI_ADR_SPACE_FIXED_HARDWARE) { in lpit_update_residency()
137 !residency_info_mem.gaddr.address) { in lpit_process()
140 !residency_info_ffh.gaddr.address) { in lpit_process()